Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme of the present invention is clearly and completely described.Obviously, each following embodiment is the embodiment of a part of the present invention.Based on each following embodiment of the present invention, those of ordinary skills are even without making creative work, also can be by the even whole technical characterictic of equivalent transformation part, and obtain, can solve the technology of the present invention problem, realize other embodiment of the technology of the present invention effect, and these conversion and each embodiment of coming does not obviously depart from scope disclosed in this invention.
The Organization Chart that the terminal interconnection network that Fig. 1 shows one embodiment of the invention to be provided is used, as shown in Figure 1, it is upper whether AP is connected to Internet, determined the ability whether terminal can surf the Net.In embodiments of the present invention, AP is connected on internet always.
Particularly, AP powers on and accesses the AC (access controller in Internet, Access Controller) in process, AP can arrange agreement (Dynamic Host Configuration Protocol is called for short DHCP) mode by DynamicHost and to dns server, obtain the IP address of AP.
Thus, terminal by unencrypted mode or the mode by authentication access AP, the IP address that AP is used to terminal distribution accesses network.But, in the prior art, after the IP address that terminal acquisition AP is used to the accesses network of its distribution, might not obtain the ability of access Internet.For instance, as shown in Figure 2, terminal is searched the AP that can connect, after connecting AP and obtaining IP address, terminal sends the request of the IP address that obtains dns server to dns server, dns server can return to terminal the IP address of dns server according to request.The situation that also may occur is, after terminal sends repeatedly request, do not receive the IP address of the dns server that dns server returns at all.Therefore, if terminal gets the IP address of dns server, think that terminal has the ability that can access Internet, otherwise terminal do not have the ability of access Internet.
Further, as shown in Figure 3, Fig. 3 shows the scene graph of the Wifi internet and 3G network integration that one embodiment of the invention provides, and the net environment covering at the 3G shown in Fig. 3 and Wifi, carries out unified certification and access Packet Service (PS business).
Particularly, terminal can be the mobile phone with bottom operation software, or, the notebook computer that comprises data card etc.
Terminal can be accessed existing business during from WLAN (Wireless Local Area Networks, be called for short WLAN) core network access, as mobile data services, Internet and business data application.
Certainly, seamless roam between 3G and WLAN, can comprise: terminal is selected 3G and WLAN automatically, user's identification (Subscriber Identity Module, be called for short SIM) card or global user identification (Universal Subscriber Identity Module, be called for short USIM) card automatic right-discriminating, do not need manual input username and password, as adopted PPP Extensible Authentication Protocol (Extensible Authentication Protocol, be called for short EAP) or card and key agreement (authentication and KEY agreement, abbreviation AKA) authentication mode.
Further, terminal is by the authentication of EAP/AKA, and the mode of access Internet can be as shown in Figure 4, and Fig. 4 shows the scene graph of terminal access Internet network.Fig. 4 provides the Wifi network authentication mode of a kind of EAP/AKA, and this authentication mode has been removed the step that user inputs username and password in terminal from.
Conventionally, terminal access Internet network, can divide three phases, first stage: access WLAN authentication and authorization, based on EAP-SIM/AKA, by AC/3GPP AAA, to attaching position register (Home Location Register is called for short HLR), authenticate; Second stage: access Packet Service (Packet Service is called for short PS) core net authentication and authorization: based on EAP-SIM/AKA, authenticate to HLR by PDG/3GPP AAA; Phase III: after authentication success, subscriber equipment (User Equipment, be called for short UE) and grouped data webmaster (Packet Data Gateway, abbreviation PDG) will set up IPsec (Internet Protocol Security) tunnel, can access PS business.And then terminal can be accessed Internet network.
In embodiments of the present invention, terminal searching is after Wifi access point, can send network access capacity request to Wifi access point, so that Wifi access point determines that to the dns server of network side can Wifi access point accesses network according to network access capacity request, if domain name system server determines that Wifi access point can accesses network, Wifi access point receives that domain name system server returns can accesses network successful respond, realize terminal and can there is the ability of accessing Internet after connecting Wifi access point.
As shown in Figure 5, Fig. 5 shows the schematic flow sheet of the wireless network access method that one embodiment of the invention provides.Wireless network access method in the present embodiment as mentioned below.
501, the network access capacity request that Wifi access point receiving terminal sends, and to the dns server of network side, determine whether Wifi access point can accesses network according to network access capacity request.
Be understandable that, terminal is after search AP, as shown in Figure 6A, in the interface of the application program of terminal, show each AP of search, now, the network access capacity request that each AP all can receiving terminal sends, and then to the dns server of network side, determine whether Wifi access point can accesses network according to network access capacity request.
For example, whether the IP address that Wifi access point is inquired about current dns server to dns server is effective, needs the IP address of ping dns server.
If 502 dns servers determine that Wifi access point can accesses network, Wifi access point receives that dns server returns can accesses network successful respond.
In actual applications, if dns server determines that Wifi access point can accesses network, Wifi access point can receive in default duration that dns server returns can accesses network successful respond.
Certainly, if Wifi access point does not receive that dns server returns can accesses network successful respond, or, if Wifi access point receive that dns server returns cannot accesses network failure response, can be regarded as terminal and on connecting, after AP, do not there is the ability of accesses network.
Further, if Wifi access point in default duration, do not receive that dns server returns can accesses network successful respond, also can be regarded as terminal and on connecting, after AP, do not there is the ability of accesses network.
For instance, if dns server determines that the IP address of current dns server is effective, described Wifi access point receives the successful respond that comprises IP address that dns server sends; Namely, Wifi access point can be connected to dns server by the IP address of ping dns server, and now, terminal can have the ability of accesses network on connecting after AP.
It should be noted that, aforesaid default duration can be that user configures in AP, and it arranges according to actual needs, as 3s, 2s etc.
503, Wifi access point according to successful respond to terminal send can accesses network response message.
Namely, Wifi access point according to successful respond to terminal send can accesses network response message, when response message comprises the IP address of dns server so that terminal after access Wifi access point according to response message accesses network.
As shown in Figure 6B, each AP that can make terminal possess the ability of accesses network that now shows search in the interface of the application program of terminal has an automatic acquisition to the icon (as the circle dash area in Fig. 6 B) of Internet access ability, in order to terminal direct accesses network after accessing Wifi access point to be described.
In actual applications, in the shown essential information of the Wifi of terminal searching access point, can comprise: the SSID of Wifi access point, enciphered message, automatic acquisition is to the contents such as icon of Internet access ability.
From above-described embodiment, the wireless network access method of the present embodiment, by terminal, to Wifi access point, send network access capacity request, so that Wifi access point determines that to the dns server of network side Wifi access point whether can accesses network according to network access capacity request, if dns server determines that Wifi access point can accesses network, Wifi access point receives that dns server returns can accesses network successful respond, and then according to successful respond to terminal send can accesses network response message, so that terminal is after access Wifi access point, the ability with access internet, improved the serviceability of terminal.
Further, the network access capacity request that aforesaid Wifi access point receiving terminal sends, can comprise the sign of terminal, now before the step 502 of above-described embodiment in this network access request, wireless network access method also can comprise following step 501a, as shown in Figure 7.
501a, Wifi access point determine that according to the sign of terminal the SIM card of terminal has obtained the authentication of network side communication network element.
For instance, the sign of terminal can be the international mobile subscriber identity of terminal (International Mobile Subscriber Identification Number is called for short IMSI).
In addition, network side communication network element is as access controller (Access Controller, abbreviation AC), Broadband Remote Access Server (Broadband Remote Access Server, abbreviation BRAS), portal server (Portal Server), checking, authorization and accounting server (Authentication, Authorization, Accounting are called for short aaa server) etc. can be realized the SIM card authentication to terminal alternately.
Network side communication network element in the present embodiment is existing authentication mode to the SIM card authentication mode of terminal, the as above brief description of the Wifi network authentication mode of a kind of EAP/AKA that Fig. 4 provides, and the present embodiment is no longer to its detailed description.
It should be noted that, if above-mentioned network side communication network element does not pass through the SIM card authentication of terminal, Wifi access point no longer determines to dns server whether this Wifi access point can accesses network according to network access capacity request.
Preferably, terminal in practical application is when search Wifi access point, between terminal and Wifi access point, can carry out one group of socket mutual, to realize terminal, be connected to this Wifi access point, thus, aforesaid network access capacity request is carried in the socket of existing terminal transmission, so that Wifi access point determines that to the dns server of network side Wifi access point whether can accesses network according to network access capacity request, thereby judge terminal, after this Wifi access point of access, whether there is the ability of accessing internet.The form that has exemplified one group of socket in Fig. 6 C, this socket can comprise: the negotiation data information of protocol version information, terminal and AP, the sign of terminal, the information whether length information of data and/or data encrypt etc.Fig. 6 C is only for exemplifying explanation, and the form of the socket in reality can arrange according to actual needs.
Above-mentioned wireless network access method, can, so that terminal can have the ability of accesses network after access AP, improve the serviceability of terminal.
As shown in Figure 8, Fig. 8 shows the schematic flow sheet of the wireless network access method that one embodiment of the invention provides.Wireless network access method in the present embodiment as mentioned below.
801, the network access capacity request that Wifi access point receiving terminal sends.
Whether the IP address that 802, Wifi access point is inquired about current dns server to dns server is effective.
If 803 dns servers determine that the I P address of current dns server is effective, Wifi access point receives the successful respond that comprises IP address that dns server sends.
804, according to the successful respond that comprises IP address, to terminal, send the response message of the IP address that comprises dns server.
Further, as shown in Figure 9 A, above-mentioned wireless network access method also comprises, following step 805.
If 805 again receive the network access capacity request that terminal sends in Preset Time, directly to terminal, send response message.
The response message at this place determined this Wifi access point of network access capacity request that to be Wifi access point send according to a front terminal can accesses network message.
That is to say, in the network access request of receiving terminal transmission and after terminal sends response message, if again receive the network access request of terminal in Preset Time (as 1 minute), directly to terminal, send the response message of the IP address that comprises the dns server that the last time obtains.
Preset Time in this step configures in advance for user in AP, and it arranges according to actual needs, as 5s, 10s etc.
Preferably, in another embodiment, as shown in Figure 9 B, above-mentioned wireless network access method also comprises, following step 806.
806, Wifi access point receiving terminal send for connecting the connection request of Wifi access point, and the sign of using while being terminal distribution terminal access network according to connection request.
The sign of using when for instance, Wifi access point is terminal distribution terminal access network according to connection request in this step can be the IP address of terminal.
From above-described embodiment, the wireless network access method of the present embodiment, by terminal, to Wifi access point, send network access capacity request, so that Wifi access point is inquired about the valid ip address of current dns server, and then the IP address of the dns server inquiring is sent to terminal, make terminal after Wifi access point, there is the ability of access internet on connecting, realize fast network access, and the object of fast access network.
As shown in figure 10, Figure 10 shows the schematic flow sheet of the wireless network access method that one embodiment of the invention provides.Wireless network access method in the present embodiment as mentioned below.
1001, terminal sends network access capacity request to Wifi access point.
1002, terminal receives the response message that Wifi access point sends according to network access capacity request, response message be Wifi access point according to network access capacity request to the dns server of network side determine Wifi access point can accesses network after to this terminal transmission can accesses network response message.
Whether the IP address that the network access capacity request that for instance, Wifi access point sends according to terminal is inquired about current dns server to dns server is effective;
And then when dns server determines that the IP address of current dns server is effective, Wifi access point receives the successful respond that comprises IP address that dns server sends; And to terminal, send the response message of the IP address that comprises dns server according to the successful respond that comprises the IP address of dns server.
Response message in this step comprises: the IP address of dns server.
Further, above-mentioned wireless network access method also comprises following not shown step 1003 and step 1004.
1003, terminal sends for connecting the connection request of Wifi access point to Wifi access point.
The sign of using when 1004, terminal receives this terminal access network that Wifi access point is terminal distribution according to connection request.
The sign of using while it should be noted that the terminal access network at this place can be IP address.
Certainly, in actual applications, above-mentioned wireless network access method also comprises following not shown step 1005.
If again send network access capacity request to Wifi access point in 1005 Preset Times, receive the response message that Wifi access point sends, response message is the message that determined this Wifi access point of network access capacity request of sending according to a front terminal of described Wifi access point can accesses network.
From above-described embodiment, the wireless network access method of the present embodiment, sends network access capacity request by terminal to Wifi access point, makes terminal after access Wifi access point, has the ability of access internet.
According to a further aspect in the invention, the present invention also provides a kind of Wifi access point, and as shown in figure 11, the Wifi access point in the present embodiment comprises: receiving element 1101, determining unit 1102 and transmitting element 1103;
Wherein, the network access capacity request that receiving element 1101 sends for receiving terminal;
Determining unit 1102 is for determining that to network side domain name system server Wifi access point whether can accesses network according to network access capacity request;
Receiving element 1101 also when determining that in determining unit 1102 Wifi access point can accesses network, receive that dns server returns can accesses network successful respond;
Transmitting element 1103 for according to successful respond to terminal send can accesses network response message.
Preferably, above-mentioned determining unit 1102 is also for determining that according to the sign of terminal the SIM card of terminal has obtained the authentication of network side communication network element.
In actual applications, whether determining unit 1102 is effective specifically for inquire about the Internet protocol address of current dns server to dns server;
Correspondingly, when receiving element 1101 is effective specifically for the IP address at determining unit 1102 definite current dns servers, receive the successful respond that comprises IP address that dns server sends;
Correspondingly, transmitting element 1103 is specifically for sending the response message of the IP address that comprises dns server according to the successful respond that comprises the IP address of dns server to terminal.
In other embodiments, receiving element 1101 also for receiving terminal, send for connecting the connection request of Wifi access point;
Correspondingly, described Wifi access point also comprises: allocation units, the sign of using when being terminal distribution terminal access network according to connection request, IP address of being used as terminal etc.
From above-described embodiment, the Wifi access point of the present embodiment, the network access capacity request sending by receiving element receiving terminal, and then determining unit determines that to network side domain name system server Wifi access point whether can accesses network according to network access capacity request, make that receiving element determines in determining unit that Wifi access point receives in the time of can accesses network that dns server returns can accesses network successful respond, and by transmitting element to terminal send can accesses network response message, make terminal on connecting after Wifi access point, the ability directly with access internet.
According to a further aspect in the invention, the present invention also provides a kind of terminal, and as shown in figure 12, the terminal in the present embodiment, comprising: transmitting element 1201, receiving element 1202;
Wherein, transmitting element 1201 is for sending network access capacity request to Wifi access point;
The response message that receiving element 1202 sends according to described network access capacity request for receiving described Wifi access point, response message be Wifi access point according to described network access capacity request to the domain name system server of network side determine Wifi access point can accesses network after to this terminal transmission can accesses network response message.
For instance, aforesaid network access capacity request comprises: the negotiation data information of protocol version information, terminal and AP, the sign of terminal, the information whether length information of data and/or data encrypt.
Further, above-mentioned transmitting element 1201 is also for sending to Wifi access point for connecting the connection request of Wifi access point; The sign that receiving element 1202 is also used when receiving this terminal access network that Wifi access point is terminal distribution according to connection request.
From above-described embodiment, the terminal of the present embodiment, can be on connecting after Wifi access point, by transmitting element, to Wifi access point, send network access capacity request, and then can receive by receiving element the response message that described Wifi access point sends according to described network access capacity request, and then terminal can have the ability of access internet on connecting after Wifi access point.
As shown in figure 13, Figure 13 shows the structural representation of the terminal that one embodiment of the invention provides.
The present embodiment terminal includes Wifi module, and the structure of this terminal can be divided into 3 layers, is respectively from the bottom to top operating system layer, service/driving layer, application layer.
Operating system layer: for realizing the cross-platform compatibility of terminal, and the driver element of each operating system Wifi module possibility disunity, as the transmitting-receiving of operating system message there are differences.The adaptation layer (operating system as shown in FIG. (Operating System, be called for short OS) adaptation) that in actual applications, a cross operating system can be set realizes the application of different terminals.
Service/drive layer: the program in this level all operates in this service and drives in layer, avoids unwarranted consumer process or service access even to destroy kernel process, improves security of system.This one deck comprises: system kernel, third party's adaptation, file system, device drives loading and management, network management and service etc.3 subdivisions of this layer of most critical, are respectively the driving of SD master controller, hardware interface layer, network function layer from the bottom to top.
SD master controller drives: be responsible for hardware to carry out abstract and encapsulation, complete on the one hand the initial work of hardware, Yao Xiang upper strata is the use that SD bus export interface provides transfer of data on the other hand.
Hardware interface layer: be the bridge of the driving of SD master controller and network function layer, and change along with the variation of interface mode.This one deck need to be focused on the communication efficiency of contacted levels.
Network function layer: be responsible for providing network function, as the initialization of module, the transmitting-receiving of data and reception etc., to upper-layer protocol stack export interface.
Application layer: great majority are in consumer process in application layer, also can be called user model layer, and user can use colourful application program.
It should be noted that, aforesaid operating system layer, service/driving layer are essentially identical with the structure of existing terminal, the present embodiment can increase the demonstration information of AP in the Wifi of application layer AP list shows, shows the contents such as icon of the access ability whether with access Internet as increased.
In the present embodiment, the above-mentioned terminal of only using exemplifies explanation.In other embodiments; comprise that arbitrary client of Wifi module also can realize the method for above-mentioned wireless network access; the present embodiment does not limit it, by comprising that method or wireless network access method that the client of Wifi module realizes the access of above-mentioned wireless network all belong to the scope that the present invention protects.
One of ordinary skill in the art will appreciate that: all or part of step that realizes above-mentioned each embodiment of the method can complete by the relevant hardware of program command.Aforesaid program can be stored in a computer read/write memory medium.This program, when carrying out, is carried out the step that comprises above-mentioned each embodiment of the method; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.