[go: up one dir, main page]

CN103179222B - Method and device for distributing double-stack addresses - Google Patents

Method and device for distributing double-stack addresses Download PDF

Info

Publication number
CN103179222B
CN103179222B CN201110433090.XA CN201110433090A CN103179222B CN 103179222 B CN103179222 B CN 103179222B CN 201110433090 A CN201110433090 A CN 201110433090A CN 103179222 B CN103179222 B CN 103179222B
Authority
CN
China
Prior art keywords
user terminal
ipv4 address
address
ipv4
module
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
CN201110433090.XA
Other languages
Chinese (zh)
Other versions
CN103179222A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201110433090.XA priority Critical patent/CN103179222B/en
Publication of CN103179222A publication Critical patent/CN103179222A/en
Application granted granted Critical
Publication of CN103179222B publication Critical patent/CN103179222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种双栈地址分配方法和设备,该方法包括:接入控制器AC接收用户终端发送的IPv4地址获取请求;所述AC判断所述用户终端是否通过认证;若判断为是,所述AC向所述用户分配IPv4地址;否则,所述AC拒绝向所述用户终端分配IPv4地址。在本发明中,优化了IPv4地址分配机制,节省了IPv4地址消耗。

The present invention discloses a dual-stack address allocation method and equipment, the method comprising: an access controller AC receives an IPv4 address acquisition request sent by a user terminal; the AC judges whether the user terminal has passed the authentication; if it judges yes, The AC allocates an IPv4 address to the user; otherwise, the AC refuses to allocate an IPv4 address to the user terminal. In the present invention, the IPv4 address allocation mechanism is optimized, and the IPv4 address consumption is saved.

Description

一种双栈地址分配方法和设备A dual-stack address allocation method and device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种双栈地址分配方法和设备。The present invention relates to the technical field of communication, in particular to a dual-stack address allocation method and equipment.

背景技术Background technique

在目前基于IPv4(Internet Protocol version 4,互联网协议版本4)的WLAN(Wireless Local Area Network,无线局域网)网络中,用户终端通过DHCP(Dynamic hostconfiguration protocol,动态主机配置协议)协议获得公有IPv4地址,从而获得上网能力。但众所周知的是,IPv4地址目前已经基本耗尽。In the current WLAN (Wireless Local Area Network, wireless local area network) network based on IPv4 (Internet Protocol version 4, Internet Protocol version 4), the user terminal obtains a public IPv4 address through the DHCP (Dynamic host configuration protocol, dynamic host configuration protocol) protocol, thereby Gain Internet access. But it is well known that IPv4 addresses have been basically exhausted at present.

与此同时,WLAN业务正处于快速增长的阶段,未来几年AP(Access Point,接入点)数量将成指数型增长,WLAN业务用户也将成倍增长,需要大量的IP地址。显然,即将耗尽的IPv4地址已无法满足快速增长的需求。因此,WLAN中将不可避免的引入IPv6。At the same time, WLAN services are in a stage of rapid growth. In the next few years, the number of APs (Access Points, Access Points) will increase exponentially, and the number of WLAN service users will also increase exponentially, requiring a large number of IP addresses. Obviously, the IPv4 addresses that are about to be exhausted can no longer meet the rapidly growing demand. Therefore, it is inevitable to introduce IPv6 in WLAN.

随着网络设备的发展,目前的AC(Access Controller,接入控制器)已经基本支持IPv6,为开展IPv6服务提供了基础。但由于WLAN网络中的大量存量内容仍然是基于IPv4的,IPv6很难在短时间内完全取代IPv4在WLAN网络中的应用。因此,WLAN网络需要为用户提供IPv4、IPv6双栈能力。With the development of network equipment, the current AC (Access Controller, Access Controller) has basically supported IPv6, which provides a basis for developing IPv6 services. However, because a large amount of stored content in the WLAN network is still based on IPv4, it is difficult for IPv6 to completely replace the application of IPv4 in the WLAN network in a short period of time. Therefore, the WLAN network needs to provide users with IPv4 and IPv6 dual-stack capabilities.

在现有双栈地址分配技术中,AC接收到用户终端发送的IPv4获取请求和IPv6地址获取请求时,直接向用户终端分配IPv4地址和IPv6地址。In the existing dual-stack address allocation technology, when the AC receives the IPv4 acquisition request and the IPv6 address acquisition request sent by the user terminal, it directly allocates the IPv4 address and the IPv6 address to the user terminal.

在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:

在现有双栈地址分配方式中,用户在认证前就获得了IPv4、IPv6地址,即对于一些没有注册的用户,或没有计划使用该WLAN业务的用户,只要其终端与AP相关联,即可获得IPv4和IPv6地址,加剧了IPv4地址的消耗,导致了地址的浪费。In the existing dual-stack address allocation method, users have obtained IPv4 and IPv6 addresses before authentication, that is, for some unregistered users, or users who do not plan to use the WLAN service, as long as their terminals are associated with the AP, they can Obtaining IPv4 and IPv6 addresses intensifies the consumption of IPv4 addresses, resulting in a waste of addresses.

发明内容Contents of the invention

