Abstract:
A method of location positioning of a Radio Access Point (AP) is provided in an embodiment of the present invention. The method includes: querying the Connectivity Session Location and Repository Function (CLF) according to the IP address of the AP to obtain the Access Line Location Identifier (ALLI) of the AP to access a network. The ALLI is configured to identify the line location of the AP. The location of the AP is determined on the basis of the ALLI. A method of location verification of an AP is provided herein in an embodiment of the present invention. The method includes: the CLF is queried according to the IP address of the AP to obtain the ALLI of the AP; the location of the AP is not changed if the obtained ALLI of the AP is the same as the stored ALLI of the AP. A home register and a system are also provided herein to accurately locate and verify the location of the AP, thus checking the validity of the AP location.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
       [0001]    This application claims priority to Chinese Patent Application No. 200810216125.2, filed on Sep. 8, 2008, which are hereby incorporated by reference in its entirety. 
       FIELD OF THE INVENTION 
       [0002]    The present disclosure relates to a mobile telecommunication technology field, and in particular, to a method of location positioning and verification of an AP, a system, and a home register. 
       BACKGROUND 
       [0003]    Femtocell is an AP that is promoted for homes and small-and-medium-sized enterprises to fast solve the indoor coverage problem. Usually, Femtocell is also called 3G AP, or home BTS. In the Universal Mobile Telecommunications System (UMTS), Femtocell is called Home Node-B (HNB). In the 3rd Generation Partnership Project (3GPP) during Long Term Evolution (LTE), Femtocell is called Home eNode-B (HeNB). In general, Femtocell is a low-cost and low-power AP that implements the communication between an IP network and a mobile network over existing wideband circuits or a specific secure gateway remotely. 
         [0004]    In a traditional BTS covering a large area, network nodes are often planned and deployed by operators. Therefore, the time, place, and configuration of a BTS to connect to the network are known to the current radio network. To connect a BTS to the network, the relevant access parameters are configured on the basis of network planning data. No special control mechanism is required. 
         [0005]    The Femtocell features small and light, and can be installed easily and directly in users&#39; homes or small and medium-sized enterprises. In the process of implementing the embodiment of the present invention, the inventor, however, discovers that the technology at least has the following disadvantages: A user can move the Femtocell to another location freely. However, the Femtocell device is generally provided by operators as network service providers to the user for free. The user enjoys only the right to use the device, which is still owned by the operators. The operators need to control the location where the subscriber uses the device, and do not want the user to move the device freely without the authorization of operators. Therefore, the location of the Femtocell must be authorized to ensure the validity of the location when relevant services are provided. 
       SUMMARY 
       [0006]    Embodiments of the present disclosure provide a method of location positioning and location verification of an AP, a system, and a home register, to accurately locate and verify the location of the AP, thus checking the validity of the AP location. 
         [0007]    A method of location positioning of an AP is provided in the present invention. The method includes: 
         [0008]    Querying, a Connectivity Session Location and Repository Function, CLF, according to an IP address of the AP to obtain an access Line Location Identifier, ALLI of the AP; and 
         [0009]    determining a location of the AP based on the ALLI. 
         [0010]    A method of location verification of an AP is also provided in the present invention. The method includes: 
         [0011]    querying, according to an IP address of the AP, a Connectivity Session Location and Repository Function, CLF to obtain an access Line Location Identifier, ALLI of the AP; and 
         [0012]    determining that the location of the AP is not changed if the obtained ALLI of the AP is the same as a stored ALLI of the AP. 
         [0013]    A method of location verification of an AP is also provided in the present invention. The method includes: 
         [0014]    receiving a message carrying an IP address of the AP which is located in the coverage of a macro cell and the location information of the macro cell; 
         [0015]    querying, according to the IP address of the AP, a Connectivity Session Location and Repository Function, CLF to obtain an access Line Location Identifier, ALLI of the AP; and 
         [0016]    determining, that the location of the AP is not changed if the obtained ALLI of the AP is the same with the stored ALLI of the AP, and the received location information of the macro cell is the same with the stored location information of the macro cell. 
         [0017]    An AP Home Register (AHR) is also provided in the present invention to verify the location of the AP. The home register includes: 
         [0018]    a querying module, configured to query, according to an IP address of the AP, a Connectivity Session Location and Repository Function, CLF to obtain an access Line Location Identifier, ALLI of the AP; and 
         [0019]    a location positioning module, configured to: determine the location of the AP based on the ALLI. 
         [0020]    An AHR is also provided in the present invention. The home register includes: 
         [0021]    a querying module, configured to query, according to an IP address of the AP, a Connectivity Session Location and Repository Function, CLF to obtain an access Line Location Identifier, ALLI of the AP; 
         [0022]    a determining module, configured to determine whether the obtained ALLI of the AP is the same as a stored ALLI of the AP; and 
         [0023]    a sending module, configured to send the result that the location of the AP is not changed, to the AP if the determining module determines that the obtained ALLI is the same as the stored ALLI. 
         [0024]    An AHR is also provided in the present invention. The home register includes: 
         [0025]    a receiving module, configured to receive a message carrying an IP address of the AP which is located in the coverage of a macro cell, and location information of the macro cell: 
         [0026]    a querying module, configured to query, according to the IP address of the AP, a Connectivity Session Location and Repository Function, CLF to obtain an access Line Location Identifier, ALLI of the AP; 
         [0027]    a determining module, configured to determine whether the obtained ALLI of the AP is the same as the stored ALLI of the AP, and whether the location information of the macro cell is the same as the stored location information of the macro cell; and 
         [0028]    a sending module, configured to return the result that the location of the AP is not changed, to the AP if the determining module determines that the obtained ALLI is the same as the stored ALLI and the received location information is the same as the stored location information. 
         [0029]    A location verification system is provided in the present invention. The system includes an AP, a network communication device, a Security Gateway (SeGW), an Access Gateway (AG), an AHR, and a CLF. the AP is connected communicatively to the SeGW through the network communication device, the SeGW is connected communicatively to the AHR through the AG, The AHR is connected communicatively to the CLF. The AHR is configured to query, according to an IP address of the AP, the CLF to obtain an access Line Location Identifier, ALLI of the AP, and determine a location of the AP based on the ALLI. 
         [0030]    A location verification system is provided in the present invention. The location verification system includes an AP, a network communication device, a SeGW, an AG, an AHR, and a CLF. the AP is connected communicatively to the SeGW through the network communication device, the SeGW is connected communicatively to the AHR through the AG, The AHR is connected communicatively to the CLF. The ARH is configured to query, according to an IP address of the AP, the CLF to obtain an access Line Location Identifier, ALLI of the AP, and determine whether the obtained ALLI of the AP is the same as a stored ALLI of the AP, and return the result that the location of the AP is not changed, to the AP if the obtained ALLI of the AP is the same as a stored ALLI of the AP. 
         [0031]    A location verification system is provided in the present invention. The system includes an AP, a network communication device, a SeGW, an AG, an AHR, and a CLF. the AP is connected communicatively to the SeGW through the network communication device, the SeGW is connected communicatively to the AHR through the AG, The AHR is connected communicatively to the CLF. The ARH is configured to query, according to an IP address carried in a received message, the CLF to obtain an access Line Location Identifier, ALLI of the AP which is located in the coverage of a macro cell, and determine whether the obtained ALLI of the AP is the same as the stored ALLI of the AP, and the location information of the macro cell carried in the received message is the same as stored location information of the macro cell, and return the result that the location of the AP is not changed, to the AP if the obtained ALLI of the AP is the same as the stored ALLI of the AP, and the received location information of the macro cell is the same as the stored location information of the macro cell. 
         [0032]    The preceding location positioning and verification methods, the system, and the server are configured to bind the AP with the ALLI of the AP to access the network and store the ALLI. Because the ALLI remains unchanged, the location of the AP to access the Internet can be located by obtaining the ALLI. In addition, the location of the AP can be verified accurately by determining whether the ALLI related to the IP address of the public network of the AP is the same as the stored ALLI of the AP, thus checking the validity of the AP location. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0033]    To explicitly explain the embodiment of the present invention or the solution by using the existing technology, the figures in this embodiment or the existing technical descriptions are described as follows. Obviously, the following figures illustrate embodiments of the present invention, based on which other figures can be obtained by those skilled in the art without creative work. 
           [0034]      FIG. 1  is a flowchart of a location positioning method of an AP provided in an embodiment of the present invention; 
           [0035]      FIG. 2  is a general flowchart of a location verification method of an AP provided in embodiment 1 of the present invention; 
           [0036]      FIG. 3  is a flowchart of a specific application in the first scenario in the general flowchart shown in  FIG. 2 ; 
           [0037]      FIG. 4  is a flowchart of a specific application in the second scenario in the general flowchart shown in  FIG. 2 ; 
           [0038]      FIG. 5  is a flowchart of a specific application in the third scenario in the general flowchart shown in  FIG. 2 ; 
           [0039]      FIGS. 6A-6C  are a general flowchart of a location verification method of an AP provided in embodiment 2 of the present invention; 
           [0040]      FIGS. 7A-7B  are a flowchart of a specific application in the first scenario in the general flowchart shown in  FIGS. 6A-6C ; 
           [0041]      FIGS. 8A-8B  are a flowchart of a specific application in the second scenario in the general flowchart shown in  FIGS. 6A-6C ; 
           [0042]      FIGS. 9A-9B  are a flowchart of a specific application in the third scenario in the general flowchart shown in  FIGS. 6A-6C ; 
           [0043]      FIG. 10  is a schematic diagram of a location positioning and verification system according to an embodiment of the present disclosure; and 
           [0044]      FIG. 11  is a schematic diagram of an AHR according to an embodiment of the present disclosure. 
       
    
    
     DETAILED DESCRIPTION 
       [0045]    The following section explicitly describes the complete technical solution provided in the embodiments of the present invention. Obviously, only parts of the embodiments of the present invention are involved herein. All the other embodiments obtained by those skilled in the art without creative work based on the embodiments of the present invention are protected by the present invention. 
         [0046]      FIG. 1  is a flowchart of a location positioning method of an AP in an embodiment of the present invention. 
         [0047]    The AP is Femtocell in the embodiment of the present invention. 
         [0048]    S 100 : The request message with the IP address of the public network of the AP is received. Two scenarios are covered in the embodiment of the present invention: In the first scenario, a boot flow request message with the IP address of the AP is received; in the second scenario, an access flow request message with the IP address of the AP is received. 
         [0049]    S 101 : The CLF is queried according to the IP address of the AP to obtain an ALLI of the AP to access the Internet. The ALLI is configured to identify the line location of the AP to access the network. In the embodiment of the present invention, the line location of the AP to access the network is identified by a DSLAM port number or a telephone number when the AP is connected to the network. 
         [0050]    S 102 : The location of the AP is determined based on the ALLI. 
         [0051]    A method of location of the AP is provided in the embodiment of the present invention. Because the ALLI keeps unchanged, the location of the AP to access the Internet can be located by obtaining the ALLI. 
         [0052]      FIG. 2  is a general flowchart of the location verification method of an AP provided in embodiment 1 of the present invention. The AP is Femtocell in the embodiment of the present invention. 
         [0053]    S 104 : The IP address of the public network of the AP is obtained. 
         [0054]    S 105 : The CLF is queried according to the IP address of the public network of the AP to obtain the ALLI of the AP to access the Internet. The ALLI is configured to identify the line location of the AP to access the network. In the embodiment of the present invention, the line location of the AP to access the network is identified by a DSLAM port number or a telephone number when the AP is connected to the network. 
         [0055]    S 106 : A determination is made about whether the stored ALLI of the AP exists. In this case, the stored ALLI is the preset stored ALLI of the AP. 
         [0056]    If the stored ALLI is not preset, the process proceeds to S 107 . If the stored ALLI is preset, the process proceeds to S 108  to determine whether the obtained ALLI of the AP to access the Internet is the same as the preset ALLI of the AP. 
         [0057]    If the obtained ALLI is the same as the preset ALLI, the process proceeds to S 110 . Otherwise, the process proceeds to S 120 . 
         [0058]    S 107 : The obtained ALLI of the AP is bound and stored. 
         [0059]    S 110 : The parameters of the AP are configured according to the ALLI and then returned to the AP. 
         [0060]    S 112 : The access authentication is performed according to the IP address of the public network carried by the AP. 
         [0061]    S 114 : The CLF is queried again according to the IP address of the public network carried by the AP to obtain the ALLI of the AP to access the Internet. 
         [0062]    S 116 : A determination is made about whether the obtained ALLI of the AP to access the Internet is the same as the stored ALLI. In this case, the stored ALLI is the stored ALLI in S 107 . 
         [0063]    If the obtained ALLI is the same as the stored ALLI, the process proceeds to S 118 , and a message indicating that the authentication is passed, that is, the location of the AP is not changed, to the AP. Otherwise, the process proceeds to S 120 , and a message indicating that the authentication is not passed, that is, the location of the AP is changed, to the AP. 
         [0064]      FIG. 3  is a flowchart of specific application in the first scenario in the general flowchart shown in  FIG. 2 . In the embodiment of the present invention, the location verification method of the AP is applied to the networking architecture where the AP, a network communication device, a SeGW, an AG, an AHR, and a CLF are contained. The network communication device can be an XDSL modem. 
         [0065]    S 200 : An IPSec tunnel is established upon the negotiation between the SeGW and AP to obtain the IP address of the public network of the AP to access the Internet. In the embodiment of the present invention, an IPSec tunnel is established on the negotiation between the AP and the SeGW over IKEv2 protocol, and the IP address of the public network of the AP to access the Internet through the network communication device over IKEv2 protocol, that is, the SeGW extracts the source IP address from the IP header in the message sent by the AP and then returns the source IP address to the AP. In the embodiment of the present invention, if the network communication device is connected to the Internet in NAT mode, the source IP address is the IP address of the public network of the network communication device. Otherwise, the source IP address is the IP address of the public network of the AP. In the embodiment of the present invention, the SeGW can return the source IP address to the AP in the mode of carrying extendably the IP address in the vendor ID payload or the configuration payload. 
         [0066]    S 202 : The AP sends a boot flow request message with the obtained IP address of the public network to the AG, and then the AG forwards the IP address to the AHR. 
         [0067]    S 203 : The AHR queries the CLF according to the received IP address of the public network to obtain the ALLI of the AP to access the Internet. 
         [0068]    S 204 : A determination is made about whether the ALLI of the AP is stored in the AHR. In this case, the stored ALLI is the preset stored ALLI of the AP. If the ALLI of the AP is not stored in the AHR, the process proceeds to S 206 . If the ALLI is stored in the AHR, the process proceeds to S 205  to determine whether the obtained ALLI of the AP to access the Internet is the same as the stored ALLI, that is, the location is verified. If the obtained ALLI is the same as the stored ALLI, the process proceeds to S 208 . Otherwise, the process proceeds to S 218 , in which the AHR returns the result indicating that the authentication is not passed, that is, the location of the AP is changed, to the AP. Therefore, the AP stops its running. 
         [0069]    S 206 : The AHR binds the obtained ALLI of the AP to access the Internet with information of the AP and stores the ALLI. In the embodiment of the present invention, the AHR can bind the ALLI with information of the AP according to the production serial number or MAC address of the AP. 
         [0070]    S 208 : The AHR sets the parameters of the AP according to the ALLI. In the embodiment of the present invention, the following parameters are included: AP information, IP address of the APM, SGW information, AG information, and the IP address of CLK server. The AP information includes: AP index, maximum number of users, scope of the local SCTP port number of the AP, PLMN indication content, SMS content, user admission policy, user admission list (including the MSISDN and IMSI) in non-all-directional opening mode, whether to report the location information of LCS, latitude and longitude. The SGW information includes whether to build the list of Ipsec and SGW. Each SGW list includes the following information: IP address of SGW, IP network segment address of the core network, length of the IP network segment address mask of the core network, SGW IKE ID. The AG information includes: scope of the local SCTP port number of AG and AG list. 
         [0071]    S 210 : The AHR returns the set parameters to the AP through a boot flow response message. 
         [0072]    S 212 : The AP sends an access flow request message with the IP address of the public network of the AP to the AHR for access authentication. 
         [0073]    S 214 : The AHR queries the CLF again according to the IP address of the public network sent by the AP to obtain the ALLI of the AP to access the Internet. 
         [0074]    S 216 : The AHR determines whether the ALLI, which is obtained from the CLF, of the AP to access the Internet is the same as the stored ALLI of the AP to access the Internet, that is, the location is verified. In this case, the stored ALLI of the AP is the stored ALLI in S 206 . 
         [0075]    S 218 : The AHR returns the authentication result to the AP through an access flow response message, that is, the location of the AP is not changed. In the embodiment of the present invention, if the AHR returns the result indicating that the authentication is passed to the AP, the AP runs continuously. If the AHR returns the result indicating that the authentication is not passed to the AP, that is, the location of the AP is changed, the AP stops its running. 
         [0076]    A method of location verification of the AP is provided in the embodiment of the present invention to bind the AP with the ALLI of the AP to access the Internet and store the ALLI. Because the ALLI keeps unchanged, the location of the AP can be verified accurately by determining whether the ALLI related to the IP address of the public network of the AP is the same as the stored ALLI of the AP, thus checking the validity of the AP location. When the location of the AP is changed, the AP is prohibited to access the network, that is, the authentication is not passed, so that a user is restricted to move the AP freely. 
         [0077]      FIG. 4  is a flowchart of specific application in the second scenario in the general flowchart shown in  FIG. 2 . The difference between  FIG. 4  and  FIG. 3  lies in the method for obtaining the IP address of the public network of the AP. 
         [0078]    S 300 : An IPSec tunnel is established upon the negotiation of the SeGW and the AP. After the SeGW obtains the IP address of the public network of the AP to access the Internet through a network communication device, that is, the SeGW extracts the source IP address from the IP header in the message sent by the AP, the SeGW sends the IP address to the AHR by sending an EAP-SIM or EAP-AKA authentication message. Then, the AHR returns the IP address to the AP. 
         [0079]    S 302  to S 318  are the same as S 202  to S 218  in  FIG. 3 . 
         [0080]      FIG. 5  is a flowchart of specific application in the third scenario in the general flowchart shown in  FIG. 2 . The difference between  FIG. 5 ,  FIG. 4 , and  FIG. 3  lies in the method for obtaining the IP address of the public network of the AP. 
         [0081]    S 400 : An IPSec tunnel is established upon the negotiation of the SeGW and the AP. After the SeGW obtains the IP address of the public network of the AP  1  to access the Internet through the network communication device  2 , that is, the SeGW extracts the source IP address from the IP header in the message sent by the AP, the SeGW sends the IP address to the AHR by sending a DHCP request message for allocating the IP address of the Intranet to the AHR. Then, the AHR returns the IP address to the AP. 
         [0082]    S 402  to S 418  are the same as S 202  to S 218  in  FIG. 3 . 
         [0083]    A method of location verification of the AP is provided in the embodiment of the present invention to bind the AP with the ALLI of the AP to access the Internet and store the ALLI. Because the ALLI keeps unchanged, the location of the AP can be verified accurately by determining whether the ALLI related to the IP address of the public network of the AP is the same as the stored ALLI of the AP, thus checking the validity of the AP location. 
         [0084]      FIGS. 6A-6C  are a general flowchart of the location verification method of an AP provided in embodiment 2 of the present invention. 
         [0085]    S 500 : The IP address of the public network of the AP, which is located in the coverage of a macro cell, is obtained. 
         [0086]    S 502 : The system message of a macro cell is analyzed to obtain the location information of the macro cell. In the embodiment of the present invention, the AP serves as a micro NodeB. Multiple micro NodeBs can be covered in the scope of a macro cell. The location information includes the Public Land Mobile-communication Network identification (PLMN ID) of the macro cell, Local Area Identity (LAI), and cell ID. 
         [0087]    S 503 : The CLF is queried according to the IP address of the public network of the AP to obtain the ALLI of the AP to access the Internet. 
         [0088]    S 504 : A determination is made about whether the stored ALLI of the AP which is located in the coverage of a macro cell and/or the location information of the macro cell exist. In this case, the stored ALLI of the AP is the preset stored ALLI of the AP, and the stored location information of the macro cell is the preset stored location information of the macro cell. 
         [0089]    If neither the stored ALLI of the AP nor the location information of the macro cell exists, the process proceeds to S 506 . 
         [0090]    In the embodiment of the present invention, if both the stored ALLI of the AP which is located in the coverage of a macro cell, and the location information of the macro cell exist, the process proceeds to S 507  to determine whether the stored ALLI of the AP to access the Internet is the same as the stored ALLI of the AP to access the Internet, and to determine whether the location information of the macro cell carried by the AP is the same as the stored location information of the macro cell. If the obtained ALLI is the same as the stored ALLI and the carried location information of the macro cell is the same as the stored location information of the macro cell, the process proceeds to S 509 . If at least one preceding case is different, the process proceeds to S 518 , and a message indicating that the authentication is not passed is returned to the AP. In the embodiment of the present invention, a different case refers to: 
         [0091]    The obtained ALLI is different from the stored ALLI and the carried location information of the macro cell is the same as the stored location information of the macro cell; 
         [0092]    the obtained ALLI is the same as the stored ALLI and the carried location information of the macro cell is different from the stored location information of the macro cell; or 
         [0093]    the obtained ALLI is different from the stored ALLI and the carried location information of the macro cell is different from the stored location information of the macro cell. 
         [0094]    In the embodiment of the present invention, the S 508  is preceded. When the stored ALLI of the AP, which is located in the coverage of a macro cell, exists only, a determination is made about whether the obtained ALLI of the AP to access the Internet is the same as the stored ALLI of the AP to access the Internet. If the obtained ALLI is the same as the stored ALLI, the process proceeds to S 506 . 
         [0095]    Or, in S 508 , when the location information of the macro cell exists only, a determination is made about whether the location information of the macro cell carried by the AP is the same as the stored location information of the macro cell. If the carried location information is the same as the stored location information, the process proceeds to S 506 . If the obtained ALLI is different from the stored ALLI, or the carried location information of the macro cell is different from the stored location information of the macro cell, the process proceeds to S 518 . 
         [0096]    S 506 : The AP is bound with the location information of the macro cell and the obtained ALLI, and the location information and the ALLI are stored. 
         [0097]    S 509 : The parameters of the AP are set according to the ALLI or the location information of the macro cell, and the parameters are returned to the AP. 
         [0098]    S 510 : The access authentication is performed according to the IP address of the public network carried by the AP and the location information of the macro cell. 
         [0099]    S 512 : The CLF is queried again according to the IP address of the public network carried by the AP to obtain the ALLI of the AP to access the Internet. 
         [0100]    S 514 : A determination is made about whether the obtained ALLI of the AP to access the Internet is the same as the stored ALLI of the AP to access the Internet, and whether the location information of the macro cell carried by the AP is the same as the stored location information of the macro cell, that is, the location is verified. 
         [0101]    If the obtained ALLI is the same as the stored ALLI and the carried location information of the macro cell is the same as the stored location information of the macro cell, that is, the location of the AP is not changed, the process proceeds to S 516 , and a message indicating that the authentication is passed is returned to the AP. If at least one preceding case is different, that is, the location of the AP is changed, the process proceeds to S 518 , and a message indicating that the authentication is not passed is returned to the AP. In the embodiment of the present invention, a different case refers to: 
         [0102]    The obtained ALLI is different from the stored ALLI and the carried location information of the macro cell is the same as the stored location information of the macro cell; 
         [0103]    the obtained ALLI is the same as the stored ALLI and the carried location information of the macro cell is different from the stored location information of the macro cell; or 
         [0104]    the obtained ALLI is different from the stored ALLI and the carried location information of the macro cell is different from the stored location information of the macro cell. 
         [0105]      FIGS. 7A-7B  are a flowchart of specific application in the first scenario in the general flowchart shown in  FIGS. 6A-6C . 
         [0106]    In the embodiment of the present invention, same as S 200  in  FIG. 3 , S 600  is proceeded to obtain the IP address of the public network of the AP which is located in the coverage of a macro cell in the same way. 
         [0107]    S 602 : The AP analyzes the system message of the macro cell to obtain the location information of the macro cell. 
         [0108]    S 604 : The AP sends a boot flow request message with the obtained IP address of the public network and the location information of the macro cell to the AG, and then the AG forwards the IP address and location information to the AHR. 
         [0109]    S 605 : The AHR queries the CLF according to the received IP address of the public network to obtain the ALLI of the AP to access the Internet. 
         [0110]    S 606 : A determination is made about whether the stored ALLI of the AP and/or the location information of the macro cell exist. In this case, the stored ALLI of the AP is the preset stored ALLI of the AP, and the stored location information of the macro cell is the preset stored location information of the macro cell. 
         [0111]    If neither the stored ALLI of the AP nor the location information of the macro cell exists, the process proceeds to S 609 . 
         [0112]    In the embodiment of the present invention, if both the stored ALLI of the AP and the location information of the macro cell exist, the process proceeds to S 607  to determine whether the stored ALLI of the AP to access the Internet is the same as the stored ALLI of the AP to access the Internet, and to determine whether the location information of the macro cell carried by the AP is the same as the stored location information of the macro cell. If the obtained ALLI is the same as the stored ALLI and the carried location information of the macro cell is the same as the stored location information of the macro cell, the process proceeds to S 610 . If at least one preceding case is different, the process proceeds to S 622 , and a message indicating that the authentication is not passed is returned to the AP. In the embodiment of the present invention, a different case refers to: 
         [0113]    The obtained ALLI is different from the stored ALLI and the carried location information of the macro cell is the same as the stored location information of the macro cell; 
         [0114]    the obtained ALLI is the same as the stored ALLI and the carried location information of the macro cell is different from the stored location information of the macro cell; or 
         [0115]    the obtained ALLI is different from the stored ALLI and the carried location information of the macro cell is different from the stored location information of the macro cell. 
         [0116]    In the embodiment of the present invention, the S 608  is proceeded. When only the stored ALLI of the AP exists, a determination is made about whether the obtained ALLI of the AP to access the Internet is the same as the stored ALLI of the AP to access the Internet. If the obtained ALLI is the same as the stored ALLI, the process proceeds to S 609 . 
         [0117]    If, in S 608 , only the location information of the macro cell exists, a determination is made about whether the location information of the macro cell carried by the AP is the same as the stored location information of the macro cell. If the carried location information is the same as the stored location information, the process proceeds to S 609 . If the obtained ALLI is different from the stored ALLI, or the carried location information of the macro cell is different from the stored location information of the macro cell, the process proceeds to S 622 . 
         [0118]    S 609 : The AP is bound with the location information of the macro cell and the obtained ALLI, and the location information and the ALLI are stored. 
         [0119]    S 610 : The AHR sets the parameters of the AP according to the ALLI or the location information of the macro cell. 
         [0120]    S 612 : The AHR returns the set parameters to the AP through a boot flow response message. 
         [0121]    S 614 : The AP obtains the location information of the macro cell. 
         [0122]    S 616 : The AP sends an access flow request message with the IP address of the public network of the AP which is located in the coverage of a macro cell, and the location information of the macro cell to the AHR for access authentication. 
         [0123]    S 618 : The AHR queries the CLF according to the IP address of the public network sent by the AP to obtain the ALLI of the AP to access the Internet. 
         [0124]    S 620 : A determination is made about whether the obtained ALLI of the AP to access the Internet is the same as the stored ALLI of the AP to access the Internet, and whether the location information of the macro cell carried by the AP is the same as the stored location information of the macro cell, that is, the location is verified. 
         [0125]    S 622 : The AHR returns the authentication result to the AP through an access flow response message. In the embodiment of the present invention, if the AHR returns the result indicating that the authentication is passed to the AP, that is, the location of the AP is not changed, the AP runs continuously. If the AHR returns the result indicating that the authentication is not passed to the AP, that is, the location of the AP is changed, the AP stops working. 
         [0126]      FIGS. 8A-8B  are a flowchart of specific application in the second scenario in the general flowchart shown in  FIGS. 6A-6C . In the embodiment of the present invention, the difference between  FIGS. 8A-8B  and  FIGS. 7A-7B  lies in the method for obtaining the IP address of the public network of the AP. That is, S 700  in  FIGS. 8A-8B  is the same as S 300  in  FIG. 4 , and S 702  to S 722  in  FIGS. 8A-8B  are the same as S 602  to S 622  in  FIGS. 7A-7B . These steps are not described here. 
         [0127]      FIGS. 9A-9B  are a flowchart of specific application in the third scenario in the general flowchart shown in  FIGS. 6A-6C . In the embodiment of the present invention, the different between  FIGS. 9A-9B  and  FIGS. 8A-8B  lies in the method for obtaining the IP address of the public network of the AP. That is, S 800  in  FIGS. 9A-9B  is the same as S 400  in  FIG. 5 , and S 802  to S 822  in  FIGS. 9A-9B  are the same as S 702  to S 722  in  FIGS. 8A-8B . These steps are not described here. 
         [0128]    A location verification method of the AP which is located in the coverage of a macro cell is provided in the embodiment of the present invention to bind the AP with the location information of the macro cell and the ALLI of the AP to access the Internet and store the ALLI. Because the ALLI keeps unchanged, the location of the AP can be verified accurately by determining whether the ALLI related to the IP address of the public network of the AP is the same as the stored ALLI of the AP and determining whether the obtained location information of the macro cell is the same as the stored location information of the macro cell. The location of the AP can be verified more accurately in the embodiment 2 than in the embodiment 1, thus checking the validity of the AP location. For example, when the IP address of the AP is masqueraded, the IP address cannot be verified correctly in the embodiment 1. Because the location information of the macro cell is not changed, the location information of the AP can be verified more accurately in the embodiment 2 than in embodiment 1 by determining whether the location information of the macro cell obtained by the AP is the same as the stored location information of the macro cell. 
         [0129]      FIG. 10  shows a location positioning and verification system in the embodiment of the present invention. In the embodiment of the present invention, a location positioning and verification system includes AP  1 , network communication device  2 , SeGW  3 , AG  4 , AHR  5 , and CLF  6 . AP  1  is connected to SeGW  3  through the network communication device  2 , SeGW  3  is connected to AHR  5  through AG  4 , and AHR  5  is connected to CLF  6 . In the embodiment of the present invention, SeGW  3  is configured to obtain the source IP address from the IP header in a message sent by AP  1  when an IPSec tunnel is established with AP  1  and return the source IP address to AP  1 . In the embodiment of the present invention, if the network communication device  2  is connected to the Internet in NAT mode, the source IP address is the IP address of the public network of the network communication device  2 . Otherwise, the source IP address is the IP address of the public network of the AP. In the embodiment of the present invention, SeGW  3  can return the source IP address to AP  1  in the mode of carrying extendably the IP address in the vendor ID payload or the configuration payload. 
         [0130]    In other embodiments, after the IP address of the public network of AP  1  to access the Internet through the network communication device  2  is obtained, SeGW  3  is configured to send the IP address of the public network to AHR  5  by sending an EAP-SIM or EAP-AKA authentication message. Then, AHR  5  returns the IP address to AP  1 . 
         [0131]    In other embodiments, after the IP address of the public network of AP  1  to access the Internet through the network communication device  2  is obtained, SeGW  3  is configured to send the IP address of the public network to AHR  5  by sending a DHCP request message for allocating the IP address of the Intranet. Then, AHR  5  returns the IP address to AP  1 . 
         [0132]    AHR  5  is configured to query CLF  6  according to the IP address of the public network of AP  1  to obtain the ALLI related to the IP address, verify the location of AP  1  according to the obtained ALLI and stored ALLI, and return the authentication result to AP  1 . 
         [0133]      FIG. 11  is a schematic diagram of an AHR according to an embodiment of the present disclosure. In the embodiment of the present invention, AHR  5  includes a receiving module  50 , a querying module  51 , a binding module  52 , a storage module  53 , a determining module  54 , a sending module  55 , and a location positing module  56 . In the embodiment of the present invention, the receiving module  50  is configured to receive a boot flow request message with the IP address of the public network of AP  1 , and forward the IP address to the querying module  51 . 
         [0134]    The querying module  51  is configured to query CLF  6  according to the boot flow request message to obtain the ALLI of AP  1  to access the Internet, and send the ALLI to the determining module  54 , binding module  52 , and location positioning module  56 . 
         [0135]    The location positioning module  56  is configured to determine the location of the AP according to the ALLI of the AP to access the Internet. Because the ALLI keeps unchanged, the location of the AP to access the network each time can be located by obtaining the ALLI. 
         [0136]    The determining module  54  is configured to query whether the preset stored ALLI of the AP exists in the storage module  53  through the querying module  51 . If the preset stored ALLI exists, determine whether the ALLI of the AP sent by the querying module  51  is the same as the stored ALLI of the AP preset in the storage module  53 . If the sent ALLI is different from the stored ALLI, that is, the location of the AP is changed, the sending module  55  returns the result indicating that the authentication is not passed to AP  1 . If the sent ALLI is the same as the stored ALLI, the location of the AP is not changed. 
         [0137]    If the determining module  54  determines that no stored ALLI of the AP is preset in the storage module  53  through the querying module  51 , the determining module  54  notifies the binding module  52  of the case for binding the ALLI with AP  1 , and stores the binding information in the storage module  53 . 
         [0138]    The receiving module  50  is configured to receive an access flow request message with the IP address of the public network of AP  1 , and forward the IP address to the querying module  51  for querying the ALLI of the AP related to the IP address. 
         [0139]    The determining module  54  is configured to determine whether the ALLI of the AP to access the Internet sent by the querying module  51  and the stored ALLI of the AP to access the Internet. In the embodiment of the present invention, if the sent ALLI is the same as the stored ALLI, that is, the location of the AP is not changed, the sending module  55  returns the result indicating that the authentication is passed to AP  1 . If the sent ALLI is different from the stored ALLI, that is, the location of the AP is changed, the sending module  55  returns the result indicating that the authentication is not passed to AP  1 . 
         [0140]    A location positioning and verification system and an AHR provided in the embodiment of the present invention are configured to bind the AP with the ALLI of the AP to access the Internet. Because the ALLI keeps unchanged, the location of the AP to access the network can be located each time by obtaining the ALLI of the AP to access the Internet. Moreover, the location of the AP can be verified accurately by determining whether the ALLI related to the IP address of the public network of the AP is the same as the stored ALLI of the AP, thus checking the validity of the AP location. When the location of the AP is changed, the AP is prohibited to access the network, that is, the authentication is not passed, so that a user is restricted to move the AP freely. 
         [0141]    In other embodiments, the receiving module  50  is configured to receive the location information, which is sent by AP  1 , of the macro cell where AP  1  is located. 
         [0142]    The determining module  54  is also configured to determine whether the preset stored location information of the macro cell exists in the storage module  53  through the querying module  51 . In the storage module  53 , if both the stored ALLI of the AP and the location information of the macro cell exist, the determining module  54  determines whether the obtained ALLI of the AP to access the Internet is the same as the stored ALLI of the AP to access the Internet, and determines whether the location information of the macro cell carried by the AP is the same as the stored location information of the macro cell. If at least one preceding case is different, that is, the location of the AP is changed, the sending module  55  returns the result indicating that the authentication is not passed to AP  1 . Otherwise, the location of the AP is not changed. In the embodiment of the present invention, a different case refers to: 
         [0143]    The obtained ALLI is different from the stored ALLI and the carried location information of the macro cell is the same as the stored location information of the macro cell; 
         [0144]    the obtained ALLI is the same as the stored ALLI and the carried location information of the macro cell is different from the stored location information of the macro cell; or 
         [0145]    the obtained ALLI is different from the stored ALLI and the carried location information of the macro cell is different from the stored location information of the macro cell. 
         [0146]    If the determining module  54  determines neither the preset stored ALLI of the AP nor the location information of the macro cell where AP  1  is located exists in the storage module  53  through the querying module  51 , the determining module  54  notifies the binding module  52  of binding AP  1  with the location information of the macro cell where AP  1  is located and the ALLI related to the AP, and the location information and the ALLI are stored in the storage module  53 . 
         [0147]    When only the ALLI of the AP is stored in the storage module  53 , the determining module  54  determines whether the obtained ALLI of the AP to access the Internet is the same as the stored ALLI of the AP to access the Internet through the querying module  51 . If the obtained ALLI is the same as the stored ALLI, the determining module  54  notifies the binding module  52  of binding AP  1  with the location information of the macro cell where AP  1  is located and the ALLI related to the AP, and the location information and the ALLI are stored in the storage module  53 . 
         [0148]    Or, when the location information of the macro cell exists only, the determining module  54  determines whether the location information of the macro cell carried by the AP is the same as the stored location information of the macro cell. If the carried location information is the same as the stored location information, the determining module  54  notifies the binding module  52  of binding AP  1  with the location information of the macro cell where AP  1  is located and the ALLI related to the AP, and the location information and the ALLI are stored in the storage module  53 . 
         [0149]    If the obtained ALLI is different from the stored ALLI, or the carried location information of the macro cell is different from the stored location information of the macro cell, the determining module  54  returns the result indicating that the authentication is not passed to AP  1  through the sending module  55 . 
         [0150]    The receiving module  50  is also configured to receive an access flow request message with the IP address of the public network of AP  1  which is located in the coverage of a macro cell, and the location information of the macro cell, and forward the IP address and location information to the querying module  51  for querying the ALLI of the AP related to the IP address. 
         [0151]    The determining module  54  is also configured to determine whether the ALLI, which is sent by the querying module  51 , of the AP to access the Internet is the same as the stored ALLI of the AP to access the Internet, and whether the location information of the macro cell is the same as the stored location information of the macro cell. In other embodiments, if the sent ALLI is the same as the stored ALLI and the location information is the same as the stored location information, that is, the location of the AP is not changed, the sending module  55  returns the result indicating that the authentication is passed to AP  1 . If at least one preceding case is different, that is, the location of the AP is changed, the sending module  55  returns the result indicating that the authentication is not passed to AP 2 . 
         [0152]    In other embodiments, when the IP address of the AP is masqueraded, the location information of the AP which is located in the coverage of a macro cell, can be verified correctly by determining whether the location information of the macro cell obtained by the AP is the same as the stored location information of the macro cell because the location information of the macro cell keeps unchanged. 
         [0153]    The common technicians in the field can understand and implement all or part procedures of the methods in the preceding embodiment. The methods can be achieved by a computer program through guiding related hardware, and the procedures described can be stored in a computer readable storage medium. Therefore, when the program is implemented, it involves the procedures of methods in the forgoing embodiment. By the way, the described storage medium can be a disk, CD, Read-Only Memory (ROM) or Random Access Memory (RAM). 
         [0154]    At last, note that the preceding embodiment is only configured to describe the technical solutions in the present invention and not configured to limit the technical solutions. Although the present invention is described in detail by referring to good embodiments, the common technicians in the field should understand that technical solutions in the present invention can still be modified or replaced without departing from the spirit and scope of the invention.