[go: up one dir, main page]

CN1798158A - Method for distributing second level address - Google Patents

Method for distributing second level address Download PDF

Info

Publication number
CN1798158A
CN1798158A CN 200410097049 CN200410097049A CN1798158A CN 1798158 A CN1798158 A CN 1798158A CN 200410097049 CN200410097049 CN 200410097049 CN 200410097049 A CN200410097049 A CN 200410097049A CN 1798158 A CN1798158 A CN 1798158A
Authority
CN
China
Prior art keywords
server
client
dhcpv6
address
ipv6
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.)
Pending
Application number
CN 200410097049
Other languages
Chinese (zh)
Inventor
丁常海
侯超
林琦
陈伟
沈文良
管红光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200410097049 priority Critical patent/CN1798158A/en
Publication of CN1798158A publication Critical patent/CN1798158A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了一种二次地址分配方法,应用于IPv6网络中,包括以下步骤:客户端与DHCPv6服务器交互获得DHCPv6服务器分配的IPv6地址,并在接入服务器上为客户端添加用户策略;客户端发起认证请求,认证服务器对客户端进行认证,并将认证结果发送给DHCPv6服务器;DHCPv6服务器获得认证结果后,根据认证结果指示客户端重置DHCPv6过程;客户端根据DHCPv6服务器的指示,与DHCPv6服务器交互获得DHCPv6服务器重新分配的IPv6地址;并在接入服务器上为客户端更新用户策略。使用本发明,可以实现IPv6网络下服务器端对客户端地址的重新分配。

Figure 200410097049

The present invention provides a secondary address allocation method, which is applied to an IPv6 network, comprising the following steps: a client interacts with a DHCPv6 server to obtain an IPv6 address allocated by the DHCPv6 server, and adds a user policy for the client on the access server; the client The client initiates an authentication request, the authentication server authenticates the client, and sends the authentication result to the DHCPv6 server; after the DHCPv6 server obtains the authentication result, it instructs the client to reset the DHCPv6 process according to the authentication result; the client communicates with the DHCPv6 The server interacts to obtain the IPv6 address reassigned by the DHCPv6 server; and updates the user policy for the client on the access server. The invention can realize the redistribution of the server end to the client end address under the IPv6 network.

Figure 200410097049

Description

一种二次地址分配方法A Secondary Address Allocation Method

技术领域technical field

本发明涉及IPv6的网络接入技术领域,特别是指一种二次地址分配方法。The invention relates to the technical field of IPv6 network access, in particular to a secondary address allocation method.

背景技术Background technique

在IPv6(网络协议,版本6)中,客户(Host)端获取IP地址的方法有两种,一种是无状态地址分配(Stateless Address Autoconfiguration),主要采用ND协议并通过RS和RA报文获取IP地址;另外一种是有状态地址分配(Stateful Address Autoconfiguration),目前是通过DHCPv6(IPv6的动态主机配置协议)获取IP地址。由于DHCPv6协议比较完备,实现的功能较多,且可以使用同一台服务器对整个网络进行统一的地址管理等优点,因此,对于网络的管理和运营来说,DHCPv6是较佳的选择。In IPv6 (network protocol, version 6), there are two ways for the client (Host) to obtain an IP address. One is Stateless Address Autoconfiguration, which mainly uses the ND protocol and obtains it through RS and RA messages. IP address; the other is Stateful Address Autoconfiguration, which currently obtains an IP address through DHCPv6 (Dynamic Host Configuration Protocol for IPv6). Because the DHCPv6 protocol is relatively complete, it can realize many functions, and it can use the same server to manage the addresses of the entire network uniformly. Therefore, DHCPv6 is a better choice for network management and operation.

随着NGN和IPv6的发展和推广,很多电子产品都会分配给IPv6地址,以更容易的随时接入IPv6网络,如用户的手机等。这对于原有的通信业务移植到以IPv6为承载协议的互联网也就成为了可能,而如何在IPv6下由网络侧增强对客户端的控制是实现各种业务的必需。其中,首要解决的问题就是控制客户端在不同的业务、或者场景下有不同的IPv6地址或权限。With the development and promotion of NGN and IPv6, many electronic products will be assigned IPv6 addresses to access IPv6 networks more easily at any time, such as mobile phones of users. This makes it possible to transplant the original communication services to the Internet with IPv6 as the bearer protocol, and how to enhance the control of the client from the network side under IPv6 is necessary to realize various services. Among them, the first problem to be solved is to control the client to have different IPv6 addresses or permissions in different services or scenarios.

例如,在DHCPv6服务器上记录有某客户端不同情况下的不同的IPv6地址,如IPv6-A是校园网/局域网地址,有访问校园网资源的权限;IPv6-B具有访问因特网的权限,使用IPv6-B时需要支付一定的费用。用户根据需要会访问校园网、因特网,在访问不同网络的情况下需要对该客户端进行IPv6地址相应的变更,以及相应的实现对用户权限的变更。For example, different IPv6 addresses of a certain client under different circumstances are recorded on the DHCPv6 server. For example, IPv6-A is a campus network/LAN address and has permission to access campus network resources; IPv6-B has permission to access the Internet and uses IPv6 -B need to pay a certain fee. Users will access the campus network and the Internet according to their needs. When accessing different networks, it is necessary to change the IPv6 address of the client and change the user rights accordingly.

而目前对客户端的控制,基本都是基于客户端有确定的IPv6地址的情况。而对于用户的IPv6地址的变更,则都需要用户来进行主动的更新,如手动修改客户端IPv6地址、重启客户端等。网络侧系统不能去对客户端进行主动修改。At present, the control of the client is basically based on the fact that the client has a definite IPv6 address. For the change of the user's IPv6 address, the user needs to actively update, such as manually modifying the client IPv6 address, restarting the client, and so on. The network-side system cannot actively modify the client.

总的来说,现有的DHCPv6协议虽然突出了服务器(Server)端对客户端(Host)的控制,同时还对安全性有了新的提高,具体的可以参见RFC3315。但是,目前Server端还不能实现对Host端的地址进行重新分配的控制,以及对Host端的权限变化的控制。Generally speaking, although the existing DHCPv6 protocol highlights the control of the server (Server) to the client (Host), it also has a new improvement in security. For details, please refer to RFC3315. However, at present, the Server side cannot realize the control of reallocation of the address of the Host side, and the control of the change of the authority of the Host side.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种IPv6网络下二次地址分配的方法,实现IPv6网络下服务器端对客户端地址的重新分配。In view of this, the main purpose of the present invention is to provide a method for secondary address allocation under the IPv6 network, so as to realize the re-allocation of addresses from the server end to the client end under the IPv6 network.

本发明的二次地址分配方法,应用于IPv6网络中,包括以下步骤:Secondary address assignment method of the present invention is applied in IPv6 network, comprises the following steps:

A、客户端与DHCPv6服务器交互获得DHCPv6服务器分配的IPv6地址;A. The client interacts with the DHCPv6 server to obtain the IPv6 address assigned by the DHCPv6 server;

B、客户端发起认证请求,认证服务器对客户端进行认证,并将认证结果发送给DHCPv6服务器;B. The client initiates an authentication request, the authentication server authenticates the client, and sends the authentication result to the DHCPv6 server;

C、DHCPv6服务器获得认证结果后,根据认证结果指示客户端重置DHCPv6过程;C. After the DHCPv6 server obtains the authentication result, it instructs the client to reset the DHCPv6 process according to the authentication result;

D、客户端根据DHCPv6服务器的指示,与DHCPv6服务器交互获得DHCPv6服务器重新分配的IPv6地址。D. The client interacts with the DHCPv6 server to obtain the IPv6 address reassigned by the DHCPv6 server according to the instructions of the DHCPv6 server.

其中,还包括一接入服务器,用于客户端接入IPv6网络;步骤A进一步包括:在接入服务器上为客户端添加用户策略;步骤D进一步包括:在接入服务器上为客户端更新用户策略;所述用户策略至少包括分配给用户的权限。其中,所述权限包括至少以下之一:允许访问的地址、不允许访问的地址、用户的流量限制、允许开展的业务。其中,所述接入服务器包括:BRAS、三层交换机、路由器等。Wherein, it also includes an access server for the client to access the IPv6 network; step A further includes: adding user policy for the client on the access server; step D further includes: updating the user policy for the client on the access server Policy; the user policy includes at least the rights assigned to the user. Wherein, the authority includes at least one of the following: addresses that are allowed to be accessed, addresses that are not allowed to be accessed, user traffic restrictions, and services that are allowed to be carried out. Wherein, the access server includes: a BRAS, a Layer 3 switch, a router, and the like.

其中,步骤B所述认证结果包含至少以下之一:需要进行再次地址分配的属性、需要进行客户端权限变更的属性。Wherein, the authentication result in step B includes at least one of the following: attributes that require re-allocation of addresses, and attributes that require client authority changes.

其中,步骤C所述指示客户端重置DHCPv6过程的步骤是通过重置报文RECONFIGURE中的RECONFIGURE Option字段指示客户端发起请求信息REQUEST。Wherein, the step of instructing the client to reset the DHCPv6 process described in step C is to instruct the client to initiate the request information REQUEST by resetting the RECONFIGURE Option field in the message RECONFIGURE.

其中,所述认证服务器为:AAA服务器或Radius服务器。Wherein, the authentication server is: AAA server or Radius server.

其中,客户端退出IPv6网络时,步骤D后进一步包括:客户端释放步骤D获得的IPv6地址。Wherein, when the client exits the IPv6 network, step D further includes: the client releases the IPv6 address obtained in step D.

由上述方法可以看出,本发明在IPv6网络下,通过合理利用和部分扩展DHCPv6协议完成网络侧服务器端对Host端的地址进行二次地址分配以及动态授权。通过二次地址分配或认证后的动态授权,实现了网络侧服务器端对Host端的灵活控制。As can be seen from the above method, the present invention completes the secondary address allocation and dynamic authorization of the host end's address by the network side server end through rational utilization and partial expansion of the DHCPv6 protocol under the IPv6 network. Through secondary address allocation or dynamic authorization after authentication, the flexible control of the server side on the network side to the Host side is realized.

另一方面,本发明可实现网络侧主动更新Host端的IPv6地址或权限,从而用户可以方便的在不同互联网服务提供商ISP之间的切换,来实现接入不同的接入网络,而由网络侧系统自动对用户客户端地址、权限进行更新,不需要用户手动更新,方便了用户的使用。On the other hand, the present invention can realize that the network side actively updates the IPv6 address or authority of the Host side, so that users can conveniently switch between different Internet service providers (ISPs) to realize access to different access networks, and the network side The system automatically updates the user's client address and authority, and does not require the user to manually update, which is convenient for the user.

附图说明Description of drawings

图1为Host接入网络的示意图Figure 1 is a schematic diagram of Host access network

图2为本发明二次地址分配的流程图。Fig. 2 is a flow chart of secondary address allocation in the present invention.

图3为Host接入网络的实施例示意图Fig. 3 is the schematic diagram of the embodiment of Host access network

图4为本发明二次地址分配的实施例流程图。FIG. 4 is a flow chart of an embodiment of secondary address allocation in the present invention.

具体实施方式Detailed ways

一般情况下,客户端(Host)是通过三层设备作为DHCPv6的中继(Relay)或服务器(Server)获取自己相应的IPv6地址,其中,所述三层设备可以为宽带远程接入服务器(BRAS)、三层交换机(L3Switch)、路由器(Router)等设备。如图1示出了Host接入网络的示意图,在一个局域网或一个城域网中统一放置一台DHCPv6Server(DHCPv6服务器),对整个网络的地址进行统一管理,还放置一台认证服务器(可以是AAA认证服务器、RADIUS认证服务器等),对各个Host的权限进行管理。其中,DHCPv6Server和认证服务器可以是单独的设备,也可以位于其他设备中,如位于上述三层设备中。图1中的BRAS起到Relay的作用。Generally, the client (Host) obtains its own corresponding IPv6 address through a layer-3 device as a DHCPv6 relay (Relay) or server (Server), wherein the layer-3 device can be a broadband remote access server (BRAS ), Layer 3 switch (L3Switch), router (Router) and other equipment. Figure 1 shows a schematic diagram of the Host access network. A DHCPv6Server (DHCPv6 server) is uniformly placed in a local area network or a metropolitan area network to uniformly manage the addresses of the entire network, and an authentication server (which can be AAA authentication server, RADIUS authentication server, etc.) to manage the authority of each Host. Wherein, the DHCPv6 Server and the authentication server may be separate devices, or may be located in other devices, for example, located in the above-mentioned layer-3 device. The BRAS in Figure 1 functions as a relay.

本发明二次地址分配的主要步骤是:在客户端首次访问网络的时候,获得DHCPv6Server分配的IPv6网络地址;在用户需要更大权限时,发起认证请求;DHCPv6Server获得认证结果后,要求客户端重置DHCPv6过程,客户端根据DHCPv6Server的指示,重置DHCPv6过程,获得更新的IPv6地址或/和更新的权限。The main steps of the secondary address distribution of the present invention are: when the client accesses the network for the first time, obtain the IPv6 network address distributed by the DHCPv6Server; when the user needs more authority, initiate an authentication request; Set the DHCPv6 process, the client resets the DHCPv6 process according to the instructions of the DHCPv6Server, and obtains an updated IPv6 address or/and updated authority.

下面,以图1示出的组网图,并参见图2示出的流程图,以Host访问第二网络为例,对本发明二次地址分配的方法进行介绍。包括以下步骤:Next, with the networking diagram shown in FIG. 1 and referring to the flow chart shown in FIG. 2 , taking Host access to the second network as an example, the method for secondary address allocation of the present invention will be introduced. Include the following steps:

步骤201:当Host开机时,与DHCPv6Server交互信息,通过DHCPv6协议获取DHCPv6Server分配的IPv6地址。Step 201: When the Host is turned on, it exchanges information with the DHCPv6 Server, and obtains the IPv6 address assigned by the DHCPv6 Server through the DHCPv6 protocol.

同时DHCPv6Server在同Host进行DHCPv6的配置时,把该用户相关的访问权限通过DHCPv6报文发送到Relay端,即图中的BRAS设备端,这样在BRAS端可以通过ACL(访问控制列表)控制用户的访问权限。At the same time, when the DHCPv6Server performs DHCPv6 configuration with the Host, it sends the user-related access rights to the Relay side through the DHCPv6 message, that is, the BRAS device side in the figure, so that the BRAS side can control the user's access rights through the ACL (Access Control List). access permission.

步骤202:Host需要获取更大的访问权限,向认证服务器发起认证。其中,认证形式可以是WEB认证、拨号认证等。发起认证时根据需要输入正确的用户名和口令。Step 202: The Host needs to obtain greater access rights, and initiates authentication to the authentication server. Wherein, the authentication form may be WEB authentication, dial-up authentication, and the like. Enter the correct user name and password as required when initiating authentication.

步骤203:认证服务器根据Host的认证信息进行认证,当认证成功时,认证服务器将该Host认证的结果发送给DHCPv6Server。其中,该信息中还包含该Host当前的IPv6地址,用于DHCPv6Server识别该认证结果所对应的Host。Step 203: the authentication server performs authentication according to the authentication information of the Host, and when the authentication is successful, the authentication server sends the result of the Host authentication to the DHCPv6Server. Wherein, the information also includes the current IPv6 address of the Host, which is used by the DHCPv6 Server to identify the Host corresponding to the authentication result.

步骤204:DHCPv6Server接收到该Host认证结果信息,向该Host发送DHCPv6的重置报文(RECONFIGURE),要求Host开始重置DHCPv6的过程。Step 204: The DHCPv6 Server receives the authentication result information of the Host, sends a DHCPv6 reset message (RECONFIGURE) to the Host, and requires the Host to start the process of resetting the DHCPv6.

其中,在RECONFIGURE报文中,DHCPv6Server可以在该报文中的RECONFIGURE Option字节中指定Host发起REQUEST(请求)、RENEW(更新)、或INFORMATION-REQUEST(信息请求)报文,或者DHCPv6服务器并不进行指定Host所要使用的报文,而是由Host根据自身的配置选择发送上述的三个报文之一。Among them, in the RECONFIGURE message, the DHCPv6Server can specify the Host in the RECONFIGURE Option byte in the message to initiate a REQUEST (request), RENEW (update), or INFORMATION-REQUEST (information request) message, or the DHCPv6 server does not The message to be used by the host is specified, but the host chooses to send one of the above three messages according to its own configuration.

步骤205:Host在收到RECONFIGURE报文后,根据Server端的指定或Host自身的配置发送指定或配置的报文,来发起DHCPv6重置。Step 205: After receiving the RECONFIGURE message, the Host sends a specified or configured message according to the specification of the Server or the configuration of the Host itself to initiate a DHCPv6 reset.

其中,如果需要进行二次的地址分配,则Host直接向Server发送REQUEST报文,要求Server重新分配IPv6地址,以及Server进行相应的参数配置。例如,Host首次开机启动时获取的是Local-Link(本地)地址,现在则可以通过REQUEST报文,要求DHCPv6Server给用户重新分配一个Global(全网)地址来访问Internet;Wherein, if secondary address allocation is required, the Host directly sends a REQUEST message to the Server, requesting the Server to re-allocate the IPv6 address, and the Server configures corresponding parameters. For example, the Host obtained a Local-Link (local) address when it was started for the first time, and now it can request the DHCPv6 Server to reassign a Global (full network) address to the user through the REQUEST message to access the Internet;

如果不需要进行二次的地址分配,而是在原有地址的情况下进行Host权限的更改,则可以发送RENEW或INFORMATION-REQUEST报文,启动现有DHCPv6协议的配置过程。If there is no need to perform secondary address allocation, but to change the Host authority under the original address, a RENEW or INFORMATION-REQUEST message can be sent to start the configuration process of the existing DHCPv6 protocol.

根据目前的DHCPv6协议,在Host在接收到DHCPv6服务器发送的RECONFIGURE报文后只能发送RENEW或INFORMATION-REQUEST报文。也就是说,目前的DHCPv6协议也只能在不改动原IPv6地址的情况下对Host进行控制,而不能够主动修改Host的IPv6地址。According to the current DHCPv6 protocol, the Host can only send RENEW or INFORMATION-REQUEST packets after receiving the RECONFIGURE packet sent by the DHCPv6 server. That is to say, the current DHCPv6 protocol can only control the Host without changing the original IPv6 address, but cannot actively modify the IPv6 address of the Host.

步骤206:DHCPv6Server与Host进行重配置时,相应的通过DHCPv6的报文向BRAS(作为DHCPv6Relay设备)端发送相关的控制信息,如果是二次地址分配,BRAS将对新地址和相应的权限进行配置;如果不是二次地址分配则只需对原有的IPv6地址权限进行相应的改动,例如打开该Host访问Internet的权限。Step 206: When the DHCPv6Server and the Host are reconfigured, the corresponding control information is sent to the BRAS (as a DHCPv6Relay device) through a DHCPv6 message. If it is a secondary address assignment, the BRAS will configure the new address and corresponding permissions ; If it is not secondary address allocation, then only need to make corresponding changes to the original IPv6 address authority, such as opening the authority of the Host to access the Internet.

步骤207:当Host需要下线时,认证服务器实时地获取用户下线的信息并通知到DHCPv6Server,DHCPv6Server将再一次发送RECONFIGURE报文到Host,要求重置相关的IPv6以及参数,恢复到步骤201时Host的状态,或者根据需要恢复到Host断开所有的连接的网络的状态。Step 207: When the Host needs to go offline, the authentication server obtains the user offline information in real time and notifies the DHCPv6Server, and the DHCPv6Server will send a RECONFIGURE message to the Host again, requesting to reset the relevant IPv6 and parameters, and return to step 201 The state of the Host, or restore to the state of the network where the Host has disconnected all connections as needed.

步骤208:Host端可以根据需要发送REQUEST、RENEW、或INFORMATION-REQUEST报文,并开始重置DHCPv6的相应过程。这个步骤同步骤205的过程一样,故不再重复描述。Step 208: The Host can send a REQUEST, RENEW, or INFORMATION-REQUEST message as required, and start the corresponding process of resetting the DHCPv6. This step is the same as the process of step 205, so the description will not be repeated.

步骤209:DHCPv6Server通过DHCPv6报文向BRAS发送相关的控制信息,BRAS根据控制信息的要求,把相应Host的地址权限删除,或者并把Host的地址权限进行相应的调整,比如说取消该Host访问Internet的权限。Step 209: The DHCPv6Server sends relevant control information to the BRAS through the DHCPv6 message, and the BRAS deletes the address authority of the corresponding Host according to the requirements of the control information, or adjusts the address authority of the Host accordingly, such as canceling the access of the Host to the Internet permission.

下面以通过WEB认证的方式结合网络地址分配为一具体实施例,对本发明进一步详细描述。In the following, the present invention will be further described in detail by taking the way of WEB authentication and network address allocation as a specific embodiment.

如图3示出了基于WEB认证网络地址分配的组网图。WEB用户通过二层设备L2接入BRAS,BRAS、门户服务器(简称Portal服务器)、远端认证服务器(简称Radius服务器)、动态地址分配服务器(DHCPv6服务器)均接入网络中,其中BRAS中可内置地址池,Portal服务器用于提供web认证页面。与DHCPv6服务器的通讯采用DHCPv6协议;与Radius服务器的通讯采用radius协议;与Portal服务器的通讯采用portal协议。Figure 3 shows a network diagram of network address allocation based on WEB authentication. WEB users access the BRAS through the layer 2 device L2, and the BRAS, the portal server (referred to as the Portal server), the remote authentication server (referred to as the Radius server), and the dynamic address allocation server (DHCPv6 server) are all connected to the network, and the BRAS can be built in The address pool used by the Portal server to provide web authentication pages. The communication with the DHCPv6 server adopts the DHCPv6 protocol; the communication with the Radius server adopts the radius protocol; the communication with the Portal server adopts the portal protocol.

参照图3的组网,并参照图4示出的流程图,包括以下步骤:With reference to the networking of Figure 3, and with reference to the flow chart shown in Figure 4, the following steps are included:

用户通过DHCPv6协议申请IPv6地址,该DHCPv6报文被BRAS截获,在BRAS中的配置信息包括如何处理某个用户请求分配IPv6地址的请求,以及指定到DHCPv6服务器申请地址。BRAS在收到DHCPv6报文后,根据其配置信息为用户选择指定的DHCPv6服务器,并作为一个DHCPv6中继向DHCPv6服务器申请IPv6地址,来获得一个Local-Link(本地)IPv6地址;或者BRAS也可以从其内部地址池中为用户选择一个地址。The user applies for an IPv6 address through the DHCPv6 protocol, and the DHCPv6 message is intercepted by the BRAS. The configuration information in the BRAS includes how to handle a user's request for an IPv6 address allocation, and specifying to the DHCPv6 server to apply for an address. After receiving the DHCPv6 message, the BRAS selects the specified DHCPv6 server for the user according to its configuration information, and applies for an IPv6 address from the DHCPv6 server as a DHCPv6 relay to obtain a Local-Link (local) IPv6 address; or the BRAS can also Select an address for the user from its internal address pool.

BRAS设备在为用户分配地址的同时,也为用户分配资源,如用户表项、地址解析协议表项、用户日志、流匹配表等,并添加用户策略,用户策略包括分配给用户的权限,例如可以访问哪些网站、不可以访问哪些网站、用户的流量限制是多少、允许用户开展哪些业务等,访问控制列表ACL、宽带地址限制CAR、用户优先级、服务质量QOS等,例如“允许访问Portal服务器和web网站1,不能访问web网站2;用户访问不允许访问的web网站时强制访问Portal服务器”,使得用户在认证前只能访问指定的地址,如Portal服务器或DNS服务器等。因此对于上述用户策略,如果用户在认证前访问web网站2时,会被强制访问Portal服务器;如果用户访问web网站1,则允许其进行访问。While allocating addresses for users, the BRAS device also allocates resources for users, such as user entries, address resolution protocol entries, user logs, flow matching tables, etc., and adds user policies. User policies include permissions assigned to users, such as Which websites can be accessed, which websites cannot be accessed, what is the user's traffic limit, what services are allowed to the user, etc., access control list ACL, broadband address restriction CAR, user priority, quality of service QOS, etc., for example, "allow access to Portal server and web site 1, cannot access web site 2; the user is forced to visit the Portal server when accessing a web site that is not allowed to be accessed", so that the user can only access the specified address before authentication, such as the Portal server or DNS server. Therefore, for the above user policy, if the user visits web site 2 before authentication, he will be forced to visit the Portal server; if the user visits web site 1, he will be allowed to access.

用户启动浏览器,访问Portal服务器,获得认证页面;如果用户访问其他不允许访问的地址,则BRAS强制用户访问Portal服务器,获得认证页面。用户输入用户名和密码后提交认证请求,通过HTTP协议发送到Portal服务器进行解析。The user starts the browser, accesses the Portal server, and obtains the authentication page; if the user accesses other addresses that are not allowed to be accessed, the BRAS forces the user to access the Portal server, and obtains the authentication page. After the user enters the user name and password, the user submits an authentication request, which is sent to the Portal server through the HTTP protocol for analysis.

Portal服务器通过Portal协议与BRAS进行交互,使得BRAS获得用户名和密码。The Portal server interacts with the BRAS through the Portal protocol, so that the BRAS obtains the user name and password.

BRAS根据用户名的后缀判断是进行本地认证还是进行radius认证,当是进行radius认证时,则将用户名和密码通过radius协议送到Radius服务器。The BRAS judges whether to perform local authentication or radius authentication according to the suffix of the user name. When performing radius authentication, the BRAS sends the user name and password to the Radius server through the radius protocol.

Radius服务器根据该用户名和密码进行认证。在认证结束后产生认证结果,并在认证结果中需包含是否需要再次进行地址分配的属性,还包含用户的授权信息,如宽带地址限制CAR、用户剩余的上网时间、用户优先级等。并将认证结果通知DHCPv6服务器。The Radius server performs authentication based on the user name and password. After the authentication is completed, the authentication result is generated, and the authentication result needs to include the attribute of whether to re-allocate the address, as well as the user's authorization information, such as broadband address limit CAR, the user's remaining online time, user priority, etc. And notify the DHCPv6 server of the authentication result.

如果认证成功并需要进行再次地址分配,则DHCPv6服务器向用户终端下发RECONFIGURE报文,在该报文中的扩展字节RECONFIGURE Option指定用户终端发起REQUEST报文。If the authentication is successful and address allocation needs to be performed again, the DHCPv6 server sends a RECONFIGURE message to the user terminal, and the extended byte RECONFIGURE Option in the message specifies that the user terminal initiates a REQUEST message.

用户终端收到RECONFIGURE报文后,根据指示发起REQUEST报文,进行DHCPv6重置,DHCPv6服务器分配能够访问其他地址(如web网站2)权限的IPv6地址及相应的权限,发送给BRAS。After receiving the RECONFIGURE message, the user terminal initiates a REQUEST message according to the instructions to perform a DHCPv6 reset, and the DHCPv6 server assigns an IPv6 address capable of accessing other addresses (such as web site 2) and corresponding rights, and sends them to the BRAS.

BRAS作为中继,将申请到的新IPv6地址返回用户。The BRAS acts as a relay and returns the applied for new IPv6 address to the user.

用户获得新IPv6地址后,BRAS为用户刷新用户策略,使得用户可以访问指定的Gloal(全网)地址,BRAS通过Portal协议通知Portal服务器用户的IPv6地址已改变。After the user obtains the new IPv6 address, the BRAS refreshes the user policy for the user, so that the user can access the specified Gloal (full network) address, and the BRAS notifies the Portal server that the user's IPv6 address has changed through the Portal protocol.

在上述实施例中,认证前分配的网络地址是本地IPv6地址,在认证后再分配全网IPv6地址。在实践中,认证前后的网络地址也可以都是全网IPv6地址,以实现用户在不同ISP之间的切换。例如用户在认证前默认是属于运营商1的,其网络地址由运营商1分配,可以访问的网站也由运营商1规定。如果该用户需要切换运营商,则需经过运营商2的认证,获得运营商2给予的权限,因此在认证通过后,应释放运营商1分配的网络地址,申请运营商2分配的地址。In the above embodiment, the network address assigned before the authentication is a local IPv6 address, and the IPv6 address of the whole network is assigned after the authentication. In practice, the network addresses before and after authentication can also be the IPv6 addresses of the entire network, so as to realize the switching of users between different ISPs. For example, the user belongs to operator 1 by default before authentication, and its network address is allocated by operator 1, and the websites that can be accessed are also specified by operator 1. If the user needs to switch operators, he needs to be authenticated by operator 2 to obtain the authority granted by operator 2. Therefore, after the authentication is passed, the network address allocated by operator 1 should be released and the address allocated by operator 2 should be applied.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of the present invention. within the scope of protection.

Claims (8)

1, a kind of second level address distribution method is applied to it is characterized in that in the IPv6 network that this method may further comprise the steps:
A, client and DHCPv6 server interaction obtain the IPv6 address of DHCPv6 server-assignment;
B, client are initiated authentication request, and certificate server authenticates client, and authentication result is sent to the DHCPv6 server;
Behind C, the DHCPv6 server access authentication result, according to authentication result indication client replacement DHCPv6 process;
D, client obtain the IPv6 address that the DHCPv6 server is redistributed according to the indication of DHCPv6 server with the DHCPv6 server interaction.
2, method according to claim 1 is characterized in that, also comprises an access server, is used for client and inserts the IPv6 network;
Steps A further comprises: add subscriber policy for client on access server;
Step D further comprises: upgrade subscriber policy for client on access server;
Described subscriber policy comprises the authority of distributing to the user at least.
One of 3, method according to claim 2 is characterized in that, below described authority comprises at least:
Allow the address of visit, the address that does not allow to visit, user flow restriction, allow the business of carrying out.
4, method according to claim 2 is characterized in that, described access server includes but not limited to: BRAS, three-tier switch, router.
One of 5, method according to claim 1 is characterized in that, below the described authentication result of step B comprises at least:
Need carry out once more the attribute of address assignment, the attribute that need carry out the client permission modification.
6, method according to claim 1 is characterized in that, the step of the described indication client of step C replacement DHCPv6 process is to initiate solicited message REQUEST by the indication of the RECONFIGURE Option field among replacement message RECONFIGURE client.
7, method according to claim 1 is characterized in that, described certificate server is: aaa server or Radius server.
8, method according to claim 1 is characterized in that, when client withdraws from the IPv6 network, further comprises behind the step D:
The IPv6 address that client release steps D obtains.
CN 200410097049 2004-12-21 2004-12-21 Method for distributing second level address Pending CN1798158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410097049 CN1798158A (en) 2004-12-21 2004-12-21 Method for distributing second level address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410097049 CN1798158A (en) 2004-12-21 2004-12-21 Method for distributing second level address

Publications (1)

Publication Number Publication Date
CN1798158A true CN1798158A (en) 2006-07-05

Family

ID=36818912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410097049 Pending CN1798158A (en) 2004-12-21 2004-12-21 Method for distributing second level address

Country Status (1)

Country Link
CN (1) CN1798158A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009012709A1 (en) * 2007-07-25 2009-01-29 Huawei Technologies Co., Ltd. Method and device for requesting and distributing address of connection point
WO2009117960A1 (en) * 2008-03-26 2009-10-01 华为技术有限公司 Method for accessing network, authentication method, communication system and related equipment
CN101145907B (en) * 2006-09-11 2010-05-12 华为技术有限公司 Method and system for realizing user authentication based on DHCP
CN101945144A (en) * 2010-09-14 2011-01-12 中兴通讯股份有限公司 IP address redistribution method and service node
CN101252604B (en) * 2007-02-23 2012-02-08 国际商业机器公司 Equipment and method to add IPV6 and DHCP support to the network support package
CN102594939A (en) * 2012-02-16 2012-07-18 杭州华三通信技术有限公司 Secondary address allocation method and device
US8464321B2 (en) 2007-12-27 2013-06-11 Huawei Technologies Co., Ltd. Method for assigning network addresses, network and network node thereof
CN104040985A (en) * 2012-11-16 2014-09-10 华为技术有限公司 Address reconfiguration method, server and client
CN104780233B (en) * 2014-01-14 2018-07-27 中国电信股份有限公司 Distribute method, wideband network gateway and the system of IPv6 address fields
CN114401249A (en) * 2021-12-08 2022-04-26 云南电网有限责任公司红河供电局 IPv6 address allocation method and system

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145907B (en) * 2006-09-11 2010-05-12 华为技术有限公司 Method and system for realizing user authentication based on DHCP
CN101252604B (en) * 2007-02-23 2012-02-08 国际商业机器公司 Equipment and method to add IPV6 and DHCP support to the network support package
US7991863B2 (en) 2007-07-25 2011-08-02 Huawei Technologies Co., Ltd Method and device for requesting and allocating connection point address
WO2009012709A1 (en) * 2007-07-25 2009-01-29 Huawei Technologies Co., Ltd. Method and device for requesting and distributing address of connection point
US8464321B2 (en) 2007-12-27 2013-06-11 Huawei Technologies Co., Ltd. Method for assigning network addresses, network and network node thereof
US9467447B2 (en) 2008-03-26 2016-10-11 Huawei Technologies Co., Ltd. Network access method, authentication method, communications system and relevant devices
CN101547383B (en) * 2008-03-26 2013-06-05 华为技术有限公司 Access authentication method, access authentication system and related equipment
WO2009117960A1 (en) * 2008-03-26 2009-10-01 华为技术有限公司 Method for accessing network, authentication method, communication system and related equipment
US8594103B2 (en) 2008-03-26 2013-11-26 Huawei Technologies Co., Ltd. Network access method, authentication method, communications systems and relevant devices
US8925067B2 (en) 2008-03-26 2014-12-30 Huawei Technologies Co., Ltd Network access authentication
CN101945144A (en) * 2010-09-14 2011-01-12 中兴通讯股份有限公司 IP address redistribution method and service node
CN102594939B (en) * 2012-02-16 2014-11-12 杭州华三通信技术有限公司 Secondary address allocation method and device
CN102594939A (en) * 2012-02-16 2012-07-18 杭州华三通信技术有限公司 Secondary address allocation method and device
CN104040985A (en) * 2012-11-16 2014-09-10 华为技术有限公司 Address reconfiguration method, server and client
CN104040985B (en) * 2012-11-16 2016-12-28 华为技术有限公司 Address reconfiguration method, server and client
CN104780233B (en) * 2014-01-14 2018-07-27 中国电信股份有限公司 Distribute method, wideband network gateway and the system of IPv6 address fields
CN114401249A (en) * 2021-12-08 2022-04-26 云南电网有限责任公司红河供电局 IPv6 address allocation method and system
CN114401249B (en) * 2021-12-08 2024-01-23 云南电网有限责任公司红河供电局 IPv6 address allocation method and system

Similar Documents

Publication Publication Date Title
CN1277434C (en) Secure access method, and associated apparatus, for accessing a private data communication network
US10142159B2 (en) IP address allocation
CN108737585B (en) IP address allocation method and device
CN1984155B (en) Domain name configuration method and network equipment in IPv6 access network
US8161523B2 (en) Method and apparatus for network access control (NAC) in roaming services
JP5088100B2 (en) IP network system, access control method thereof, IP address distribution apparatus, and IP address distribution method
CN101056178A (en) A method and system for controlling the user network access right
CN1750508A (en) Packet forwarding apparatus and access network system
CN102148878A (en) IP (internet protocol) address allocation method, system and device
CN1578487A (en) Method for mobile terminal switching in packet network
CN1713629A (en) Realization of user login name and IP address binding
US20080155678A1 (en) Computer system for controlling communication to/from terminal
CN105472048A (en) Address allocating method, information aggregation method and related equipment
WO2012089001A1 (en) Ip address allocation method and device
CN101043331A (en) System and method for distributing address for network equipment
CN1798158A (en) Method for distributing second level address
CN1744597A (en) Method for host use obtaining IP address parameters in IPV6 network
CN101084657A (en) Gateway, network configuration, and method for controlling access to web server
US20240098583A1 (en) PDU session continuity for a UE moving between a telecommunications network and a gateway device
KR100766067B1 (en) Method and device for supporting user mobility by allowing guest access in internet service network and charging method based on the same
CN1553341A (en) Client-based Network Address Assignment Method
CN1929482B (en) Method and device for network service authentication
CN102148882B (en) Method and system for dynamic domain name resolution after deploying NAT
CN1567887A (en) Method for triggering user IP address assignment
CN1489341A (en) Method and server for allocating local area network resources to terminals according to terminal types

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20060705