本发明实施例提供一种双栈地址分配方法和设备,以优化IPv4地址分配机制,节省IPv4地址消耗。Embodiments of the present invention provide a dual-stack address allocation method and equipment to optimize the IPv4 address allocation mechanism and save IPv4 address consumption.

为了达到上述目的,本发明实施例提供一种双栈地址分配方法,包括:In order to achieve the above purpose, an embodiment of the present invention provides a dual-stack address allocation method, including:

AC接收用户终端发送的IPv4地址获取请求;The AC receives the IPv4 address acquisition request sent by the user terminal;

所述AC判断所述用户终端是否通过认证;若判断为是,所述AC向所述用户分配IPv4地址;否则,所述AC拒绝向所述用户终端分配IPv4地址。The AC judges whether the user terminal is authenticated; if it judges yes, the AC allocates an IPv4 address to the user; otherwise, the AC refuses to allocate an IPv4 address to the user terminal.

本发明实施例还提供一种双栈地址分配方法,包括:The embodiment of the present invention also provides a dual-stack address allocation method, including:

若用户终端通过向AC发送IPv4地址获取请求获取地址失败,且接收到自身通过认证的通知消息,所述用户终端再次向所述AC发送IPv4地址获取请求并接收所述AC分配的IPv4地址;其中,所述AC接收到用户终端发送的IPv4地址获取请求后,若判断该用户终端未通过认证,则拒绝向该用户终端分配IPv4地址。If the user terminal fails to obtain an address by sending an IPv4 address acquisition request to the AC, and receives a notification message that it has passed the authentication, the user terminal sends an IPv4 address acquisition request to the AC again and receives the IPv4 address assigned by the AC; After the AC receives the IPv4 address acquisition request sent by the user terminal, if it determines that the user terminal has not passed the authentication, it refuses to assign an IPv4 address to the user terminal.

本发明实施例还提供一种AC,包括:The embodiment of the present invention also provides an AC, including:

接收模块,用于接收用户终端发送的IPv4地址获取请求;A receiving module, configured to receive an IPv4 address acquisition request sent by a user terminal;

判断模块,用于判断所述用户终端是否通过认证;A judging module, configured to judge whether the user terminal has passed the authentication;

地址分配模块,用于当所述判断模块的判断结果为是时,向所述用户终端分配IPv4地址;当所述判断模块的判断结果为否时,拒绝向所述用户终端分配IPv4地址。An address allocation module, configured to allocate an IPv4 address to the user terminal when the determination result of the determination module is yes; and refuse to allocate an IPv4 address to the user terminal when the determination result of the determination module is no.

本发明实施例还提供一种用户终端,包括:The embodiment of the present invention also provides a user terminal, including:

发送模块,用于向接入控制器AC发送IPv4地址获取请求;A sending module, configured to send an IPv4 address acquisition request to the access controller AC;

接收模块,用于接收所述AC分配的IPv4地址;A receiving module, configured to receive the IPv4 address assigned by the AC;

指示模块,用于若所述用户终端通过所述发送模块向所述AC发送IPv4获取请求获取地址失败,且所述接收模块接收到所述用户终端通过认证的通知消息,触发所述发送模块再次向所述AC发送IPv4地址获取请求;其中,所述AC接收到用户终端发送的IPv4地址获取请求后,若判断该用户终端未通过认证,则拒绝向该用户终端分配IPv4地址。An indication module, configured to trigger the sending module to re-acquire if the user terminal fails to obtain an address by sending an IPv4 acquisition request to the AC through the sending module, and the receiving module receives a notification message that the user terminal has passed the authentication Sending an IPv4 address acquisition request to the AC; wherein, after receiving the IPv4 address acquisition request sent by the user terminal, the AC refuses to assign an IPv4 address to the user terminal if it determines that the user terminal has not passed the authentication.

与现有技术相比,本发明至少具有以下优点:Compared with the prior art, the present invention has at least the following advantages:

在本发明实施例中,AC接收到用户终端发送的IPv4地址获取请求之后,通过判断该用户终端是否通过认证确定是否为该用户终端分配IPv4地址,若通过认证则分配IPv4地址,否则,不分配IPv4地址;若用户终端通过向AC发送IPv4地址获取请求获取地址失败,在后续流程中,当用户终端接收到自身通过认证的通知消息时,向AC再次发起IPv4地址获取请求,并接收AC分配的IPv4地址,优化了IPv4地址分配机制,节省了IPv4地址消耗。In the embodiment of the present invention, after the AC receives the IPv4 address acquisition request sent by the user terminal, it determines whether to assign an IPv4 address to the user terminal by judging whether the user terminal has passed the authentication. IPv4 address; if the user terminal fails to obtain the address by sending an IPv4 address acquisition request to the AC, in the subsequent process, when the user terminal receives the notification message that it has passed the authentication, it will initiate an IPv4 address acquisition request to the AC again, and receive the address assigned by the AC. IPv4 address, optimized IPv4 address allocation mechanism, saving IPv4 address consumption.

附图说明Description of drawings

图1为本发明实施例提供的双栈地址分配方法的流程示意图;FIG. 1 is a schematic flow diagram of a dual-stack address allocation method provided by an embodiment of the present invention;

