CN107071867B - Wireless network access method, Wifi access point and terminal - Google Patents

Wireless network access method, Wifi access point and terminal Download PDF

Info

Publication number
CN107071867B
CN107071867B CN201710182084.9A CN201710182084A CN107071867B CN 107071867 B CN107071867 B CN 107071867B CN 201710182084 A CN201710182084 A CN 201710182084A CN 107071867 B CN107071867 B CN 107071867B
Authority
CN
China
Prior art keywords
access point
network
terminal
wifi access
wifi
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
CN201710182084.9A
Other languages
Chinese (zh)
Other versions
CN107071867A (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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201710182084.9A priority Critical patent/CN107071867B/en
Publication of CN107071867A publication Critical patent/CN107071867A/en
Application granted granted Critical
Publication of CN107071867B publication Critical patent/CN107071867B/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/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Landscapes

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

Abstract

The invention provides a wireless network access method, a Wifi access point and a terminal, wherein the method comprises the following steps: the method comprises the steps that a Wifi access point receives a network access capacity request sent by a terminal, and determines whether the Wifi access point can access a network or not to a domain name system server on a network side according to the network access capacity request; if the domain name system server determines that the Wifi access point can access the network, the Wifi access point receives a successful response which is returned by the domain name system server and can access the network; and the Wifi access point sends a response message capable of accessing the network to the terminal according to the successful response. The method can enable the terminal to have the capability of accessing the network after being connected with the Wifi access point.

Description

Wireless network access method, Wifi access point and terminal
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a wireless network access method, a Wifi access point and a terminal.
Background
With the popularization of Wifi access points, users increasingly use terminals with Wifi functions, such as mobile devices, Personal Computers (PCs), portable devices, and the like. The basic information displayed by the Wifi access point searched in the current popular terminal includes: the name of the Wifi access point is, for example, a Service Set Identifier (SSID), encryption information, and the like. The user selects a Wifi access point to be pre-connected for use, and connects the Wifi access point through a Wifi module of the terminal to access the internet (internet).
Currently, a terminal connected to a Wifi Access Point, such as an Access Point (AP for short), determines whether the terminal has a capability of accessing a network, if the Wifi Access Point is connected to the internet.
In the prior art, the security mode of connecting a terminal to a Wifi access point such as an AP is divided into: and authenticating an encryption mode and a non-encryption mode. If the AP sets an encryption mode, the terminal must perform authentication verification, and the terminal may have the capability of accessing the internet only after the verification is passed. Further, based on the Wifi wireless protocol, if the terminal wants to obtain the capability of accessing the Internet, the terminal accesses the AP in an unencrypted manner or in an authenticated manner.
After the terminal accesses the AP, if it is determined whether the terminal is connected to the Internet, the terminal needs to acquire an Internet Protocol (IP) address of a public Domain Name System (DNS) server, and further needs to ping an IP address of the public DNS server.
The above-mentioned capability of the terminal to access the Internet (i.e. connect to the Internet) has the following disadvantages: the DNS server does not really play a role of connecting the internet as a domain name resolution server, the DNS server mainly plays a role of domain name resolution, and the DNS server can be a local area network DNS server and a public network DNS server, so that the DNS server connected to the local area network cannot accurately indicate the connection to the internet. Further, merely trying to ping a DNS server address is not sufficient because it is actually judged whether to connect to the Internet. For example, the DNS server's domain name address, while unique, cannot guarantee that it will never be changed and disconnected. Therefore, in the prior art, the situation that the user is connected to the AP but cannot access the network often occurs, which causes troubles to the user.
Disclosure of Invention
In order to solve the problem that the user cannot access the network while being connected to the AP, which seriously affects the use of the user, the embodiment of the present invention provides the following method and apparatus:
the embodiment of the invention provides a wireless network access method, which comprises the following steps:
the method comprises the steps that a Wifi access point receives a network access capacity request sent by a terminal, and determines whether the Wifi access point can access a network or not to a domain name system server on a network side according to the network access capacity request;
if the domain name system server determines that the Wifi access point can access the network, the Wifi access point receives a successful response which is returned by the domain name system server and can access the network;
and the Wifi access point sends a response message capable of accessing the network to the terminal according to the successful response.
The embodiment of the invention provides a wireless network access method, which comprises the following steps:
sending a network access capability request to a Wifi access point;
and receiving a response message sent by the Wifi access point according to the network access capability request, wherein the response message is a response message which is sent by the Wifi access point to a domain name system server at a network side after the Wifi access point determines that the Wifi access point can access the network according to the network access capability request and can access the network and is sent to the terminal.
The embodiment of the invention provides a Wifi access point, which comprises:
a receiving unit, configured to receive a network access capability request sent by a terminal;
the determining unit is used for determining whether the Wifi access point can access the network or not from a domain name system server on the network side according to the network access capacity request;
the receiving unit is further configured to receive a successful response returned by the domain name system server and capable of accessing the network when the determining unit determines that the Wifi access point is capable of accessing the network;
and the sending unit is used for sending a response message capable of accessing the network to the terminal according to the success response.
An embodiment of the present invention provides a terminal, including:
the transmitting unit is used for transmitting a network access capability request to the Wifi access point;
and the receiving unit is used for receiving a response message sent by the Wifi access point according to the network access capability request, wherein the response message is a response message which is sent by the Wifi access point to a domain name system server on a network side after the Wifi access point determines that the Wifi access point can access the network and then the terminal can access the network.
According to the technical scheme, the wireless network access method, the Wifi access point and the terminal of the embodiment of the invention send the network access capacity request to the Wifi access point through the terminal, so that the Wifi access point determines whether the Wifi access point can access the network to the DNS server on the network side according to the network access capacity request, if the DNS server determines that the Wifi access point can access the network, the Wifi access point receives a successful response which is returned by the DNS server and can access the network, and then sends a response message which can access the network to the terminal according to the successful response, so that the terminal has the capacity of accessing the internet after accessing the Wifi access point, and the service performance of the terminal is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings needed to be used in the examples, obviously: the following drawings are only drawings of some embodiments of the invention, and for those skilled in the art, other drawings capable of realizing the technical scheme of the invention can be obtained according to the drawings without creative efforts.
Fig. 1 is an architecture diagram used by a terminal connection network according to an embodiment of the present invention;
fig. 2 is a signaling diagram of a conventional terminal connected to a network through an AP;
fig. 3 is a scene diagram of convergence of a Wifi network and a 3G network according to an embodiment of the present invention;
fig. 4 is a diagram illustrating a scenario that a terminal accesses a network according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a wireless network access method according to an embodiment of the present invention;
fig. 6A and fig. 6B are scene diagrams of Wifi access points searched by a terminal according to an embodiment of the present invention;
fig. 6C is a schematic structural diagram of a data packet according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating a wireless network access method according to another embodiment of the present invention;
fig. 8 is a flowchart illustrating a wireless network access method according to another embodiment of the present invention;
fig. 9A and 9B are schematic flow diagrams of a wireless network access method according to another embodiment of the present invention;
fig. 10 is a flowchart illustrating a wireless network access method according to another embodiment of the present invention;
fig. 11 is a schematic structural diagram of a Wifi access point according to another embodiment of the present invention;
fig. 12 is a schematic structural diagram of a terminal according to another embodiment of the present invention;
fig. 13 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is clear that the various embodiments described below are only some of the embodiments of the invention. Based on the embodiments of the present invention described below, even if no creative work is done, a person skilled in the art can obtain other embodiments capable of solving the technical problems of the present invention and achieving the technical effects of the present invention by equivalent transformation of part or even all of the technical features, and it is obvious that the various embodiments transformed by the present invention do not depart from the scope of the present invention.
Fig. 1 shows an architecture diagram used by a terminal to connect to a network according to an embodiment of the present invention, and as shown in fig. 1, whether an AP is connected to the Internet determines whether the terminal is capable of accessing the Internet. In the embodiment of the invention, the AP is always connected to the internet.
Specifically, in the process of powering on the AP to Access an AC (Access Controller) in the Internet, the AP may obtain an IP address of the AP from the DNS server in a Dynamic Host Configuration Protocol (DHCP) manner.
Thus, the terminal accesses the AP in an unencrypted manner or already in an authenticated manner, so that the AP assigns to the terminal an IP address used for accessing the network. However, in the conventional technology, after the terminal obtains the IP address used by the access network to which the AP is assigned, the terminal does not necessarily have the capability of accessing the Internet. For example, as shown in fig. 2, the terminal searches for an AP capable of connecting, and after connecting to the AP and obtaining an IP address, the terminal sends a request for obtaining the IP address of the DNS server to the DNS server, and the DNS server may return the IP address of the DNS server to the terminal according to the request. It may also happen that the terminal does not receive the IP address of the DNS server returned by the DNS server at all after sending multiple requests. Therefore, if the terminal acquires the IP address of the DNS server, it is considered that the terminal has the capability of accessing the Internet, otherwise, the terminal does not have the capability of accessing the Internet.
Further, as shown in fig. 3, fig. 3 is a scene diagram illustrating a convergence of a Wifi network and a 3G network according to an embodiment of the present invention, and performs unified authentication and access to a packet service (PS service) in a network environment covered by the 3G and Wifi network shown in fig. 3.
Specifically, the terminal may be a mobile phone with underlying operating software, or a notebook computer or the like containing a data card.
When the terminal accesses a core network from a Wireless L optical Area network (W L AN), the terminal can access existing services, such as mobile data services, Internet and enterprise data applications.
Of course, the seamless roaming between 3G and W L AN may include that the terminal automatically selects 3G and W L AN, automatically authenticates using a Subscriber Identity Module (SIM) card or a Universal Subscriber Identity Module (USIM) card, and does not need to manually input a user name and a password, for example, AN Authentication method using PPP Extended Authentication Protocol (EAP) or Authentication and KEY agreement (EAP).
Further, the terminal may access the Internet through authentication and authentication of EAP/AKA as shown in fig. 4, and fig. 4 shows a scene diagram of the terminal accessing the Internet network. Fig. 4 provides an EAP/AKA Wifi network authentication method that eliminates the step of a user entering a username and password in a terminal.
Generally, a terminal accesses AN Internet network and can be divided into three stages, wherein the first stage comprises accessing W L AN authentication and authorization, namely authentication is carried out on a Home L registration (H L R) through AC/3GPP AAA based on EAP-SIM/AKA, the second stage comprises accessing Packet Service (PS) core network authentication and authorization, authentication is carried out on H L R through PDG/3GPP AAA based on EAP-SIM/AKA, and the third stage comprises establishing AN IPsec Internet Protocol security (IPsec Internet Protocol security) tunnel for accessing PS services after authentication is successful.
In the embodiment of the invention, after the terminal searches the Wifi access point, the terminal can send the network access capacity request to the Wifi access point, so that the Wifi access point can determine whether the Wifi access point can access the network to a DNS server on the network side according to the network access capacity request, and if the domain name system server determines that the Wifi access point can access the network, the Wifi access point receives a successful response which is returned by the domain name system server and can access the network, thereby realizing that the terminal can have the capacity of accessing the Internet after being connected with the Wifi access point.
As shown in fig. 5, fig. 5 is a flowchart illustrating a wireless network access method according to an embodiment of the present invention. The wireless network access method in the present embodiment is as follows.
501. And the Wifi access point receives a network access capability request sent by the terminal, and determines whether the Wifi access point can access the network or not to a DNS (domain name system) server at the network side according to the network access capability request.
It can be understood that, after the terminal searches for the AP, as shown in fig. 6A, each searched AP is displayed in an interface of an application program of the terminal, at this time, each AP may receive a network access capability request sent by the terminal, and then determine whether the Wifi access point can access the network to the DNS server on the network side according to the network access capability request.
For example, the Wifi access point queries the DNS server whether the IP address of the current DNS server is valid, i.e. the IP address of the ping DNS server is needed.
502. And if the DNS server determines that the Wifi access point can access the network, the Wifi access point receives a successful response which is returned by the DNS server and can access the network.
In practical application, if the DNS server determines that the Wifi access point can access the network, the Wifi access point may receive a successful response that is returned by the DNS server and that can access the network within a preset time period.
Of course, if the Wifi access point does not receive a successful response returned by the DNS server to enable network access, or if the Wifi access point receives a failed response returned by the DNS server to disable network access, it may be understood that the terminal does not have the capability of accessing the network after connecting to the AP.
Further, if the Wifi access point does not receive a successful response returned by the DNS server and capable of accessing the network within the preset time length, it can also be understood that the terminal does not have the capability of accessing the network after connecting to the AP.
For example, if the DNS server determines that the IP address of the current DNS server is valid, the Wifi access point receives a successful response including the IP address sent by the DNS server; that is, the Wifi access point can connect to the DNS server by pinging the IP address of the DNS server, and at this time, the terminal may have the capability of accessing the network after connecting to the AP.
It should be noted that the aforementioned preset time period may be configured in the AP by the user, and is set according to actual needs, such as 3s, 2s, and the like.
503. And the Wifi access point sends a response message capable of accessing the network to the terminal according to the successful response.
That is, the Wifi access point transmits a response message capable of accessing the network to the terminal according to the successful response, so that the terminal accesses the network according to the response message after accessing the Wifi access point when the IP address of the DNS server is included in the response message.
As shown in fig. 6B, each AP that is searched and enables the terminal to have the capability of accessing the network may have an icon (e.g., a shaded circle in fig. 6B) for automatically acquiring the Internet access capability, so as to indicate that the terminal can directly access the network after accessing the Wifi access point.
In practical applications, the basic information displayed by the Wifi access point searched by the terminal may include: SSID of the Wifi access point, encryption information, icons which have automatically acquired Internet access capability, and the like.
It can be known from the foregoing embodiment that, in the wireless network access method of this embodiment, the terminal sends the network access capability request to the Wifi access point, so that the Wifi access point determines whether the Wifi access point can access the network to the DNS server on the network side according to the network access capability request, and if the DNS server determines that the Wifi access point can access the network, the Wifi access point receives a successful response that is returned by the DNS server and that can access the network, and then sends a response message that can access the network to the terminal according to the successful response, so that the terminal has the capability of accessing the internet after accessing the Wifi access point, and the use performance of the terminal is improved.
Further, the Wifi access point receives a network access capability request sent by the terminal, where the network access capability request may include an identifier of the terminal, and at this time, before step 502 in the foregoing embodiment, the wireless network access method may further include the following step 501a, as shown in fig. 7.
501a, the Wifi access point determines that the SIM card of the terminal has been authenticated by the network side communication network element according to the identifier of the terminal.
For example, the identifier of the terminal may be an International Mobile Subscriber Identity (IMSI) of the terminal.
In addition, the network side communication network element is as follows: an Access Controller (AC), a Broadband Remote Access Server (BRAS), a Portal Server (Portal Server), an Authentication, Authorization and Accounting Server (AAA Server), etc. may interactively implement Authentication and Authorization of the SIM card of the terminal.
The authentication and authorization method of the network side communication network element to the SIM card of the terminal in this embodiment is an existing authentication method, and as described in fig. 4, a brief description of the Wifi network authentication method of EAP/AKA is provided, and this embodiment does not describe it in detail.
It should be noted that, if the authentication of the network side communication network element for the SIM card of the terminal fails, the Wifi access point no longer determines to the DNS server whether the Wifi access point can access the network according to the network access capability request.
Preferably, when a terminal in practical application searches for a Wifi access point, a group of socket interactions may be performed between the terminal and the Wifi access point to enable the terminal to be connected to the Wifi access point, so that the network access capability request may be carried in a socket sent by an existing terminal, so that the Wifi access point determines whether the Wifi access point can access the network to a DNS server on a network side according to the network access capability request, and thus, whether the terminal has the capability of accessing the internet after accessing the Wifi access point is determined. The format of a set of sockets is illustrated in FIG. 6C, which may include: protocol version information, negotiation data information of the terminal and the AP, identification of the terminal, length information of data, and/or information whether the data is encrypted, and the like. Fig. 6C is only an illustration, and the format of the socket in practice can be set according to actual needs.
The wireless network access method can enable the terminal to have the capability of accessing the network after the terminal is accessed to the AP, so that the use performance of the terminal is improved.
As shown in fig. 8, fig. 8 is a flowchart illustrating a wireless network access method according to an embodiment of the present invention. The wireless network access method in the present embodiment is as follows.
801. And the Wifi access point receives a network access capability request sent by the terminal.
802. And the Wifi access point inquires the DNS about whether the IP address of the current DNS is valid.
803. And if the DNS server determines that the IP address of the current DNS server is valid, the Wifi access point receives a successful response which is sent by the DNS server and comprises the IP address.
804. And sending a response message including the IP address of the DNS server to the terminal according to the successful response including the IP address.
Further, as shown in fig. 9A, the above-mentioned wireless network access method further includes, as follows, step 805.
805. And if the network access capability request sent by the terminal is received again within the preset time, directly sending a response message to the terminal.
The response message is the message that the Wifi access point can access the network, which is determined by the Wifi access point according to the network access capability request sent by the terminal at the previous time.
That is, after receiving a network access request transmitted by a terminal and transmitting a response message to the terminal, if the network access request of the terminal is received again within a preset time (e.g., 1 minute), the response message including the IP address of the DNS server acquired last time is directly transmitted to the terminal.
The preset time in this step is configured in advance in the AP by the user, and is set according to actual needs, such as 5s, 10s, and the like.
Preferably, in another embodiment, as shown in fig. 9B, the above-mentioned wireless network access method further includes, as follows, step 806.
806. And the Wifi access point receives a connection request sent by the terminal and used for connecting the Wifi access point, and allocates an identifier used when the terminal accesses the network for the terminal according to the connection request.
For example, in this step, the identifier used by the Wifi access point to allocate the terminal to access the network according to the connection request may be an IP address of the terminal.
As can be seen from the foregoing embodiments, in the wireless network access method of this embodiment, the terminal sends the network access capability request to the Wifi access point, so that the Wifi access point queries the effective IP address of the current DNS server, and then sends the queried IP address of the DNS server to the terminal, so that the terminal has the capability of accessing the internet after being connected to the Wifi access point, thereby achieving the purpose of accessing the internet quickly and accessing the network quickly.
As shown in fig. 10, fig. 10 is a flowchart illustrating a wireless network access method according to an embodiment of the present invention. The wireless network access method in this embodiment is as follows.
1001. And the terminal sends a network access capability request to the Wifi access point.
1002. And the terminal receives a response message sent by the Wifi access point according to the network access capability request, wherein the response message is a response message which is sent by the Wifi access point to a DNS server at the network side after the Wifi access point determines that the Wifi access point can access the network according to the network access capability request and can access the network.
For example, the Wifi access point queries the DNS server whether the IP address of the current DNS server is valid according to a network access capability request sent by the terminal;
furthermore, when the DNS server determines that the IP address of the current DNS server is valid, the Wifi access point receives a successful response which is sent by the DNS server and comprises the IP address; and transmits a response message including the IP address of the DNS server to the terminal according to the success response including the IP address of the DNS server.
The response message in this step includes: IP address of DNS server.
Further, the wireless network access method further includes steps 1003 and 1004, which are not shown in the following figures.
1003. And the terminal sends a connection request for connecting the Wifi access point to the Wifi access point.
1004. And the terminal receives the identifier which is distributed by the Wifi access point for the terminal according to the connection request and is used when the terminal accesses the network.
It should be noted that the identifier used when the terminal accesses the network here may be an IP address.
Of course, in practical applications, the above-mentioned wireless network access method further includes step 1005, which is not shown in the following figures.
1005. And if the network access capability request is sent to the Wifi access point again within the preset time, receiving a response message sent by the Wifi access point, wherein the response message is a message which is determined by the Wifi access point according to the network access capability request sent by the terminal at the previous time and can access the network by the Wifi access point.
As can be seen from the foregoing embodiments, in the wireless network access method of this embodiment, the terminal sends the network access capability request to the Wifi access point, so that the terminal has the capability of accessing the internet after accessing the Wifi access point.
According to another aspect of the present invention, the present invention further provides a Wifi access point, as shown in fig. 11, the Wifi access point in this embodiment includes: a receiving unit 1101, a determining unit 1102, and a transmitting unit 1103;
the receiving unit 1101 is configured to receive a network access capability request sent by a terminal;
the determining unit 1102 is configured to determine whether the Wifi access point can access the network from the network side domain name system server according to the network access capability request;
the receiving unit 1101 is further configured to receive a successful response returned by the DNS server to enable the access to the network when the determining unit 1102 determines that the Wifi access point can access the network;
the sending unit 1103 is configured to send a response message capable of accessing the network to the terminal according to the success response.
Preferably, the determining unit 1102 is further configured to determine that the SIM card of the terminal has obtained authentication of the network-side communication network element according to the identifier of the terminal.
In practical applications, the determining unit 1102 is specifically configured to query the DNS server whether the internet protocol address of the current DNS server is valid;
correspondingly, the receiving unit 1101 is specifically configured to receive a successful response including an IP address sent by the DNS server when the determining unit 1102 determines that the IP address of the current DNS server is valid;
accordingly, the sending unit 1103 is specifically configured to send a response message including the IP address of the DNS server to the terminal according to the successful response including the IP address of the DNS server.
In other embodiments, the receiving unit 1101 is further configured to receive a connection request sent by the terminal for connecting to a Wifi access point;
correspondingly, the Wifi access point further comprises: and the allocation unit is used for allocating identifiers used when the terminal accesses the network, such as IP addresses used by the terminal, to the terminal according to the connection request.
As can be seen from the foregoing embodiments, in the Wifi access point of this embodiment, the receiving unit receives the network access capability request sent by the terminal, and the determining unit determines whether the Wifi access point can access the network to the network side domain name system server according to the network access capability request, so that the receiving unit receives a successful response that can access the network and is returned by the DNS server when the determining unit determines that the Wifi access point can access the network, and sends a response message that can access the network to the terminal through the sending unit, so that the terminal directly has the capability of accessing the internet after connecting to the Wifi access point.
According to another aspect of the present invention, the present invention further provides a terminal, as shown in fig. 12, the terminal in this embodiment, including: a transmitting unit 1201 and a receiving unit 1202;
the sending unit 1201 is configured to send a network access capability request to the Wifi access point;
the receiving unit 1202 is configured to receive a response message sent by the Wifi access point according to the network access capability request, where the response message is a response message that is sent by the Wifi access point to the terminal after determining that the Wifi access point can access the network according to the network access capability request to a domain name system server on a network side.
For example, the foregoing network access capability request includes: protocol version information, negotiation data information of the terminal and the AP, an identification of the terminal, length information of the data, and/or information whether the data is encrypted.
Further, the sending unit 1201 is further configured to send a connection request for connecting to a Wifi access point to the Wifi access point; the receiving unit 1202 is further configured to receive an identifier, which is allocated by the Wifi access point to the terminal according to the connection request and is used when the terminal accesses the network.
It can be known from the foregoing embodiment that, the terminal of this embodiment can send the network access capability request to the Wifi access point through the sending unit after being connected to the Wifi access point, and then can receive the response message sent by the Wifi access point according to the network access capability request through the receiving unit, and then the terminal can have the capability of accessing the internet after being connected to the Wifi access point.
As shown in fig. 13, fig. 13 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
The terminal comprises a Wifi module, and the structure of the terminal can be divided into 3 layers, namely an operating system layer, a service/drive layer and an application layer from bottom to top.
Operating system layer: the method is used for realizing cross-platform compatibility of the terminal, and the driving units of the Wifi modules of the operating systems may not be uniform, for example, the receiving and sending of messages of the operating systems are different. In practical applications, an adaptation layer (such as an Operating System (OS) adaptation shown in the figure) crossing the Operating systems may be set to implement applications of different terminals.
Service/driver layer: programs in the layer are all operated in the service and drive layer, so that unauthorized user process or service access and even kernel process damage are avoided, and system security is improved. This layer includes system kernel, third party adaptation, file system, device driver loading and management, network management and services, etc. The most critical 3 sub-parts of the layer are respectively an SD main controller driver, a hardware interface layer and a network function layer from bottom to top.
The SD main controller drives: the device is responsible for abstracting and packaging hardware, on one hand, the initialization of the hardware is completed, and on the other hand, the device is used for providing data transmission for an upper layer, namely an SD bus export interface.
Hardware interface layer: the SD main controller is a bridge between the SD main controller and the network function layer and changes along with the change of the interface mode. This layer needs to pay attention to the communication efficiency of the upper and lower layers to be connected.
A network function layer: it is responsible for providing network functions, such as initialization of modules, data receiving and transmitting, and exporting interfaces to the upper layer protocol stack.
An application layer: most of the application layers are in user processes, which can also be called user mode layers, and users can use colorful applications.
It should be noted that the foregoing operating system layer and service/driver layer are basically the same as the structure of the existing terminal, and in the embodiment, in the Wifi AP list display of the application layer, display information of the AP may be added, for example, content such as an icon for displaying whether the access capability of accessing the Internet is provided is added.
In this embodiment, the above description is made by using only the terminal. In other embodiments, any client including the Wifi module can also implement the method for accessing the wireless network, which is not limited in this embodiment, and both the method for implementing the wireless network access through the client including the Wifi module and the method for accessing the wireless network belong to the protection scope of the present invention.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A wireless network access method, comprising:
the method comprises the steps that a Wifi access point receives a network access capacity request sent by a terminal, and inquires whether an internet protocol address of a current domain name system server is valid or not from a domain name system server at a network side according to the network access capacity request; the Wifi access point searches for the Wifi access point for the terminal;
if the domain name system server determines that the Internet protocol address of the current domain name system server is valid, the Wifi access point receives a successful response which is sent by the domain name system server and comprises the Internet protocol address;
and sending a response message comprising the Internet protocol address of the domain name system server to the terminal according to the successful response comprising the Internet protocol address.
2. The method of claim 1, wherein the network access capability request comprises: an identity of the terminal;
correspondingly, before the step of determining whether the Wifi access point can access the network to the domain name system server on the network side according to the network access capability request, the method further includes:
and the Wifi access point determines that the user identity identification card of the terminal has been authenticated by the network side communication network element according to the identification of the terminal.
3. The method of claim 1 or 2, further comprising:
and if the network access capability request sent by the terminal is received again within the preset time, directly sending the response message to the terminal.
4. The method according to any one of claims 1 or 2, further comprising:
and the Wifi access point receives a connection request which is sent by the terminal and is used for connecting the Wifi access point, and allocates an identifier used when the terminal accesses the network to the terminal according to the connection request.
5. A method of wireless network access, comprising:
the terminal sends a network access capability request to the searched Wifi access point;
receiving a response message sent by the Wifi access point according to the network access capability request, wherein the response message is a response message which is sent by the Wifi access point to a domain name system server at a network side after the Wifi access point determines that the Wifi access point can access the network according to the network access capability request and can access the network and is sent to the terminal; the response message includes: an internet protocol address of the domain name system server.
6. The method of claim 5, further comprising:
sending a connection request for connecting the Wifi access point to the Wifi access point;
and receiving an identifier which is distributed by the Wifi access point for the terminal according to the connection request and is used when the terminal accesses the network.
7. The method of claim 5 or 6, further comprising:
and if the network access capability request is sent to the Wifi access point again within the preset time, receiving a response message sent by the Wifi access point, wherein the response message is a message which is determined by the Wifi access point according to the network access capability request sent by the terminal at the previous time and can access the network by the Wifi access point.
8. A Wifi access point, comprising:
a receiving unit, configured to receive a network access capability request sent by a terminal; the Wifi access point searches for the Wifi access point for the terminal;
a determining unit, configured to query, according to the network access capability request, a domain name system server on a network side whether an internet protocol address of a current domain name system server is valid;
the receiving unit is used for receiving a successful response which is sent by the domain name system server and comprises the internet protocol address when the determining unit determines that the internet protocol address of the current domain name system server is effective;
a sending unit, configured to send a response message including the internet protocol address of the domain name system server to the terminal according to the successful response including the internet protocol address.
9. The Wifi access point of claim 8, wherein the network access capability request includes: an identity of the terminal;
accordingly, the determination unit is also used for
And determining that the user identity identification card of the terminal has been authenticated by the network side communication network element according to the identifier of the terminal.
10. The Wifi access point of any of claims 8 to 9, wherein the receiving unit is further configured to use
Receiving a connection request which is sent by the terminal and used for connecting the Wifi access point;
correspondingly, the Wifi access point further comprises:
and the allocation unit is used for allocating the identifier used when the terminal accesses the network to the terminal according to the connection request.
11. A terminal, comprising:
the sending unit is used for sending a network access capability request to the Wifi access point searched by the terminal;
a receiving unit, configured to receive a response message sent by the Wifi access point according to the network access capability request, where the response message is a response message that is sent by the Wifi access point to a domain name system server on a network side after the Wifi access point determines that the Wifi access point can access the network according to the network access capability request and that can access the network, and the response message is sent by the Wifi access point to the terminal; the response message includes: an internet protocol address of the domain name system server.
12. The terminal of claim 11,
the sending unit is also used for sending a connection request for connecting the Wifi access point to the Wifi access point;
the receiving unit is further configured to receive an identifier, which is allocated by the Wifi access point to the terminal according to the connection request and is used when the terminal accesses the network.
CN201710182084.9A 2012-06-30 2012-06-30 Wireless network access method, Wifi access point and terminal Active CN107071867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710182084.9A CN107071867B (en) 2012-06-30 2012-06-30 Wireless network access method, Wifi access point and terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710182084.9A CN107071867B (en) 2012-06-30 2012-06-30 Wireless network access method, Wifi access point and terminal
CN201210222836.7A CN103517377B (en) 2012-06-30 2012-06-30 Wireless network access method, Wifi access point and terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201210222836.7A Division CN103517377B (en) 2012-06-30 2012-06-30 Wireless network access method, Wifi access point and terminal

Publications (2)

Publication Number Publication Date
CN107071867A CN107071867A (en) 2017-08-18
CN107071867B true CN107071867B (en) 2020-07-24

Family

ID=49899194

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201210222836.7A Active CN103517377B (en) 2012-06-30 2012-06-30 Wireless network access method, Wifi access point and terminal
CN201710182084.9A Active CN107071867B (en) 2012-06-30 2012-06-30 Wireless network access method, Wifi access point and terminal

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201210222836.7A Active CN103517377B (en) 2012-06-30 2012-06-30 Wireless network access method, Wifi access point and terminal

Country Status (1)

Country Link
CN (2) CN103517377B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602364B (en) * 2014-12-31 2018-12-25 歌尔股份有限公司 The method and wireless device, intelligent terminal of wireless device connection wireless access point
CN104540136B (en) * 2015-01-30 2018-09-11 中国联合网络通信集团有限公司 A kind of method and system logging in WLAN
CN105828395A (en) * 2015-07-28 2016-08-03 维沃移动通信有限公司 Method and device of WiFi adaptive selection and connection
CN106209970B (en) * 2016-06-17 2018-02-23 上海连尚网络科技有限公司 Determine the method and apparatus of network state connected between user equipment and routing device
CN106714206B (en) * 2016-09-29 2020-06-16 腾讯科技(深圳)有限公司 Method and device for detecting wireless network access point connecting network
CN108712280B (en) * 2018-05-02 2020-12-04 Oppo广东移动通信有限公司 Network function management method and device, storage medium and intelligent terminal
CN109005084B (en) * 2018-08-14 2020-10-02 南京尚网网络科技有限公司 Method, electronic device, and computer-readable medium for verifying network connection
CN109246258A (en) * 2018-10-16 2019-01-18 Oppo广东移动通信有限公司 DNS query method and related product
CN110113744B (en) * 2019-04-18 2020-12-04 杭州涂鸦信息技术有限公司 Communication method, device, equipment and storage medium
MY197008A (en) * 2020-03-06 2023-05-18 Mitsubishi Electric Corp Communication terminal, communication device, communication management device, communication system, network -joining method, and network -joining program
CN111556552B (en) * 2020-03-26 2023-01-31 维沃移动通信有限公司 Data transmission method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060017462A (en) * 2004-08-19 2006-02-23 후지쯔 가부시끼가이샤 Wireless network communication control apparatus and network system
CN101330501A (en) * 2007-06-20 2008-12-24 华为技术有限公司 Method for establishing network connection and apparatus thereof
CN102378303A (en) * 2010-08-26 2012-03-14 中国移动通信有限公司 Method and device for selecting WIFI (Wireless Fidelity) access point to access to network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060017462A (en) * 2004-08-19 2006-02-23 후지쯔 가부시끼가이샤 Wireless network communication control apparatus and network system
CN101330501A (en) * 2007-06-20 2008-12-24 华为技术有限公司 Method for establishing network connection and apparatus thereof
CN102378303A (en) * 2010-08-26 2012-03-14 中国移动通信有限公司 Method and device for selecting WIFI (Wireless Fidelity) access point to access to network

Also Published As

Publication number Publication date
CN103517377B (en) 2017-04-12
CN107071867A (en) 2017-08-18
CN103517377A (en) 2014-01-15

Similar Documents

Publication Publication Date Title
CN107071867B (en) Wireless network access method, Wifi access point and terminal
US9967738B2 (en) Methods and arrangements for enabling data transmission between a mobile device and a static destination address
CN103746812B (en) A kind of access authentication method and system
CN108738013B (en) Network access method, device and network equipment
KR100494558B1 (en) The method and system for performing authentification to obtain access to public wireless LAN
KR101554743B1 (en) Method for automatic connectting of wireless lan between devices and the device therefor
EP2234343B1 (en) Method, device and system for selecting service network
US20100122338A1 (en) Network system, dhcp server device, and dhcp client device
US20100074261A1 (en) Providing access to multiple different services by way of a single network identifier
CN107026813B (en) Access authentication method and system of WiFi network and portal server
CN106851632A (en) A kind of smart machine accesses the method and device of WLAN
CN108738019B (en) User authentication method and device in converged network
EP2712141A1 (en) Method, system and device for authenticating ip phone and negotiating voice field
US20130191906A1 (en) Apparatus and method for supporting portable mobile virtual private network service
WO2017219748A1 (en) Method and device for access permission determination and page access
CN111194035B (en) Network connection method, device and storage medium
CN103916853A (en) Control method for access node in wireless local-area network and communication system
US8312151B2 (en) Communication systems and methods for dynamic and secure simplification of equipment networking
CN103067407B (en) The authentication method and device of accessing user terminal to network
US8010994B2 (en) Apparatus, and associated method, for providing communication access to a communication device at a network access port
CN102238159A (en) Access control method, equipment and system based on point-to-point protocol (PPP)
WO2015100874A1 (en) Home gateway access management method and system
WO2011134134A1 (en) METHOD, DEVICE AND SYSTEM FOR INTERWORKING BETWEEN WiFi NETWORK AND WiMAX NETWORK
WO2011150867A2 (en) Terminal authentication method and apparatus
Liu et al. A Dual-Stack Authentication Mechanism Through SNMP.

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171115

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Applicant after: HUAWEI terminal (Dongguan) Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Applicant before: Huawei Device Co., Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant before: HUAWEI terminal (Dongguan) Co., Ltd.

GR01 Patent grant
GR01 Patent grant