CN110099428B - Wireless fidelity WiFi network access method, device and terminal - Google Patents

Wireless fidelity WiFi network access method, device and terminal Download PDF

Info

Publication number
CN110099428B
CN110099428B CN201810098203.7A CN201810098203A CN110099428B CN 110099428 B CN110099428 B CN 110099428B CN 201810098203 A CN201810098203 A CN 201810098203A CN 110099428 B CN110099428 B CN 110099428B
Authority
CN
China
Prior art keywords
speed
server
terminal
wifi network
speed limit
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.)
Active
Application number
CN201810098203.7A
Other languages
Chinese (zh)
Other versions
CN110099428A (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 CN201810098203.7A priority Critical patent/CN110099428B/en
Publication of CN110099428A publication Critical patent/CN110099428A/en
Application granted granted Critical
Publication of CN110099428B publication Critical patent/CN110099428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a WiFi network access method, a WiFi network access device and a WiFi network access terminal, and belongs to the field of WiFi. The method comprises the following steps: when accessing a target WiFi network, identifying whether the target WiFi network starts a speed limiting function, wherein the speed limiting function is used for limiting the access speed of a terminal after accessing the target WiFi network; if the target WiFi network starts a speed limiting function, determining a speed limiting mode adopted by the target WiFi network, wherein the speed limiting mode comprises at least one of IP section speed limiting, MAC address speed limiting, port speed limiting and protocol speed limiting; and carrying out network access according to the acceleration strategy corresponding to the speed limit mode. In the embodiment of the application, the speed limit of an IP section, the speed limit of an MAC address, the speed limit of a port or the speed limit of a protocol can be avoided by adopting the acceleration strategy, so that the bandwidth which can be used by the terminal when the terminal accesses the Internet is not limited by the speed limit strategy of the WiFi network, and the Internet access speed of the terminal is further improved.

Description

Wireless fidelity WiFi network access method, device and terminal
Technical Field
The embodiment of the application relates to the technical field of Wireless-Fidelity (WiFi), in particular to a WiFi network access method, a device and a terminal.
Background
With the increasing demand of people for the internet, more and more merchants are beginning to provide free WiFi networks for users to access.
When the user needs to use the WiFi network provided by the merchant, the WiFi scanning function of the terminal is enabled. After the terminal scans the nearby WiFi networks, the information such as the names and the signal intensity of the WiFi networks can be acquired and displayed. When the user selects a certain displayed WiFi network, the terminal accesses the WiFi network so that the user can access the Internet.
However, when the WiFi network accessed by the terminal enables the speed limit policy, the speed of the terminal for internet access through the WiFi network is limited, and even internet access cannot be performed.
Disclosure of Invention
The embodiment of the application provides a WiFi network access method, a WiFi network access device and a terminal, and can solve the problem that when an accessed WiFi network starts a speed limit strategy, the speed of the terminal for accessing the Internet through the WiFi network is limited. The technical scheme is as follows:
in a first aspect, a WiFi network access method is provided, the method including:
when a target WiFi network is accessed, identifying whether the target WiFi network starts a speed limit function or not, wherein the speed limit function is used for limiting the access speed of a terminal after the terminal is accessed to the target WiFi network;
if the target WiFi network starts the speed limit function, determining a speed limit mode adopted by the target WiFi network, wherein the speed limit mode comprises at least one of Internet Protocol (IP) section speed limit, Media Access Control (MAC) address speed limit, port speed limit and Protocol speed limit;
and carrying out network access according to the acceleration strategy corresponding to the speed limit mode.
In a second aspect, there is provided a WiFi network access device, the device comprising:
the identification module is used for identifying whether the target WiFi network is started or not when the target WiFi network is accessed, and the speed limit function is used for limiting the access speed of the terminal after the terminal is accessed to the target WiFi network;
the determining module is used for determining a speed limiting mode adopted by the target WiFi network when the target WiFi network starts the speed limiting function, wherein the speed limiting mode comprises at least one of IP section speed limit, MAC address speed limit, port speed limit and protocol speed limit;
and the access module is used for carrying out network access according to the acceleration strategy corresponding to the speed limit mode.
In a third aspect, there is provided a terminal comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is executable by the processor to implement the WiFi network access method of the first aspect.
In a fourth aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions that is executable by the processor to implement the WiFi network access method of the first aspect.
The beneficial effects that technical scheme that this application embodiment provided brought include:
when the WiFi network is accessed, the speed limiting mode adopted by the current WiFi network is further determined by identifying whether the current WiFi network starts the speed limiting function or not and when the current WiFi network starts the speed limiting function, so that network access is carried out based on the acceleration strategy corresponding to the speed limiting mode; because the speed limit of an IP section, the speed limit of an MAC address, the speed limit of a port or the speed limit of a protocol can be avoided by adopting the acceleration strategy, the bandwidth which can be used when the terminal accesses the Internet is not limited by the speed limit strategy of the WiFi network, and the Internet access speed of the terminal is further improved.
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 illustrating an implementation environment related to a WiFi network access method provided by an embodiment of the present application;
fig. 2 is a schematic diagram of a terminal optimizing WiFi network access process;
fig. 3 is a flowchart illustrating a WiFi network access method provided by an embodiment of the present application;
fig. 4 is a flowchart illustrating a WiFi network access method provided by another embodiment of the present application;
FIG. 5 is a schematic diagram of an implementation of the WiFi access method shown in FIG. 4;
fig. 6 shows a flowchart of a WiFi network access method provided by another embodiment of the present application;
FIG. 7 is a schematic diagram of an implementation of a DNS acceleration process;
FIG. 8 is a schematic diagram of an implementation of a slow start process in an embodiment of the present application and a slow start process in the related art;
fig. 9 is a block diagram of a WiFi network access device provided by one embodiment of the present application;
fig. 10 is a block diagram illustrating a terminal according to an exemplary embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
For convenience of understanding, terms referred to in the embodiments of the present application are explained below.
And (3) limiting the speed of an IP section: after the terminal accesses the WiFi network and acquires the static IP address belonging to the terminal, network access can be carried out through the WiFi network, and the limit of the IP section is a mode of limiting the speed of the terminal belonging to the appointed IP section. The limited IP segment is set by an administrator of the WiFi network, for example, the limited IP segment is: 192.168.1.10-192.168.1.20.
Optionally, the administrator may also set a non-speed-limited IP segment, and a terminal not belonging to the non-speed-limited IP segment is speed-limited. For example, the non-rate-limiting IP section is 192.168.1.10-192.168.1.20, i.e. the terminals belonging to 192.168.1.1-192.168.1.9 and 192.168.1.21-192.168.1.255 are rate-limited.
MAC address speed limit: a method for limiting the speed of a terminal with a specified MAC address. The MAC address to be rate-limited is set by an administrator of the WiFi network, and the MAC address may be one or more, for example, the MAC address to be rate-limited is: 00:01:6C:06: A6: 29.
Optionally, the administrator may also set the non-speed-limited MAC address, and the MAC address inconsistent with the non-speed-limited MAC address is speed-limited.
Port speed limiting: a method for limiting the speed of a designated port of a designated application. For example, the download port of the download application is rate-limited (even the port is closed) by means of port rate limitation.
And (4) agreement speed limit: when the protocol speed limit is adopted, the routing equipment (which provides a WiFi network) can analyze the contents such as the port number of the data packet, so as to judge the property of the data packet, when the data volume of the data packet exceeds the set flow, the data packet is discarded, namely, the protocol speed limit is a mode for realizing the speed limit through the packet loss.
Slow start (slow start): in TCP/IP, a mechanism to prevent network congestion. When a server starts to send data to a terminal, in order to avoid congestion of a network caused by directly sending a large amount of data, a detection mode is adopted, and a sending window (also called a congestion window) is gradually increased, namely, the data amount sent each time is gradually increased, so that the sending speed is improved.
Specifically, when a TCP connection is initialized, the server sets the send window to the size of a maximum segment. And after receiving the ACK, the server increases the original sending window. When the sending window is smaller than the slow start threshold value, the server increases the sending window in an exponential mode (for example, increases the sending window to twice of the original sending window); when the sending window is increased to the slow-start threshold value, the server increases the sending window in a linear mode (for example, one is added on the basis of the original sending window).
Referring to fig. 1, a schematic diagram of an implementation environment related to a WiFi network access method provided in an embodiment of the present application is shown. The implementation environment includes at least one terminal 110, WiFi device 120, and server 130.
The terminal 110 is an electronic device having a WiFi connection function, and the terminal 110 is an electronic device having a garbage disposal recommendation function, where the electronic device is a smart phone, a tablet computer, a desktop computer, a personal portable computer, or the like.
The WiFi device 120 is a device for providing a WiFi network, and the WiFi device 120 may be a router or a device that turns on a routing function. In the embodiment of the present application, the terminal 110 accesses to the WiFi network provided by the WiFi device 120 through the WiFi connection function, so as to perform internet access.
Optionally, a WiFi optimization application is installed in the terminal 110, and after the terminal 110 accesses the WiFi network, the current WiFi network is optimized through the WiFi connection application.
The server 130 is a server, a server cluster formed by a plurality of servers, or a cloud computing center. Optionally, the server 130 is a background server of the WiFi connection type application in the terminal 110.
In a possible application scenario, after the terminal 110 accesses the WiFi network, the downloading speed of the WiFi network is tested, and data related to the test result is reported to the server 130. After receiving the data reported by each terminal, the server 130 identifies whether each WiFi network starts a speed limit function through a speed limit detection mechanism, and further identifies a speed limit mode adopted by the WiFi network which starts the speed limit function. The terminal 110 performs network access by adopting a corresponding acceleration strategy according to the speed limit mode adopted by the current WiFi network, so that the speed limit of the WiFi network is avoided, and the network access speed is improved.
In one possible application scenario, the implementation environment further includes at least one domain name system (DNS ) server 140. Optionally, the server 130 stores a corresponding relationship between each WiFi network and a DNS server, and the terminal 110 obtains a target DNS server corresponding to a current WiFi network from the server 130 and sends a DNS request to the target DNS server, where the target DNS server is a DNS server with lowest packet loss rate and delay in a current WiFi network connection state.
In other possible application scenarios, the implementation environment further includes a Transmission Control Protocol (TCP) acceleration server 150 and a network resource server 160, where the TCP acceleration server 150 is connected to the terminal 110 and connected to the network resource server 160 (for providing network services) requested by the terminal 110. Optionally, the TCP acceleration server 150 is used to provide acceleration services to improve the slow start speed of TCP.
In the related art, after the terminal accesses the WiFi network, the network status of the current WiFi network may be evaluated by downloading speed measurement and ping values, or the security of the current WiFi network may be determined by detection methods such as Address Resolution Protocol (ARP) fraud detection and honeypot detection. However, none of the above approaches can improve the usability of current WiFi networks. For example, when the WiFi network enables the speed limit function, the terminal cannot determine whether the terminal is speed-limited by the method, and cannot improve the network access speed of the terminal under the condition of speed-limited.
In order to improve the usability of the WiFi network without affecting other access terminals, in this embodiment of the application, a terminal 110 is provided with a DNS acceleration module 111, a speed limit avoiding module 112, and a TCP acceleration module 113. When performing the DNS resolution, the terminal 111 locally implements the domain name resolution by using the DNS acceleration module 111, or interacts with the server 120 by using the DNS acceleration module 111 to determine the optimal DNS server 140 in the current WiFi network environment, and performs the domain name resolution by using the DNS server 140, thereby reducing the time consumption of the DNS resolution; after accessing the WiFi network, the terminal 110 interacts with the server 120 through the speed limit avoiding module 112 to determine the speed limit mode adopted by the current WiFi network, so as to adopt the speed-up strategy corresponding to the speed limit mode to speed up the network and avoid the WiFi network speed limit; in the TCP slow start phase, the terminal 110 interacts with the TCP acceleration server 150 through the TCP acceleration module 113, and the TCP slow start duration is shortened by the acceleration function provided by the TCP acceleration module 113, so as to increase the data sending speed of the network resource server 160.
Referring to fig. 3, a flowchart of a WiFi network access method provided by an embodiment of the present application is shown. The present embodiment is illustrated by applying the WiFi network access method to the terminal 110 shown in fig. 1, and the method may include the following steps:
step 301, when accessing a target WiFi network, identifying whether the target WiFi network starts a speed limit function, where the speed limit function is used to limit an access speed of a terminal after accessing the target WiFi network.
Optionally, the terminal adopts a local speed limit function detection mode, or identifies whether the target WiFi network starts the speed limit function by the server.
The WiFi network usually limits the speed by using a terminal-based speed limiting method, for example, the WiFi network starts simple speed limiting functions such as IP address segment speed limit and MAC address speed limit to limit the speed of a specified terminal.
In a possible implementation manner, in a case that a routing device providing a target WiFi network does not enforce a Dynamic Host Configuration Protocol (DHCP), a terminal identifies whether the target WiFi network starts a speed limit function by adopting a mode of performing speed measurement after a static IP is replaced.
Optionally, when the speed difference of the target WiFi network is greater than the threshold under different static IP addresses, it is determined that the target WiFi network starts the speed limit function.
In order to improve the accuracy and efficiency of speed limit function detection, in another possible implementation manner, after the terminal accesses the WIFi network and performs speed measurement, the data related to the test is reported to the server, and the server determines whether the WIFi network starts the speed limit function according to the data reported by each terminal. After other subsequent terminals access the target WiFi network, the starting condition of the speed limiting function of the target WiFi network can be identified through interaction with the server.
If the target WiFi network starts the speed limiting function, the terminal executes the following step 302; if the target WiFi network does not start the speed limiting function, the terminal directly accesses the network through the WiFi network.
Step 302, if the target WiFi network starts a speed limit function, determining a speed limit mode adopted by the target WiFi network, where the speed limit mode includes at least one of an IP segment speed limit, an MAC address speed limit, a port speed limit, and a protocol speed limit.
In order to know which speed limiting mode is adopted by the target WiFi network so as to avoid by adopting a corresponding acceleration strategy subsequently, after the speed limiting function of the target WiFi network is identified, the terminal further determines the speed limiting mode adopted by the terminal.
Optionally, when the terminal identifies that the target WiFi network starts the speed limiting function by using a local speed limiting function detection method, the terminal determines the speed limiting mode according to the local identification result; when the terminal identifies the target WiFi network to start the speed limiting function by the server, the terminal further acquires the speed limiting mode adopted by the target WiFi network from the server.
And 303, performing network access according to an acceleration strategy corresponding to the speed limit mode.
And according to the speed limiting mode adopted by the target WiFi network, the terminal performs network access after avoiding the speed limit by adopting a corresponding acceleration strategy. Optionally, the acceleration policy is pre-stored in the terminal, or is issued by the server.
In summary, in this embodiment, when accessing the WiFi network, by identifying whether the current WiFi network starts the speed limit function, and when the current WiFi network starts the speed limit function, further determining the speed limit mode adopted by the current WiFi network, the network access is performed based on the acceleration policy corresponding to the speed limit mode; because the speed limit of an IP section, the speed limit of an MAC address, the speed limit of a port or the speed limit of a protocol can be avoided by adopting the acceleration strategy, the bandwidth which can be used when the terminal accesses the Internet is not limited by the speed limit strategy of the WiFi network, and the Internet access speed of the terminal is further improved.
In an application scenario, a terminal reports test data to a server, and the server identifies the starting condition of the speed limiting function of each WiFi network based on a large amount of test data and stores the speed limiting function. In the subsequent process, the terminal can quickly determine whether the speed limit function of the current WiFi network is started or not by interacting with the server. The following description will be made by using exemplary embodiments.
Referring to fig. 4, a flowchart of a WiFi network access method provided by another embodiment of the present application is shown. The present embodiment is illustrated by applying the WiFi network access method to the terminal 110 shown in fig. 1, and the method may include the following steps:
step 401, when accessing the target WiFi network, sending a speed limit query request to the server, where the speed limit query request includes an identifier of the target WiFi network.
After the terminal accesses the target WiFi network, the terminal sends a speed limit query request containing the Identifier of the target WiFi network to the server, wherein the Identifier of the target WiFi network is a Basic Service Set Identifier (BSSID) or a Service Set Identifier (SSID).
In this embodiment, the server stores a corresponding relationship between the WiFi network and the speed limit identification bit, the corresponding relationship is generated by the server based on test data reported after each terminal (connected to the WiFi network) performs a test, and the speed limit identification bit is used for representing an open state of the speed limit function. The process of the terminal performing the test and the server generating the corresponding relationship will be detailed in the following steps, which are not described herein again.
Optionally, the server sets a corresponding value for the speed limit identification bit of the WiFi network, so that the starting condition of the speed limit function of the WiFi network is represented by the value. For example, for a WiFi network with a speed limit function, the server sets the value of the speed limit identification bit to 1; for the WiFi network which is not started with the speed limit function, the server sets the value of the speed limit identification bit to 0; for a WiFi network with an unknown speed limit function opening condition (for example, the speed limit function opening condition cannot be determined according to less test data reported by the terminal), the value of the speed limit identification bit of the server is set to null.
Illustratively, the corresponding relationship between the WiFi network and the speed limit identification bit is shown in table one.
Watch 1
Identification of WiFi networks Speed limit sign position
WiFi001
0
WiFi002 1
WiFi003 null
As shown in fig. 5, after accessing the target WiFi network provided by the router 51, the terminal 52 sends an inquiry request to the server 53.
Step 402, receiving a query result fed back by the server, wherein the query result comprises a speed limit identification position.
After receiving the query request, the server queries the speed limit identification position corresponding to the target WiFi network from the corresponding relation according to the identification of the target WiFi network, and feeds back the query result containing the speed limit identification position to the terminal.
As shown in fig. 5, the server 53 queries the speed limit bit identifier corresponding to the target WiFi network from the database 531 according to the identifier of the target WiFi network in the query request, and feeds back a corresponding query result to the terminal 52.
And step 403, if the value of the speed limit identification bit is not empty, identifying whether the target WiFi network starts the speed limit function or not according to the value of the speed limit identification bit.
For the received query result, the terminal detects whether the value of the speed limit identification bit in the query result is empty, if the value of the speed limit identification bit is empty, the server can not determine whether the target WiFi network starts the speed limit function temporarily, and the terminal executes the following step 406; and if the value of the speed limit identification position is not empty, the terminal further determines whether the target WiFi network starts the speed limit function or not according to the value of the wire harness identification position.
In a possible implementation manner, in combination with the example in step 401, when the value of the speed limit identification bit is 0, the terminal determines that the target WiFi network does not start the speed limit function; and when the value of the speed limit identification bit is 1, the terminal determines that the target WiFi network starts the speed limit function.
Optionally, the server may also directly feed back, to the terminal, a speed limit function starting condition (including starting, not starting, and not in detail) of the target WiFi network according to the queried value of the speed limit identification bit, which is not limited in this embodiment.
And step 404, if the target WiFi network starts a speed limiting function, determining a speed limiting mode adopted by the target WiFi network.
Optionally, the speed-limiting manner adopted by the target WiFi network includes at least one.
In a possible implementation manner, when the server receives the test data reported by each terminal, the server also receives the associated data reported by the terminals, and when the starting condition of the speed limiting function of the WiFi network is determined based on the test data, the speed limiting mode adopted by the WiFi network is further determined according to the associated data. Correspondingly, the server stores the WiFi network and the speed limit mode adopted by the WiFi network in a correlation mode, and feeds the speed limit mode adopted by the target WiFi network as a query result to the terminal when the target WiFi network starts the speed limit function.
Illustratively, the corresponding relationship between the WiFi network and the speed limiting mode is shown in table two.
Watch two
Identification of WiFi networks Speed limit sign position Speed limiting mode
WiFi001 0 -
WiFi002 1 IP section speed limit
WiFi003 null -
Correspondingly, the terminal can obtain the speed limiting mode adopted by the target WiFi network from the query result.
The process of reporting the associated data by the terminal and determining the speed limiting mode by the server will be detailed in the following steps, which are not described herein again.
And 405, performing network access according to an acceleration strategy corresponding to the speed limit mode.
Since the WiFi device may adopt different speed limiting means for different network layers, the terminal needs to adopt different acceleration strategies to avoid speed limiting for different speed limiting modes.
When the speed limiting mode is IP section speed limiting, setting a static IP address belonging to a non-speed-limiting IP section and then carrying out network access, wherein the non-speed-limiting IP section is generated by a server according to the associated data reported after each terminal carries out a download speed test.
When the fact that the target WiFi network limits the speed by the IP section is determined, the speed limiting mode only limits the speed of the terminal of the appointed IP section, and therefore the terminal enables the modified static IP address to belong to the non-speed-limiting IP section by modifying the static IP address of the terminal, and network access is conducted.
Aiming at the determination mode of the non-speed-limiting IP section, in a possible implementation mode, after each terminal carries out a download speed test, test data containing a download speed and a WiFi network identifier and associated data containing static IP addresses are reported to a server, the server determines the speed-limiting IP section corresponding to the WiFi network by analyzing the download speeds of the terminals under the same WiFi network and different static IP addresses, and then determines the non-speed-limiting IP section according to the speed-limiting IP section, wherein the download speed of the terminal under the speed-limiting IP section is smaller than that of the terminal under the non-speed-limiting IP section, and the accuracy of the speed-limiting IP section is in positive correlation with the data volume reported by the terminal.
Optionally, the server sends the non-speed-limited IP segment (or the speed-limited IP segment) to the terminal. The terminal detects whether the current IP address belongs to the non-speed-limiting IP section, and if so, network access is directly carried out; if not, the static IP address of the user is set as a certain IP address in the non-speed-limit IP section, and network access is carried out.
For example, when the terminal acquires that the non-speed-limited IP section corresponding to the target WiFi network is 192.168.1.10-192.168.1.20 and the static IP address of the terminal is 192.168.1.22, the terminal modifies the static IP address of the terminal into 192.168.1.15 and then performs network access.
And secondly, when the speed limiting mode is MAC address speed limiting, modifying the MAC address and then carrying out network access.
Similar to the speed limit of the IP section, when the MAC address of the terminal belongs to the speed limit MAC address, the terminal modifies the MAC address of the terminal into a non-speed limit MAC address and then accesses the non-speed limit MAC address.
In a possible implementation manner, after each terminal performs a download speed test, the terminal reports test data including a download speed and a WiFi network identifier and associated data including an MAC address to a server, and the server determines a speed-limiting MAC address corresponding to a WiFi network by analyzing download speeds of terminals under the same WiFi network and different MAC addresses.
Optionally, the server sends the speed-limiting MAC address to the terminal. The terminal detects whether the MAC address of the terminal belongs to a speed-limiting MAC section, and if not, network access is directly carried out; if the MAC address belongs to the speed limit MAC address, the MAC address of the user is set as an MAC address except the speed limit MAC address, and network access is carried out.
In order to avoid the problem that speed limitation cannot be avoided only by modifying an IP address or an MAC address due to an ARP table stored in the WiFi device, optionally, the terminal modifies a static IP address and a static MAC address of the terminal at the same time.
And thirdly, when the speed limiting mode is port speed limiting, modifying the port number in the network request and carrying out network access.
In a possible implementation manner, when a target WiFi network limits a commonly used port of some applications in a port speed limit-based manner, a terminal modifies a port number in a network request sent to the commonly used port into a standby port, and sends the modified network request, thereby implementing network access. Optionally, the terminal obtains a standby port corresponding to the common port from the configuration file of the application.
For example, when the target WiFi network restricts the commonly used port http:// sz1-7.xxx.com:8000, the terminal modifies the port number 8000 to the standby port number 8001 when sending the network request, i.e. modifies the network request to http:// sz1-7.xxx.com: 8001.
And fourthly, when the speed limiting mode is the protocol speed limiting mode, forwarding the network request to a proxy server, wherein the proxy server is used for forwarding the network request to a network resource server corresponding to the network request and forwarding the data sent by the network resource server.
When the WiFi equipment limits the service using certain protocols by adopting a protocol speed limiting mode, the terminal sends the network request to the unrestricted proxy server in a proxy mode, the proxy server forwards the network request to the network resource server and receives data forwarded by the proxy server, and therefore the protocol speed limit is avoided.
In addition to the above four speed limiting modes, the target WiFi network may also perform terminal speed limiting in other modes, for example, limiting the download speed of the download tool by the number of TCP connections, which is not limited in this embodiment of the present application.
And 406, if the value of the speed limit identification bit is null, performing a downloading speed test to obtain a downloading speed.
At the initial stage of speed limit mode identification, the server cannot determine the starting condition of the speed limit function of the WiFi network based on the test data because the test data reported by the terminal are less, and at the moment, the value of the speed limit identification bit fed back by the server is null.
In order to improve the coverage and accuracy of speed limit identification of the WiFi network, when the received value of the speed limit identification bit is empty, the terminal carries out downloading speed test under the target WiFi network to obtain corresponding downloading speed.
In a possible implementation manner, in order to ensure test consistency, different terminals download the same resource file in the same downloading manner, so as to obtain corresponding downloading speeds. Optionally, the downloading speed is an average speed of downloading the resource file.
For example, when the terminal performs a download speed test, it takes 10s to download a resource file with a size of 1M, and the download speed is calculated to be 0.1M/s.
Optionally, in order to improve the accuracy of the data, the terminal performs multiple download speed tests at different times, and calculates the download speed according to multiple download results.
Step 407, reporting test data to a server, where the test data includes a download speed, a WiFi network identifier, and a test timestamp, and the server is configured to establish a correspondence between the WiFi network and the speed limit identifier according to the test data reported by each terminal.
Further, after the downloading speed test is completed, the terminal reports test data to the server, wherein the test data at least comprises the downloading speed, the identifier of the WiFi network and the test timestamp.
Optionally, in order to avoid that the WiFi connection quality and/or the network fluctuation affect the accuracy of the test data, the test data reported by the terminal further includes data such as a signal strength (for indicating the connection quality) and a Ping value (for indicating the network delay). Accordingly, the server filters test data having a signal strength below a strength threshold and/or a Ping value above a threshold.
Schematically, the test data reported by the terminal is shown in table three.
Watch III
BSSID Download speed Signal strength Ping value Test time stamp
WiFi003 0.1M/s -75dbm 20ms 2018-1-18 14:27:20
In the actual implementation process, as shown in fig. 5, a large number of terminals 53 (accessing the same or different WiFi networks) report their own test data to the server 53, and the server 53 analyzes the large number of test data, thereby determining the speed limit function start conditions of different WiFi networks.
When the speed limiting function is not started, the downloading speed of the terminal accessed to the WiFi network can reach the maximum bandwidth of the network (under the condition of no competition); when the speed limit function is started, the downloading speed of the terminal accessed to the WiFi network has an upper limit value, and the upper limit value is smaller than the maximum bandwidth of the network. Therefore, the server can judge whether the speed limit function of the WiFi network is started or not by analyzing the downloading speed of different terminals under the same WiFi network.
In a possible implementation manner, a server obtains test data reported by different terminals in the same WiFi network, and screens out target test data according to a test timestamp, where the target test data includes: the downloading method comprises the steps of reporting a first downloading speed a1 and a first testing time stamp t1 by a first terminal, reporting a second downloading speed b1 and a second testing time stamp t2 by a second terminal, reporting a third downloading speed a2 and a third testing time stamp t3 by the first terminal, and reporting a fourth downloading speed b2 and a fourth testing time stamp t4 by the second terminal. The time difference value between the first test timestamp t1 and the second test timestamp t2 is greater than the time threshold, that is, the first download speed a1 and the second download speed b1 are obtained by testing different terminals at different moments; the time difference between the third testing time stamp t3 and the fourth testing time stamp t4 is smaller than the time threshold, that is, the third downloading speed a2 and the fourth downloading speed b2 are obtained by testing different terminals at similar time, and optionally, the time threshold is set to 5 s.
Further, the server determines whether the WiFi network enables a speed limit function according to the target test data. After the speed limit function is started, the downloading speeds of different terminals have the same upper limit value, and the sum of the downloading speed upper limit values of the different terminals is smaller than the total bandwidth of the network, so that the server detects whether the first downloading speed a1, the second downloading speed b1, the third downloading speed a2 and the fourth downloading speed b2 meet a preset relationship, and determines that the speed limit function is started on the WiFi network when the preset relationship is met.
Wherein the predetermined relationship is: the speed difference value between the first downloading speed and the second downloading speed is smaller than the speed threshold, the speed difference value between the third downloading speed and the fourth downloading speed is smaller than the speed threshold, and the speed difference value between the sum of the third downloading speed and the fourth downloading speed and the first downloading speed is larger than the speed threshold. The mathematical expression can be expressed as: | a1-b1| < k & | a2-b2| < k & (a2+ b2) -a1 > k. That is, the download speeds of the two terminals at different times are similar, the download speeds of the two terminals at the same time are similar, and the sum of the download speeds of the two terminals at the same time is greater than that of a single terminal. Alternatively, the speed threshold k may be 10 k/s.
Optionally, when it is detected that the target test data conforms to the preset relationship, the server determines that the speed limit function is started by the WiFi network, so that the value of the speed limit identification bit corresponding to the WiFi network is set to 1; and when the target test data is detected not to conform to the preset relation, the server determines that the speed limit function is not started by the WiFi network, so that the value of the speed limit identification bit corresponding to the WiFi network is set to be 0.
As shown in fig. 5, the server constructs a corresponding relationship between the WiFi network and the speed limit identifier in the database 531 according to a large amount of test data reported by the terminal 54.
And step 408, reporting associated data to a server, wherein the associated data comprises at least one of an IP address, an MAC address, a packet loss rate and application information, and the server is used for determining a speed limit mode adopted by the WiFi network according to the associated data reported by each terminal.
Through the steps, the server can identify the starting conditions of the speed limiting functions of different WiFi networks, in order to enable the server to further identify the specific speed limiting mode adopted by the WiFi network so as to avoid the subsequent terminal, and after the terminal performs a download speed test, the terminal also reports associated data to the server, wherein the associated data comprises at least one of an IP address, an MAC address, a packet loss rate and application information.
And the server further determines a speed limiting mode adopted by the WiFi network for starting the speed limiting function according to the received associated data.
Optionally, the server screens out the download speeds corresponding to different IP addresses in the same WiFi network from the test data and the associated data, and if the download speeds are distributed in a centralized manner, that is, a large number of IP addresses are set to a lower upper limit value, it is determined that the WiFi network uses an IP segment for speed limiting, and further extracts a speed-limiting IP segment and a non-speed-limiting IP segment, where the download speed corresponding to the non-speed-limiting IP segment is significantly greater than the download speed of the speed-limiting IP segment.
Optionally, the server screens out the download speeds corresponding to different MAC addresses in the same WiFi network from the test data and the associated data, and if the download speeds are distributed in a centralized manner, that is, a large number of MAC addresses are set to have a lower upper limit, it is determined that the WiFi network employs MAC speed limiting, and further extracts a speed-limiting MAC address and a non-speed-limiting MAC address, where the download speed corresponding to the non-speed-limiting MAC is significantly greater than the download speed of the speed-limiting MAC.
Optionally, the server screens packet loss rates of different applications and different request ports in the same WiFi network from the test data and the associated data, determines that the specified application or request port is limited when the packet loss rate is greater than a packet loss rate threshold, and further extracts the limited port number and the application.
In other possible embodiments, the associated data uploaded by the terminal may further include information such as the number of TCP connections, and the server may analyze that the TCP connection set by the WiFi network is on-line according to the number of TCP connections.
As shown in fig. 5, after analyzing the associated data reported by the terminal 54, the server 53 inputs the analyzed speed limit mode of the WiFi network into the database 531.
In summary, in this embodiment, when accessing the WiFi network, by identifying whether the current WiFi network starts the speed limit function, and when the current WiFi network starts the speed limit function, further determining the speed limit mode adopted by the current WiFi network, the network access is performed based on the acceleration policy corresponding to the speed limit mode; because the speed limit of an IP section, the speed limit of an MAC address, the speed limit of a port or the speed limit of a protocol can be avoided by adopting the acceleration strategy, the bandwidth which can be used when the terminal accesses the Internet is not limited by the speed limit strategy of the WiFi network, and the Internet access speed of the terminal is further improved.
In the embodiment, the terminal performs a download speed test after accessing the WiFi network, reports test data to the server, analyzes the speed limit function starting condition of each WiFi network according to a large amount of test data reported by the terminal by the server, and sets a corresponding speed limit identification bit; after subsequently receiving query requests sent by other terminals, the server quickly feeds back the speed limit function starting condition of the terminal accessed to the WiFi network according to the speed limit identification position, and the efficiency of detecting the speed limit function is improved.
Further, after the terminal completes the download speed test, the associated data containing the IP address, the MAC address, the packet loss rate and the application information are reported to the server, and the server determines the speed limiting mode adopted by the WiFi network according to the associated data, so that the subsequent terminal can avoid the speed limit by adopting a corresponding acceleration strategy.
When a terminal initiates a network request, DNS analysis is firstly carried out on a domain name in the network request, if an IP address corresponding to the domain name does not exist in a local cache, the terminal needs to initiate a request to a far-end DNS server to acquire the IP address corresponding to the domain name. After the IP address is obtained, the terminal can locally perform domain name-IP address association cache, and the terminal can directly return the IP address when the same domain name resolution request exists next time.
However, the remote DNS server may be a default configuration for the WiFi device, or may be manually set, but cannot be dynamically changed in the request after setting; moreover, there is a delay in the request from the terminal to the DNS server, and there is also a delay in the DNS server making the recursive query, which will increase the time consumption for the feedback of the network request; in addition, although the local cache of the terminal stores the corresponding relationship between part of the domain name and the IP address, the cache time and the cache amount are uncontrollable, and after the local cache is clear, the remote DNS server needs to be requested again, which increases the time consumption for the request.
Therefore, in addition to optimizing the availability of the WiFi network in terms of avoiding speed limits, the terminal may also optimize the WiFi network in terms of DNS acceleration.
Referring to fig. 6, a flowchart of a WiFi network access method provided by another embodiment of the present application is shown. The present embodiment is illustrated by applying the WiFi network access method to the terminal 110 shown in fig. 1, and the method may include the following steps:
step 601, a DNS request is obtained, where the DNS request includes a target domain name and/or an application identifier of an application program to which the DNS request belongs.
When an application program or a browser requests to acquire network resources, a terminal acquires a DNS request, wherein the DNS request contains a target domain name to be resolved.
Optionally, in order to determine which application requests to acquire the network resource, the DNS request acquired by the terminal further includes a program identifier of the application that initiated the DNS request.
For example, the DNS request acquired by the terminal includes the target domain name www.xxx.com and the application identifier App 1.
Step 602, a target IP address corresponding to a target domain name is searched from a local mapping table.
In this embodiment, the terminal solidifies the local cache to generate the local mapping table, and the local mapping table exists in the whole life cycle of the terminal and is not affected by factors such as restart of the terminal or application crash.
In one possible embodiment, the local mapping table includes a mapping relationship between a high-frequency domain name and an IP address, and/or a mapping relationship between a high-frequency application and an IP address, where an access frequency of the high-frequency domain name is greater than a first frequency threshold, and a frequency of sending DNS requests by the high-frequency application is greater than a second frequency threshold. For example, the first frequency threshold may be 10000 times/day, and the second frequency threshold may be 20 times/day.
Optionally, the server collects mapping relationships between domain names and IP addresses reported by the terminals, counts the domain names, and determines the domain name with the access frequency greater than the first frequency threshold as a high-frequency domain name, so that the mapping relationship between the high-frequency domain name and the IP address is issued to the terminals, so that the terminals generate the local mapping table.
Illustratively, in the local mapping table, the mapping relationship between the high-frequency application and the IP address is shown in table four.
Watch four
High frequency domain name IP address
www.xxx.com 119.75.217.109
www.yyy.com 119.75.217.110
www.zzz.com 119.55.217.109
Optionally, because the access preferences of different users are different, in order to make the local mapping table better conform to the access preferences of the users, the terminal counts the frequency of the DNS request initiated by different applications, determines the application with the frequency of the DNS request being greater than the second frequency threshold as the high-frequency application, and establishes the mapping relationship between the high-frequency applications and the IP addresses.
Optionally, when the terminal searches for a target IP address corresponding to the target domain name, it first detects whether an application to which the DNS request belongs is a high-frequency application, and if the application is the high-frequency application, the terminal searches for the target IP address from a mapping relationship between the high-frequency application and the IP address; if the application is not the high-frequency application or the target IP address is not found from the mapping relation between the high-frequency application and the IP address, the terminal searches the target IP address from the mapping relation between the high-frequency domain name and the IP address.
If the target IP address exists in the local mapping table (i.e., the target IP address is found), then step 603 is executed; if the target IP address does not exist in the local mapping table (i.e., the target IP address is not found), step 604 is performed.
As shown in fig. 7, when a target IP address exists in the local mapping table 711, the terminal 71 directly acquires the target IP address; when the target IP address does not exist in the local mapping table 711, the terminal 71 further performs a lookup in the local cache 712 according to the target domain name.
Step 603, if a target IP address corresponding to the target domain name exists in the local mapping table, sending a network request to the target IP address.
After the target IP address corresponding to the target domain name is found, the terminal directly sends a network request to the target IP address, so that corresponding network resources are obtained.
Step 604, if the local mapping table does not have the target IP address corresponding to the target domain name, the target IP address corresponding to the target domain name is searched from the local cache.
Since the data in the local mapping table is not written in real time, the target IP address corresponding to the target domain name may not be written in the local mapping table, but stored in the local cache.
If the target IP address exists in the local cache (i.e., the target IP address is found), step 605 is executed; if the target IP address does not exist in the local cache (i.e., the target IP address is not found), step 606 is executed.
Step 605, if the target IP address corresponding to the target domain name exists in the local cache, sending a network request to the target IP address.
The implementation of this step is similar to that of step 603, and this embodiment is not described herein again.
Through the steps 601 to 605, the terminal can search the target IP address in the local mapping table or the local cache, so that interaction with the DNS server is avoided, and time consumption of domain name resolution is reduced.
Step 606, if the target IP address corresponding to the target domain name does not exist in the local cache, a DNS server query request is sent to the server.
In the embodiment, the server stores in advance a corresponding relationship between the WiFi network and the DNS server, wherein the corresponding relationship is reported by each terminal (the process of reporting the corresponding relationship between the WiFi network and the DNS server by the terminal is described in detail in the following steps).
Illustratively, the correspondence between the WiFi network and the DNS server is shown in table five.
Watch five
Identification of WiFi networks DNS server
WiFi001 DNS001
WiFi002 DNS002
WiFi003 DNS001
As shown in fig. 7, the DNS server query request includes an identifier of the target WiFi network, and the server 72 searches the address of the target DNS server in the corresponding relationship shown in table five according to the identifier of the target WiFi network, and feeds back the query result to the terminal.
If the query result fed back by the server includes the address of the target DNS server, the following steps 607 to 608 are executed; if the query result fed back by the server does not include the address of the target DNS server, the following step 609 is performed.
Step 607, if the query result fed back by the server includes the address of the target DNS server, then the DNS request is sent to the target DNS server.
The target DNS server is the DNS server with the lowest delay and packet loss rate in the current network environment. The terminal sends a DNS request containing a target domain name to a target DNS server, and the target DNS server recursively inquires a corresponding target IP address.
Step 608, receiving the destination IP address sent by the destination DNS server.
After receiving the target IP address, the terminal sends a network request to the target IP address to acquire corresponding network resources.
Through the steps 606 to 608, the terminal directly obtains the address of the optimal DNS server in the current WiFi network environment from the server, thereby improving the success rate and efficiency of subsequent domain name resolution.
Step 609, if the query result fed back by the server does not contain the address of the target DNS server, performing delay test on at least two candidate DNS servers in parallel.
In order to avoid reducing the probability of DNS pollution, a configuration file containing at least two candidate DNS server addresses is stored in the terminal, when a target DNS server corresponding to a target WiFi network is not stored in the server, the terminal performs delay test on the at least two candidate DNS servers in parallel, and screens out the target DNS server based on a delay test result.
Optionally, the terminal sends query requests to the candidate DNS servers in parallel, and obtains feedback time of each DNS server.
As shown in fig. 7, the terminal 71 pings each candidate DNS server 73.
Step 610, the candidate DNS server with the lowest latency is determined as the target DNS server.
Further, the terminal determines the candidate DNS server with the lowest delay (i.e., the shortest feedback time) as the target DNS server.
Step 611, report the identity of the target WiFi network and the address of the target DNS server to the server.
In order to improve the domain name resolution rate of other terminals accessing the target WiFi network, the terminal reports the identifier of the target WiFi network and the address of the target DNS server to the server so that the server can store the corresponding relation. And other subsequent terminals accessing the target WiFi network can directly acquire the address of the target DNS server from the server, so that the delay test of the candidate DNS server is avoided.
In other possible embodiments, the terminal may customize the timeout time and retransmission interval of the DNS request, and adjust the retransmission time according to the network condition, or the terminal may send the query request by using a TCP connection, thereby ensuring stable connection and query security, and reducing DNS pollution.
In this embodiment, the terminal performs domain name resolution by using the local mapping table and the local cache, and avoids interaction between the terminal and the DNS server, thereby improving the rate of domain name resolution.
Further, when the target IP address is not stored in the local mapping table and the local cache, the terminal directly obtains the address of the optimal DNS server in the target WiFi network environment from the server, so that the success rate and the efficiency of subsequent domain name resolution are improved.
Further, when the server does not store the optimal DNS server in the target WiFi network environment, the target DNS server with the lowest delay is screened out from the candidate DNS servers, so that DNS pollution is avoided, and the success rate of subsequent domain name resolution is improved.
In the process of network access by the terminal, when the server transmits data to the terminal, in order to avoid network congestion, the data needs to be sent by adopting a slow start mode. However, in the slow start process, the server can send the next batch of data only when receiving the acknowledgement packet of the previous batch of data, and the sending window is enlarged, so that a great deal of time is consumed for slow start; moreover, when the server and the terminal are connected by a Transport Layer Security (TLS), because TLS handshake messages consume initial connection bytes and excessively long handshake messages need to be sent in blocks, slow start time is further increased.
Thus, in addition to optimizing the availability of the WiFi network in terms of avoiding speed limits and/or DNS acceleration, the terminal may also optimize the WiFi network in terms of TCP acceleration.
In one possible embodiment, as shown in fig. 2, the terminal 110 is connected to the network resource server 160 through a TCP acceleration server 150. The data transmission between the terminal and the network resource server comprises the following steps:
the terminal sends a data acquisition request to a TCP acceleration server, and the TCP acceleration server is used for forwarding the data acquisition request to a network resource server.
When a terminal needs to acquire network resources (namely data) from a network resource server, a data acquisition request is firstly sent to a preset TCP acceleration server, and the TCP acceleration server forwards the data acquisition request to the network resource server.
Correspondingly, the network resource server obtains the corresponding network resource according to the network resource obtaining request, and sends the network resource to the TCP acceleration server.
And secondly, the terminal receives data sent by the TCP acceleration server, and the data is sent to the TCP acceleration server by the network resource server.
After receiving the network resource fed back by the network resource server, the TCP acceleration server forwards the network resource to the terminal.
As shown in the left diagram in fig. 8, in the related art, after a connection is established between a terminal and a network resource server, the network resource server first sends data in a smaller sending window (2 in the diagram), and when receiving an ACK feedback sent by the terminal, the network resource server will expand the sending window and further send the data.
In this embodiment, the TCP acceleration server is not only used as a transmission medium between the terminal and the network resource server, and optionally, in the slow start stage, after receiving the data fed back by the network resource server and before receiving the ACK fed back by the terminal, the TCP acceleration server sends a pre-Acknowledgement (ACK) packet to the network resource server, and after receiving the pre-acknowledgement packet, the network resource server knows that the current network is not congested, so that the sending window is increased, and the data is continuously sent.
As shown in the right diagram of fig. 8, the TCP acceleration server receives the data fed back by the network resource server, so as to forward the data to the terminal, and at the same time, the TCP acceleration server sends a pre-ACK to the network resource server, instructing the network resource server to increase the sending window, and continuing to send the next batch of data.
Optionally, when the ACK fed back by the terminal is not received within the predetermined time, the TCP acceleration server determines that the network between the TCP acceleration server and the terminal is congested, so as to stop sending the pre-ACK packet. And when the ACK fed back by the terminal is received within the preset time, the TCP acceleration server does not speak the ACK and sends the ACK to the network resource server.
Obviously, as shown in fig. 8, by means of the predetermined mechanism of the TCP server, the slow start process is reduced, that is, the data sending speed of the network resource server is faster in the same time, so as to achieve the effect of optimizing the WiFi network.
Since the TCP acceleration service is an intermediate transparent service, and is connected to the terminal and the network resource server, the TCP acceleration server can sense the change of the network rate. Alternatively, the TCP acceleration service follows the following points: 1) when detecting that the speed of the network environment where the terminal is located is poor, reducing the sending rate; 2) when the speed of the network environment where the terminal is located is detected to be good, the sending rate is increased; 3) when the slow start reaches the maximum bandwidth, the current sending rate is maintained.
Optionally, in order to implement dynamic adjustment of the sending rate, the terminal further sends a current network rate to the TCP acceleration server, so that the TCP acceleration server adjusts the sending rate of the pre-acknowledgement packet according to the current network rate, where the current network rate and the sending rate have a positive correlation, that is, when the current network rate is lower than a rate threshold, the TCP acceleration server reduces the sending rate of the pre-acknowledgement packet, and when the current network rate is higher than the rate threshold, the TCP acceleration server increases (or maintains) the sending rate of the pre-acknowledgement packet.
In the embodiment, the pre-confirmation mechanism of the TCP acceleration server is used for improving the slow start process between the server and the terminal, so that the data transmission rate is accelerated, and the effect of optimizing the network is achieved; meanwhile, the TCP acceleration server dynamically adjusts the sending rate according to the network state of the WiFi environment where the terminal is located, so that network congestion is avoided.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 9, a block diagram of a WiFi network access device provided by one embodiment of the present application is shown. The device has the functions of executing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The apparatus may include:
the identification module 910 is configured to identify whether a speed limit function is started by a target WiFi network when the target WiFi network is accessed, where the speed limit function is used to limit an access speed of a terminal after the terminal accesses the target WiFi network;
a determining module 920, configured to determine, when the target WiFi network starts the speed limit function, a speed limit manner adopted by the target WiFi network, where the speed limit manner includes at least one of an internet protocol IP segment speed limit, a media access control MAC address speed limit, a port speed limit, and a protocol speed limit;
and the access module 930 is configured to perform network access according to the acceleration policy corresponding to the speed limit manner.
Optionally, the identifying module 910 includes:
the speed limit inquiry device comprises a sending unit, a speed limit inquiry unit and a speed limit identification unit, wherein the speed limit inquiry request comprises an identification of the target WiFi network, the server stores a corresponding relation between the WiFi network and a speed limit identification position, and the speed limit identification position is used for representing the starting state of the speed limit function;
the receiving unit is used for receiving a query result fed back by the server, and the query result comprises the speed limit identification bit;
and the identification unit is used for identifying whether the target WiFi network starts the speed limit function or not according to the value of the speed limit identification bit if the value of the speed limit identification bit is not empty.
Optionally, the apparatus further comprises:
the speed measuring module is used for carrying out a downloading speed test to obtain a downloading speed if the value of the speed limit identification bit is null;
the first reporting module is used for reporting test data to the server, wherein the test data comprises the downloading speed, the identifier of the WiFi network and a test timestamp, and the server is used for establishing a corresponding relation between the WiFi network and the speed limit identifier according to the test data reported by each terminal.
Optionally, for the same WiFi network, the test data reported by each terminal includes a first download speed and a first test timestamp reported by a first terminal, a second download speed and a second test timestamp reported by a second terminal, a third download speed and a third test timestamp reported by the first terminal, and a fourth download speed and a fourth test timestamp reported by the second terminal, where a time difference between the first test timestamp and the second test timestamp is greater than a time threshold, and a time difference between the third test timestamp and the fourth test timestamp is less than the time threshold;
when the speed limit function is started by the WiFi network, the first downloading speed, the second downloading speed, the third downloading speed and the fourth downloading speed accord with a preset relation;
when the speed limit function is not started by the WiFi network, the first downloading speed, the second downloading speed, the third downloading speed and the fourth downloading speed do not accord with the preset relationship;
the preset relationship is that a speed difference value between a first downloading speed and the second downloading speed is smaller than a speed threshold, a speed difference value between a third downloading speed and a fourth downloading speed is smaller than the speed threshold, and a speed difference value between the sum of the third downloading speed and the fourth downloading speed and the first downloading speed is larger than the speed threshold.
Optionally, the apparatus further comprises:
and the second reporting module is used for reporting associated data to the server, wherein the associated data comprises at least one of an IP address, an MAC address, a packet loss rate and application information, and the server is used for determining the speed limit mode adopted by the WiFi network according to the associated data reported by each terminal.
Optionally, the accessing module 930 includes:
the first access unit is used for setting a static IP address belonging to a non-speed-limiting IP section and then performing network access when the speed-limiting mode is the IP section speed limit, wherein the non-speed-limiting IP section is generated by a server according to the associated data reported after each terminal performs a download speed test;
and/or the presence of a gas in the gas,
the second access unit is used for modifying the MAC address and then carrying out network access when the speed limiting mode is the MAC address speed limit;
and/or the presence of a gas in the gas,
the third access unit is used for modifying the port number in the network request and performing network access when the speed limiting mode is the port speed limiting;
and/or the presence of a gas in the gas,
and the fourth access unit is used for forwarding the network request to a proxy server when the speed limit mode is the protocol speed limit, and the proxy server is used for forwarding the network request to a network resource server corresponding to the network request and forwarding data sent by the network resource server.
Optionally, the apparatus further includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a Domain Name System (DNS) request which comprises a target domain name and/or an application identifier of an application program;
the first searching module is used for searching a target IP address corresponding to the target domain name from a local mapping table, wherein the local mapping table comprises a mapping relation between a high-frequency domain name and the IP address and/or a mapping relation between a high-frequency application and the IP address, the access frequency of the high-frequency domain name is greater than a first frequency threshold, and the frequency of the DNS request sent by the high-frequency application is greater than a second frequency threshold;
a second searching module, configured to search the local cache for the target IP address corresponding to the target domain name if the target IP address corresponding to the target domain name does not exist in the local mapping table.
Optionally, the apparatus further includes:
a first sending module, configured to send a DNS server query request to a server if the target IP address corresponding to the target domain name does not exist in the local cache, where the DNS server query request includes an identifier of the target WiFi network, and the server stores a correspondence between the WiFi network and the DNS server;
a second sending module, configured to send the DNS request to a target DNS server if a query result fed back by the server includes an address of the target DNS server;
a first receiving module, configured to receive the target IP address sent by the target DNS server.
Optionally, the apparatus further comprises:
the test module is used for carrying out delay test on at least two candidate DNS servers in parallel if the query result fed back by the server does not contain the address of the target DNS server;
a server determination module for determining the candidate DNS server with the lowest delay as the target DNS server;
and the third reporting module is used for reporting the identifier of the target WiFi network and the address of the target DNS server to the server, and the server is used for storing the corresponding relation between the target WiFi network and the target DNS server.
Optionally, the apparatus further includes:
a third sending module, configured to send a data acquisition request to a TCP acceleration server, where the TCP acceleration server is configured to forward the data acquisition request to a network resource server;
the second receiving module is used for receiving data sent by the TCP acceleration server, the data are sent to the TCP acceleration server by the network resource server, the TCP acceleration server is further used for sending a pre-confirmation packet to the network resource server after receiving the data in the slow start stage, and the network resource server is used for increasing a sending window after receiving the pre-confirmation packet.
Optionally, the apparatus further comprises:
and the fourth sending module is used for sending the current network rate to the TCP acceleration server, and the TCP acceleration server is used for adjusting the sending rate of the pre-acknowledgement packet according to the current network rate, wherein the current network rate and the sending rate are in positive correlation.
In summary, in this embodiment, when accessing the WiFi network, by identifying whether the current WiFi network starts the speed limit function, and when the current WiFi network starts the speed limit function, further determining the speed limit mode adopted by the current WiFi network, the network access is performed based on the acceleration policy corresponding to the speed limit mode; because the speed limit of an IP section, the speed limit of an MAC address, the speed limit of a port or the speed limit of a protocol can be avoided by adopting the acceleration strategy, the bandwidth which can be used when the terminal accesses the Internet is not limited by the speed limit strategy of the WiFi network, and the Internet access speed of the terminal is further improved.
In the embodiment, the terminal performs a download speed test after accessing the WiFi network, reports test data to the server, analyzes the speed limit function starting condition of each WiFi network according to a large amount of test data reported by the terminal by the server, and sets a corresponding speed limit identification bit; after subsequently receiving query requests sent by other terminals, the server quickly feeds back the speed limit function starting condition of the terminal accessed to the WiFi network according to the speed limit identification position, and the efficiency of detecting the speed limit function is improved.
Further, after the terminal completes the download speed test, the associated data containing the IP address, the MAC address, the packet loss rate and the application information are reported to the server, and the server determines the speed limiting mode adopted by the WiFi network according to the associated data, so that the subsequent terminal can avoid the speed limit by adopting a corresponding acceleration strategy.
In this embodiment, the terminal performs domain name resolution by using the local mapping table and the local cache, and avoids interaction between the terminal and the DNS server, thereby improving the rate of domain name resolution.
Further, when the target IP address is not stored in the local mapping table and the local cache, the terminal directly obtains the address of the optimal DNS server in the target WiFi network environment from the server, so that the success rate and the efficiency of subsequent domain name resolution are improved.
Further, when the server does not store the optimal DNS server in the target WiFi network environment, the target DNS server with the lowest delay is screened out from the candidate DNS servers, so that DNS pollution is avoided, and the success rate of subsequent domain name resolution is improved.
In the embodiment, the pre-confirmation mechanism of the TCP acceleration server is used for improving the slow start process between the server and the terminal, so that the data transmission rate is accelerated, and the effect of optimizing the network is achieved; meanwhile, the TCP acceleration server dynamically adjusts the sending rate according to the network state of the WiFi environment where the terminal is located, so that network congestion is avoided.
Fig. 10 shows a block diagram of a terminal 1000 according to an exemplary embodiment of the present invention. The terminal 1000 can be a portable mobile terminal such as: smart phones, tablet computers, MP3 players (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4). Terminal 1000 can also be referred to as user equipment, portable terminal, or by other names.
In general, terminal 1000 can include: a processor 1001 and a memory 1002.
Processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1001 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 1001 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 1001 may further include an AI (Artificial Intelligence) processor for processing a computing operation related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1002 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 memory 1002 is used to store at least one instruction for execution by processor 1001 to implement a video encoding method provided herein.
In some embodiments, terminal 1000 can also optionally include: a peripheral interface 1003 and at least one peripheral. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1004, touch screen display 1005, camera 1006, audio circuitry 1007, positioning components 1008, and power supply 1009.
The peripheral interface 1003 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1001 and the memory 1002. In some embodiments, processor 1001, memory 1002, and peripheral interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral interface 1003 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 1004 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1004 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 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 1004 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1004 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The touch display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. The touch display screen 1005 also has the ability to capture touch signals on or over the surface of the touch display screen 1005. The touch signal may be input to the processor 1001 as a control signal for processing. The touch display screen 1005 is used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, touch display 1005 can be one, providing a front panel of terminal 1000; in other embodiments, touch display 1005 can be at least two, respectively disposed on different surfaces of terminal 1000 or in a folded design; in still other embodiments, touch display 1005 can be a flexible display disposed on a curved surface or on a folded surface of terminal 1000. Even more, the touch display screen 1005 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The touch Display screen 1005 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 1006 is used to capture images or video. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Generally, a front camera is used for realizing video call or self-shooting, and a rear camera is used for realizing shooting of pictures or videos. In some embodiments, the number of the rear cameras is at least two, and each of the rear cameras is any one of a main camera, a depth-of-field camera and a wide-angle 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 a panoramic shooting function and a VR (Virtual Reality) shooting function. In some embodiments, camera assembly 1006 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.
Audio circuit 1007 is used to provide an audio interface between a user and terminal 1000. The audio circuit 1007 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 to the processor 1001 for processing or inputting the electric signals to the radio frequency circuit 1004 for realizing voice communication. For stereo sound collection or noise reduction purposes, multiple microphones can be provided, each at a different location of terminal 1000. 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 1001 or the radio frequency circuit 1004 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 circuit 1007 may also include a headphone jack.
A Location component 1008 is employed to locate a current geographic Location of terminal 1000 for purposes of navigation or LBS (Location Based Service). The Positioning component 1008 can be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 1009 is used to supply power to various components in terminal 1000. The power source 1009 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When the power source 1009 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1000 can also include one or more sensors 1010. The one or more sensors 1010 include, but are not limited to: acceleration sensor 1011, gyro sensor 1012, pressure sensor 1013, fingerprint sensor 1014, optical sensor 1015, and proximity sensor 1016.
Acceleration sensor 1011 can detect acceleration magnitudes on three coordinate axes of a coordinate system established with terminal 1000. For example, the acceleration sensor 1011 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1001 may control the touch display screen 1005 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1012 may detect a body direction and a rotation angle of the terminal 1000, and the gyro sensor 1012 and the acceleration sensor 1011 may cooperate to acquire a 3D motion of the user on the terminal 1000. From the data collected by the gyro sensor 1012, the processor 1001 may implement the following functions: 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.
Pressure sensor 1013 may be disposed on a side frame of terminal 1000 and/or on a lower layer of touch display 1005. When pressure sensor 1013 is provided on a side frame of terminal 1000, a user's grip signal on terminal 1000 can be detected, and right-left hand recognition or shortcut operation can be performed based on the grip signal. When the pressure sensor 1013 is disposed at a lower layer of the touch display screen 1005, it is possible to control the operability control on the UI interface according to the pressure operation of the user on the touch display screen 1005. 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 1014 is used for collecting a fingerprint of a user to identify the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1001 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying, and changing settings, etc. Fingerprint sensor 1014 can be disposed on the front, back, or side of terminal 1000. When a physical key or vendor Logo is provided on terminal 1000, fingerprint sensor 1014 can be integrated with the physical key or vendor Logo.
The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 may control the display brightness of the touch display screen 1005 according to the intensity of the ambient light collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is turned down. In another embodiment, the processor 1001 may also dynamically adjust the shooting parameters of the camera assembly 1006 according to the intensity of the ambient light collected by the optical sensor 1015.
Proximity sensor 1016, also known as a distance sensor, is typically disposed on a front face of terminal 1000. Proximity sensor 1016 is used to gather the distance between the user and the front face of terminal 1000. In one embodiment, when proximity sensor 1016 detects that the distance between the user and the front surface of terminal 1000 gradually decreases, processor 1001 controls touch display 1005 to switch from a bright screen state to a dark screen state; when proximity sensor 1016 detects that the distance between the user and the front of terminal 1000 is gradually increased, touch display screen 1005 is controlled by processor 1001 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in FIG. 10 is not intended to be limiting and that terminal 1000 can include more or fewer components than shown, or some components can be combined, or a different arrangement of components can be employed.
The embodiments of the present application further provide a video encoding apparatus, which includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the WiFi network access method provided in the above embodiments.
The embodiments of the present application further provide a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the WiFi network access method provided in the above embodiments.
Optionally, the computer-readable storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a Solid State Drive (SSD), or an optical disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.

