CN110602733A - Application acceleration and bandwidth management method, device, terminal and storage medium - Google Patents

Application acceleration and bandwidth management method, device, terminal and storage medium Download PDF

Info

Publication number
CN110602733A
CN110602733A CN201910912497.7A CN201910912497A CN110602733A CN 110602733 A CN110602733 A CN 110602733A CN 201910912497 A CN201910912497 A CN 201910912497A CN 110602733 A CN110602733 A CN 110602733A
Authority
CN
China
Prior art keywords
application
bandwidth
terminal
management
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910912497.7A
Other languages
Chinese (zh)
Other versions
CN110602733B (en
Inventor
江沛合
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910912497.7A priority Critical patent/CN110602733B/en
Publication of CN110602733A publication Critical patent/CN110602733A/en
Application granted granted Critical
Publication of CN110602733B publication Critical patent/CN110602733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/20Negotiating bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/22Negotiating communication rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses an application acceleration and bandwidth management method, device, terminal and storage medium, and belongs to the technical field of computers. The method comprises the following steps: when the first application is in a foreground running state and the management application is in a background running state, detecting a current first bandwidth through the management application; when the first bandwidth is smaller than a first preset threshold value, network information is obtained; the method comprises the steps that an acceleration request is sent to a management server associated with the management application through the management application, the acceleration request carries network information, the management server sends the acceleration request to an operator server connected with a wireless access point, and the operator server increases bandwidth allocated to the wireless access point according to address information. The method increases the bandwidth of the terminal by increasing the bandwidth allocated to the wireless access point, and improves the data transmission speed of the first application on the terminal, thereby accelerating the first application.

Description

Application acceleration and bandwidth management method, device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, a terminal and a storage medium for application acceleration and bandwidth management.
Background
With the development of computer technology, more and more applications are installed on a terminal, and when the applications are operated, the applications occupy the bandwidth of the terminal, so that the terminal is jammed or the network delay is large, and the normal operation of the terminal is affected.
In the related art, any application running on a terminal sends a data packet to a scheduling server, and the scheduling server selects the shortest transmission path between the scheduling server and an application server corresponding to the application, so that the data packet is sent to the application server through the shortest transmission path, the data transmission speed is increased, and the running speed of the terminal is further increased. However, when the bandwidth of the terminal is small, the data transmission speed is limited by the bandwidth, and the speed cannot be increased by adopting the above scheme.
Disclosure of Invention
The embodiment of the application provides an application acceleration method, a bandwidth management method, an application acceleration device, a terminal and a storage medium, and can increase the bandwidth allocated to the terminal. The technical scheme is as follows:
in one aspect, an application acceleration method is provided, and the method includes:
when the first application is in a foreground running state and the management application is in a background running state, detecting a current first bandwidth through the management application;
when the first bandwidth is smaller than a first preset threshold value, network information is obtained, wherein the network information at least comprises address information of a wireless access point connected with the terminal;
and sending an acceleration request to a management server associated with the management application through the management application, wherein the acceleration request carries the network information, the management server sends the acceleration request to an operator server connected with the wireless access point, and the operator server increases the bandwidth allocated to the wireless access point according to the address information.
In another aspect, a bandwidth management method is provided, which is applied to a terminal, and includes:
detecting a current first bandwidth of the terminal;
when the first bandwidth is smaller than a first preset threshold value, network information is obtained, wherein the network information at least comprises address information of a wireless access point connected with the terminal;
and sending an acceleration request to a management server, wherein the acceleration request carries the network information, the management server sends the acceleration request to an operator server connected with the wireless access point, and the operator server increases the bandwidth allocated to the wireless access point according to the address information.
Optionally, the method further comprises:
detecting the current memory ratio of the terminal;
and when the memory occupation ratio is larger than a second preset threshold, closing the second application in the background running state.
Optionally, when the memory occupancy ratio is greater than a second preset threshold, closing the second application in the background running state includes:
when the memory occupation ratio is larger than the second preset threshold and the second application is not included in the first preset white list, closing the second application; or,
and when the memory occupation ratio is greater than the second preset threshold and the first preset blacklist comprises the second application, closing the second application.
Optionally, the method further comprises:
and detecting the state of any application on the terminal based on the stack top authority of the opening state, wherein the state comprises a closing state, a background running state or a foreground running state.
In another aspect, a bandwidth management method is provided, which is applied to a management server, and includes:
receiving a speed-up request sent by a terminal when a current first bandwidth is smaller than a first preset threshold, wherein the speed-up request comprises network information of the terminal, and the network information at least comprises address information of a wireless access point connected with the terminal;
determining an operator server connected with the wireless access point according to the address information;
and sending the speed acceleration request to the operator server, and increasing the bandwidth allocated to the wireless access point by the operator server according to the address information.
Optionally, after the sending the speed-up request to the operator server, the method further includes:
receiving a speed reduction request sent by the terminal, wherein the speed reduction request is sent by the terminal when a first application in a foreground running state is closed or switched to a background running state, and the speed reduction request comprises the network information;
determining an operator server connected with the wireless access point according to the address information;
and sending the speed reduction request to the operator server, and restoring the original bandwidth allocated to the wireless access point by the operator server according to the address information.
In another aspect, a bandwidth management method is provided, which is applied to an operator server, and the method includes:
receiving a speed-up request sent by a management server, wherein the speed-up request is sent to the management server by a terminal when a current first bandwidth is smaller than a first preset threshold value, the speed-up request comprises network information of the terminal, and the network information at least comprises address information of a wireless access point connected with the terminal;
and increasing the bandwidth allocated to the wireless access point according to the address information.
Optionally, the increasing the bandwidth allocated to the wireless access point according to the address information includes:
inquiring a bandwidth allocation record according to the address information to obtain a second bandwidth allocated to the wireless access point, wherein the bandwidth allocation record comprises the address information of any wireless access point and the bandwidth allocated to any wireless access point;
acquiring a third bandwidth which is larger than the second bandwidth;
and allocating the third bandwidth to the wireless access point according to the address information.
Optionally, the obtaining a third bandwidth larger than the second bandwidth includes:
obtaining the sum of the difference value of the second bandwidth and a preset bandwidth to obtain a third bandwidth; or,
and obtaining the product of the second bandwidth and a preset proportion to obtain the third bandwidth, wherein the preset proportion is more than 1.
Optionally, after increasing the bandwidth allocated to the wireless access point according to the address information, the method further includes:
receiving a speed reduction request sent by the management server, wherein the speed reduction request is sent by the terminal when a first application in a foreground running state is closed or switched to a background running state, and the speed reduction request comprises the network information;
and restoring the original bandwidth allocated to the wireless access point according to the address information.
In another aspect, an application acceleration apparatus is provided, the apparatus including:
the bandwidth detection module is used for detecting the current first bandwidth through the management application when the first application is in a foreground running state and the management application is in a background running state;
a first information obtaining module, configured to obtain network information when the first bandwidth is smaller than a first preset threshold, where the network information at least includes address information of a wireless access point to which the terminal is connected;
and the speed-up request sending module is used for sending a speed-up request to a management server associated with the management application through the management application, wherein the speed-up request carries the network information, the management server sends the speed-up request to an operator server connected with the wireless access point, and the operator server increases the bandwidth allocated to the wireless access point according to the address information.
Optionally, the apparatus further comprises:
the memory occupation ratio detection module is used for detecting the current memory occupation ratio of the terminal through the management application when the first application is in a foreground running state and the management application is in a background running state;
and the application closing module is used for closing a second application in a background running state when the memory occupation ratio is greater than a second preset threshold, wherein the second application is different from the management application.
Optionally, the apparatus further comprises:
the data packet intercepting module is used for intercepting a data packet sent by a second application in a background running state through the management application when the first application is in the foreground running state and the management application is in the background running state;
and the data packet discarding module is used for discarding the data packet sent by the second application, wherein the second application is different from the management application.
Optionally, the apparatus further comprises:
and the state detection module is used for detecting the state of any application on the terminal based on the stack top authority of the open state through the management application, wherein the state comprises a closed state, a background running state or a foreground running state.
In another aspect, there is provided a bandwidth management apparatus, the apparatus comprising:
the bandwidth detection module is used for detecting the current first bandwidth of the terminal;
a first information obtaining module, configured to obtain network information when the first bandwidth is smaller than a first preset threshold, where the network information at least includes address information of a wireless access point to which the terminal is connected;
the first speed-up request sending module is used for sending a speed-up request to a management server, wherein the speed-up request carries the network information, the management server sends the speed-up request to an operator server connected with the wireless access point, and the operator server increases the bandwidth allocated to the wireless access point according to the address information.
Optionally, the first information obtaining module is further configured to obtain the network information when the first bandwidth is smaller than the first preset threshold and the first application currently in the foreground running state is a preset application.
Optionally, the apparatus further comprises:
the second information acquisition module is used for acquiring the network information when the first application is closed or switched to a background running state;
and the speed reduction request sending module is used for sending a speed reduction request to the management server, wherein the speed reduction request carries the network information, the management server sends the speed reduction request to the operator server, and the operator server restores the original bandwidth allocated to the wireless access point according to the address information.
Optionally, the apparatus further comprises:
the memory ratio detection module is used for detecting the current memory ratio of the terminal;
and the closing module is used for closing the second application in the background running state when the memory occupation ratio is greater than a second preset threshold value.
Optionally, the shutdown module is further configured to:
when the memory occupation ratio is larger than the second preset threshold and the second application is not included in the first preset white list, closing the second application; or,
and when the memory occupation ratio is greater than the second preset threshold and the first preset blacklist comprises the second application, closing the second application.
Optionally, the apparatus further comprises:
and the state detection module is used for detecting the state of any application on the terminal based on the stack top authority of the opening state, wherein the state comprises a closing state, a background running state or a foreground running state.
Optionally, the apparatus further comprises:
the first interception module is used for intercepting a first data packet sent by any application in a running state;
an application identifier obtaining module, configured to obtain an application identifier to which the first data packet belongs;
and the first sending module is used for sending the first data packet to an application server corresponding to the application identifier when the application identifier is a preset application identifier.
Optionally, the application identifier obtaining module is further configured to:
analyzing the first data packet to obtain a source port number carried in the first data packet;
and acquiring an application identifier corresponding to the source port number according to a preset mapping relation, wherein the preset mapping relation comprises an application identifier corresponding to any source port number and any source port number.
Optionally, the apparatus further comprises:
the second interception module is used for intercepting a second data packet sent by any application in the running state;
a multi-transmission flag adding module, configured to add a multi-transmission flag to the second data packet, where the multi-transmission flag is used to indicate that the second data packet is sent a preset number of times, and the preset number of times is a positive integer greater than 1;
and the second sending module is used for sending the second data packet to a scheduling server according to the preset times, storing the received second data packet by the scheduling server, and forwarding the received second data packet to an application server corresponding to the second data packet.
Optionally, the apparatus further comprises:
and the receiving module is used for receiving a third data packet sent by the scheduling server according to preset times, wherein the third data packet is sent to the scheduling server by the application server, and the scheduling server acquires the multi-sending mark in the second data packet corresponding to the third data packet and sends the multi-sending mark according to the multi-sending mark.
In another aspect, there is provided a bandwidth management apparatus, the apparatus comprising:
a speed-up request receiving module, configured to receive a speed-up request sent by a terminal when a current first bandwidth is smaller than a first preset threshold, where the speed-up request includes network information of the terminal, and the network information at least includes address information of a wireless access point to which the terminal is connected;
the first determining module is used for determining an operator server connected with the wireless access point according to the address information;
and the speed-up request sending module is used for sending the speed-up request to the operator server, and the operator server increases the bandwidth allocated to the wireless access point according to the address information.
Optionally, the apparatus further comprises:
a speed reduction request receiving module, configured to receive a speed reduction request sent by the terminal, where the speed reduction request is sent when a first application in a foreground running state is closed or switched to a background running state, and the speed reduction request includes the network information;
the second determining module is used for determining an operator server connected with the wireless access point according to the address information;
and the speed reduction request sending module is used for sending the speed reduction request to the operator server, and the operator server restores the original bandwidth allocated to the wireless access point according to the address information.
In another aspect, there is provided a bandwidth management apparatus, the apparatus comprising:
the system comprises an acceleration request receiving module, a speed acceleration request receiving module and a speed acceleration request transmitting module, wherein the acceleration request receiving module is used for receiving an acceleration request transmitted by a management server, the acceleration request is transmitted to the management server by a terminal when a current first bandwidth is smaller than a first preset threshold value, the acceleration request comprises network information of the terminal, and the network information at least comprises address information of a wireless access point connected with the terminal;
and the bandwidth increasing module is used for increasing the bandwidth allocated to the wireless access point according to the address information.
Optionally, the bandwidth increasing module is further configured to:
inquiring a bandwidth allocation record according to the address information to obtain a second bandwidth allocated to the wireless access point, wherein the bandwidth allocation record comprises the address information of any wireless access point and the bandwidth allocated to any wireless access point;
acquiring a third bandwidth which is larger than the second bandwidth;
and allocating the third bandwidth to the wireless access point according to the address information.
Optionally, the third bandwidth obtaining unit is further configured to:
obtaining the sum of the difference value of the second bandwidth and a preset bandwidth to obtain a third bandwidth; or,
and obtaining the product of the second bandwidth and a preset proportion to obtain the third bandwidth, wherein the preset proportion is more than 1.
Optionally, the apparatus further comprises:
a speed reduction request receiving module, configured to receive a speed reduction request sent by the management server, where the speed reduction request is sent by the terminal when a first application in a foreground running state is closed or switched to a background running state, and the speed reduction request includes the network information;
and the bandwidth recovery module is used for recovering the original bandwidth allocated to the wireless access point according to the address information.
In another aspect, a terminal is provided, which includes a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded into and executed by the processor to implement the operations as performed in the application acceleration method or to implement the operations as performed in the bandwidth management method.
In another aspect, a server is provided, which includes a processor and a memory, the memory having at least one program code stored therein, the at least one program code being loaded and executed by the processor to implement operations as performed in the application acceleration method or to implement operations as performed in the bandwidth management method.
In still another aspect, a computer-readable storage medium having at least one program code stored therein, the at least one program code being loaded and executed by a processor to implement the operations performed in the application acceleration method or to implement the operations performed in the bandwidth management method is provided.
According to the method, the device, the terminal and the storage medium provided by the embodiment of the application, when the first application is in a foreground running state and the management application is in a background running state, the current first bandwidth is detected through the management application; when the first bandwidth is smaller than a first preset threshold value, network information is obtained; the method comprises the steps that an acceleration request is sent to a management server associated with the management application through the management application, the acceleration request carries network information, the management server sends the acceleration request to an operator server connected with a wireless access point, and the operator server increases bandwidth allocated to the wireless access point according to address information. The method increases the bandwidth of the terminal by increasing the bandwidth allocated to the wireless access point, and improves the data transmission speed of the first application on the terminal, thereby accelerating the first application.
In addition, the terminal detects the current first bandwidth, when the first bandwidth is smaller than a first preset threshold value, network information is obtained, an acceleration request is sent to the management server, when the management server receives the acceleration request, the operator server connected with the wireless access point is determined according to the network information, the acceleration request is sent to the operator server, and when the operator server receives the acceleration request, the bandwidth distributed to the wireless access point is increased according to the address information, so that the bandwidth of the terminal is increased, the data transmission speed of the terminal is increased, the operation speed of the terminal is increased, and flexible management of the bandwidth of the terminal is achieved.
And when the first application is closed or switched to a background running state, the terminal acquires network information and sends a speed reduction request to the management server, when the management server receives the speed reduction request, the management server determines an operator server connected with the wireless access point according to the network information and sends the speed reduction request to the operator server, and when the operator server receives the speed reduction request, the original bandwidth distributed for the wireless access point is recovered according to the address information. When the terminal does not need to increase the bandwidth, the bandwidth allocated to the wireless access point is restored to the original bandwidth, so that the waste of bandwidth resources is avoided.
And detecting the current memory occupation ratio of the terminal, acquiring a second application currently in a background running state, closing the second application when the memory occupation ratio is larger than a second preset threshold, and continuing the background running of the second application when the memory occupation ratio is smaller than the second preset threshold. By closing the application running in the background, the memory occupation ratio is reduced, and the running speed of the terminal is improved. Moreover, the applications in the background running state can be regarded as applications which do not need to be operated by the user at present, and the use of the user is not influenced by closing the applications.
Intercepting a first data packet sent by any application currently in a running state; acquiring an application identifier to which a first data packet belongs; and when the application identifier is the preset application identifier, sending the first data packet to an application server corresponding to the application identifier. By adopting the method provided by the embodiment of the application, the data packets sent by part of the applications can be intercepted, and only the data packets sent by the preset applications are transmitted, so that the number of the data packets is reduced, the bandwidth occupied by the data packets is reduced, the data transmission speed is increased, and further the operation speed of the terminal is increased.
Intercepting a second data packet sent by any application currently in the running state; adding a multi-sending mark in the second data packet, wherein the multi-sending mark is used for indicating that the second data packet is sent for a preset time, and the preset time is a positive integer greater than 1; and sending a second data packet to the scheduling server according to the preset times, storing the received second data packet by the scheduling server, and forwarding the received second data packet to the application server corresponding to the second data packet. The second data packet is sent in multiple ways, so that the possibility of second data packet loss is reduced, the packet loss rate is improved as much as possible, and the normal operation of the terminal is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application.
Fig. 2 is a schematic diagram of another implementation environment provided by the embodiment of the present application.
Fig. 3 is a flowchart of a bandwidth management method according to an embodiment of the present application.
Fig. 4 is a flowchart of another bandwidth management method according to an embodiment of the present application.
Fig. 5 is a flowchart of a memory management method according to an embodiment of the present application.
Fig. 6 is a flowchart of a packet intercepting method according to an embodiment of the present application.
Fig. 7 is a flowchart of a packet intercepting method according to an embodiment of the present application.
Fig. 8 is a schematic diagram of an acceleration interface of a management application according to an embodiment of the present application.
Fig. 9 is a schematic diagram of an acceleration interface of a management application according to an embodiment of the present application.
FIG. 10 is a schematic diagram of an implementation environment provided by an embodiment of the application.
Fig. 11 is a flowchart of a data packet management method according to an embodiment of the present application.
Fig. 12 is a flowchart of another data packet management method according to an embodiment of the present application.
Fig. 13 is a schematic structural diagram of an implementation environment provided in the embodiment of the present application.
Fig. 14 is a schematic structural diagram of a blockchain system according to an embodiment of the present disclosure.
Fig. 15 is a block chain diagram according to an embodiment of the present disclosure.
Fig. 16 is a schematic structural diagram of an application accelerating device provided by an embodiment of the application.
Fig. 17 is a schematic structural diagram of another application accelerating device provided by the embodiment of the application.
Fig. 18 is a schematic structural diagram of a bandwidth management apparatus according to an embodiment of the present application.
Fig. 19 is a schematic structural diagram of another bandwidth management apparatus according to an embodiment of the present application.
Fig. 20 is a schematic structural diagram of another bandwidth management apparatus according to an embodiment of the present application.
Fig. 21 is a schematic structural diagram of another bandwidth management apparatus according to an embodiment of the present application.
Fig. 22 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Fig. 23 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.
The embodiment of the application provides a method for managing a terminal, which is used for managing the running speed or the packet loss rate of the terminal. In consideration of the influence of various factors on the operation of the terminal, the embodiments of the present application employ various management policies, and each of the management policies will be described in detail in the following embodiments.
Firstly, a bandwidth management strategy: and when the terminal bandwidth is smaller, informing the operator server of improving the bandwidth allocated to the wireless access point connected with the terminal.
Fig. 1 is a schematic diagram of an implementation environment provided in an embodiment of the present application, where the implementation environment includes: the system comprises at least one terminal 101, a wireless access point 102, a management server 103 and at least one operator server 104, wherein the terminal 101 is connected with the wireless access point 102, the wireless access point 102 is connected with the management server 103 and the operator server 104 to which the wireless access point belongs, and the management server 103 is connected with the at least one operator server 104.
The terminal 101 may be a mobile phone, a tablet computer, or other various devices. The wireless access point 102 may be a gateway, a router, a switch, etc. having a data forwarding function. The management server 103 may be a server, a server cluster composed of several servers, or a cloud computing service center. The operator server 104 may be a server, a server cluster composed of several servers, or a cloud computing service center.
From the perspective of the terminal 101, the terminal 101 accesses a wireless network provided by the wireless access point 102, and performs data transmission with an external network based on the wireless network.
From the perspective of the wireless access point 102, the wireless access point 102 is provided with network services, such as allocating bandwidth, by the connected operator server 103. Also, the wireless access point 102 may provide network services to the connected terminal 101.
From the perspective of the management server 103, the management server 103 is connected to the terminal 101 through the wireless access point 102, and can manage the terminal 101, and the management server 103 also serves as a relay device between the operator server 104 and the terminal 101, and can transmit an acceleration request or a deceleration request transmitted from the terminal 101 to the operator server 104, thereby accelerating or decelerating the terminal by the operator server 104.
From the perspective of the operator servers 104, different operator servers 104 are affiliated with different operators and may provide different network services. Any operator server 104 can provide network service for the connected wireless access point 102, and also establish a cooperative relationship with the management server 103, and perform speed acceleration or speed reduction for the corresponding terminal 101 according to the speed acceleration request or speed reduction request forwarded by the management server 103.
In one possible implementation, the terminal 101 has installed thereon a management application, which is associated with the management server 102 and is served by the management server 102.
In another possible implementation, as shown in fig. 2, the implementation environment further includes a third-party server 105, the management server 103 is connected to the third-party server 105, and the third-party server 105 is connected to at least one operator server 104. The management server 103 interacts with at least one operator server 104 via a third party server 105.
Fig. 3 is a flowchart of a bandwidth management method according to an embodiment of the present application. The interaction subject of the embodiment of the application is a terminal, a management server and an operator server, and referring to fig. 3, the method includes:
301. the terminal detects a current first bandwidth.
The operator server allocates bandwidth for the wireless access point, the terminal accesses to a wireless network provided by the wireless access point, the wireless access point allocates bandwidth for the terminal, the terminal performs data transmission based on the allocated bandwidth, and the transmitted data comprises video, audio, images and the like.
When a plurality of terminals are connected with the same wireless access point, the bandwidth of the wireless access point is allocated to the plurality of terminals, so that the bandwidth allocated to each terminal is smaller, the data transmission speed of the terminal is slower, and the operation speed of the terminal is slower. By adopting the method of the embodiment of the application, the bandwidth allocated to the wireless access point can be increased, so that the bandwidth allocated to the terminal is increased, and the running speed of the terminal is improved.
The bandwidth comprises an uplink bandwidth and a downlink bandwidth, the uplink bandwidth represents an available bandwidth when the terminal uploads the data, and the downlink bandwidth represents an available bandwidth when the terminal downloads the data. An upstream speed indicates an amount of data uploaded by the terminal in a unit time, and a downstream speed indicates an amount of data downloaded by the terminal in a unit time.
In this embodiment of the application, in order to manage the bandwidth of the terminal, the terminal may detect the current bandwidth as the first bandwidth in the operation process. The first bandwidth may be a total bandwidth allocated by the wireless access point to the terminal, or may be a bandwidth remaining after a part of the bandwidth is occupied by an application in an operating state in the terminal.
Optionally, the terminal may detect the first bandwidth through a detection component arranged on the terminal, where the detection component is a component installed on the terminal and used for detecting the bandwidth; the first bandwidth may also be detected by a management application installed on the terminal, the management application being configured to manage any application on the terminal, and the management application having a bandwidth detection function.
Optionally, when the user starts any application on the terminal, the terminal automatically starts to detect the current bandwidth, or the terminal periodically detects the current bandwidth, or the terminal starts to detect the current bandwidth when the user clicks a bandwidth detection button in the management application.
302. And when the first bandwidth is smaller than a first preset threshold value and the first application in the foreground running state is a preset application, the terminal acquires the network information.
In the embodiment of the application, the size of the first bandwidth can represent the speed of the terminal operation speed to a certain extent, and therefore, after the terminal detects the first bandwidth, whether the first bandwidth is smaller than a first preset threshold value is judged to determine whether to speed up the terminal. When the first bandwidth detected by the terminal is smaller than a first preset threshold, the terminal starts a speed-up process, and then the terminal acquires network information for use in subsequent speed-up. When the first bandwidth detected by the terminal is not less than the first preset threshold, the terminal does not need to speed up and does not acquire network information. The first preset threshold is a minimum bandwidth for ensuring normal operation of the terminal, and the first preset threshold may be set by the management server or set by default by the terminal.
The network information at least includes address information of a wireless access point to which the terminal is connected, so that a subsequent operator server can increase allocated bandwidth for the wireless access point according to the address information, and the address information may be an IP (Internet Protocol, Protocol for interconnection between networks) address of the wireless access point. The network information may also include a network identification, which is the name of the wireless access point to which the terminal is connected. When the management application on the terminal acquires the network information, the network information further includes a user identifier for logging in the management application, and the user identifier may be a nickname, a mobile phone number, or the like of the user.
Optionally, when the first bandwidth is smaller than a first preset threshold and the first application currently in the foreground running state is a preset application, the terminal acquires the network information. And when the first bandwidth is not less than the first preset threshold value or the first application currently in the foreground running state is not the preset application, the terminal does not acquire the network information any more, and subsequently does not perform speed-up any more. Through setting up and predetermineeing the application, realize the differentiation processing to different applications, can carry out the speeding when the application is predetermine in the operation of foreground, and then no longer carry out the speeding to other applications.
Optionally, when the terminal opens the stack top right, the state of any application on the terminal can be acquired, where the state includes a closed state, a background running state, or a foreground running state. For example, after opening the top of stack rights, the terminal may read the state information of each application from a file storing the state information of the application.
When the terminal starts a certain application, the current state of the application can be determined to be in the foreground running state based on the stack top authority in the open state, when the application is switched to the background running state, the current state of the application can be determined to be in the background running state based on the stack top authority in the open state, and when the application is closed, the current application can be determined to be in the closed state based on the stack top authority in the open state.
Therefore, in the embodiment of the application, the terminal can acquire the first application currently in the foreground running state based on the stack top authority in the open state.
Optionally, the terminal displays a management interface of the management application, the management interface includes an opening option of the stack top permission and prompt information for prompting a user to open the stack top permission, and the user clicks the opening option according to the prompt of the prompt information, so as to open the stack top permission. After that, the terminal can determine the first application currently in the foreground running state based on the stack top authority in the opening state.
303. The terminal sends a speed-up request to the management server.
After the terminal acquires the network information, a speed-up request is sent to the management server, and the speed-up request carries the network information. The speed-up request is for requesting an increase of the allocated bandwidth to the wireless access point to which the terminal is connected.
304. And when the management server receives the speed-up request, determining the operator server connected with the wireless access point according to the network information.
The management server analyzes the received speed-up request to obtain network information, and acquires the address information of the wireless access point connected with the terminal from the network information. The management server stores the corresponding relation between the address information and the operator server, and determines the operator server connected with the wireless access point by reading the corresponding relation.
The operator servers are servers for allocating bandwidth for the wireless access points, each operator server allocates bandwidth for one or more connected wireless access points, and each wireless access point is allocated with bandwidth by only one operator server.
When a plurality of terminals are connected with the same wireless access point and send speed-up requests to the management server, the management server receives the speed-up requests sent by the plurality of terminals, obtains address information in the speed-up requests, and determines that the address information carried by the plurality of speed-up requests is the same, the management server sends one of the speed-up requests to the operator server, so that the speed-up requests are prevented from being repeated.
305. The management server sends an acceleration request to the operator server.
In a possible implementation manner, the management server stores a plurality of user identifiers of the management application in advance, which indicates that the terminal where the plurality of user identifiers are located is allowed to speed up, and the terminal where other user identifiers are located is not allowed to speed up.
When the network information comprises the user identification, a plurality of user identifications pre-stored in the management server are obtained, the user identifications are compared with the plurality of user identifications pre-stored, when the plurality of user identifications pre-stored comprise the user identification, the speed-up request carrying the user identification is sent to the operator server, and when the plurality of user identifications pre-stored do not comprise the user identification, the speed-up request carrying the user identification is not sent to the operator server any more.
306. And when the operator server receives the speed-up request, increasing the bandwidth allocated to the wireless access point according to the address information.
Optionally, the operator server may allocate a bandwidth to each wireless access point, and generate a bandwidth allocation record, where the bandwidth allocation record includes address information of any wireless access point and a bandwidth allocated to any wireless access point.
And when the operator server receives the speed-up request, inquiring the bandwidth allocation record according to the address information to obtain a second bandwidth allocated to the wireless access point, wherein the second bandwidth is the original bandwidth allocated to the wireless access point, acquiring a third bandwidth larger than the second bandwidth, and allocating the third bandwidth to the wireless access point according to the address information. The third bandwidth may then be added to a bandwidth allocation record, which includes the second bandwidth and the third bandwidth, so as to record the original bandwidth and the current bandwidth allocated to the wireless access point.
And the operator server increases the allocated bandwidth for the wireless access point on the basis of the original second bandwidth of the wireless access point. The addition mode may include:
acquiring the sum of the second bandwidth and a preset bandwidth difference value to obtain a third bandwidth, wherein the preset bandwidth difference value is a bandwidth increase amplitude preset by an operator server; or,
and obtaining the product of the second bandwidth and a preset proportion to obtain a third bandwidth, wherein the preset proportion is more than 1, and the operator server presets a proportion.
After the operator server increases the bandwidth allocated to the wireless access point, the bandwidth of the terminal connected to the wireless access point is also increased accordingly.
307. When the first application is closed or switched to a background running state, the terminal acquires network information and sends a speed reduction request to the management server.
The terminal can still obtain the current state of the first application based on the stack top authority in the open state, and when the first application is detected to be closed or switched to the background running state, the first application does not need excessive bandwidth, the terminal obtains the network information and sends a speed reduction request to the management server.
Step 307 is similar to the above-described implementation of step 302-.
308. And when the management server receives the speed reduction request, determining an operator server connected with the wireless access point.
309. The management server sends a speed reduction request to the operator server.
The implementation is similar to the implementation of step 304-305 described above, except that the management server receives and sends the slowdown request.
In a possible implementation manner, in step 306, after receiving the speed-up request, the operator server increases the bandwidth allocated to the wireless access point, and stores the speed-up request. And then the operator server periodically sends a detection request to the management server, wherein the detection request carries the address information of the wireless access point and is used for indicating the detection of the network state of the wireless access point.
Correspondingly, the management server stores the speed reduction request after receiving the speed reduction request, when receiving the detection request sent by the operator server, the management server inquires the stored speed reduction request, and when the address information carried in the speed reduction request stored by the management server is the same as the address information in the detection request, the management server sends the speed reduction request to the operator server.
310. And when the operator server receives the speed reduction request, restoring the original bandwidth allocated to the wireless access point according to the address information.
Optionally, the operator server queries the bandwidth allocation record according to the address information to obtain an original bandwidth allocated to the wireless access point, and restores the bandwidth allocated to the wireless access point to the original bandwidth.
Based on the alternative of step 306, if the bandwidth allocation record includes the second bandwidth and the third bandwidth allocated to the wireless access point, the bandwidth allocated to the wireless access point is restored to the second bandwidth.
It should be noted that, in the embodiment of the present application, the management server is only described as being directly connected to at least one operator server, and in another embodiment, the management server is connected to a third party server, and the third party server is connected to at least one operator server. The management server sends the speed increasing request or the speed reducing request to the third-party server, the third-party server determines the corresponding operator server according to the address information, and the speed increasing request or the speed reducing request is sent to the corresponding operator server. The third-party server can be accessed to one or more operator servers, and the management server can use the services provided by the one or more operator servers only by accessing the third-party server.
For example, referring to fig. 4, the terminal is installed with a management application, the management application sends an acceleration request to the management server, where the acceleration request carries a network identifier of a wireless access point connected to the terminal, address information, and a user identifier for logging in the management application, the management server receives the acceleration request and sends the acceleration request to the third-party server, and the third-party server determines a corresponding operator server and sends the acceleration request to an operator server.
According to the method provided by the embodiment of the application, the terminal detects the current first bandwidth, when the first bandwidth is smaller than the first preset threshold value, the network information is obtained, the speed-up request is sent to the management server, when the management server receives the speed-up request, the operator server connected with the wireless access point is determined according to the network information, the speed-up request is sent to the operator server, and when the operator server receives the speed-up request, the bandwidth distributed to the wireless access point is increased according to the address information, so that the bandwidth of the terminal is increased, the data transmission speed of the terminal is increased, the running speed of the terminal is increased, and flexible management of the bandwidth of the terminal is achieved.
And after the bandwidth is accelerated, when the first application is closed or switched to a background running state, the terminal acquires network information and sends a speed reduction request to the management server, when the management server receives the speed reduction request, the management server determines an operator server connected with the wireless access point according to the network information and sends the speed reduction request to the operator server, and when the operator server receives the speed reduction request, the original bandwidth distributed for the wireless access point is recovered according to the address information. When the terminal does not need to increase the bandwidth, the bandwidth allocated to the wireless access point is restored to the original bandwidth, so that the waste of bandwidth resources is avoided.
Secondly, memory management strategy: and when the occupied memory is large, closing the application running in the background.
Fig. 5 is a flowchart of a memory management method according to an embodiment of the present application. An execution subject of the embodiment of the present application is a terminal, and referring to fig. 5, the method includes:
501. and detecting the current memory occupation ratio of the terminal.
The application on the terminal occupies the memory of the terminal when running, and the terminal detects the current memory occupation ratio, wherein the memory occupation ratio is the ratio between the current memory capacity occupied by the terminal and the total memory capacity of the terminal.
Optionally, when the user starts any application on the terminal, the terminal automatically starts to detect the current memory ratio, or the terminal periodically detects the current memory ratio, or the user starts to detect the current memory ratio by clicking a memory ratio detection button in the management application.
502. And acquiring the second application currently in the background running state.
The second application currently in the background running state is obtained, and the second application may be the same as or different from the first application in the above embodiment.
In a possible implementation manner, the terminal acquires the second application currently in the background running state based on the stack top authority in the open state. The second application may be one application or a plurality of applications, and the application may be any form of application program such as a process, a thread, a plug-in, and the like.
503. And when the memory occupation ratio is larger than a second preset threshold value, closing the second application.
When the memory occupation ratio is too large, the operation of the terminal application is slow, and the terminal is easy to jam, so that the operation speed of the terminal is slow, and partial operation of the terminal application needs to be closed to reduce the memory occupation ratio.
The second preset threshold is the maximum memory ratio for ensuring that the terminal can normally operate, and when the memory ratio is greater than the second preset threshold, it indicates that the memory ratio of the terminal is large, which may cause that the terminal operates at a slow speed and needs to close part of applications.
In a possible implementation manner, the terminal presets a first preset white list, where the first preset white list includes at least one application, and the first preset white list indicates that the applications do not need to be closed when the memory occupation is large. And when the memory occupation ratio is greater than a second preset threshold and the first preset white list does not comprise the second application, closing the second application. The first preset white list can be set by the management server; the first preset white list can also be set by a user according to the use condition of each application; the first preset white list can also be set by the terminal according to the use frequency of each application by the user, and the application with higher use frequency of the user is added into the first preset white list.
In another possible implementation manner, the terminal presets a first preset blacklist, where the first preset blacklist includes at least one application, and indicates that the application is allowed to be closed when the memory occupied by the application is relatively large. And when the memory occupation ratio is greater than a second preset threshold and the first preset blacklist comprises the second application, closing the second application. The first preset blacklist can be set by the management server; the first preset blacklist can also be set by a user according to the use condition of each application; the terminal can also set the use frequency of each application according to the user, and the application with the lower use frequency is added to the first preset blacklist.
It should be noted that, when the application is in the running state, it will occupy the memory and CPU (Central Processing Unit) time slice, and when the memory occupation is large, the application running in the background is closed, so that the memory and CPU time slice occupied by the application can be released, and the number of occupied CPU time slices is reduced.
504. And when the memory ratio is smaller than a second preset threshold value, keeping the background running state of the second application.
When the memory ratio is smaller than the second preset threshold, the terminal can normally operate, and the second application in the background operation state does not affect the operation speed of the terminal, so that the application running in the background does not need to be closed.
According to the method provided by the embodiment of the application, the current memory occupation ratio of the terminal is detected, the second application in the background running state is obtained, when the memory occupation ratio is larger than a second preset threshold value, the second application is closed, and when the memory occupation ratio is smaller than the second preset threshold value, the second application continues to run in the background. By closing the application running in the background, the memory occupation ratio is reduced, and the running speed of the terminal is improved. Moreover, the applications in the background running state can be regarded as applications which do not need to be operated by the user at present, and the use of the user is not influenced by closing the applications.
Thirdly, a data packet interception strategy: packets sent by certain applications are discarded by intercepting the packets sent by each application.
Fig. 6 is a flowchart of a packet intercepting method according to an embodiment of the present application. An execution subject of the embodiment of the present application is a terminal, and referring to fig. 6, the method includes:
601. and intercepting a first data packet sent by any application currently in a running state.
The terminal is provided with a plurality of applications, each application can send a data packet to a corresponding application server, and the process of sending the data packet can occupy the bandwidth of the terminal and influence the running speed of the terminal.
Therefore, in the embodiment of the present application, when any application on the terminal sends the first data packet to the corresponding application server, the terminal intercepts the first data packet sent by any application.
In one possible implementation manner, a current first bandwidth is detected, and when the first bandwidth is smaller than a first preset threshold, a first data packet sent by any application currently in a running state is intercepted, so that the running speed is increased. And when the first bandwidth is not less than the first preset threshold value, no interception is carried out.
In a possible implementation manner, when the current network delay is greater than a third preset threshold, a first data packet sent by any application currently in the running state is intercepted to improve the running speed, and the third preset threshold is the maximum network delay allowed for ensuring the normal running of the terminal. And when the current network delay is not greater than a third preset threshold, no interception is performed.
In another possible implementation manner, a current first bandwidth and a current network delay are detected, and when the first bandwidth is smaller than a first preset threshold and the current network delay is greater than a third preset threshold, a first data packet sent by any application currently in a running state is intercepted. And when the first bandwidth is not less than the first preset threshold value or the current network delay is not greater than the third preset threshold value, no interception is performed.
The terminal can acquire the currently running application based on the stack top authority in the open state.
In addition, the terminal may intercept the first data packet sent by using VpnService (Virtual Private Network Service), which may intercept an IP data layer of a Network layer, and a data packet sent by any application on the terminal may be intercepted by VpnService.
The first data packet may be an IP packet, the IP packet includes a header and a data portion, and the data portion may be an encapsulation of a UDP (User data Protocol) packet or a TCP (Transmission control Protocol) packet.
602. And analyzing the first data packet to obtain a source port number carried in the first data packet.
Each application on the terminal occupies the source port number of the terminal, and the data packet is sent through the source port number, so that the sent data packet carries the source port number. Therefore, when the terminal intercepts the first data packet, the source port number carried in the first data packet is obtained by analyzing the first data packet, and the corresponding application can be determined through the source port number. In addition, the destination port number carried in the first data packet can be obtained by analyzing the first data packet.
Optionally, the first data packet is an IP packet, and the data portion of the IP packet includes the source port number, and the source port number may be found by querying the data portion.
603. And acquiring an application identifier corresponding to the source port number according to a preset mapping relation.
The preset mapping relationship comprises any source port number and an application identifier corresponding to any source port number.
In a possible implementation manner, the preset mapping relationship is stored in a memory of the terminal, and after the source port number carried in the first data packet is obtained, the application identifier corresponding to the source port number is directly obtained according to the preset mapping relationship.
In another possible implementation manner, the preset mapping relationship is not stored in the memory of the terminal, the preset mapping relationship is obtained by parsing the data packet file, and the application identifier corresponding to the source port number is obtained according to the preset mapping relationship. The data packet file may be a/proc/net/tcp file or a/proc/net/udp file.
It should be noted that, in the embodiment of the present application, the step 602-.
604. And when the application identifier is a preset application identifier, sending the first data packet to an application server corresponding to the application identifier.
In a possible implementation manner, the terminal is preset with a second preset white list, where the second preset white list includes at least one application identifier of an application, and indicates that a data packet sent by the application corresponding to the application identifier is allowed to be sent to a corresponding application server. The second preset white list can be set by the management server; the second preset white list can also be set by the user according to the use condition of each application; the second preset white list can also be set by the terminal according to the use frequency of each application by the user, and the application identifier of the application with the higher use frequency of the user is added to the second preset white list.
The preset application identifier is an application identifier belonging to a second preset white list. And when the application identifier of the first data packet is the application identifier in the second preset white list, sending the first data packet to an application server corresponding to the application identifier.
In a possible implementation manner, the terminal is preset with a second preset blacklist, where the second preset blacklist includes at least one application identifier of an application, and indicates that a data packet sent by an application corresponding to the application identifier is not allowed to be sent to a corresponding application server. The second preset blacklist can be set by the management server; the second preset blacklist can also be set by the user according to the use condition of each application; the second preset blacklist can also be set by the terminal according to the use frequency of each application by the user, and the application identifier of the application with the higher use frequency of the user is added to the second preset blacklist.
The preset application identifier is an application identifier not belonging to the second preset blacklist. And when the application identifier of the first data packet is not the application identifier in the second preset blacklist, sending the first data packet to an application server corresponding to the application identifier.
605. And when the application identifier is not the preset application identifier, discarding the first data packet.
For example, when the application id of the first packet is not the preset application id in the second preset white list in step 604, the first packet is discarded. Or, when the application identifier of the first packet is the preset application identifier in the second preset blacklist in the above step 604, the first packet is discarded.
The method provided by the embodiment of the application intercepts a first data packet sent by any application in a running state; acquiring an application identifier to which a first data packet belongs; and when the application identifier is the preset application identifier, sending the first data packet to an application server corresponding to the application identifier. By adopting the method provided by the embodiment of the application, the data packets sent by part of the applications can be intercepted, and only the data packets sent by the preset applications are transmitted, so that the number of the data packets is reduced, the bandwidth occupied by the data packets is reduced, the data transmission speed is increased, and further the operation speed of the terminal is increased.
Referring to fig. 7, a flow chart of a packet interception policy in this embodiment of the application is shown, where a service component is used to intercept a packet, analyze the packet, obtain a source port number of the packet, then determine whether a mapping relationship between the source port number and an application identifier is stored in a memory, when the mapping relationship is stored in the memory, obtain the application identifier corresponding to the source port number through the mapping relationship, when the mapping relationship is not stored in the memory, analyze a packet file, obtain a mapping relationship between the source port number and the application identifier, then obtain an application identifier of an application corresponding to the source port number through the mapping relationship, then determine whether the application identifier is in a white list, when the application identifier is in the white list, send the packet to a corresponding application server, and when the application identifier is not in the white list, discard the packet.
In the related art, a management application is installed on a terminal, a user opens the management application, and the user can control the terminal to improve the running speed only by manually clicking an acceleration button. When the speed is not required to be increased any more, the user needs to open the management application again, and manually clicks the acceleration button to be closed, so that the convenience and the rapidness are not high enough.
The method provided by the embodiment of the application adopts the three strategies, can automatically speed up or speed down, does not need a user to operate, is convenient and quick, and can actively remind the user by the terminal when starting to accelerate or stopping accelerating, for example, the user can be reminded through a pop-up window.
For example, referring to fig. 8, during the acceleration process of the terminal, a prompt message is displayed in the acceleration interface to prompt the user that the terminal is currently accelerating. The 'cleaning acceleration' option is in a selected state, which indicates that a memory management strategy is being adopted for acceleration at present, the 'intelligent acceleration channel' option is in an unopened state, when a user clicks the 'intelligent acceleration channel' option, an interface as shown in fig. 9 is displayed, the interface comprises an 'interception' option, an 'automatic disconnection avoiding' option and an 'acceleration reminding' option, when the 'interception' option is opened, the stack top permission can be automatically opened, and the acceleration is carried out by adopting a data packet interception strategy. And starting the option of avoiding automatic disconnection, so that the running state of the management application can be kept in the acceleration process, and acceleration interruption caused by closing the management application is avoided. And starting an acceleration reminding option, prompting a user when acceleration is started or stopped, such as starting a floating window display authority, and popping up a floating window when acceleration is started or stopped.
Optionally, a management application is installed on the terminal, and the application currently running on the terminal is managed through the management application. Optionally, when the stack top authority is opened, the terminal detects, through the management application, a state of any application on the terminal based on the stack top authority in the opened state, so as to manage the application according to the detected state.
Taking the first application as an example, when the first application is in a foreground running state and the management application is in a background running state, the first application can be accelerated by adopting the three strategies. Then, from the perspective of the first application, the speed-up mode includes the following:
the first mode is to accelerate the first application by improving the bandwidth of the terminal.
When the first application is in a foreground running state and the management application is in a background running state, detecting a current first bandwidth of the terminal through the management application; when the first bandwidth is smaller than a first preset threshold value, network information is obtained, wherein the network information at least comprises address information of a wireless access point connected with a terminal; the method comprises the steps that an acceleration request is sent to a management server associated with the management application through the management application, the acceleration request carries network information, the management server sends the acceleration request to an operator server connected with a wireless access point, and the operator server increases bandwidth allocated to the wireless access point according to address information. The specific process is similar to the implementation of step 301 to step 310 in the above embodiment, and is not described in detail here.
In the process of using the first application, the user can improve the bandwidth of the terminal by adopting the mode, so that the data transmission speed of the first application is improved, and the speed of the first application is increased.
And in the second mode, the first application is accelerated by closing the second application in the background running state.
When the first application is in a foreground running state and the management application is in a background running state, detecting the current memory occupation ratio of the terminal through the management application; and when the memory occupation ratio is larger than a second preset threshold, closing a second application in a background running state, wherein the second application is different from the management application. The specific process is similar to the implementation of steps 501 to 504 in the above embodiment, and is not described in detail here.
In the process that the user uses the first application, the second application in the background running state can be regarded as the application which is not used by the user at present, and when the current memory proportion of the terminal is larger, the memory proportion of the terminal is reduced by closing the second application, so that the running speed of the first application is increased, and the speed of the first application is increased.
And thirdly, accelerating the first application by intercepting the data packet sent by the second application in the background running state.
When the first application is in a foreground running state and the management application is in a background running state, intercepting a data packet sent by the second application in the background running state through the management application; and discarding the data packet sent by the second application, wherein the second application is different from the management application. The specific process is similar to the implementation of steps 601 to 605 in the above embodiment, and is not described in detail here.
In the process that the user uses the first application, the second application in the background running state can be regarded as the application which is not used by the user at present, and by the mode, the data packet sent by the second application is intercepted, so that the bandwidth occupied by the sent data packet is reduced, the data transmission speed of the first application is improved, and the speed of the first application is increased.
It should be noted that, when the first application in the foreground running state is accelerated, any one of the above manners may be adopted, or two or three of the above three manners may be arbitrarily combined.
It should be noted that the first application may be any application on the terminal, or may also be a preset application. For example, an application with a high requirement on the running speed is determined as a preset application in advance, such as a game application, a payment application, a live broadcast application, and the like, and the preset application is accelerated when the preset application is in a foreground running state.
Fourthly, multi-packet strategy: one data packet is sent for a plurality of times, and the loss of the data packet is reduced.
Fig. 10 is a schematic diagram of an implementation environment provided by an embodiment of the present application, where the implementation environment includes: the terminal 101, the scheduling server 105 and the at least one application server 106, wherein the terminal 101 is connected with the scheduling server 105, and the scheduling server 105 is connected with the at least one application server 106. The scheduling server 105 is configured to determine a data transmission path for the terminal 101, so as to transmit a data packet to a corresponding application server according to the data transmission path, so as to reduce data transmission time.
Fig. 11 is a flowchart of a data packet management method according to an embodiment of the present application. The interaction subject of the embodiment of the present application is a terminal, a scheduling server, and an application server, and referring to fig. 11, the method includes:
1101. and detecting the packet loss rate of the terminal.
And the terminal sends a data packet in the operation process, and the equipment receiving the data packet also returns a corresponding data packet to the terminal. Packet loss may occur during this interaction.
The terminal may count the number of the transmitted data packets as a first number, may count the number of the received data packets corresponding to the transmitted data packets as a second number, and a ratio between a difference between the first number and the second number and the first number is a packet loss ratio.
The terminal may periodically obtain the detection packet loss rate or detect the packet loss rate in real time. The larger the packet loss rate is, the more data packets lost in the data transmission process of the terminal is, which may possibly affect the normal operation of the terminal.
1102. And when the packet loss rate is greater than a third preset threshold value, the terminal intercepts a second data packet sent by any application in the current running state.
The third preset threshold is a maximum packet loss rate that ensures that the terminal normally performs data transmission, and when the packet loss rate is smaller than the third preset threshold, the data transmission of the terminal is normal, and normal operation is not affected, so that the terminal does not need to intercept the data packet. And when the packet loss rate is greater than the third preset threshold, it indicates that the data packet sent by the terminal is seriously lost, and the normal operation of the terminal is affected due to abnormal data transmission of the terminal. At this time, the terminal intercepts a second data packet sent by any application in the running state, and the second data packet may be the same as or different from the first data packet in the embodiment shown in fig. 5.
In a possible implementation manner, the terminal may intercept the first data packet sent by using VpnService, the VpnService may intercept an IP data layer of a network layer, and a data packet sent by any application on the terminal may be intercepted by the VpnService.
It should be noted that, in the embodiment of the present application, the interception of the data packet is only performed when the packet loss rate is greater than the third preset threshold, and in another embodiment, the interception of the data packet may also be performed under other conditions, for example, the terminal detects the network delay, and when the network delay is greater than the preset threshold, the interception of the data packet is performed.
1103. The terminal adds a multi-send flag to the second packet.
The multi-send flag is used to indicate that the second packet is sent a preset number of times, the preset number of times being a positive integer greater than 1. And after the second data packet is added with the multi-transmission mark, the second data packet is sent according to the preset times indicated by the multi-transmission mark.
For example, a double packet flag is added to the second packet, the double packet flag indicating that the second packet is to be transmitted twice.
1104. And the terminal sends a second data packet to the scheduling server according to the preset times.
And the terminal sends a second data packet for a preset number of times to the scheduling server, wherein the scheduling server can store or forward the second data packet.
In one possible implementation, the scheduling server may be a CDN (Content Delivery Network) server, and different applications correspond to the same or different CDN servers. For the same application, the CDN servers are allocated for the application according to the preset strategy so as to reduce the transmission time between the applications and the CDN servers and further improve the running speed of the application.
1105. And the scheduling server stores the received second data packet and forwards the received second data packet to the application server corresponding to the second data packet.
Each time the scheduling server receives a data packet, the scheduling server judges whether the data packet is stored or not, if the data packet is stored, the data packet is sent before, the data packet is discarded, and the data packet is not sent any more. And if the data packet is not stored, the data packet is stored and sent to the corresponding application server.
Then, the terminal sends a preset number of second data packets to the scheduling server, and when the scheduling server receives the first second data packet, it will determine that the second data packet is not stored yet, and then store the second data packet, and send the second data packet to the corresponding application server.
And then, the scheduling server continues to receive the second data packet, determines that the second data packet is stored, and discards the newly received second data packet.
In one possible implementation manner, the data packets carry data identifiers, and the data identifiers are in one-to-one correspondence with the data packets, so that the data packets carrying the same data identifiers can be determined to be the same data packets.
Each time the scheduling server receives a data packet, the data identifier carried by the data packet is obtained, whether the data identifier is stored or not is judged, if the data identifier is stored, the data packet is sent before, the data packet is discarded, and the data packet is not sent any more. And if the data identifier is not stored and indicates that the data packet has not been sent before, storing the data identifier carried by the data packet and sending the data packet to a corresponding application server.
Then, when receiving the first second data packet, the scheduling server determines that the data identifier of the second data packet has not been stored yet, stores the second data packet, and sends the second data packet to the corresponding application server. And then, the scheduling server continues to receive the second data packet, determines that the data identifier carried by the second data packet is stored, and discards the newly received second data packet.
In addition, the second data packet may further carry an application identifier, where the application identifier is used to indicate an application that sends the data packet, and then the scheduling server obtains the application identifier in the second data packet, determines a corresponding application server according to the application identifier, and sends the second data packet to the application server.
1106. And the application server receives a second data packet and sends a third data packet corresponding to the second data packet to the scheduling server.
And the application server processes the second data packet after receiving the second data packet sent by the scheduling server, generates a third data packet corresponding to the second data packet according to the processing result, and sends the third data packet to the scheduling server.
1107. And the scheduling server receives the third data packet, acquires the multiple-sending mark in the second data packet corresponding to the third data packet, and sends the third data packet to the terminal according to the multiple-sending mark.
Optionally, the third data packet received by the scheduling server carries a data identifier, the scheduling server obtains the data identifier carried in the third data packet, and when it is determined that the stored data identifier carried in the second data packet is the same as the data identifier carried in the third data packet, it indicates that the third data packet is a response data packet of the second data packet. And at the moment, acquiring the multiple sending marks in the second data packet, and sending the third data packets of the preset times to the terminal according to the preset times indicated by the multiple sending marks.
And when the data identifier carried in any stored data packet is determined to be different from the data identifier carried in the third data packet, directly sending the third data packet to the terminal.
1108. And the terminal receives a third data packet sent by the scheduling server according to the preset times.
Subsequently, the terminal may further recalculate the packet loss rate according to the transmitted data packet and the received data packet, so as to execute the method of the embodiment of the present application.
The method provided by the embodiment of the application intercepts a second data packet sent by any application in a running state; adding a multi-sending mark in the second data packet, wherein the multi-sending mark is used for indicating that the second data packet is sent for a preset time, and the preset time is a positive integer greater than 1; and sending a second data packet to the scheduling server according to the preset times, storing the received second data packet by the scheduling server, and forwarding the received second data packet to the application server corresponding to the second data packet. The second data packet is sent in multiple ways, so that the possibility of second data packet loss is reduced, the packet loss rate is improved as much as possible, and the normal operation of the terminal is ensured.
The above embodiments may be combined in any form to constitute the management method of the embodiments of the present application. For example, different applications on the terminal may employ different policies provided by the above embodiments.
For example, a game application, a management application, and other applications are installed on the terminal, and taking the game application as an example to allow the game application to send a data packet, the multi-packet policy provided in the embodiment of the present application is combined with the data packet interception policy provided in the embodiment shown in fig. 7, and an operation flowchart is shown in fig. 12. When the application sends the data packet, the data packet interception strategy is adopted for interception, so that the data packet of the game application is allowed to be sent, and the data packets of other applications are discarded. And then, according to the conditions of network delay and packet loss rate, a double-packet strategy is adopted to send two data packets, the scheduling server can send one data packet to the game server, and when the data packet returned by the game server is received, the two data packets can be sent to the terminal.
For example, referring to fig. 13, a game application, a management application, and other applications are installed on the terminal, and when the user opens the game application, the management application can detect that the game application is in a foreground running state, and manage the game application by using a policy corresponding to the game application. The management application comprises a service component for intercepting a data packet, a strategy module for making a management strategy and a monitoring module for monitoring the state of the terminal. And the strategy module comprises bandwidth management, application management, data packet interception and multi-packet strategy. The monitoring module comprises bandwidth detection, application monitoring, network delay detection, stack top authority monitoring and the like. The management method provided by the above embodiment can be implemented by managing a plurality of functional components in an application.
It should be noted that the implementation environment provided in the foregoing embodiment may include a management server, an operator server, a third-party server, or other servers, and the embodiment of the present application does not limit a specific implementation environment.
Optionally, a blockchain system is also provided, as shown in fig. 14.
The blockchain system may be formed by a plurality of node devices (any form of computing device in an access network, such as servers, user terminals) and terminals. Referring to the functions of each node device in the blockchain system shown in fig. 14, the functions involved include:
(1) routing, a basic function that the node device has for supporting communication between the node devices.
(2) The application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other node equipment in the block chain system for the other node equipment to add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
For example, the services implemented by the application include:
2.1) sharing the account book, which is used for providing the functions of operations such as storage, inquiry and modification of account data, sending the record data of the operation on the account data to other node equipment in the block chain system, and after the other node equipment is verified to be valid, storing the record data into a temporary block as a response for acknowledging that the account data is valid, and also sending confirmation to the node equipment initiating the operation.
2.2) smart contracts, computerized agreements, which can enforce the terms of a contract, implemented by codes deployed on a shared ledger for execution when certain conditions are met, for completing automated transactions according to actual business requirement codes, such as querying the logistics status of goods purchased by a buyer, transferring the buyer's electronic money to the merchant's address after the buyer signs for the goods; of course, smart contracts are not limited to executing contracts for trading, but may also execute contracts that process received information.
(3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and the blocks record the record data submitted by the node equipment in the Block chain system.
Referring to fig. 15, each block includes a hash value of the block storing the transaction record (hash value of the block) and a hash value of the previous block, and the blocks are connected by the hash value to form a block chain. The block may include information such as a time stamp at the time of block generation. A block chain (Blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next block.
In the embodiment of the application, any one of the management server, the operator server and the third-party server can be a node device in the blockchain system, and the acquired information can be shared with other node devices in the blockchain system, so that information sharing among a plurality of node devices is realized.
Fig. 16 is a schematic structural diagram of an application accelerating device provided by an embodiment of the application. Referring to fig. 16, the apparatus includes:
the bandwidth detection module 1601 is configured to detect a current first bandwidth through a management application when the first application is in a foreground running state and the management application is in a background running state;
a first information obtaining module 1602, configured to obtain network information when the first bandwidth is smaller than a first preset threshold, where the network information at least includes address information of a wireless access point to which a terminal is connected;
an acceleration request sending module 1603, configured to send, by the management application, an acceleration request to a management server associated with the management application, where the acceleration request carries network information, the management server sends the acceleration request to an operator server connected to the wireless access point, and the operator server increases a bandwidth allocated to the wireless access point according to the address information.
Optionally, referring to fig. 17, the apparatus further comprises:
a memory proportion detection module 1604, configured to detect a current memory proportion of the terminal through the management application when the first application is in a foreground operating state and the management application is in a background operating state;
an application closing module 1605, configured to close a second application in the background running state when the memory occupancy ratio is greater than a second preset threshold, where the second application is different from the management application.
Optionally, referring to fig. 17, the apparatus further comprises:
a data packet intercepting module 1606, configured to intercept, by the management application, a data packet sent by the second application in the background running state when the first application is in the foreground running state and the management application is in the background running state;
a packet discarding module 1607, configured to discard a packet sent by a second application, where the second application is different from the management application.
Optionally, referring to fig. 17, the apparatus further comprises:
the state detection module 1608 is configured to detect, through the management application, a state of any application on the terminal based on the stack top authority in the open state, where the state includes a closed state, a background running state, or a foreground running state.
Fig. 18 is a schematic structural diagram of a bandwidth management apparatus according to an embodiment of the present application. Referring to fig. 18, the apparatus includes:
a bandwidth detecting module 1801, configured to detect a current first bandwidth of the terminal;
a first information obtaining module 1802, configured to obtain network information when the first bandwidth is smaller than a first preset threshold, where the network information at least includes address information of a wireless access point to which the terminal is connected;
a first speed-up request sending module 1803, configured to send a speed-up request to the management server, where the speed-up request carries network information, and the management server sends the speed-up request to an operator server connected to the wireless access point, and the operator server increases a bandwidth allocated to the wireless access point according to the address information.
Optionally, the first information obtaining module 1802 is further configured to obtain the network information when the first bandwidth is smaller than a first preset threshold and the first application currently in the foreground running state is a preset application.
Optionally, referring to fig. 19, the apparatus further comprises:
the second information obtaining module 1804 is configured to obtain the network information when the first application is closed or switched to the background running state;
a first speed reduction request sending module 1805, configured to send a speed reduction request to the management server, where the speed reduction request carries network information, and the management server sends the speed reduction request to the operator server, and the operator server recovers an original bandwidth allocated to the wireless access point according to the address information.
Optionally, referring to fig. 19, the apparatus further comprises:
a memory proportion detection module 1806, configured to detect a current memory proportion of the terminal;
a closing module 1807, configured to close the second application in the background running state when the memory occupancy ratio is greater than a second preset threshold.
Optionally, referring to fig. 19, the closing module 1807 is further configured to:
when the memory occupation ratio is larger than a second preset threshold and the first preset white list does not comprise the second application, closing the second application; or,
and when the memory occupation ratio is greater than a second preset threshold and the second preset blacklist comprises the second application, closing the second application.
Optionally, referring to fig. 19, the apparatus further comprises:
a state detection module 1808, configured to detect a state of any application on the terminal based on the stack top permission in the open state, where the state includes a closed state, a background running state, or a foreground running state.
Optionally, referring to fig. 19, the apparatus further comprises:
a first intercepting module 1809, configured to intercept a first data packet sent by any application currently in a running state;
an application identifier obtaining module 1810, configured to obtain an application identifier to which the first data packet belongs;
the first sending module 1811 is configured to send the first data packet to the application server corresponding to the application identifier when the application identifier is the preset application identifier.
Optionally, referring to fig. 19, the application identifier obtaining module 1810 is further configured to:
analyzing the first data packet to obtain a source port number carried in the first data packet;
and acquiring an application identifier corresponding to the source port number according to a preset mapping relation, wherein the preset mapping relation comprises the application identifier corresponding to any source port number and any source port number.
Optionally, referring to fig. 19, the apparatus further comprises:
a second intercepting module 1812, configured to intercept a second data packet sent by any application currently in a running state;
a multiple-occurrence-flag adding module 1813, configured to add a multiple occurrence flag in the second data packet, where the multiple occurrence flag is used to indicate that the second data packet is sent for a preset number of times, and the preset number of times is a positive integer greater than 1;
the second sending module 1814 is configured to send a second data packet to the scheduling server according to the preset number of times, where the scheduling server stores the received second data packet and forwards the received second data packet to the application server corresponding to the second data packet.
Optionally, referring to fig. 19, the apparatus further comprises:
a receiving module 1815, configured to receive a third data packet sent by the scheduling server according to the preset number, where the third data packet is sent to the scheduling server by the application server, and the scheduling server obtains the multiple sending flags in the second data packet corresponding to the third data packet and sends the multiple sending flags according to the multiple sending flags.
Fig. 20 is a schematic structural diagram of a bandwidth management apparatus according to an embodiment of the present application. Referring to fig. 20, the apparatus includes:
a speed-up request receiving module 2001, configured to receive a speed-up request sent by a terminal when a current first bandwidth is smaller than a first preset threshold, where the speed-up request includes network information of the terminal, and the network information at least includes address information of a wireless access point to which the terminal is connected;
a first determining module 2002, configured to determine, according to the address information, an operator server to which the wireless access point is connected;
and an acceleration request sending module 2003, configured to send an acceleration request to the operator server, where the operator server increases a bandwidth allocated to the wireless access point according to the address information.
Optionally, the apparatus further comprises:
a speed reduction request receiving module 2004, configured to receive a speed reduction request sent by a terminal, where the speed reduction request is sent when a first application in a foreground operating state of the terminal is closed or switched to a background operating state, and the speed reduction request includes network information;
a second determining module 2005, configured to determine, according to the address information, an operator server connected to the wireless access point;
and a speed reduction request sending module 2006, configured to send a speed reduction request to the operator server, where the operator server restores the original bandwidth allocated to the wireless access point according to the address information.
Fig. 21 is a schematic structural diagram of a bandwidth management apparatus according to an embodiment of the present application. Referring to fig. 21, the apparatus includes:
the speed-up request receiving module 2101 is configured to receive a speed-up request sent by a management server, where the speed-up request is sent by a terminal to the management server when a current first bandwidth is smaller than a first preset threshold, the speed-up request includes network information of the terminal, and the network information at least includes address information of a wireless access point connected to the terminal;
a bandwidth increasing module 2102 for increasing the bandwidth allocated to the wireless access point based on the address information.
Optionally, the bandwidth increasing module 2102 is further configured to:
inquiring a bandwidth allocation record according to the address information to obtain a second bandwidth allocated to the wireless access point, wherein the bandwidth allocation record comprises the address information of any wireless access point and the bandwidth allocated to any wireless access point;
acquiring a third bandwidth which is larger than the second bandwidth;
and allocating a third bandwidth to the wireless access point according to the address information.
Optionally, the bandwidth increasing module 2102 is further configured to:
obtaining the sum of the difference value of the second bandwidth and the preset bandwidth to obtain a third bandwidth; or,
and obtaining the product of the second bandwidth and a preset proportion to obtain a third bandwidth, wherein the preset proportion is more than 1.
Optionally, the apparatus further comprises:
a speed reduction request receiving module 2103, configured to receive a speed reduction request sent by the management server, where the speed reduction request is sent when a first application in a foreground running state is closed or switched to a background running state, and the speed reduction request includes network information;
and a bandwidth recovery module 2104 for recovering the original bandwidth allocated to the wireless access point according to the address information.
It should be noted that: the application accelerating device and the bandwidth managing device provided in the foregoing embodiments are only illustrated by the division of the foregoing functional modules, and in practical applications, the foregoing functions may be distributed by different functional modules according to needs to complete all or part of the functions described above. In addition, the embodiments of the application accelerating device and the application accelerating method, and the embodiments of the bandwidth managing device and the bandwidth managing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the embodiments of the methods and are not described herein again.
Fig. 22 shows a schematic structural diagram of a terminal 2200 provided in an exemplary embodiment of the present application.
Generally, the terminal 2200 includes: a processor 2201 and a memory 2202.
The processor 2201 may include one or more processing cores, such as a 4-core processor, a 5-core processor, and so on. The processor 2201 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 2201 may also include a main processor and a coprocessor, the main processor being a processor for processing data in the wake state, also called CPU; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 2201 may be integrated with a GPU (Graphics Processing Unit, image Processing interactor) for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 2201 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 2202 may include one or more computer-readable storage media, which may be non-transitory. Memory 2202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 2202 is configured to store at least one instruction for the processor 2201 to implement the application acceleration and bandwidth management methods provided by the method embodiments of the present application.
In some embodiments, the terminal 2200 may further include: a peripheral interface 2203 and at least one peripheral. The processor 2201, memory 2202, and peripheral interface 2203 may be connected by a bus or signal line. Various peripheral devices may be connected to peripheral interface 2203 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 2204, a touch display 2205, a camera 2206, audio circuitry 2207, a positioning component 2208, and a power source 2209.
The peripheral interface 2203 may be used to connect at least one peripheral associated with I/O (Input/Output) to the processor 2201 and the memory 2202. In some embodiments, the processor 2201, memory 2202, and peripheral interface 2203 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 2201, the memory 2202, and the peripheral device interface 2203 may be implemented on separate chips or circuit boards, which are not limited in this embodiment.
The Radio Frequency circuit 2204 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 2204 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 2204 converts an electric signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electric signal. Optionally, the radio frequency circuit 2204 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 2204 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 8G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 2204 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display 2205 is used to display a UI (user interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 2205 is a touch display screen, the display screen 2205 also has the ability to acquire touch signals on or over the surface of the display screen 2205. The touch signal may be input to the processor 2201 as a control signal for processing. At this point, the display 2205 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 2205 may be one, providing the front panel of the terminal 2200; in other embodiments, the display 2205 can be at least two, respectively disposed on different surfaces of the terminal 2200 or in a folded design; in still other embodiments, the display 2205 can be a flexible display disposed on a curved surface or on a folded surface of the terminal 2200. Even more, the display 2205 can be arranged in a non-rectangular irregular figure, i.e. a shaped screen. The Display screen 2205 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
The camera assembly 2206 is used to capture images or video. Optionally, camera assembly 2206 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal 2200, and the rear camera is disposed on the rear surface of the terminal 2200. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 2206 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 2207 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 2201 for processing or inputting the electric signals into the radio frequency circuit 2204 for realizing voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and disposed at different locations on terminal 2200. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 2201 or the radio frequency circuit 2204 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 2207 may also include a headphone jack.
The positioning component 2208 is configured to locate a current geographic position of the terminal 2200 for navigation or LBS (Location Based Service). The positioning component 2208 may be a positioning component based on a GPS (global positioning System) in the united states, a beidou System in china, a graves System in russia, or a galileo System in the european union.
A power supply 2209 is used to provide power to various components within terminal 2200. The power source 2209 can be alternating current, direct current, disposable batteries, or rechargeable batteries. When power source 2209 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 2200 also includes one or more sensors 2210. The one or more sensors 2210 include, but are not limited to: acceleration sensor 2211, gyro sensor 2212, pressure sensor 2213, fingerprint sensor 2214, optical sensor 2215 and proximity sensor 2216.
The acceleration sensor 2211 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 2200. For example, the acceleration sensor 2211 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 2201 may control the touch display 2205 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 2211. The acceleration sensor 2211 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 2212 may detect a body direction and a rotation angle of the terminal 2200, and the gyro sensor 2212 may cooperate with the acceleration sensor 2211 to acquire a 3D motion of the user on the terminal 2200. The processor 2201 may implement the following functions according to the data collected by the gyro sensor 2212: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 2213 may be disposed on a side bezel of the terminal 2200 and/or on an underlying layer of the touch display 2205. When the pressure sensor 2213 is arranged on the side frame of the terminal 2200, a holding signal of the user to the terminal 2200 can be detected, and the processor 2201 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 2213. When the pressure sensor 2213 is arranged at the lower layer of the touch display screen 2205, the processor 2201 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 2205. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 2214 is used for collecting the fingerprint of the user, and the processor 2201 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 1414, or the fingerprint sensor 2214 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 2201 authorizes the user to have relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 2214 may be disposed on the front, back, or side of the terminal 2200. When a physical key or a vendor Logo is provided on the terminal 2200, the fingerprint sensor 2214 may be integrated with the physical key or the vendor Logo.
The optical sensor 2215 is used to collect the ambient light intensity. In one embodiment, the processor 2201 may control the display brightness of the touch display 2205 according to the ambient light intensity collected by the optical sensor 2215. Specifically, when the ambient light intensity is high, the display brightness of the touch display 2205 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 2205 is turned down. In another embodiment, the processor 2201 may also dynamically adjust the shooting parameters of the camera assembly 2206 according to the intensity of the ambient light collected by the optical sensor 2215.
A proximity sensor 2216, also known as a distance sensor, is typically disposed on the front panel of the terminal 2200. The proximity sensor 2216 is used to collect the distance between the user and the front face of the terminal 2200. In one embodiment, when the proximity sensor 2216 detects that the distance between the user and the front face of the terminal 2200 is gradually decreased, the processor 2201 controls the touch display 2205 to switch from the bright screen state to the rest screen state; when the proximity sensor 2216 detects that the distance between the user and the front surface of the terminal 2200 gradually becomes larger, the processor 2201 controls the touch display 2205 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 22 is not intended to be limiting of terminal 2200 and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be used.
Fig. 23 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 2300 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 2301 and one or more memories 2302, where the memory 2302 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 2301 to implement the methods provided by the foregoing method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input/output, and the server may also include other components for implementing the functions of the device, which are not described herein again.
The server 2300 may be configured to perform the steps performed by the management server or the operator server in the above-described application acceleration method and bandwidth management method.
The embodiment of the present application further provides a terminal, where the terminal includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations executed in the application acceleration method of the foregoing embodiment or to implement the operations executed in the bandwidth management method of the foregoing embodiment.
The embodiment of the present application further provides a server, where the server includes a processor and a memory, where the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations executed in the application acceleration method of the foregoing embodiment or to implement the operations executed in the bandwidth management method of the foregoing embodiment.
The present application also provides a computer-readable storage medium, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the operations performed in the application acceleration method of the foregoing embodiment or to implement the operations performed in the bandwidth management method of the foregoing embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only a preferred embodiment of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (15)

1. An application acceleration method is applied to a terminal, and the method comprises the following steps:
when the first application is in a foreground running state and the management application is in a background running state, detecting a current first bandwidth through the management application;
when the first bandwidth is smaller than a first preset threshold value, network information is obtained, wherein the network information at least comprises address information of a wireless access point connected with the terminal;
and sending an acceleration request to a management server associated with the management application through the management application, wherein the acceleration request carries the network information, the management server sends the acceleration request to an operator server connected with the wireless access point, and the operator server increases the bandwidth allocated to the wireless access point according to the address information.
2. The method of claim 1, further comprising:
when the first application is in a foreground running state and the management application is in a background running state, detecting the current memory occupation ratio of the terminal through the management application;
and when the memory occupation ratio is larger than a second preset threshold, closing a second application in a background running state, wherein the second application is different from the management application.
3. The method of claim 1, further comprising:
when the first application is in a foreground running state and the management application is in a background running state, intercepting a data packet sent by a second application in the background running state through the management application;
and discarding the data packet sent by the second application, wherein the second application is different from the management application.
4. The method according to any one of claims 1-3, further comprising:
and detecting the state of any application on the terminal based on the stack top authority of the open state through the management application, wherein the state comprises a closed state, a background running state or a foreground running state.
5. A bandwidth management method is applied to a terminal, and the method comprises the following steps:
detecting a current first bandwidth of the terminal;
when the first bandwidth is smaller than a first preset threshold value, network information is obtained, wherein the network information at least comprises address information of a wireless access point connected with the terminal;
and sending an acceleration request to a management server, wherein the acceleration request carries the network information, the management server sends the acceleration request to an operator server connected with the wireless access point, and the operator server increases the bandwidth allocated to the wireless access point according to the address information.
6. The method according to claim 5, wherein when the bandwidth is smaller than a first preset threshold, acquiring network information comprises:
and when the first bandwidth is smaller than the first preset threshold and the first application in the foreground running state is a preset application, acquiring the network information.
7. The method of claim 5, wherein after sending the speed-up request to the management server, the method further comprises:
when the first application is closed or switched to a background running state, the network information is acquired;
and sending a speed reduction request to the management server, wherein the speed reduction request carries the network information, the management server sends the speed reduction request to the operator server, and the operator server restores the original bandwidth allocated to the wireless access point according to the address information.
8. The method of claim 5, further comprising:
intercepting a first data packet sent by any application currently in a running state;
acquiring an application identifier to which the first data packet belongs;
and when the application identifier is a preset application identifier, sending the first data packet to an application server corresponding to the application identifier.
9. The method of claim 8, wherein the obtaining the application identifier to which the first packet belongs comprises:
analyzing the first data packet to obtain a source port number carried in the first data packet;
and acquiring an application identifier corresponding to the source port number according to a preset mapping relation, wherein the preset mapping relation comprises an application identifier corresponding to any source port number and any source port number.
10. The method of claim 5, further comprising:
intercepting a second data packet sent by any application currently in a running state;
adding a multi-sending mark in the second data packet, wherein the multi-sending mark is used for indicating that the second data packet is sent for a preset number of times, and the preset number of times is a positive integer greater than 1;
and sending the second data packet to a scheduling server according to the preset times, storing the received second data packet by the scheduling server, and forwarding the received second data packet to an application server corresponding to the second data packet.
11. The method of claim 10, wherein after sending the second packet to the dispatch server the predetermined number of times, the method further comprises:
and receiving a third data packet sent by the scheduling server according to preset times, wherein the third data packet is sent to the scheduling server by the application server, and the scheduling server acquires the multiple sending marks in the second data packet corresponding to the third data packet and sends the multiple sending marks according to the multiple sending marks.
12. An application acceleration apparatus, characterized in that the apparatus comprises:
the bandwidth detection module is used for detecting the current first bandwidth through the management application when the first application is in a foreground running state and the management application is in a background running state;
a first information obtaining module, configured to obtain network information when the first bandwidth is smaller than a first preset threshold, where the network information at least includes address information of a wireless access point to which the terminal is connected;
and the speed-up request sending module is used for sending a speed-up request to a management server associated with the management application through the management application, wherein the speed-up request carries the network information, the management server sends the speed-up request to an operator server connected with the wireless access point, and the operator server increases the bandwidth allocated to the wireless access point according to the address information.
13. A bandwidth management apparatus, the apparatus comprising:
the bandwidth detection module is used for detecting the current first bandwidth of the terminal;
a first information obtaining module, configured to obtain network information when the first bandwidth is smaller than a first preset threshold, where the network information at least includes address information of a wireless access point to which the terminal is connected;
and the speed-up request sending module is used for sending a speed-up request to a management server, wherein the speed-up request carries the network information, the management server sends the speed-up request to an operator server connected with the wireless access point, and the operator server increases the bandwidth allocated to the wireless access point according to the address information.
14. A terminal, characterized in that the terminal comprises a processor and a memory, the memory having stored therein at least one program code, which is loaded and executed by the processor to implement the operations performed in the application acceleration method according to any one of claims 1 to 4 or to implement the operations performed in the bandwidth management method according to any one of claims 5 to 11.
15. A computer-readable storage medium having stored therein at least one program code, which is loaded and executed by a processor, to implement the operations performed in the application acceleration method of any one of claims 1 to 4 or to implement the operations performed in the bandwidth management method of any one of claims 5 to 11.
CN201910912497.7A 2019-09-25 2019-09-25 Application acceleration and bandwidth management method, device, terminal and storage medium Active CN110602733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910912497.7A CN110602733B (en) 2019-09-25 2019-09-25 Application acceleration and bandwidth management method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910912497.7A CN110602733B (en) 2019-09-25 2019-09-25 Application acceleration and bandwidth management method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110602733A true CN110602733A (en) 2019-12-20
CN110602733B CN110602733B (en) 2021-08-17

Family

ID=68863318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910912497.7A Active CN110602733B (en) 2019-09-25 2019-09-25 Application acceleration and bandwidth management method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110602733B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333073A (en) * 2020-09-04 2021-02-05 深圳Tcl新技术有限公司 Network acceleration method, system, device and readable storage medium of gateway device
CN113259960A (en) * 2020-02-13 2021-08-13 大唐移动通信设备有限公司 Rate configuration method and device, electronic equipment and readable storage medium
JPWO2021177174A1 (en) * 2020-03-04 2021-09-10
CN113660173A (en) * 2021-08-16 2021-11-16 北京字节跳动网络技术有限公司 Flow control method and device, computer equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113492A (en) * 2014-07-25 2014-10-22 北京奇虎科技有限公司 Router based user access bandwidth adjusting method, device and system
CN104125170A (en) * 2014-07-25 2014-10-29 北京奇虎科技有限公司 Router based user accessed bandwidth adjusting method, device and system
CN104283810A (en) * 2013-07-08 2015-01-14 中国电信股份有限公司 Processing method of uplink bandwidth and home gateway
CN104469406A (en) * 2014-11-05 2015-03-25 中国联合网络通信集团有限公司 Method and device for processing network resources
WO2015196908A1 (en) * 2014-06-24 2015-12-30 华为技术有限公司 Service processing method, terminal, server and system
CN108243237A (en) * 2016-12-27 2018-07-03 中国移动通信集团浙江有限公司 Wideband directional accelerating method and equipment
CN109274519A (en) * 2018-08-20 2019-01-25 中国联合网络通信集团有限公司 A kind of bandwidth adjusting method and system
CN110213072A (en) * 2018-04-19 2019-09-06 腾讯科技(深圳)有限公司 Network equipment control method and network service processing method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283810A (en) * 2013-07-08 2015-01-14 中国电信股份有限公司 Processing method of uplink bandwidth and home gateway
WO2015196908A1 (en) * 2014-06-24 2015-12-30 华为技术有限公司 Service processing method, terminal, server and system
CN104113492A (en) * 2014-07-25 2014-10-22 北京奇虎科技有限公司 Router based user access bandwidth adjusting method, device and system
CN104125170A (en) * 2014-07-25 2014-10-29 北京奇虎科技有限公司 Router based user accessed bandwidth adjusting method, device and system
CN104469406A (en) * 2014-11-05 2015-03-25 中国联合网络通信集团有限公司 Method and device for processing network resources
CN108243237A (en) * 2016-12-27 2018-07-03 中国移动通信集团浙江有限公司 Wideband directional accelerating method and equipment
CN110213072A (en) * 2018-04-19 2019-09-06 腾讯科技(深圳)有限公司 Network equipment control method and network service processing method
CN109274519A (en) * 2018-08-20 2019-01-25 中国联合网络通信集团有限公司 A kind of bandwidth adjusting method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259960A (en) * 2020-02-13 2021-08-13 大唐移动通信设备有限公司 Rate configuration method and device, electronic equipment and readable storage medium
CN113259960B (en) * 2020-02-13 2022-09-27 大唐移动通信设备有限公司 Rate configuration method and device, electronic equipment and readable storage medium
JPWO2021177174A1 (en) * 2020-03-04 2021-09-10
JP7417708B2 (en) 2020-03-04 2024-01-18 株式会社Nttドコモ Management equipment, network systems and terminal equipment
CN112333073A (en) * 2020-09-04 2021-02-05 深圳Tcl新技术有限公司 Network acceleration method, system, device and readable storage medium of gateway device
CN112333073B (en) * 2020-09-04 2023-07-25 深圳Tcl新技术有限公司 Network acceleration method, system, device and readable storage medium of gateway device
CN113660173A (en) * 2021-08-16 2021-11-16 北京字节跳动网络技术有限公司 Flow control method and device, computer equipment and storage medium
CN113660173B (en) * 2021-08-16 2024-04-26 抖音视界有限公司 Flow control method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110602733B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN110602733B (en) Application acceleration and bandwidth management method, device, terminal and storage medium
CN111245745B (en) Message sending method, device, node equipment and storage medium
CN111614549B (en) Interaction processing method and device, computer equipment and storage medium
CN108702602A (en) Share method, electronic equipment and the system of image
CN110569220B (en) Game resource file display method and device, terminal and storage medium
KR102491006B1 (en) Data Transmission Methods and Electronic Devices
CN111596885B (en) Audio data processing method, server and storage medium
CN111523136A (en) Authority management method, device and equipment of application program and storage medium
CN112616122A (en) Method and system for transmitting integrated multi-message
CN111106902B (en) Data message transmission method, device, equipment and computer readable storage medium
CN111580946A (en) Port scanning method, device, equipment and storage medium
CN111427949A (en) Method and device for creating big data service
CN108616835B (en) Method, device and system for acquiring network resources based on browser and storage medium
CN111315038B (en) Data transmission method and device, electronic equipment and storage medium
CN111866140A (en) Fusion management apparatus, management system, service calling method, and medium
CN112398685A (en) Host equipment acceleration method, device, equipment and medium based on mobile terminal
CN110912830A (en) Method and device for transmitting data
WO2022247750A1 (en) Access request processing method, electronic device, electronic equipment, and medium
CN108683699B (en) Method and device for forwarding service request
CN110971692B (en) Method and device for opening service and computer storage medium
CN111447132B (en) Data transmission method, device, system and computer storage medium
CN111741040B (en) Connection establishing method, address obtaining method, device, equipment and storage medium
CN113516330A (en) Resource distribution method and device, computer equipment and storage medium
CN112260845B (en) Method and device for accelerating data transmission
CN114765580A (en) Network acceleration method, device, equipment and storage medium for out-of-domain network resources

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40016231

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant