一种无线局域网中重定向分组数据关口的方法 Method for redirecting packet data gateway in wireless local area network
技术领域 Technical field
本发明涉及无线接入技术领域, 特别是指一种无线局域网中重定向 分组数据关口 (PDG ) 的方法。 发明背景 The present invention relates to the field of wireless access technology, and particularly to a method for redirecting a packet data gateway (PDG) in a wireless local area network. Background of the invention
随着社会的发展, 用户对无线接入速率的要求越来越高, 由于无线 局域网 (WLAN, Wireless Local Area Network ) 能够在较小范围内提供 高速的无线数据接入, 因而其被广泛应用。 无线局域网包括多种不同技 术, 目前应用较为广泛的一个技术标准是 IEEE 802.11b, 它釆用 2.4GHz 频段,最高数据传输速率可达 11Mbps,使用该频段的还有 IEEE 802.11g 和蓝牙(Bluetooth )技术,其中, 802.11g最高数据传输速率可达 54Mbps。 其它无线局域网技术, 诸如 IEEE 802.11a和 ETSI BRAN Hiperlan2都使 用 5GHz频段, 最高传输速率也可达到 54Mbps。 With the development of society, users have higher and higher requirements for wireless access rates. Since wireless local area networks (WLAN, Wireless Local Area Network) can provide high-speed wireless data access in a small range, it is widely used. Wireless local area network includes a variety of different technologies. One of the more widely used technical standards is IEEE 802.11b. It uses the 2.4GHz frequency band and the highest data transmission rate is 11Mbps. IEEE 802.11g and Bluetooth are also used in this frequency band. Technology, among them, the highest data transmission rate of 802.11g can reach 54Mbps. Other wireless LAN technologies, such as IEEE 802.11a and ETSI BRAN Hiperlan2, use the 5GHz band, and the highest transmission rate can reach 54Mbps.
虽然有多种不同的 WLAN无线接入技术, 但大部分 WLAN都采用 因特网协议(IP )分组数据包进行数据传输。 对于一个无线 IP网络, 其 所采用的具体 WLAN接入技术对于上层 IP—般是透明的, 其基本结枸 都是利用接入点(AP )完成用户终端的无线接入, 并通过网络控制和连 接设备组成的 IP传输网络进行数据传输。 Although there are many different WLAN wireless access technologies, most WLANs use Internet Protocol (IP) packet data packets for data transmission. For a wireless IP network, the specific WLAN access technology it uses is generally transparent to the upper-layer IP. Its basic structure is to use an access point (AP) to complete the wireless access of the user terminal. An IP transmission network composed of connected devices is used for data transmission.
随着 WLAN技术的兴起和发展, WLAN与各种无线移动通信网, 诸如: 全球移动通信(GSM ) 系统、 码分多址(CDMA ) 系统、 宽带码 分多址 (WCDMA ) 系统、 时分双工-同步码分多址(TD-SCDMA ) 系 统、 CDMA2000系统的互通正成为当前研究的重点。 在第三代合作伙伴 计划 (3GPP )标准化组织中, 用户终端既可以通过 WLAN的接入网络
与因特网( Internet )、企业内部互联网( Intranet )相连,还可以经由 WLAN 接入网络与 3GPP系统的归属网络或 3GPP系统的访问网络相连。 With the rise and development of WLAN technology, WLAN and various wireless mobile communication networks, such as: Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, Time Division Duplex -Interworking of synchronous code division multiple access (TD-SCDMA) system and CDMA2000 system is becoming the focus of current research. In the 3rd Generation Partnership Project (3GPP) standardization organization, user terminals can both access the network through WLAN It is connected to the Internet (Internet) and the corporate intranet (Intranet), and can also be connected to the home network of the 3GPP system or the access network of the 3GPP system via a WLAN access network.
图 1所示为漫游情况下 WLAN系统与 3GPP系统互通的组网结构示 意图。 WLAN用户终端在漫游接入时, 经由 WLAN接入网络与 3GPP 的访问网络相连, 由于 3GPP访问网络中的部分实体分別与 3GPP归属 网.络中的相应实体互连, 比如: 3 GPP访问网络中的 3 GPP认证授权计费 ( AAA )代理和 3GPP归属网络中的 3GPP认证授权计费 ( AAA )服务 器; 3GPP访问网络中的无线局域网接入关口 (WAG ) 与 3GPP归属网 络中的分组敖据关口 (PDG, Packet Data Gateway )等等, 因此, 实现 了 WLAN用户终端接入 3GPP的归属网络。 图中阴影部分为 3GPP分组 交换 (PS )域业务, 即 3GPP网络中的互通场景 3 ( Scenario3 ) 业务。 Figure 1 shows the schematic diagram of the networking structure between the WLAN system and the 3GPP system in the case of roaming. During roaming access, WLAN user terminals are connected to the 3GPP access network via the WLAN access network. As some entities in the 3GPP access network are connected to corresponding entities in the 3GPP home network, for example: 3 GPP access network 3 GPP Authentication, Authorization and Accounting (AAA) proxy and 3GPP Authentication, Authorization and Accounting (AAA) server in the 3GPP home network; Wireless Local Area Network Access Gateway (WAG) in the 3GPP access network and the packet gateway in the 3GPP home network (PDG, Packet Data Gateway) and so on, so that the WLAN user terminal accesses the 3GPP home network. The shaded part in the figure is the 3GPP packet switching (PS) domain service, that is, the Scenario3 service in the 3GPP network.
图 2所示为非漫游情况下 WLAN系统与 3GPP系统互通的组网结构 示意图。 WLAN用户终端在本地接入时, 经由 WLAN接入网络与 3GPP 的归属网络直接相连。 图中阴影部分为 3GPP分组交换(PS )域业务, 即 3GPP归属网络中的 Scenario3业务。 Figure 2 shows a schematic diagram of the networking structure of the WLAN system and the 3GPP system in the non-roaming situation. When a WLAN user terminal accesses locally, it is directly connected to the 3GPP home network via the WLAN access network. The shaded part in the figure is the 3GPP packet switching (PS) domain service, that is, the Scenario3 service in the 3GPP home network.
参见图 1、 图 2所示, 在 3GPP系统中, 主要包括归属签约用户服务 器(HSS ) /归属位置寄存器(HLR )、 3GPP AAA服务器、 3GPP AAA代 理、 WAG、分组数据关口、计费关口(CGw ) /计费信息收集系统(CCF ) 及在线计费系统(OCS )。 用户终端、 WLAN接入网络与 3GPP 系统的 所有实体共同构成了 3GPP-WLAN交互网络,该 3GPP-WLAN交互网络 可作为一种无线局域网服务系统。 其中, 3GPP AAA服务器负责对用户 的鉴权、 授权和计费, 对 WLAN接入网络送来的计费信息收集并传送 给计费系统; 分组数据关口 ( PDG ) 负责将用户数据从 WLAN接入网 络传输到 3GPP网络或其他分组网络; 计费系统主要接收和记录网络传 来的用户计费信息, OCS根据在线计费用户的费用情况指示网络周期性
的传送在线费用信息, 并进行统计和控制。 As shown in Figures 1 and 2, in the 3GPP system, it mainly includes a Home Subscriber Subscriber Server (HSS) / Home Location Register (HLR), a 3GPP AAA server, a 3GPP AAA proxy, a WAG, a packet data gateway, and a charging gateway (CGw ) / Charging Information Collection System (CCF) and Online Charging System (OCS). The user terminal, the WLAN access network, and all entities of the 3GPP system together constitute a 3GPP-WLAN interactive network. The 3GPP-WLAN interactive network can be used as a wireless local area network service system. Among them, the 3GPP AAA server is responsible for user authentication, authorization, and charging, and collects and transmits the charging information sent by the WLAN access network to the charging system. The packet data gateway (PDG) is responsible for accessing user data from the WLAN. The network transmits to the 3GPP network or other packet networks; the charging system mainly receives and records user charging information from the network, and OCS indicates the network periodicity according to the online charging user's fee situation To transmit online expense information, and perform statistics and control.
在非漫游情况下, 当 WLAN用户终端希望直接接入 Internet/Intranet 时, 用户终端通过 WLAN接入网与 AAA服务器(AS )完成接入认证授 权后, 通过 WLAN接入网直接接入到 Internet/Intranet。 如果该 WLAN 用户终端还希望接入 3GPP分组交换(PS )域业务, 则可进一步向 3GPP 归属网络申请 Scenario3业务。 申请 Scenario3业务的方法为: In a non-roaming situation, when a WLAN user terminal wants to directly access the Internet / Intranet, after the user terminal completes access authentication and authorization through the WLAN access network and the AAA server (AS), the user terminal directly accesses the Internet / Intranet. If the WLAN user terminal also wants to access the 3GPP packet switching (PS) domain service, it can further apply for a Scenario3 service from the 3GPP home network. To apply for the Scenario3 business:
WLAN用户终端首先向一个公共的域名解析服务器(DNS )提供自 己需要业务的业务接入点名称(W-APN )标识, 该 DNS可以是一个第 三方的公共设备, 也可以是无线网络专用的公共域名解析设备, 接受申 请的 DNS根据用户提供的 W-APN标识解析出相应的一个或多个 PDG 的 IP地址返回给 WLAN终端用户。 WLAN终端用户使用从 DNS得到 的其中一个 ip地址,向与该 IP地址对应的 PDG发送建立隧道连接的请 求, 接收到用户终端连接请求的 PDG与 AS联系, 由 AS负责对用户终 端的业务身份进行检查、 授权等工作, 如果接入认证成功, 则该接收到 用户终端连接请求的 PDG 与发送请求的 WLAN终端用户建立隧道连 接, 从而实现应用 Scenario3 业务。 如果接入认证不成功, 该接受用户 终端连接请求的 PDG将通知 WLAN用户终端。 The WLAN user terminal first provides a public domain name resolution server (DNS) with a service access point name (W-APN) identifier of the service that it needs. The DNS may be a third-party public device or a public network dedicated to wireless networks. The domain name resolution device, the DNS that accepts the application resolves the corresponding IP address of one or more PDGs according to the W-APN identifier provided by the user and returns it to the WLAN terminal user. The WLAN terminal user uses one of the IP addresses obtained from the DNS to send a request to establish a tunnel connection to the PDG corresponding to the IP address. The PDG that receives the user terminal connection request contacts the AS, and the AS is responsible for performing the service identity of the user terminal. Inspection, authorization, etc. If the access authentication is successful, the PDG that received the user terminal connection request establishes a tunnel connection with the WLAN terminal user that sent the request, thereby implementing the Scenario3 service. If the access authentication is unsuccessful, the PDG that accepts the user terminal connection request will notify the WLAN user terminal.
在漫游情况下, 当 WLAN用户终端希望接入 Internet/Intranet时, 用 户终端通过 3GPP 访问 网络向 3GPP 归属网络申请接入到 入到 Internet/Intranet。 如果用户终端还希望申请 Scenario3业务, 其申请 方法为: In the case of roaming, when a WLAN user terminal wants to access the Internet / Intranet, the user terminal requests the 3GPP home network to access the Internet / Intranet through the 3GPP access network. If the user terminal wishes to apply for the Scenario3 service, the application method is:
WLAN 用户终端首先向一个公共的 DNS 提供自己需要业务的 W-APN标识, 该接受申请的 DNS根据用户提供的 W-APN标识解析出 相应的一个或多个 PDG的 IP地址返回给 WLAN终端用户。 WLAN终
端用户使用从 DNS得到的其中一个 IP地址,向与该 IP地址对应的 PDG 发送建立隧道连接的请求, 接收到用户终端连接请求的 PDG 与本网络 的 AS联系, 由本网络的 AS与 WLAN用户终端所在归属网絡的 AS联 系,由 WLAN用户终端所在归属网络的 AS负责对用户终端的业务身份 进行检查、 授权等工作, 如果接入认证成功, 则该接受用户终端连接请 求的 PDG与发送请求的 WLAN终端用户建立隧道连接, 从而实现应用 Scenario3业务,如果接入认证不成功,该接受用户终端连接请求的 PDG 将通知 WLAN用户终端。 The WLAN user terminal first provides a public DNS with the W-APN identification of the service that it needs. The DNS that accepts the application resolves the corresponding IP address of one or more PDGs according to the W-APN identification provided by the user and returns it to the WLAN terminal user. WLAN end The end user uses one of the IP addresses obtained from the DNS to send a tunnel connection request to the PDG corresponding to the IP address. The PDG receiving the user terminal connection request contacts the AS of this network, and the AS of this network and the WLAN user terminal The AS of the home network where the WLAN user terminal is located is responsible for checking and authorizing the service identity of the user terminal. If the access authentication is successful, the PDG that accepts the user terminal connection request and the WLAN that sends the request The end user establishes a tunnel connection to implement the Scenario3 service. If the access authentication is unsuccessful, the PDG that accepts the connection request from the user terminal will notify the WLAN user terminal.
WLAN用户终端接收到来自 PDG的不成功通知后, 将重新和 DNS 联系,请求 DNS针对待申请业务在归属网络中解析 PDG的 IP地址, 由 DNS根据用户提供的 W-APN标识, 从该用户终端的归属网络中解析出 的一个或一个以上 PDG的 IP地址, 并返回给用户终端, WLAN终端用 户再次使用从 DNS得到的其中一个 IP地址,向与该 IP地址对应的 PDG 发送建立隧道连接的请求, 接收到用户终端连接请求的 PDG 与本网络 的 AS联系, 由本网络的 AS与 WLAN用户终端所在归属网络的 AS联 系,由 WLAN用户终端所在归属网络的 AS完成对用户终端的业务身份 进行检查、 授权等工作后, 该接受用户终端连接请求的 PDG 与发送请 求的 WLAN终端用户建立隧道连接, 从而实现应用 Scenario3业务。 After receiving the unsuccessful notification from the PDG, the WLAN user terminal will contact the DNS again to request that the DNS resolve the PDG IP address in the home network for the service to be applied for. The DNS retrieves the W-APN identifier provided by the user from the user terminal. The IP address of one or more PDGs resolved in the home network of the UE is returned to the user terminal. The WLAN terminal user again uses one of the IP addresses obtained from the DNS to send a request to establish a tunnel connection to the PDG corresponding to the IP address. The PDG that receives the user terminal connection request contacts the AS of this network, and the AS of this network contacts the AS of the home network where the WLAN user terminal is located. After authorization and other work, the PDG that accepts the user terminal connection request establishes a tunnel connection with the WLAN terminal user that sent the request, thereby implementing the Scenario3 service.
上述方法的缺陷在于: WLAN终端用户在漫游状态下希望使用访问 网络的某个 PDG时, 如果 PDG通知 WLAN用户终端不成功, WLAN 用户终端会重新和 DNS联系以解析要访问业务在归属网络的 PDG的 IP 地址。 在这种情况下 WLAN用户终端需要再次和 DNS联系, 造成了不 必要的信令资源的浪费, 使资源的使用没有达到优化。
发明内容 The disadvantage of the above method is that when the WLAN terminal user wishes to use a PDG that accesses the network while roaming, if the PDG notifies the WLAN user terminal that the WLAN user terminal is unsuccessful, the WLAN user terminal will contact the DNS again to resolve the PDG of the service to be accessed on the home network. IP address. In this case, the WLAN user terminal needs to contact the DNS again, which causes waste of unnecessary signaling resources, and the use of resources is not optimized. Summary of the invention
有鉴于此, 本发明的目的在于提供一种无线局域网中重定向分组数 据关口的方法, 当用户终端接入 PDG 失败时, 可以直接重定向到能够 提供服务的 PDG, 从而避免再次联系 DNS的过程。 In view of this, an object of the present invention is to provide a method for redirecting a packet data gateway in a wireless local area network. When a user terminal fails to access the PDG, it can be directly redirected to a PDG that can provide services, thereby avoiding the process of contacting the DNS again. .
为达到上述目的, 本发明的技术方案是这样实现的: To achieve the above object, the technical solution of the present invention is implemented as follows:
一种无线局域网中重定向分组数据关口的方法, 当用户终端接入分 组数据关口 (PDG ) 失败时, 该方法包括以下步骤: A method for redirecting a packet data gateway in a wireless local area network. When a user terminal fails to access the packet data gateway (PDG), the method includes the following steps:
a、 收到用户终端申^的 PDG获取能够为申请用户提供服务的 PDG 所在 IP地址的信息, a. The PDG receiving the application from the user terminal obtains information about the IP address of the PDG that can provide services to the application user.
b、 步骤 a所述 PDG向该申请服务用户终端返回包括所获取信息的 失败消息; b. The PDG in step a returns a failure message including the obtained information to the user service application terminal;
c、 用户终端接收到步驟 b所述消息后, 应用该消息所提供的 IP地 址进行重定向, 向新的 PDG请求建立隧道连接。 c. After receiving the message in step b, the user terminal redirects using the IP address provided by the message, and requests a new PDG to establish a tunnel connection.
较佳地, 如果由于收到用户终端申请的 PDG不能提供服务, 而使用 户终端接入失败, 步骤 a所述获取 IP地址信息的方法为: Preferably, if the user terminal access fails because the PDG received by the user terminal application cannot provide services, the method for obtaining IP address information in step a is:
该 PDG 从自身保存的替代信息中获取能够为申请用户终端提供服 务的 PDG所在 IP地址信息。 The PDG obtains the IP address information of the PDG that can provide services to the user terminal from the replacement information saved by itself.
较佳地, 如果由于收到用户终端申请的 PDG不能提供服务, 而使用 户终端接入失败, 则步骤 a所述获取 IP地址信息的方法为: Preferably, if the user terminal access fails because the PDG received from the user terminal application cannot provide services, the method for obtaining IP address information described in step a is:
该 PDG直接向用户终端所在归属网络中的 AAA服务器, 或向代理 AAA服务器, 或通过代理 AAA服务器向用户终端所在归属网络中的 AAA服务器进行查询能够为申请用户终端提供服务的 PDG所在 IP地址 信息。 The PDG directly inquires the AAA server in the home network where the user terminal is located, or the proxy AAA server, or queries the AAA server in the home network where the user terminal is located through the proxy AAA server, to find the IP address information of the PDG where the user terminal can be served. .
较佳地, 如果由于收到用户终端申请的 PDG不能提供服务, 而使用 户终端接入失败, 则步骤 a所述获取 IP地址信息的方法为:
该 PDG通过执行 WLAN用户终端鉴权授权流程, 查询能够为申请 用户终端提供服务的 PDG所在 IP地址信息。 Preferably, if the access of the user terminal fails because the PDG received by the user terminal cannot provide services, the method for obtaining IP address information described in step a is: The PDG queries the IP address information of the PDG that can provide services to the user terminal by executing the WLAN user terminal authentication and authorization process.
较佳地, 如果由于用户终端所在归属网络中的 AAA服务器不同意 该用户使用其申请的 PDG, 而使用户终端接入失败, 则步骤 a所述获取 IP地址信息的方法为: Preferably, if the user terminal fails to access the user because the AAA server in the home network where the user terminal is located does not agree with the user's use of the PDG applied for, the method for obtaining IP address information described in step a is:
该用户终端所在归属网络中的 AAA服务器重新指定一个能够提供 服务的 PDG, 并将该 PDG的 IP地址信息提供给收到用户终端申请的 PDG。 The AAA server in the home network where the user terminal is located re-designates a PDG that can provide services, and provides the PDG's IP address information to the PDG that receives the user terminal application.
较佳地, 如果由于代理 AAA服务器不同意该用户使用其申请的 PDG,而使用户终端接入失败,则步骤 a所述获取 IP地址信息的方法为: 该代理 AAA服务器重新指定一个能够提供服务的 PDG, 并将该 PDG的 IP地址信息提供给收到用户终端申请的 PDG。 Preferably, if the access of the user terminal fails because the proxy AAA server does not agree with the user's use of the PDG applied for, the method for obtaining IP address information described in step a is: the proxy AAA server re-designates a capable service The PDG, and provide the PDG's IP address information to the PDG receiving the user terminal application.
较佳地, 步骤 b失败消息, 由层 2隧道建立协议 L2TP、 或互连网密 钥交换协议 IKE,或互连网密钥交换协议的版本 2 IKEv2、或 GRE协议、 或 GRE协议和互连网密钥交换协议 IKE或 IKEv2承载。 Preferably, the step b fails with a layer 2 tunnel establishment protocol L2TP, or an Internet key exchange protocol IKE, or an Internet key exchange protocol version 2 IKEv2, or a GRE protocol, or a GRE protocol and an Internet key exchange protocol IKE Or IKEv2 bearer.
应用本发明, 当用户终端接入 PDG 失败时, 收到用户终端申请的 PDG向用户终端返回包括能够为申请用户提供服务的 PDG所在 IP地址 的失败消息, 用户终端接收到该消息后,应用该消息所提供的 IP地址进 行重定向, 向新的 PDG请求建立隧道连接。 从而使用户终端能够直接 重定向到可以提供服务的 PDG, 避免了用户终端到 DNS重定向到归属 网络选择 PDG 的过程。 同时, 应用本发明使用户终端能够明确地知道 哪个 PDG可以提供服务, 从而减少了连接失败的次数, 优化了网络资 源的应用。
附图简要说明 Applying the present invention, when the user terminal fails to access the PDG, the PDG received by the user terminal returns to the user terminal a failure message including the IP address of the PDG that can provide services to the application user. After receiving the message, the user terminal applies the message The IP address provided by the message is redirected, and a new PDG is requested to establish a tunnel connection. Therefore, the user terminal can be directly redirected to a PDG that can provide services, and the process of user terminal to DNS redirection to the home network to select a PDG is avoided. At the same time, applying the present invention enables the user terminal to clearly know which PDG can provide the service, thereby reducing the number of connection failures and optimizing the application of network resources. Brief description of the drawings
图 1所示为漫游情况下 WLAN系统与 3GPP系统互通的组网结构示 意图; Figure 1 shows the schematic diagram of the networking structure of interworking between the WLAN system and the 3GPP system in the case of roaming;
图 2所示为非漫游情况下 WLAN系统与 3GPP系统互通的组网结构 示意图; Figure 2 shows a schematic diagram of the networking structure of the interworking between the WLAN system and the 3GPP system in a non-roaming situation;
图 3所示为应用本发明的用户终端重定向 PDG的流程图。 实施本发明的方式 FIG. 3 is a flowchart of a user terminal redirecting PDG to which the present invention is applied. Mode of Carrying Out the Invention
为使本发明的技术方案更加清楚, 下面结合附图及具体实施例再对 本发明做进一步详细说明。 , 本发明的思路是: 当用户终端接入 PDG失败时, 收到用户终端申请 的 PDG获取能够为申请用户提供服务的 PDG所在 IP地址的信息,并向 该申请服务用户终端返回包括所获取信息的失败消息; 用户终端应用该 消息所提供的 IP地址进行重定向, 向新的 PDG请求建立隧道连接。 In order to make the technical solution of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The idea of the present invention is: when the user terminal fails to access the PDG, the PDG received by the user terminal obtains information about the IP address where the PDG is able to provide services to the application user, and returns to the application service user terminal including the acquired information. Failure message; the user terminal applies the IP address provided by the message to redirect, and requests a new PDG to establish a tunnel connection.
图 3所示为应用本发明的用户终端重定向 PDG的流程图。 FIG. 3 is a flowchart of a user terminal redirecting PDG to which the present invention is applied.
步骤 1 , WLAN用户终端接入网络时 , 首先要经过基本的接入认证 授权过程, 这个过程之后 WLAN终端用户可以通过接入网络直接访问 Internet/Intranet; Step 1. When a WLAN user terminal accesses the network, it must first go through a basic access authentication and authorization process. After this process, the WLAN terminal user can directly access the Internet / Intranet through the access network;
步骤 2,当该 WLAN用户终端希望应用访问网络中 3GPP PS域的某 种业务时, 该 WLAN用户终端首先向一个公共的 DNS提供自己需要业 务的 W- APN标识, 该接受申请的 DNS经过解析后, 给 WLAN终端用 户返回一个或一个以上 PDG的 IP地址; Step 2: When the WLAN user terminal wants an application to access a certain service in the 3GPP PS domain in the network, the WLAN user terminal first provides a public DNS with the W-APN identity of the service it needs. After the DNS that has accepted the application is resolved, To return the IP address of one or more PDGs to the WLAN terminal user;
步骤 3a, WLAN用户终端使用从 DNS得到的其中一个 IP地址, 向 与该 IP地址对应的 PDG发送建立隧道连接的请求; ' Step 3a: The WLAN user terminal uses one of the IP addresses obtained from the DNS to send a request to establish a tunnel connection to the PDG corresponding to the IP address;
如果在限定的时间内 WLAN用户终端没有收到来自申请的 PDG的
任何响应消息时, 如可能是 PDG死机, 则执行步骤 3b, 否则根据接收 到消息执行相应操作; If the WLAN user terminal does not receive the In any response message, if it may be a PDG crash, perform step 3b, otherwise perform the corresponding operation according to the received message;
步驟 3b, WLAN用户终端选择由 DNS解析的其它 PDG的 IP地址, 并向该所选择的 IP地址发送建立隧道连接的请求; Step 3b: The WLAN user terminal selects an IP address of another PDG resolved by the DNS, and sends a request for establishing a tunnel connection to the selected IP address;
步骤 4, 接收到 WLAN用户终端连接请求 PDG判断自身是否能够 提供服务, 如果自身不能提供用户终端所需的服务, 可能是因为暂停服 务或流量控制等原因, 则执行步骤 5 , 否则执行步骤 7; Step 4, receiving the WLAN user terminal connection request PDG to determine whether it can provide services, if it can not provide the services required by the user terminal, it may be because of suspension of service or flow control reasons, then go to step 5, otherwise go to step 7;
步骤 5 , 接收到 WLAN用户终端连接请求的 PDG判断自身是否存 有能够提供替代自己提供服务的 PDG的 IP地址, 如果有, 则直接给用 户终端返回包含能够为申请用户提供服务的 PDG所在 IP地址的失败消 息后, 执行步骤 9, 否则执行步骤 6; Step 5. The PDG that receives the WLAN user terminal connection request determines whether it has an IP address capable of providing a PDG that provides services instead of itself. If so, it directly returns to the user terminal the IP address that contains the PDG that can provide services for the application user. After the failure message, go to step 9, otherwise go to step 6;
步骤 6, 接收到 WLAN用户终端连接请求的 PDG向本地代理 AAA 服务器, 或者, 通过本地的代理 AAA服务器向 WLAN用户终端所在归 属网络中的 AAA服务器进行查询, 或者, 直接向 WLAN用户终端所在 归属网络中的 AAA服务器进行查询, 以获取能够为申请用户提供服务 的 PDG所在 IP地址的信息, 并执行步骤 8; Step 6. The PDG that receives the WLAN user terminal connection request queries the local proxy AAA server, or queries the AAA server in the home network of the WLAN user terminal through the local proxy AAA server, or directly queries the home network of the WLAN user terminal. The AAA server performs a query to obtain information of the IP address where the PDG is able to provide services to the applying user, and performs step 8;
另外, 接收到 WLAN 用户终端连接请求的 PDG也可以通过执行 WLAN用户终端鉴权授权流程,来获取能够为申请用户提供服务的 PDG 所在 IP地址的信息, 并执行步骤 8; In addition, the PDG that receives the WLAN user terminal connection request can also obtain the information of the IP address where the PDG is able to provide services to the application user by performing the WLAN user terminal authentication and authorization process, and perform step 8;
步骤 7,接收到 WLAN用户终端连接请求的 PDG请求与 WLAN用 户终端所在归属网络中的 AAA服务器进行连接, 以对 WLAN用户终端 进行认证授权, 如果通过认证则执行步骤 10; Step 7, the PDG request that received the WLAN user terminal connection request is connected to the AAA server in the home network where the WLAN user terminal is located to authenticate and authorize the WLAN user terminal, and if the authentication is passed, step 10 is performed;
如果是归属网络的 AAA 服务器不允许 WLAN 用户终端使用该 PDG, 则归属网络的 AAA服务器提供一个可以提供服务的 PDG的 IP 地址信息, 并将信息传送给 PDG后,执行步骤 8,通常归属网络的 AAA
服务器所提供的 IP地址信息一般也是在归属网络中; If the AAA server of the home network does not allow the WLAN user terminal to use the PDG, the AAA server of the home network provides an IP address information of the PDG that can provide the service, and after transmitting the information to the PDG, perform step 8. Generally, the home network's AAA The IP address information provided by the server is usually also in the home network;
如果是访问网络的代理 AAA 服务器不允许 WLAN 用户使用该 PDG, 则访问网络的代理 AAA服务器提供一个可以提供服务的 PDG的 IP地址信息, 并将信息传送给 PDG后, 执行步骤 8; If the proxy AAA server accessing the network does not allow the WLAN user to use the PDG, the proxy AAA server accessing the network provides an IP address information of the PDG that can provide the service, and after transmitting the information to the PDG, perform step 8;
步骤 8, 该接收到 WLAN用户终端连接请求 PDG给用户终端返回 包含能够为申请用户提供服务的 PDG所在 IP地址的失败消息; Step 8, the received WLAN user terminal connection request PDG returns to the user terminal a failure message containing the IP address of the PDG capable of providing services to the user;
步骤 9, 接收到失败消息的 WLAN用户终端, 应用消息中提供的 IP 地址, 向该 IP地址所对应的 PDG发送建立隧道连接的请求后, 执行步 骤 3b; Step 9. After receiving the failure message, the WLAN user terminal applies the IP address provided in the message and sends a request to establish a tunnel connection to the PDG corresponding to the IP address, and then executes step 3b;
步骤 10, 该接收到 WLAN用户终端连接请求 PDG与 WLAN用户 终端建立起业务通信的隧道, 并给用户提供所请求的服务。 Step 10. The PDG receives a WLAN user terminal connection request to establish a service communication tunnel with the WLAN user terminal, and provides the requested service to the user.
上述的消息过程可以使用现有的互连网协议——层 2隧道建立协议 ( L2TP )来完成。在 L2TP的返回失败消息格式中,存在信息( message ) 字段, 该 message字段可以根据需要添入各种信息, 在本发明中, 将可 以提供服务 PDG的 IP地址信息放入该字段中。 The above message process can be completed using the existing Internet protocol-Layer 2 Tunneling Protocol (L2TP). In the return failure message format of L2TP, there is a message field, and the message field can be added with various information as required. In the present invention, IP address information that can provide a service PDG is put into this field.
当 L2TP协议应用为 WLAN用户终端接入 PDG的协议时, WLAN用 户终端在收到失败消息后,除了判断消息中已有的结果代码(result code ) 和错误代码( error code )字段外, 还要进一步判断 message字段的信息。 When the L2TP protocol is used as a protocol for a WLAN user terminal to access the PDG, after receiving the failure message, the WLAN user terminal must determine the result code and error code fields in the message, and it must also Further judge the information of the message field.
L2TP协议在互连网上应用时, 某些特定的 "result code" 后面可能 不会有 "error code" 或 "message" 字段, 但应用到 WLAN无线接入网 络后,就要求其在 "result code"和 "error code"后面一定要携带 " message" , 以适应无线网络的特殊应用。 When the L2TP protocol is applied on the Internet, there may not be an "error code" or "message" field behind some specific "result code", but after it is applied to the WLAN wireless access network, it is required to be in the "result code" and Be sure to carry a "message" behind the "error code" to suit the special application of the wireless network.
另外互连网协议 IP Security安全协议族也可以用做隧道协议, 其中 的互连网密钥交换协议 ( IKE, Internet Key Exchange )或 IKEv2 ( IKE 的版本 2 ), 也可以作为本发明的承载协议, 直接使用其中的保留字段或
做适当的扩展就可完成本方案的功能。 In addition, the Internet protocol IP Security security protocol family can also be used as a tunneling protocol. The Internet key exchange protocol (IKE, Internet Key Exchange) or IKEv2 (version 2 of IKE) can also be used as the bearer protocol of the present invention, and it can be used directly. Reserved fields or Proper extensions can complete the functionality of this solution.
互连网的 GRE ( Generic Routing Encapsulation ), 是一种支持隧道的 封装协议, 本发明的 IP地址信息可以放在 IP包中然后直接封装在 GRE 协议, 实现 WLAN用户终端和 PDG的隧道通信, 为了提供比较好的安 全性 GRE协议最好和 IP Security协议配合使用。 The Internet's GRE (Generic Routing Encapsulation) is an encapsulation protocol that supports tunneling. The IP address information of the present invention can be placed in an IP packet and then directly encapsulated in the GRE protocol to implement tunnel communication between a WLAN user terminal and a PDG. In order to provide a comparison Good security GRE protocol is best used in conjunction with IP Security protocol.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡 在本发明的精神和原则之内, 所做的任何修改、 等同替换和改进, 均应 包含在本发明的保护范围之内。
The above description is only the preferred embodiments of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention shall be included in the present invention. Within the scope of protection.