Claims (12)

1. A wireless fidelity (WiFi) network access method, comprising:
when a terminal accesses a target WiFi network, sending a speed limit query request to a server, wherein the speed limit query request comprises a mark of the target WiFi network, the server stores a corresponding relation between the WiFi network and a speed limit mark position, the speed limit mark position is used for representing the starting state of a speed limit function, the speed limit function is used for limiting the access speed of the terminal after the terminal accesses the target WiFi network, the server is used for establishing the corresponding relation between the WiFi network and the speed limit mark position according to test data reported by each terminal, for the same WiFi network, the test data reported by each terminal comprises a first download speed and a first test timestamp reported by a first terminal, a second download speed and a second test timestamp reported by a second terminal, and a third download speed and a third test timestamp reported by the first terminal, a fourth download speed and a fourth test timestamp reported by the second terminal, wherein a time difference between the first test timestamp and the second test timestamp is greater than a time threshold, a time difference between the third test timestamp and the fourth test timestamp is less than the time threshold, when the speed limit function is started by the WiFi network, the first download speed, the second download speed, the third download speed and the fourth download speed conform to a preset relationship, when the speed limit function is not started by the WiFi network, the first download speed, the second download speed, the third download speed and the fourth download speed do not conform to the preset relationship, the preset relationship is that a speed difference between the first download speed and the second download speed is less than a speed threshold, and a speed difference between the third download speed and the fourth download speed is less than the speed threshold, and the speed difference value between the sum of the third downloading speed and the fourth downloading speed and the first downloading speed is greater than the speed threshold;
receiving a query result fed back by the server, wherein the query result comprises the speed limit identification bit;
if the value of the speed limit identification bit is not empty, identifying whether the target WiFi network starts the speed limit function or not according to the value of the speed limit identification bit;
if the target WiFi network starts the speed limit function, the terminal determines a speed limit mode adopted by the target WiFi network, wherein the speed limit mode comprises at least one of Internet protocol IP section speed limit, Media Access Control (MAC) address speed limit, port speed limit and protocol speed limit;
and the terminal accesses the network according to the acceleration strategy corresponding to the speed limit mode.
2. The method of claim 1, wherein after receiving the query result fed back by the server, the method further comprises:
if the value of the speed limit identification bit is null, carrying out a downloading speed test to obtain a downloading speed;
and reporting test data to the server, wherein the test data comprises the downloading speed, the identification of the WiFi network and a test timestamp.
3. The method according to claim 2, wherein if the value of the speed limit flag bit is null, performing a download speed test, and after obtaining the download speed, the method further comprises:
and reporting associated data to the server, wherein the associated data comprises at least one of an IP address, an MAC address, a packet loss rate and application information, and the server is used for determining the speed limit mode adopted by the WiFi network according to the associated data reported by each terminal.
4. The method according to any one of claims 1 to 3, wherein the performing network access according to the acceleration policy corresponding to the speed limit manner includes:
when the speed limiting mode is the IP section speed limiting, setting a static IP address belonging to a non-speed-limiting IP section and then performing network access, wherein the non-speed-limiting IP section is generated by a server according to the associated data reported after each terminal performs a download speed test;
and/or the presence of a gas in the gas,
when the speed limiting mode is the MAC address speed limiting, network access is carried out after the MAC address is modified;
and/or the presence of a gas in the gas,
when the speed limiting mode is the port speed limiting, modifying the port number in the network request and carrying out network access;
and/or the presence of a gas in the gas,
and when the speed limit mode is the protocol speed limit, forwarding the network request to a proxy server, wherein the proxy server is used for forwarding the network request to a network resource server corresponding to the network request and forwarding data sent by the network resource server.
5. The method of claim 1, further comprising:
acquiring a Domain Name System (DNS) request, wherein the DNS request comprises a target domain name and/or an application identifier of an application program to which the DNS request belongs;
searching a target IP address corresponding to the target domain name from a local mapping table, wherein the local mapping table comprises a mapping relation between a high-frequency domain name and the IP address and/or a mapping relation between a high-frequency application and the IP address, the access frequency of the high-frequency domain name is greater than a first frequency threshold, and the frequency of the DNS request sent by the high-frequency application is greater than a second frequency threshold;
if the target IP address corresponding to the target domain name does not exist in the local mapping table, searching the target IP address corresponding to the target domain name from a local cache.
6. The method according to claim 5, wherein after the searching the target IP address corresponding to the target domain name from the local cache, further comprising:
if the target IP address corresponding to the target domain name does not exist in the local cache, sending a DNS server query request to a server, wherein the DNS server query request comprises an identifier of the target WiFi network, and the server stores the corresponding relation between the WiFi network and the DNS server;
if the query result fed back by the server contains the address of the target DNS server, sending the DNS request to the target DNS server;
and receiving the target IP address sent by the target DNS server.
7. The method of claim 6, wherein after sending the DNS server query request to the server, the method further comprises:
if the query result fed back by the server does not contain the address of the target DNS server, performing delay test on at least two candidate DNS servers in parallel;
determining the candidate DNS server with the lowest delay as the target DNS server;
and reporting the identifier of the target WiFi network and the address of the target DNS server to the server, wherein the server is used for storing the corresponding relation between the target WiFi network and the target DNS server.
8. The method of claim 1, further comprising:
sending a data acquisition request to a Transmission Control Protocol (TCP) acceleration server, wherein the TCP acceleration server is used for forwarding the data acquisition request to a network resource server;
and receiving data sent by the TCP acceleration server, wherein the data is sent to the TCP acceleration server by the network resource server, the TCP acceleration server is also used for sending a pre-confirmation packet to the network resource server after receiving the data in the slow start stage, and the network resource server is used for increasing a sending window after receiving the pre-confirmation packet.
9. The method according to claim 8, wherein after sending the data acquisition request to the TCP acceleration server, the method further comprises:
and sending the current network rate to the TCP acceleration server, wherein the TCP acceleration server is used for adjusting the sending rate of the pre-acknowledgement packet according to the current network rate, and the current network rate and the sending rate are in positive correlation.
10. A WiFi network access apparatus, the apparatus comprising:
the device comprises a sending unit, a receiving unit and an identification module of the identification unit, wherein the sending unit is used for sending a speed limit query request to a server when a target WiFi network is accessed, the speed limit query request comprises an identifier of the target WiFi network, the server stores a corresponding relation between the WiFi network and a speed limit identifier bit, the speed limit identifier bit is used for representing the starting state of a speed limit function, the speed limit function is used for limiting the access speed of a terminal after the terminal is accessed to the target WiFi network, the server is used for establishing the corresponding relation between the WiFi network and the speed limit identifier bit according to test data reported by each terminal, and for the same WiFi network, the test data reported by each terminal comprises a first download speed and a first test timestamp reported by a first terminal and a second download speed and a second test timestamp reported by a second terminal, a third download speed and a third test timestamp reported by the first terminal, a fourth download speed and a fourth test timestamp reported by the second terminal, a time difference between the first test timestamp and the second test timestamp being greater than a time threshold, a time difference between the third test timestamp and the fourth test timestamp being less than the time threshold, when the speed limit function is turned on by the WiFi network, a preset relationship being that a speed difference between the first download speed, the second download speed, the third download speed and the fourth download speed is less than the speed threshold, when the speed limit function is not turned on by the WiFi network, the first download speed, the second download speed, the third download speed and the fourth download speed is not in accordance with the preset relationship, the preset relationship being that a speed difference between the first download speed and the second download speed is less than the speed threshold, the speed difference value between the third downloading speed and the fourth downloading speed is smaller than the speed threshold, and the speed difference value between the sum of the third downloading speed and the fourth downloading speed and the first downloading speed is larger than the speed threshold;
the receiving unit is used for receiving a query result fed back by the server, and the query result comprises the speed limit identification bit;
the identification unit is used for identifying whether the target WiFi network starts the speed limit function or not according to the value of the speed limit identification bit if the value of the speed limit identification bit is not empty;
the determining module is used for determining a speed limiting mode adopted by the target WiFi network when the target WiFi network starts the speed limiting function, wherein the speed limiting mode comprises at least one of internet protocol IP section speed limit, Media Access Control (MAC) address speed limit, port speed limit and protocol speed limit;
and the access module is used for carrying out network access according to the acceleration strategy corresponding to the speed limit mode.
11. A terminal, characterized in that the terminal comprises a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being executed by the processor to implement the WiFi network access method of any of claims 1 to 9.
12. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions that is executable by a processor to implement a WiFi network access method as claimed in any one of claims 1 to 9.
CN201810098203.7A 2018-01-31 2018-01-31 Wireless fidelity WiFi network access method, device and terminal Active CN110099428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810098203.7A CN110099428B (en) 2018-01-31 2018-01-31 Wireless fidelity WiFi network access method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810098203.7A CN110099428B (en) 2018-01-31 2018-01-31 Wireless fidelity WiFi network access method, device and terminal

Publications (2)

Publication Number Publication Date
CN110099428A CN110099428A (en) 2019-08-06
CN110099428B true CN110099428B (en) 2022-03-04

Family

ID=67443249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810098203.7A Active CN110099428B (en) 2018-01-31 2018-01-31 Wireless fidelity WiFi network access method, device and terminal

Country Status (1)

Country Link
CN (1) CN110099428B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836300B (en) * 2020-08-20 2022-02-18 珠海格力电器股份有限公司 Network switching method and communication terminal
CN114422040B (en) * 2020-10-12 2023-10-20 深圳市兆驰数码科技股份有限公司 WIFI test system and method
CN114338817B (en) * 2021-12-22 2023-11-10 中国人民银行清算总中心 Multi-plane network access control method and multi-plane network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104009928A (en) * 2014-05-26 2014-08-27 深圳市共进电子股份有限公司 Method and device for limiting speed of data flow
CN104580192A (en) * 2014-12-31 2015-04-29 网宿科技股份有限公司 Processing method and device for network access requests of application program
CN105681489A (en) * 2016-03-02 2016-06-15 北京网康科技有限公司 Method and apparatus for DNS query of domain name system
CN106254398A (en) * 2016-11-01 2016-12-21 西安瀚炬网络科技有限公司 A kind of Wi Fi network system and information-pushing method thereof
CN106792892A (en) * 2016-11-23 2017-05-31 北京小米移动软件有限公司 The access control method and device of application program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8560604B2 (en) * 2009-10-08 2013-10-15 Hola Networks Ltd. System and method for providing faster and more efficient data communication

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104009928A (en) * 2014-05-26 2014-08-27 深圳市共进电子股份有限公司 Method and device for limiting speed of data flow
CN104580192A (en) * 2014-12-31 2015-04-29 网宿科技股份有限公司 Processing method and device for network access requests of application program
CN105681489A (en) * 2016-03-02 2016-06-15 北京网康科技有限公司 Method and apparatus for DNS query of domain name system
CN106254398A (en) * 2016-11-01 2016-12-21 西安瀚炬网络科技有限公司 A kind of Wi Fi network system and information-pushing method thereof
CN106792892A (en) * 2016-11-23 2017-05-31 北京小米移动软件有限公司 The access control method and device of application program