图2为本发明实施例提供的一种具体应用场景下的双栈地址分配方法的流程示意图;FIG. 2 is a schematic flow diagram of a dual-stack address allocation method in a specific application scenario provided by an embodiment of the present invention;

图3为本发明实施例提供的AC的结构示意图;FIG. 3 is a schematic structural diagram of an AC provided by an embodiment of the present invention;

图4为本发明实施例提供的用户终端的结构示意图。FIG. 4 is a schematic structural diagram of a user terminal provided by an embodiment of the present invention.

具体实施方式detailed description

针对上述现有技术中存在的问题,本发明实施例提供一种双栈地址分配的技术方案,应用于双栈用户终端的地址分配流程,当AC接收到用户终端发送的IPv4地址获取请求(DHCP discover(发现)报文)时,判断该用户终端是否通过认证;若该用户终端通过认证,则向该用户终端分配IPv4地址;否则,拒绝向该用户终端分配IPv4地址。通过该技术方案,可以优化IPv4地址的分配机制,节省IPv4地址消耗。In view of the problems existing in the above-mentioned prior art, the embodiment of the present invention provides a dual-stack address allocation technical solution, which is applied to the address allocation process of a dual-stack user terminal. When the AC receives an IPv4 address acquisition request (DHCP discover (discovery) message), judge whether the user terminal is authenticated; if the user terminal is authenticated, assign an IPv4 address to the user terminal; otherwise, refuse to assign an IPv4 address to the user terminal. Through this technical solution, the allocation mechanism of IPv4 addresses can be optimized, and the consumption of IPv4 addresses can be saved.

下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整的描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Apparently, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in the present application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present application.

如图1所示,为本发明实施例提供的双栈地址分配方法的流程示意图,可以包括以下步骤:As shown in Figure 1, the schematic flow chart of the dual-stack address allocation method provided by the embodiment of the present invention may include the following steps:

步骤101、用户终端向AC发送IPv4地址获取请求。Step 101, the user terminal sends an IPv4 address acquisition request to the AC.

具体的,用户终端和AP关联之后,可以通过DHCP协议向AC发送IPv4地址获取请求(IPv4 discover),以获取IPv4地址。此外,用户终端还可以通过AC获得一个IPv6地址,其获取流程和现有技术中双栈用户终端通过AC获取IPv6地址的流程一样,在此不再赘述。Specifically, after the user terminal is associated with the AP, it may send an IPv4 address acquisition request (IPv4 discover) to the AC through the DHCP protocol, so as to acquire the IPv4 address. In addition, the user terminal can also obtain an IPv6 address through the AC, and the obtaining process is the same as the process in which the dual-stack user terminal obtains the IPv6 address through the AC in the prior art, and will not be repeated here.

步骤102、AC接收到用户终端发送的IPv4地址获取请求之后,判断该用户终端是否已通过认证。若判断为是,则转至步骤103;否则,转至步骤104。Step 102: After receiving the IPv4 address acquisition request sent by the user terminal, the AC judges whether the user terminal has passed the authentication. If the judgment is yes, go to step 103; otherwise, go to step 104.

具体的,为了防止AC向未注册的用户终端分配IPv4地址,造成IPv4地址的浪费,在本发明实施例提供的技术方案中,AC接收到用户终端发送的IPv4地址获取请求之后,并不会直接向该用户终端分配IPv4地址,而是需要判断该用户终端是否通过认证,并根据判断结果确定是否向该用户终端分配IPv4地址。其中,AC对应用户终端标识存储有各用户终端的认证信息,AC根据该认证信息确定相应用户终端是否通过认证。Specifically, in order to prevent the AC from allocating IPv4 addresses to unregistered user terminals and causing waste of IPv4 addresses, in the technical solution provided by the embodiment of the present invention, after the AC receives the IPv4 address acquisition request sent by the user terminal, it will not directly To assign an IPv4 address to the user terminal, it is necessary to judge whether the user terminal has passed the authentication, and determine whether to assign an IPv4 address to the user terminal according to the judgment result. Wherein, the AC stores authentication information of each user terminal corresponding to the user terminal identifier, and the AC determines whether the corresponding user terminal passes the authentication according to the authentication information.

步骤103、AC向用户终端分配IPv4地址。Step 103, the AC allocates an IPv4 address to the user terminal.

具体的,当AC接收到认证服务器返回的所述用户终端通过认证的响应消息时,AC确定该用户终端需要使用该WLAN的业务。相应地,AC可以通过DHCP协议为该用户终端分配一个IPv4地址。用户终端获取IPv4地址之后,可以通过该IPv4地址和已获得的IPv6地址进行数据转发。Specifically, when the AC receives the response message that the user terminal passes the authentication returned by the authentication server, the AC determines that the user terminal needs to use the service of the WLAN. Correspondingly, the AC can assign an IPv4 address to the user terminal through the DHCP protocol. After the user terminal obtains the IPv4 address, data forwarding can be performed through the IPv4 address and the obtained IPv6 address.

步骤104、AC拒绝向用户终端分配IPv4地址,转至步骤105。Step 104, the AC refuses to allocate an IPv4 address to the user terminal, and goes to step 105.

具体的,当AC判断用户终端未通过认证时,为了防止由于为不计划使用该WLAN业务的用户分配IPv4地址,而造成IPv4地址的浪费,AC不会向该用户终端分配IPv4地址。其中,AC可以不对该IPv4地址获取请求进行处理,并直接将其丢弃;也可以向AC返回一个地址获取失败消息,以告知用户终端此次IPv4地址获取失败。Specifically, when the AC determines that the user terminal has not passed the authentication, the AC will not allocate an IPv4 address to the user terminal in order to prevent IPv4 addresses from being wasted due to allocating IPv4 addresses to users who do not plan to use the WLAN service. Wherein, the AC may not process the IPv4 address acquisition request and directly discard it; it may also return an address acquisition failure message to the AC to inform the user terminal that the IPv4 address acquisition failed this time.

步骤105、若用户终端通过向AC发送IPv4地址获取请求获取地址失败,且接收到自身通过认证的通知消息时,用户终端再次向AC发送IPv4地址获取请求,转至步骤102。Step 105: If the user terminal fails to obtain an address by sending an IPv4 address acquisition request to the AC, and receives a notification message that it has passed the authentication, the user terminal sends an IPv4 address acquisition request to the AC again, and goes to step 102.

具体的,若用户终端未接收到AC分配的IPv4地址,则认为此次IPv4地址获取失败。用户可以在接收到自身通过认证的通知消息时,再次向AC发送IPv4地址获取请求。其中,用户终端可以根据获取到的IPv6地址进行认证,其认证流程与现有技术中相应认证流程类似,在此不再赘述。Specifically, if the user terminal does not receive the IPv4 address allocated by the AC, it is considered that the acquisition of the IPv4 address fails this time. The user may send an IPv4 address acquisition request to the AC again when receiving the notification message that the user has passed the authentication. Wherein, the user terminal can perform authentication according to the obtained IPv6 address, and the authentication process is similar to the corresponding authentication process in the prior art, and will not be repeated here.

需要注意的是,在本发明实施例提供的技术方案中,对于用户终端侧,可以通过以下方式实现当接收到自身通过认证的通知消息时,再次向AC发起IPv4地址获取请求:It should be noted that in the technical solution provided by the embodiment of the present invention, for the user terminal side, when receiving the notification message that it has passed the authentication, it can initiate an IPv4 address acquisition request to the AC again in the following manner:

在现有双栈用户终端中安装一个插件,用于当接收到自身通过认证的通知消息时,触发用户终端再次向AC发起IPv4地址获取请求。其中,该插件可以预先在用户终端中安装,也可以存储在Portal服务器中,当用户终端进行认证时,由Portal服务器提示用户终端下载并安装该插件。A plug-in is installed in the existing dual-stack user terminal, which is used to trigger the user terminal to initiate an IPv4 address acquisition request to the AC again when receiving a notification message that it has passed the authentication. Wherein, the plug-in can be pre-installed in the user terminal, and can also be stored in the Portal server. When the user terminal is authenticated, the Portal server prompts the user terminal to download and install the plug-in.

下面结合具体的应用场景对本发明实施例提供的技术方案进行更加详细的描述。The technical solutions provided by the embodiments of the present invention will be described in more detail below in conjunction with specific application scenarios.

如图2所示,为本发明实施例提供的一种在具体应用场景下的双栈地址分配方法的流程示意图,在该实施例中,用户终端首次进行地址申请,该方法可以包括以下步骤:As shown in Figure 2, it is a schematic flow diagram of a dual-stack address allocation method in a specific application scenario provided by the embodiment of the present invention. In this embodiment, the user terminal applies for an address for the first time, and the method may include the following steps:

步骤201、用户终端通过广播探查发现可用AP,并接收AP返回的探查回应消息。In step 201, the user terminal finds an available AP through a broadcast probe, and receives a probe response message returned by the AP.

步骤202、用户终端向AP发送关联请求消息,AP将接收到的关联请求消息转发给AC,AC回应关联成功消息,AP收到消息后将其转发给终端,此时终端成功建立了网络连接。Step 202, the user terminal sends an association request message to the AP, the AP forwards the received association request message to the AC, the AC responds with an association success message, the AP forwards the message to the terminal after receiving the message, and the terminal successfully establishes a network connection.

步骤203、用户终端通过AC获得一个IPv6地址。Step 203, the user terminal obtains an IPv6 address through the AC.

其中,步骤201~203的处理流程与现有技术中的双栈地址分配方法流程相类似,在此不再赘述。Wherein, the processing flow of steps 201-203 is similar to the flow of the dual-stack address allocation method in the prior art, and will not be repeated here.

步骤204、AC接收用户终端发送的IPv4地址获取请求消息,检测到用户终端未通过认证,不向该用户终端分配IPv4地址。Step 204, the AC receives the IPv4 address acquisition request message sent by the user terminal, detects that the user terminal has not passed the authentication, and does not allocate an IPv4 address to the user terminal.

具体的,在本发明实施例提供的技术方案中,AC接收到用户终端发送的IPv4地址获取请求后,并不会直接为该用户终端分配IPv4地址,而需要检测该用户终端是否通过认证,进而确定是否为该用户终端分配IPv4地址。在该实施例中,由于用户终端首次进行地址申请,AC检测到用户未通过认证,不能确定该用户终端是否计划使用相应的WLAN业务,为了节省IPv4地址,不回应接收到的IPv4地址获取请求。Specifically, in the technical solution provided by the embodiment of the present invention, after the AC receives the IPv4 address acquisition request sent by the user terminal, it will not directly assign an IPv4 address to the user terminal, but needs to detect whether the user terminal has passed the authentication, and then Determine whether to assign an IPv4 address to the user terminal. In this embodiment, since the user terminal applies for an address for the first time, the AC detects that the user has not passed the authentication, and cannot determine whether the user terminal plans to use the corresponding WLAN service. In order to save the IPv4 address, it does not respond to the received IPv4 address acquisition request.

步骤205、用户终端发送HTTP请求。Step 205, the user terminal sends an HTTP request.

步骤206、AC接获用户的HTTP请求,由于用户没有通过认证,AC向用户终端返回HTTP重定向消息。Step 206, the AC receives the user's HTTP request, and since the user has not passed the authentication, the AC returns an HTTP redirection message to the user terminal.

步骤207、用户终端重新发送HTTP请求,访问WEB认证页面,用户在认证页面上填入用户名、密码等信息,提交到Portal服务器。Step 207, the user terminal resends the HTTP request to access the WEB authentication page, and the user fills in information such as user name and password on the authentication page and submits it to the Portal server.

步骤208、Portal服务器将账号、密码提交给AC,发起认证。Step 208, the Portal server submits the account number and password to the AC, and initiates authentication.

步骤209、AC向AAA认证服务器发送携带用户名、密码的认证请求。Step 209, the AC sends an authentication request carrying the user name and password to the AAA authentication server.

步骤210、AAA认证服务器根据用户信息判断用户终端是否合法,用户终端进行密码认证。AAA服务器向AC进行认证回应。如果认证成功,向AC返回认证成功报文,并携带协议参数,以及用户终端的相关业务属性给用户授权。如果认证失败,向AC返回认证失败报文。Step 210, the AAA authentication server judges whether the user terminal is legal according to the user information, and the user terminal performs password authentication. The AAA server sends an authentication response to the AC. If the authentication is successful, an authentication success message is returned to the AC, carrying protocol parameters and relevant service attributes of the user terminal to authorize the user. If the authentication fails, return an authentication failure message to the AC.

步骤211、AC向Portal服务器返回认证结果。Step 211, the AC returns the authentication result to the Portal server.

步骤212、Portal服务器根据认证结果,推送认证结果页面。认证成功后,AAA服务器开始计费,用户上线完毕,开始上网。Step 212, the Portal server pushes the authentication result page according to the authentication result. After the authentication is successful, the AAA server starts billing, and the user starts to go online after the user goes online.

其中,步骤205~212的处理流程与现有技术中的双栈地址分配方法中WEB认证流程相类似,不同的是,在本发明实施例中,用户终端进行WEB认证的过程都是通过IPv6地址进行的,其具体实现在此不再赘述。Among them, the processing flow of steps 205-212 is similar to the WEB authentication flow in the dual-stack address allocation method in the prior art. It is carried out, and its specific implementation will not be repeated here.

步骤213、当AC获知到用户终端通过认证时,向用户终端发送指示消息,以指示用户进行IPv4地址申请。Step 213, when the AC learns that the user terminal has passed the authentication, it sends an indication message to the user terminal to instruct the user to apply for an IPv4 address.

具体的,AAA服务器对用户终端进行认证后,会将认证结果通知给AC。当AC获知到用户终端通过认证后,需要向用户终端发送指示消息,以指示用户再次进行IPv4地址申请Specifically, after the AAA server authenticates the user terminal, it notifies the AC of the authentication result. When the AC learns that the user terminal has passed the authentication, it needs to send an indication message to the user terminal to instruct the user to apply for an IPv4 address again.

步骤214、用户终端接收到指示消息后,根据该指示消息再次向AC发送IPv4地址获取请求消息,并接收AC分配的IPv4地址。Step 214: After receiving the indication message, the user terminal sends an IPv4 address acquisition request message to the AC again according to the indication message, and receives the IPv4 address allocated by the AC.

具体的,与现有技术不同的,在本发明实施例提供的技术方案中,当用户终端接收到自身通过认证的通知消息时(在该实施例中为接收到AC发送的指示消息),再次向AC发起IPv4地址获取请求。AC接收到该IPv4地址获取请求后,确认该用户终端已通过认证,向该用户终端分配IPv4地址。Specifically, different from the prior art, in the technical solution provided by the embodiment of the present invention, when the user terminal receives the notification message that it has passed the authentication (in this embodiment, it receives the indication message sent by the AC), it again Initiate an IPv4 address acquisition request to the AC. After receiving the IPv4 address acquisition request, the AC confirms that the user terminal has passed the authentication, and allocates an IPv4 address to the user terminal.

步骤215、用户终端通过IPv4地址和IPv6地址进行数据转发。Step 215, the user terminal performs data forwarding through the IPv4 address and the IPv6 address.