Also Published As

Publication number Publication date
CN110099428A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
TWI658433B (en) Method and device of image blurring, computer reading storage medium and computer equipment
CN111225042B (en) Data transmission method and device, computer equipment and storage medium
WO2019091486A1 (en) Photographing processing method and device, terminal, and storage medium
WO2018219170A1 (en) Focusing control method, computer device and computer readable storage medium
CN111355774B (en) Service communication method, device and system based on P2P
CN111913679A (en) Method, device, equipment and storage medium for establishing wireless screen projection connection
CN110099428B (en) Wireless fidelity WiFi network access method, device and terminal
CN108377157B (en) Control method and device of Wi-Fi antenna
CN107862217B (en) Position information acquisition method, mobile terminal and computer storage medium
CN110392375B (en) WiFi network channel modification method, terminal, server and storage medium
JP6862564B2 (en) Methods, devices and non-volatile computer-readable media for image composition
CN111315038B (en) Data transmission method and device, electronic equipment and storage medium
CN110636144A (en) Data downloading method and device
CN113069760A (en) Resource allocation method, device, computing equipment and computer readable storage medium
CN112398685B (en) Host equipment acceleration method, device, equipment and medium based on mobile terminal
CN112910722B (en) Network request testing method, device, terminal and storage medium
CN112839326A (en) Network switching method, device, storage medium and gateway equipment
CN111694521B (en) Method, device and system for storing file
CN112015508B (en) Screen-throwing interaction control method, equipment and computer-readable storage medium
CN109951341B (en) Content acquisition method, device, terminal and storage medium
CN112260845B (en) Method and device for accelerating data transmission
CN106879046B (en) Network scanning method and terminal equipment
CN114584628B (en) Request processing method, device, server and storage medium
CN112235231B (en) Method, device and storage medium for determining forbidden IP address of network accelerator
CN116996441A (en) Flow control method, device, computer equipment and storage medium

Legal Events

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