通过以上描述可以看出,在本发明实施例提供的技术方案中,AC接收到用户终端发送的IPv4地址获取请求之后,通过判断该用户终端是否通过认证确定是否为该用户终端分配IPv4地址,若通过认证则分配IPv4地址,否则,不分配IPv4地址;若用户终端未在预设时间内接收到AC分配的IPv4地址,在后续流程中,当用户终端检测到自身通过认证时,向AC再次发起IPv4地址获取请求,并接收AC分配的IPv4地址,优化了IPv4地址分配机制,节省了IPv4地址消耗。It can be seen from the above description that in the technical solution provided by the embodiment of the present invention, after the AC receives the IPv4 address acquisition request sent by the user terminal, it determines whether to assign an IPv4 address to the user terminal by judging whether the user terminal has passed the authentication. If the user terminal passes the authentication, an IPv4 address will be assigned, otherwise, no IPv4 address will be assigned; if the user terminal does not receive the IPv4 address assigned by the AC within the preset time, in the subsequent process, when the user terminal detects that it has passed the authentication, it will send an IP address to the AC again. IPv4 address acquisition request and receive the IPv4 address assigned by the AC, which optimizes the IPv4 address allocation mechanism and saves IPv4 address consumption.

基于与上述方法流程相同的技术构思,本发明实施例中还提供了一种AC,可以运用于上述流程。Based on the same technical concept as the above-mentioned method flow, an AC is also provided in the embodiment of the present invention, which can be applied to the above-mentioned flow.

如图3所示,为本发明实施例提供的AC的结构示意图,可以包括:As shown in FIG. 3, a schematic structural diagram of an AC provided in an embodiment of the present invention may include:

接收模块31,用于接收用户终端发送的IPv4地址获取请求;A receiving module 31, configured to receive an IPv4 address acquisition request sent by a user terminal;

判断模块32,用于判断所述用户终端是否通过认证;A judging module 32, configured to judge whether the user terminal is authenticated;

地址分配模块33,用于当所述判断模块32的判断结果为是时,向所述用户终端分配IPv4地址;当所述判断模块32的判断结果为否时,拒绝向所述用户终端分配IPv4地址。The address assignment module 33 is used for distributing an IPv4 address to the user terminal when the judgment result of the judgment module 32 is yes; when the judgment result of the judgment module 32 is no, refusing to assign an IPv4 address to the user terminal address.

其中,本发明实施例提供的AC还可以包括:Among them, the AC provided by the embodiment of the present invention may also include:

指示模块34,用于当所述地址分配模块33拒绝向所述用户终端分配IPv4地址之后,且所述AC接收到认证服务器返回的所述用户终端通过认证的响应消息时,向所述用户终端发送指示消息,以指示所述用户终端发送IPv4地址获取请求。Instructing module 34, configured to, when the address assignment module 33 refuses to assign an IPv4 address to the user terminal, and the AC receives a response message returned by the authentication server that the user terminal has passed the authentication, send the message to the user terminal sending an indication message to instruct the user terminal to send an IPv4 address acquisition request.

其中,所述接收模块31还用于,接收所述用户终端发送的IPv6地址获取请求;Wherein, the receiving module 31 is further configured to receive an IPv6 address acquisition request sent by the user terminal;

所述地址分配模块32还用于,向所述用户终端分配IPv6地址。The address allocation module 32 is further configured to allocate an IPv6 address to the user terminal.

基于上述方法流程相同的技术构思,本发明实施例中还提供了一种用户终端,可以运用于上述流程。Based on the same technical concept as the above-mentioned method flow, an embodiment of the present invention also provides a user terminal, which can be applied to the above-mentioned flow.

如图4所示,为本发明实施例提供的用户终端的结构示意图,可以包括:As shown in FIG. 4, a schematic structural diagram of a user terminal provided in an embodiment of the present invention may include:

发送模块41,用于向接入控制器AC发送IPv4地址获取请求;A sending module 41, configured to send an IPv4 address acquisition request to the access controller AC;

接收模块42,用于接收所述AC分配的IPv4地址;A receiving module 42, configured to receive the IPv4 address assigned by the AC;

指示模块43,用于若所述用户终端通过所述发送模块41向所述AC发送IPv4获取请求获取地址失败,且所述接收模块42接收到所述用户终端通过认证的通知消息,触发所述发送模块41再次向所述AC发送IPv4地址获取请求;其中,所述AC接收到用户终端发送的IPv4地址获取请求后,若判断该用户终端未通过认证,则拒绝向该用户终端分配IPv4地址。An indication module 43, configured to trigger the AC if the user terminal fails to obtain an address by sending an IPv4 acquisition request to the AC through the sending module 41, and the receiving module 42 receives a notification message that the user terminal passes the authentication. The sending module 41 sends an IPv4 address acquisition request to the AC again; wherein, after receiving the IPv4 address acquisition request sent by the user terminal, the AC refuses to assign an IPv4 address to the user terminal if it determines that the user terminal has not passed the authentication.

其中,所述指示模块43具体用于,当所述用户通过所述发送模块41向所述AC发送IPv4地址获取请求获取地址失败,且所述接收模块42接收到所述AC发送的指示消息时,触发所述发送模块41再次向所述AC发送IPv4地址获取请求;其中,所述AC在接收到认证服务器返回的所述用户终端通过认证的响应消息时,向所述用户终端发送所述指示消息。Wherein, the instruction module 43 is specifically configured to, when the user sends an IPv4 address acquisition request to the AC through the sending module 41 and fails to obtain an address, and the receiving module 42 receives the instruction message sent by the AC , triggering the sending module 41 to send an IPv4 address acquisition request to the AC again; wherein the AC sends the indication to the user terminal when receiving a response message that the user terminal passes the authentication returned by the authentication server information.

所述发送模块41还用于,向所述AC发送IPv6地址获取请求;The sending module 41 is also configured to send an IPv6 address acquisition request to the AC;

所述接收模块42还用于,接收所述AC分配的IPv6地址;The receiving module 42 is also configured to receive the IPv6 address assigned by the AC;

该用户终端还包括:The user terminal also includes:

认证模块44,用于根据所述接收模42块接收到的IPv6地址进行认证。An authentication module 44, configured to perform authentication according to the IPv6 address received by the receiving module 42.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes the methods described in various embodiments of the present invention.

本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the drawing is only a schematic diagram of a preferred embodiment, and the modules or processes in the drawing are not necessarily necessary for implementing the present invention.

本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description in the embodiment, and can also be changed and located in one or more devices different from the embodiment. The modules in the above embodiments can be combined into one module, and can also be further split into multiple sub-modules.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

以上公开的仅为本发明的几个具体实施例,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。The above disclosures are only a few specific embodiments of the present invention, however, the present invention is not limited thereto, and any changes conceivable by those skilled in the art shall fall within the protection scope of the present invention.

Claims (4)

1. a kind of pair of stack address distribution method is it is characterised in that include:
The IPv4 address acquisition request that access controller AC receive user terminal sends;
Described AC judges whether described user terminal passes through certification;If being judged as YES, described AC is to described user distribution IPv4 ground Location;Otherwise, described AC refuses to distribute IPv4 address to described user terminal;
Wherein, the corresponding user terminal identification of described AC is stored with the authentication information of each user terminal, and AC is true according to this authentication information Determine whether relative users terminal passes through certification;
Wherein, before the IPv4 address acquisition request that described access controller AC receive user terminal sends, described AC receives and uses The IPv6 address acquisition request that family terminal sends, and distribute IPv6 address to described user terminal;
Described user terminal is authenticated according to the IPv6 address obtaining;
Wherein, described AC refuses, to after described user terminal distribution IPv4 address, also to include:
When described AC receives the described user terminal of certificate server return by the response message of certification, to described user eventually End sends instruction message, is asked with indicating that described user terminal sends IPv4 address acquisition.
2. a kind of pair of stack address distribution method is it is characterised in that include:
If user terminal passes through to send the failure of IPv4 address acquisition acquisition request address to access controller AC, and receives itself By the notification message of certification, described user terminal sends IPv4 address acquisition to described AC again and asks and receive described AC to divide The IPv4 address joined;Wherein, after described AC receives the IPv4 address acquisition request of user terminal transmission, if judging this user eventually End is not authenticated, then refuse to distribute IPv4 address to this user terminal;
Wherein, the corresponding user terminal identification of described AC is stored with the authentication information of each user terminal, and AC is true according to this authentication information Determine whether relative users terminal passes through certification;
Wherein, before the IPv4 address acquisition request that described access controller AC receive user terminal sends, described user terminal Send the request of IPv6 address acquisition to described AC;
Described user terminal receives the IPv6 address of described AC distribution, and is authenticated according to the IPv6 address receiving;
Wherein, described user terminal receives the notification message self by certification, sends IPv4 address to described AC again and obtains Take request, specially:
Described user terminal receives the instruction message that described AC sends, and sends IPv4 address according to this instruction message to described AC and obtains Take request;Wherein, described AC is when receiving the described user terminal of certificate server return by the response message of certification, to Described user terminal sends described instruction message.
3. a kind of access controller AC is it is characterised in that include:
Receiver module, the IPv4 address acquisition request sending for receive user terminal;
Judge module, for judging whether described user terminal passes through certification;
Address assignment module, for when the judged result of described judge module is to be, to described user terminal distribution IPv4 ground Location;When the judged result of described judge module is no, refuse to distribute IPv4 address to described user terminal;
Wherein, the corresponding user terminal identification of described AC is stored with the authentication information of each user terminal, and AC is true according to this authentication information Determine whether relative users terminal passes through certification;
Wherein, described receiver module is additionally operable to, and the IPv4 address acquisition that described access controller AC receive user terminal sends please Before asking, receive the IPv6 address acquisition request that described user terminal sends;
Described address assignment module is additionally operable to, and distributes IPv6 address to described user terminal;
Described user terminal is authenticated according to the IPv6 address obtaining;
Indicating module, after refusing to described user terminal distribution IPv4 address when described address assignment module and described When AC receives the described user terminal of certificate server return by the response message of certification, send to described user terminal and refer to Show message, asked with indicating that described user terminal sends IPv4 address acquisition.
4. a kind of user terminal is it is characterised in that include:
Sending module, for sending the request of IPv4 address acquisition to access controller AC;
Receiver module, for receiving the IPv4 address of described AC distribution;
Indicating module, if send IPv4 by described sending module to described AC for described user terminal to obtain acquisition request ground Location failure, and described receiver module receives the notification message by certification for the described user terminal, triggers described sending module again Secondary to described AC send IPv4 address acquisition request;Wherein, described AC receive user terminal transmission IPv4 address acquisition please After asking, if judging, this user terminal is not authenticated, refuses to distribute IPv4 address to this user terminal;
Wherein, the corresponding user terminal identification of described AC is stored with the authentication information of each user terminal, and AC is true according to this authentication information Determine whether relative users terminal passes through certification;
Described sending module is additionally operable to, and the IPv4 address acquisition that described access controller AC receive user terminal sends asks it Before, send the request of IPv6 address acquisition to described AC;
Described receiver module is additionally operable to, and receives the IPv6 address of described AC distribution;
This user terminal also includes:
Authentication module, the IPv6 address for being received according to described receiver module is authenticated;
Wherein, described indicating module is specifically for sending IPv4 address when described user passes through described sending module to described AC Obtain the failure of acquisition request address, and when described receiver module receives the instruction message that described AC sends, trigger described transmission Module sends the request of IPv4 address acquisition to described AC again;Wherein, described AC is receiving described in certificate server return When user terminal passes through the response message of certification, send described instruction message to described user terminal.
CN201110433090.XA 2011-12-21 2011-12-21 Method and device for distributing double-stack addresses Active CN103179222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110433090.XA CN103179222B (en) 2011-12-21 2011-12-21 Method and device for distributing double-stack addresses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110433090.XA CN103179222B (en) 2011-12-21 2011-12-21 Method and device for distributing double-stack addresses

Publications (2)

Publication Number Publication Date
CN103179222A CN103179222A (en) 2013-06-26
CN103179222B true CN103179222B (en) 2017-02-08

Family

ID=48638840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110433090.XA Active CN103179222B (en) 2011-12-21 2011-12-21 Method and device for distributing double-stack addresses

Country Status (1)

Country Link
CN (1) CN103179222B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349294B (en) * 2013-07-31 2018-07-20 中国电信股份有限公司 Authentication and accounting method, system based on MiFi terminals and MiFi terminals
CN107911276B (en) * 2017-12-27 2020-08-07 迈普通信技术股份有限公司 Request response method, wireless controller, wireless access point and request response system
CN114079648B (en) * 2020-08-14 2025-02-25 华为技术有限公司 IP address allocation method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692674A (en) * 2009-10-30 2010-04-07 杭州华三通信技术有限公司 Method and equipment for double stack access
CN101888389A (en) * 2010-07-19 2010-11-17 中国电信股份有限公司 Method and system for realizing uniform authentication of ICP union

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090290539A1 (en) * 2008-05-21 2009-11-26 Huawei Technologies, Co., Ltd. Method and apparatus for home agent address acquisition for IPv4 mobile nodes
CN101286887B (en) * 2008-06-12 2012-08-08 杭州华三通信技术有限公司 Method, device and system for realizing terminal registry
CN102148878B (en) * 2010-02-05 2013-08-14 中国移动通信集团公司 IP (internet protocol) address allocation method, system and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101692674A (en) * 2009-10-30 2010-04-07 杭州华三通信技术有限公司 Method and equipment for double stack access
CN101888389A (en) * 2010-07-19 2010-11-17 中国电信股份有限公司 Method and system for realizing uniform authentication of ICP union

Also Published As

Publication number Publication date
CN103179222A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
US9729501B2 (en) System and data card for stateless automatic configuration of IPv6 address and method for implementing the same
US9210124B2 (en) Method, apparatus, and system for allocating public IP address
US9918353B2 (en) 802.1X access session keepalive method, device, and system
US8189567B2 (en) Method and nodes for registering a terminal
RU2556468C2 (en) Terminal access authentication method and customer premise equipment
US9246872B2 (en) Methods and arrangements for enabling data transmission between a mobile device and a static destination address
CN101510902B (en) Method, system and equipment for preventing wireless client terminal from disconnection during internet process
US8356173B2 (en) Configuration method, system and device of cryptographically generated address
CN111083718A (en) A session management method, network function and network system
WO2018192179A1 (en) Ip address allocation method and device
US9825951B2 (en) Method and system for distributing service data
CN106572132B (en) Distributed chain building method, device and system
CN103179222B (en) Method and device for distributing double-stack addresses
CN102882994B (en) IP address assignment method and device and IP address acquisition method and device
CN103024876A (en) Access control method, gateway and system
US20080201477A1 (en) Client side replacement of DNS addresses
CN104780230A (en) Method, system and cloud system for automatically obtaining cloud server IP address
CN102308622B (en) Method, device and system for interworking between WiFi network and WiMAX network
CN106713287A (en) Method, apparatus and system for automatically registering wireless access point
CN103188662B (en) A kind of method and device verifying WAP (wireless access point)
CN1960380B (en) Method and base station for obtaining service IP address
CN101778103A (en) Method for wireless terminal to assign IP addresses to PCs
CN105592172A (en) Dynamic host configuration protocol (DHCP) reconnection method, DHCP server and system
KR100684322B1 (en) Connection establishment method for IP management message in mobile communication system and method of allocating IP address using same
CN104955025B (en) A kind of address resource method for releasing and device, system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant