CN102196417B - Method for user-side equipment and user-side equipment, control equipment - Google Patents

Method for user-side equipment and user-side equipment, control equipment Download PDF

Info

Publication number
CN102196417B
CN102196417B CN 201010127171 CN201010127171A CN102196417B CN 102196417 B CN102196417 B CN 102196417B CN 201010127171 CN201010127171 CN 201010127171 CN 201010127171 A CN201010127171 A CN 201010127171A CN 102196417 B CN102196417 B CN 102196417B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
ap
interface id
ipv6 address
user
ac
Prior art date
Application number
CN 201010127171
Other languages
Chinese (zh)
Other versions
CN102196417A (en )
Inventor
林涛
汪昊
Original Assignee
杭州华三通信技术有限公司
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
Grant date

Links

Abstract

本发明公开了定位用户侧设备的方法、用户侧设备及控制设备。 The present invention discloses a method for locating user equipment side, the user-side equipment and control equipment. 方法包括:根据用户侧设备的地理位置信息生成该用户侧设备的接口ID,用户侧设备保存该接口ID;上线用户侧设备根据自身的接口ID生成一个IPv6地址,使用该IPv6地址与控制设备建立连接;当需要定位用户侧设备时,从用户侧设备上获取该用户侧设备的接口ID或IPv6地址,由该接口ID或IPv6地址解析出该用户侧设备的地理位置信息;或者,从该用户侧设备连接的控制设备上获取该用户侧设备的IPv6地址,由该IPv6地址解析出该用户侧设备的地理位置信息。 The method comprises: location information of the user-side apparatus generates the interface ID of the user-side equipment according to the user-side device saves the interface ID; on-line user side device generates an IPv6 address based on its own interface ID, using the IPv6 address of the control device to establish connection; when it is necessary to locate the user-side equipment, available on the user side of the interface ID of the IPv6 address of the user or device side, parsing the user side device by the interface ID or location information of the IPv6 address; or from the user obtain the user-side device on the control device side device connected to an IPv6 address, parses the user side device by the location information of the IPv6 address. 本发明提高了定位用户侧设备的速度。 The present invention improves the speed of the positioning device on the user side.

Description

定位用户侧设备的方法及用户侧设备、控制设备 Positioning the CPE and the CPE method, the control device

技术领域 FIELD

[0001] 本发明涉及定位技术领域,具体涉及定位用户侧设备的方法、用户侧设备及控制设备。 [0001] The present invention relates to locating technologies, and particularly relates to a method of locating a user-side equipment, the user-side equipment and control equipment.

背景技术 Background technique

[0002] 无线局域网(WLAN, Wireless Local Area Network)技术是当今通信领域的热点之一,和有线网相比,WLAN的启动和实施相对简单,维护成本低廉,一般只要安放一个或多个接入点设备就可建立覆盖整个建筑或地区的局域网络。 [0002] Wireless local area network (WLAN, Wireless Local Area Network) have become very popular today in the field of communications, and compared to wired networks, WLAN start and relatively simple to implement, low maintenance costs, as long as the place is generally one or more access point can cover the whole building or local area network region.

[0003] 图1为集中式WLAN系统的一个组网示例图,如图1所示,其主要包括:无线客户端(Client)、无线接入点(AP, Access Point)和无线接入控制器(AC, Access Controller)。 [0003] Figure 1 is a centralized WLAN network system of FIG example shown in Figure 1, which includes: a wireless client (Client), a wireless access point (AP, Access Point) and wireless access controller (AC, Access Controller). 其中,AP提供无线客户端到局域网的桥接功能,在无线客户端与无线局域网之间进行无线到有线和有线到无线的帧转换;AC对无线局域网中的所有AP进行控制和管理。 Wherein, the client to the AP wireless LAN bridge function between a wireless client and the wireless LAN to the wired and wireless wired to wireless frame conversion; all the AC AP wireless LAN control and management. AP可以直接连接到AC上,也可以通过二层或三层网络连接到AC上。 AP may be directly connected to the AC, the AC may be connected to the network by two or three layers.

[0004] 如果AC与AP之间运行IPv6协议,则在初始阶段,AP先使用邻居发现(ND,Neighbor Discovery )无状态自动配置生成自身的IPv6地址,具体过程如下: [0004] If the IPv6 protocol running between the AP and AC, at the initial levels, AP to use a neighbor discovery (ND, Neighbor Discovery) stateless autoconfiguration to generate its own IPv6 address, the specific process is as follows:

[0005] 01:AP上线时,向路由器发送路由器请求(RS, Router Solicitation)消息。 [0005] 01: the AP on-line, sending a router solicitation (RS, Router Solicitation) message to the router.

[0006] 02:路由器接收到RS消息,向AP返回路由器通告(RA, Router Advertisement)消息,该消息携带网络前缀。 [0006] 02: RS router receives the message, returns a router advertisement (RA, Router Advertisement) message to the AP, the message carries the network prefix.

[0007] 03:AP接收RA消息,根据RA消息中的网络前缀以及自身生成的接口ID生成自身的IPv6地址。 [0007] 03: AP receiving the RA message, generating its own IPv6 address based on the network prefix in the RA message and the self-generated interface ID.

[0008] 其中,接口ID的生成方法由管理员预先配置在AP上,具体可为:根据接口MAC地址生成,或者根据随机数生成,等等。 [0008] wherein the method for generating the interface ID is pre-configured by the administrator on the AP, can be specifically to: generate a MAC address based on the interface or based on random numbers generated, and the like.

[0009] AP运用发现机制来识别AC。 [0009] AP found that the use of mechanisms to identify the AC. 如果AP使用单播发现机制,AP可以请求DNS服务器提供AC的网络地址。 If the AP using unicast discovery mechanism, AP can request the DNS server to provide AC network address. 然后AP使用生成的IPv6地址关联到AC上。 Then the associated AP using the generated IPv6 addresses to the AC. 一旦无线客户端通过认证并与AP关联成功,就可以使用授权的WLAN服务并与其它的无线客户端及有线设备进行通信。 Once authenticated, the wireless client is associated AP successfully, you can use a WLAN service authorization and communicate with the other wireless clients and wired devices.

[0010]无线接入点控制与供应(CAPWAP, Controlling and Provisioning of WirelessAccess Point)协议定义了AP与AC之间如何通信,为实现AP和AC之间的互通性提供一个通用封装和传输机制。 [0010] The wireless access point control and supply (CAPWAP, Controlling and Provisioning of WirelessAccess Point) protocol defines how communication between the AP and AC, a generic encapsulation and transport mechanisms to achieve interoperability between the AP and AC. CAPWAP同时运行在AP和AC上,为WLAN系统提供安全的AC与AP之间的通信。 CAPWAP runs on an AP and AC, to provide secure communications between the WLAN AP and the AC system. 在AC上,CAPWAP提供了AP管理功能。 On the AC, CAPWAP provides the AP management functions. AC可以根据管理员提供的信息动态地配置AP。 AC AP can be configured dynamically based on information provided by the administrator.

[0011] 运营商、企业都有可能部署无线AP网络,部署的范围可能大到一个城市,小到一个大楼。 [0011] operators, enterprises are likely to deploy wireless AP network, the range of possible deployment to a large city to a small building. 为了能够迅速定位某个AP的具体地理位置,目前,在AC上使用CAPWAP配置AP的相关信息,其中,配置AP的描述信息为AP的具体地理位置,比如某区某街道某门牌号某楼层某房间等。 In order to be able to quickly locate the specific location of an AP, currently used on AC CAPWAP AP configuration information, where the description of the configuration of the AP to AP's specific location, such as a street Area with a floor of a house number room and so on.

[0012] 图2给出了现有的定位AP的流程图,如图2所示,其具体步骤如下:[0013] 步骤201:AP第一次连接上一个AC,AC发现该AP未上报位置(Location)字符串,则根据AP的序列号,在自身保存的AP序列号与AP的位置字符串的对应关系中,查找到该AP的位置字符串。 [0012] Figure 2 shows a flow chart of a conventional positioning of the AP, shown in Figure 2, the specific steps are as follows: [0013] Step 201: the AP for the first time a connection AC, AC found that the AP does not report the position (the location) string according to the serial number of the AP, the corresponding relationship stored by the AP position of the string in the sequence number with the AP, the AP find the location of the string.

[0014] 步骤202:AC向AP下发该位置字符串,AP接收并保存该位置字符串。 [0014] Step 202: AC this position string issued to the AP, the AP receives and stores the location string.

[0015] 步骤203:之后,AP与其它AC连接上,则AP主动将保存的位置字符串上报给当前AC。 [0015] Step 203: After, on the other AC connection with AP, the AP active to save the current position of the string is reported to the AC.

[0016] 这样,该AP连接上的任何一个AC都会保存该AP的位置字符串,从而管理员可以从AP连接上的AC上获取该AP的位置字符串,从而得知该AP的地理位置。 [0016] Thus, the AP will either AC connector on the AP save location string, the string so that an administrator can acquire the AP from the AP on the AC connector, such that the geographic location of the AP.

[0017] 其中,步骤201中,AC保存的AP序列号与AP的位置字符串的对应关系是由管理员配置的,具体地,管理员会定时或不定时地查看每台AC上的关联AP情况,若发现有一AP第一次连接到一AC上,则对该AP进行定位,然后将该AP的序列号和位置字符串的对应关系配置到该AC上,然后,AC再将该AP的位置字符串下发给该AP。 [0017] wherein, in step 201, AC saved correspondence between the string and the sequence number of the AP AP is configured by the administrator, in particular, regular or irregular administrator to view the associated AP on each AC where, if found to have an AP connected to a first AC, the positioning of the AP, and then configure the corresponding relationship between the serial number and the string of the AP to the AC, and then, then the AP of the AC AP string issued to the lower position. 显然,这种方法极为不便,且定位速度很慢;另外,由于管理员是在AC上查看连接上的AP,这样,只有在AP可用时,管理员才能查看到该AP,从而才会对该AP进行定位,而在AP不可用时,则无法对该AP进行定位。 Obviously, this method is extremely inconvenient, and the positioning speed is very slow; In addition, because the administrator is to check on the AP is connected to the AC, so that only the AP is available, the administrator can view the AP, so will the positioning AP, while the AP is not available, the AP can not be targeted. 同样地,在其它应用场合中,也存在这样的问题,例如:当要对网络中的交换机进行定位时,管理员也需要定时或不定时地查看每台网管服务器上的连接交换机情况,若发现有一交换机第一次连接到一网管服务器上,则对该交换机进行定位,然后将该交换机的序列号和位置信息的对应关系配置到该网管服务器上以便管理员查询。 Similarly, in other applications, there is also a problem, for example: When switches in the network to locate, the administrator also need regular or irregular view where the switch is connected on each network server, if found a first switch connected to a network management server, the positioning of the switch, and configure the corresponding relationship between the sequence number and the position information of the switch to the network management server administrator to query. 目前还未给出该方面的解决方案。 It has not yet been given to this aspect of the solution.

发明内容 SUMMARY

[0018] 本发明提供定位用户侧设备的方法及用户侧设备、控制设备,以提高定位速度。 [0018] The present invention provides a method for locating a user-side apparatus and the user-side equipment, a control device, in order to improve the positioning speed.

[0019] 本发明的技术方案是这样实现的: [0019] aspect of the present invention is implemented as follows:

[0020] 一种定位用户侧设备的方法,该方法包括: [0020] A positioning method for a user equipment side, the method comprising:

[0021] 根据用户侧设备的地理位置信息生成该用户侧设备的接口ID,用户侧设备保存该接口ID ; [0021] geographic location information of the user-side device generates an interface ID according to the user-side device, to save the user-side equipment interface ID;

[0022] 上线用户侧设备根据自身的接口ID生成一个IPv6地址,使用该IPv6地址与控制设备建立连接; [0022] The user side device on the line to generate an IPv6 address according to its own port ID, the IPv6 address is used to establish a connection with the control apparatus;

[0023] 当需要定位用户侧设备时,从用户侧设备上获取该用户侧设备的接口ID或IPv6地址,由该接口ID或IPv6地址解析出该用户侧设备的地理位置信息;或者,从该用户侧设备连接的控制设备上获取该用户侧设备的IPv6地址,由该IPv6地址解析出该用户侧设备的地理位置信息。 [0023] when it is necessary to locate the user equipment side, the user side device acquired from the user-side interface IPv6 address or ID, the interface ID or resolved by the IPv6 address that the user-side device location information; or from the obtain the user-side device on a user side device control device connected to an IPv6 address, parses the user side device by the location information of the IPv6 address.

[0024] 预先将由地理位置信息生成接口ID的接口ID生成方式配置在用户侧设备上,且,当要将用户侧设备部署到一个地理位置上时,将该地理位置信息配置到该用户侧设备上; [0024] pre-configure the interface ID generated by the location information generating mode of the interface ID in the user-side device, and, when a location on the user side device To deploy, configure the location information to the subscriber-side apparatus on;

[0025] 所述根据用户侧设备的地理位置信息生成该用户侧设备的接口ID为: [0025] The location information of the user-side apparatus generates an interface ID according to the user-side device is:

[0026] 用户侧设备根据配置在自身的地理位置信息和接口ID生成方式,生成自身的接Π ID。 [0026] The user side device disposed in its own location information and the interface ID generating mode, generates its own access Π ID.

[0027] 所述根据用户侧设备的地理位置信息生成该用户侧设备的接口ID包括:预先将由地理位置信息生成接口ID的接口ID生成方式配置在网管服务器上,[0028] 当要将用户侧设备部署到一个地理位置上时,网管服务器根据该用户侧设备的地理位置信息生成该用户侧设备的接口ID,并将该接口ID配置在该用户侧设备上。 [0027] The geographic location information of the user-side apparatus generates the interface ID of the user-side apparatus comprising a: the geographic location information generated by the pre-generation mode Interface ID Interface ID is configured on the network management server, [0028] When the user want to side when deploying the device to a location on the network server that generates the user-side interface of the device ID based on location information of the user-side device, and configure the interface ID in the user-side equipment.

[0029] 所述方法进一步包括:网管服务器获取用户侧设备的IPv6地址, [0029] The method further comprises: network management server acquires an IPv6 address of the user-side device,

[0030] 且,当网管服务器接收到携带用户侧设备IPv6地址的定位请求后,从该IPv6地址解析出该用户侧设备的地理位置信息,将该地理位置信息输出。 [0030] Further, when the network management server receives the positioning request carries the user side device IPv6 address, the IPv6 address is resolved from the location information of the user-side device, the location information is output.

[0031] 所述用户侧设备为交换机,所述控制设备为网管服务器; [0031] The user-side device is a switch, the control device is a network management server;

[0032] 或者,所述用户侧设备为无线接入点AP,所述控制设备为无线接入控制器AC。 [0032] Alternatively, the user side device to the AP wireless access point, the control device is a radio access controller AC.

[0033] 当所述用户侧设备为AP,所述控制设备为AC时,所述AP上未配置由地理位置信息生成接口ID的接口ID生成方式,且未配置由该AP的地理位置信息生成的接口ID ; [0033] When the AP to the user side device, the control device is AC, the AP is not configured on the interface ID generated by the embodiment of the interface ID generated location information, and not the geographic location information generated by the configuration of the AP interface ID;

[0034] 所述根据用户侧设备的地理位置信息生成该用户侧设备的接口ID之前进一步包括: [0034] Before the interface ID of the user-side device location information is generated according to the user-side apparatus further comprises:

[0035] AP上线,采用现有方法生成一个接口ID,根据该接口ID生成一个IPv6地址,采用该IPv6地址与一个AC建立连接,该AC根据自身配置的该AP的位置字符串得到该AP的地 [0035] AP on-line, using the conventional method for generating a port ID, it generates an IPv6 address based on the port ID, using the IPv6 address to establish a connection to AC, the AC of the AP obtained according to the position of the AP itself string configuration ground

理位置信息; Position information management;

[0036] 所述根据用户侧设备的地理位置信息生成该用户侧设备的接口ID包括: [0036] The location information of the user-side apparatus generates an interface ID according to the user-side device comprising:

[0037] 所述AC根据所述AP的地理位置信息生成该AP的接口ID,并将该接口ID下发给该AP ; [0037] The AC interface ID generated based on location information of the AP of the AP, the AP will send the ID of the interface;

[0038] 且,所述用户侧设备保存该接口ID的同时进一步包括:所述AP断开与所述AC的连接; [0038] and, to save the user side device of the interface ID and further comprising: the AP is disconnected from said AC;

[0039] 且,所述用户侧设备根据自身的接口ID生成一个IPv6地址为:所述AP根据所述AC下发的接口ID生成一个IPv6地址。 [0039] and the user-side apparatus generates an IPv6 address based on its own interface ID is: The AP generates an IPv6 address based on the interface ID delivered by the AC.

[0040] 一种用户侧设备,包括: [0040] A user side device, comprising:

[0041] 接口ID生成模块,根据本用户侧设备的地理位置信息生成本用户侧设备的接口ID,将该接口ID保存在接口ID存储模块中; [0041] The generating module interface ID, location ID according to the interface information generating apparatus according to the cost of the user side of the user side device, the interface ID is stored in the interface ID in the storage module;

[0042] 接口ID存储模块,保存本用户侧设备的接口ID ; [0042] Interface ID storage module, saving the user-side equipment according to the present interface ID;

[0043] 连接建立模块,上线时,从接口ID存储模块获取本用户侧设备的接口ID,根据该接口ID生成一个IPv6地址,使用该IPv6地址与控制设备建立连接; [0043] Connection establishment module, when on-line, obtaining interface ID of the user-side device interface ID from the storage module, generates an address based on the IPv6 interface ID, the IPv6 address is used to establish a connection with the control apparatus;

[0044] 定位处理模块,接收外部输入的定位请求,从接口ID存储模块获取本用户侧设备的接口ID,将该接口ID输出,以便外部根据该接口ID解析出本用户侧设备的地理位置信息;或者从连接建立模块获取本用户侧设备的IPv6地址,将该IPv6地址输出,以便外部根据该IPv6地址解析出本用户侧设备的地理位置信息。 [0044] positioned processing module receives the external input location request, obtaining interface ID of the user-side equipment, the interface ID is outputted from the interface ID storage module, for parsing the external side of the present apparatus according to the user ID of the interface location information ; or establish the connection module from the user side device of the present acquires an IPv6 address, the IPv6 address output to the external user side device of the present parsed IPv6 address based on the geographic location information.

[0045] 所述用户侧设备进一步包括: [0045] The user side device further comprises:

[0046] 接口ID解析模块,接收定位处理模块输入的接口ID或IPv6地址,从该接口ID或IPv6地址解析出本用户侧设备的地理位置信息,将该地理位置信息输出。 [0046] The parsing module interface ID, interface ID or receives positioning IPv6 address input processing module parses out the present user-side device location information from the IPv6 interface ID or address, the location information is output.

[0047] 所述用户侧设备为交换机或AP。 The [0047] user-side device is a switch or AP.

[0048] 一种控制设备,包括: [0048] A control apparatus, comprising:

[0049] 定位处理模块,接收外部输入的定位请求,将该请求中的用户侧设备的IPv6地址输出到IPv6地址解析模块,接收IPv6地址解析模块返回的用户侧设备的地理位置信息,将该地理位置信息输出;[0050] IPv6地址解析模块,接收定位处理模块输入的IPv6地址,从该IPv6地址解析出用户侧设备的地理位置信息,将该地理位置信息返回给定位处理模块。 [0049] The positioning processing module for receiving positioning requests the external input, and outputs the IPv6 address of the user-side device to request an IPv6 address resolution module, the receiving CPE IPv6 address resolution module returns the location information, the geographical position information output; [0050] IPv6 address resolution module, the processing module receives the positioning input IPv6 address, the IPv6 address is resolved from the user-side device location information, the location information is returned to the positioning processing module.

[0051 ] 所述控制设备为网管服务器或AC。 [0051] The control device is a network management server, or AC.

[0052] 一种AP,该AP 包括: [0052] An AP, the AP comprising:

[0053] 接口ID存储模块,保存本AP的接口ID ; [0053] The memory module interface ID, the AP save this interface ID;

[0054] 连接建立模块,上线时,根据现有方法生成本AP的接口ID,根据该接口ID生成一个IPv6地址,使用该IPv6地址与AC建立连接;接收AC下发的由本AP的地理位置信息生成的接口ID,将该AC下发的接口ID保存到接口ID存储模块,同时断开与该AC的连接,采用该AC下发的接口ID重新生成一个IPv6地址,采用新生成的IPv6地址,重新与该AC建立连接; [0054] Connection establishment module, when on-line, according to the interface ID of an existing method of raw cost AP generates an IPv6 address based on the interface ID, using the IPv6 address to establish connection to AC; sent by the receive AC information from the location according to the present AP, generating the interface ID, save the issued AC Interface ID Interface ID to the storage module, and disconnect the AC, using AC issued by the interface ID regenerate an IPv6 address, an IPv6 address of the new generation, re-establish the connection to the AC;

[0055] 定位处理模块,接收外部输入的定位请求,从接口ID存储模块获取本AP的接口ID,将该接口ID输出,以便外部根据该接口ID解析出本AP的地理位置信息;或者,从连接建立模块获取本用户侧设备新生成的IPv6地址,将该IPv6地址输出,以便外部根据该IPv6地址解析出本AP的地理位置信息。 [0055] positioned processing module for receiving positioning requests the external input, the interface ID of the AP acquired from the storage module interface ID, the interface ID is output to an external location information parsed according to the present AP interface ID; or from connection establishing module obtains an IPv6 address this newly generated user side device, the IPv6 address is output to an external location information parsed according to the present AP IPv6 address.

[0056] 所述AP进一步包括: [0056] The AP further comprising:

[0057] 接口ID解析模块,接收定位处理模块输入的接口ID或IPv6地址,从该接口ID或IPv6地址解析出本AP的地理位置信息,将该地理位置信息输出。 [0057] The parsing module interface ID, interface ID or receives positioning IPv6 address processing module inputs, the geographic location information parsed from the present AP interface ID or IPv6 address, the location information is output.

[0058] 一种AC,该AC 包括: [0058] A AC, the AC comprises:

[0059] 连接处理模块,发现一AP与本AC连接上,将该AP的序列号发送给接口ID生成模块; [0059] The connection processing module, connected to an AP found present on AC, AP sends the sequence number to the interface ID generating module;

[0060] 接口ID生成模块,接收连接处理模块发来的AP的序列号,根据该AP的序列号查找到本AC配置的该AP的位置字符串,根据该位置字符串得到该AP的地理位置信息,根据该AP的地理位置信息生成该AP的接口ID,将该接口ID下发给该AP。 [0060] Interface ID generating module, the receive sequence number AP sent by the processing module is connected, to find the string of the AP is configured in accordance with the present AC serial number of the AP, the AP is obtained based on the geographic location string information, the AP generates location information based on the interface ID of the AP, the AP issued under the interface ID.

[0061] 所述AC进一步包括: [0061] The AC further comprising:

[0062] 定位处理模块,接收外部输入的定位请求,将该请求中的AP的IPv6地址输出到IPv6地址解析模块,接收IPv6地址解析模块返回的AP的地理位置信息,将该地理位置信息输出; [0062] positioned processing module receives the external input location request, and outputs the IPv6 address request to the AP IPv6 address resolution module, receives IPv6 address resolution module returns the geographic location information of the AP, the location information is output;

[0063] IPv6地址解析模块,接收定位处理模块输入的AP的IPv6地址,从该IPv6地址解析出AP的地理位置信息,将该地理位置信息返回给定位处理模块。 [0063] IPv6 address resolution module, the input module receives the positioning of the AP processing IPv6 address, the IPv6 address from the parsed location information of the AP, the location information is returned to the positioning processing module.

[0064] 与现有技术相比,本发明中,根据用户侧设备的地理位置信息生成用户侧设备的接口ID,使得可以根据用户侧设备的接口ID或IPv6地址解析得到用户侧设备的地理位置信息,从而提高了定位用户侧设备的速度。 [0064] Compared with the prior art, the present invention, the interface ID according to the location information of the user-side apparatus generates a user-side device, so that can be resolved to give the CPE according IPv6 interface ID or address of the user-side device location information, thereby increasing the speed of the positioning device on the user side.

附图说明 BRIEF DESCRIPTION

[0065] 图1为集中式WLAN系统的一个组网示例图; [0065] Figure 1 is a centralized WLAN System Network diagram;

[0066] 图2为现有的定位AP的流程图; [0066] FIG 2 is a flowchart of a conventional positioning AP;

[0067] 图3为本发明实施例一提供的定位用户侧设备的流程图; [0067] FIG. 3 is a flowchart of locating the user equipment side according to a first embodiment of the present invention;

[0068] 图4为本发明实施例二提供的定位AP的流程图; [0068] FIG 4 is a flowchart AP positioned according to a second embodiment of the present invention;

[0069] 图5为本发明实施例三提供的定位AP的流程图;[0070] 图6为本发明实施例一提供的用户侧设备的组成图; [0069] FIG 5 is a flowchart AP positioned according to a third embodiment of the present invention; [0070] FIG. 6 Composition user side device according to a first embodiment of the present invention;

[0071] 图7为本发明实施例一提供的控制设备的组成图; [0071] FIG 7 FIG composition control apparatus according to a first embodiment of the present invention;

[0072] 图8为本发明实施例二提供的AP的组成图; [0072] FIG. 8 is composed of FIG AP according to a second embodiment of the present invention;

[0073] 图9为本发明实施例二提供的AC的组成图。 [0073] FIG. 9 consisting FIG AC according to a second embodiment of the invention.

具体实施方式 detailed description

[0074] 图3为本发明实施例一提供的定位用户侧设备的流程图,如图3所示,其具体步骤如下: [0074] FIG. 3 is a flowchart of locating the user equipment side according to a first embodiment of the invention, shown in Figure 3, the specific steps are as follows:

[0075] 步骤301:根据用户侧设备的地理位置信息生成该用户侧设备的接口ID,用户侧设备保存自身的接口ID。 [0075] Step 301: Interface ID, user-side interface device stores its own ID information of the user-side location device that generates the user-side equipment according to.

[0076] 可预先将由地理位置信息生成接口ID的接口ID生成方式配置在用户侧设备上,当用户侧设备要部署到一个地理位置上时,管理员等将该地理位置信息配置到该用户侧设备上,用户侧设备采用该接口ID生成方式,由该地理位置信息生成自身的接口ID;或者,可预先将由地理位置信息生成接口ID的接口ID生成方式配置在网管服务器上,当用户侧设备要部署到一个地理位置上时,管理员等将该地理位置信息配置到网管服务器上,网管服务器采用该接口ID生成方式,由该用户侧设备的地理位置信息生成该用户侧设备的接口ID,然后将生成的接口ID配置到该用户侧设备上。 [0076] may be pre-configured by the user-side interface on the ID generating mode generates the interface ID of the location information, when the user-side equipment to be deployed to a location, the location information of the administrator or the like to the user-side configuration device, a user-side equipment using the interface ID generation mode to generate the own interface ID by the geographic location information; alternatively, may be pre-configured by the NMS server interface ID generating mode generates the interface ID of the location information, when the user-side equipment to deploy to a location, the location information of the administrator or the like disposed on the network management server, the network server uses the interface ID generating mode, the interface ID generated by the user-side device location information of the user side apparatus, the interface ID is then arranged to generate the user-side device.

[0077] 接口ID的生成方式可如下: [0077] ID-interface generation may be as follows:

[0078] 01:将用户侧设备的地理位置信息以预先定义的标准格式表示。 [0078] 01: The standard formats for representing the geographic location information to the user side apparatus defined in advance.

[0079] 02:根据预先定义的映射规则,将用户侧设备的地理位置信息映射为接口ID。 [0079] 02: pre-defined mapping rules, the location information is mapped to the user-side device interface ID.

[0080] 用户侧设备的接口ID与用户侧设备的地理位置信息间的映射规则可以为: [0080] The mapping rule between the location information of the interface ID with the user-side device may be a user-side equipment:

[0081] 用户侧设备的接口ID=类型标识+用户侧设备的地理位置信息。 Interface ID [0081] the user equipment-side type identifier = + geographic location information of the user-side equipment. 其中,类型标识用于指示用户侧设备的地理位置类型,例如:可用于指示用户侧设备位于室内还是室外。 Wherein the type identifier for indicating the user-side location device type, for example: can be used to indicate the user-side equipment is located indoors or outdoors.

[0082] 用户侧设备可将自身的接口ID保存在永久性存储器中,以方便查询。 [0082] The user-side device may own interface ID storage in permanent memory, for consultation.

[0083] 步骤302:用户侧设备上线,根据自身的接口ID生成自身的IPv6地址。 [0083] Step 302: CPE line generating its own IPv6 address according to its own interface ID.

[0084] 这里,用户侧设备可根据获取的网络前缀和自身的接口ID生成自身的IPv6地址。 [0084] Here, the user-side device may generate its own IPv6 address according to the acquired network prefix and its own interface ID. 其中,获取网络前缀的方法与现有技术相同。 Wherein the method of obtaining the same network prefix of the prior art.

[0085] 步骤303:用户侧设备使用生成的IPv6地址与自身的控制设备建立连接,建立成功,控制设备保存用户侧设备标识与该用户侧设备的IPv6地址的对应关系。 [0085] Step 303: the user-side equipment using the generated IPv6 address to establish the connection with its own control device, is successfully established, correspondence between the IPv6 address of the control device stores a user equipment identifier with the user-side device side.

[0086] 步骤304:当需要定位用户侧设备时,从该用户侧设备获取该用户侧设备的接口ID或IPv6地址,从该接口ID或IPv6地址中解析出该用户侧设备的地理位置信息;或者,从该用户侧设备连接上的控制设备上获取该用户侧设备的IPv6地址,从该IPv6地址解析出该用户侧设备的地理位置信息。 [0086] Step 304: when it is necessary to locate the user equipment side, the user side device acquired from the user-side interface ID or IPv6 address, parses the user-side device location information from the IPv6 interface ID or address; Alternatively, obtain the IPv6 address of the user-side device from the control device on the user side device is connected, the parsed location information of the user-side device from the IPv6 address.

[0087] 图3所示实施例中的用户侧设备可以是交换机,控制设备可以是网管服务器;或者,用户侧设备可以是AP,控制设备可以是AC;等等。 [0087] Figure 3 shows a user-side apparatus in the embodiment may be a switch, the control device may be a network management server; Alternatively, the AP may be a user side device, the control device may be the AC; and the like. 以下以用户侧设备为AP,控制设备为AC为例,对本发明进行进一步详细说明。 The following user-side equipment an AP, an example is an AC control apparatus of the present invention will be further described in detail.

[0088] 图4为本发明实施例二提供的定位AP的流程图,如图4所示,其具体步骤如下: [0088] FIG 4 is a flowchart AP positioned according to a second embodiment of the present invention, shown in Figure 4, the specific steps are as follows:

[0089] 步骤401:根据AP的地理位置信息生成该AP的接口ID,AP保存自身的接口ID。 [0089] Step 401: AP location information generating an interface ID according to the AP, AP save their interface ID.

[0090] 可预先将由地理位置信息生成接口ID的接口ID生成方式配置在AP上,当AP要部署到一个地理位置上时,管理员等将该地理位置信息配置到AP上,AP采用该接口ID生成方式,由该地理位置信息生成自身的接口ID;或者,可预先将由地理位置信息生成接口ID的接口ID生成方式配置在网管服务器上,当AP要部署到一个地理位置上时,管理员等将该地理位置信息配置到网管服务器上,网管服务器采用该接口ID生成方式,由AP的地理位置信息生成AP的接口ID,然后将生成的接口ID配置到AP上。 [0090] may be pre-configured by the interface ID generating mode information generation location of the interface ID in the AP, when the AP to be deployed to a location, the location information of the administrator or the like are arranged on AP, using the AP Interface ID generation mode, the geographic location information generated by its own interface ID; Alternatively, location information may be previously generated by the interface ID generating mode interface ID is arranged on the network management server, to be deployed when the AP to a location, the administrator the other configuration information to the network location server, the network server uses the interface ID generating mode, the interface ID is generated by the AP location information of the AP, and then the resultant configuration interface ID to the AP.

[0091] 接口ID的生成方式可如下: [0091] ID-interface generation may be as follows:

[0092] 01:将AP的地理位置信息以预先定义的标准格式表示。 [0092] 01: The AP location information indicates a standard format defined in advance.

[0093] 根据AP位于室内还是室外,将AP的地理位置信息分别表示为: [0093] The AP is located indoors or outdoors, the AP location information are denoted as:

[0094] 室内:区、街道、门牌号、楼号、单元号、楼层、房间号、顺序号; [0094] Interior: district, street, house number, floor number, unit number, floor, room number, sequence number;

[0095] 室外:区、街道、线杆类型、线杆号。 [0095] Outdoor: district, neighborhood, type of mast, pole number.

[0096] 02:根据预先定义的映射规则,将AP的地理位置信息映射为接口ID。 [0096] 02: pre-defined mapping rules, the location information is mapped to the AP interface ID.

[0097] AP的接口ID与AP的地理位置信息间的映射规则可以为: [0097] The mapping rule between the location information of the AP and the AP interface ID may be:

[0098] AP的接口ID=类型标识+AP的地理位置信息。 [0098] AP interface type identifier ID = + AP location information. 其中,类型标识用于指示AP位于室内还是室外。 Wherein the type identifier is used to indicate that the AP is located indoors or outdoors.

[0099] 以下给出了AP的接口ID的一种格式: [0099] The following presents a format of the interface ID of the AP:

[0100] [0100]

Figure CN102196417BD00091

[0101] 其中,type为类型标识,可以001表示室内,002表示室外; [0101] Here, type is the type identifier 001 may represent interior, 002 refers to an outdoor;

[0102] position ID为AP的地理位置信息,其中,当AP位于室内时,position ID的格式可如表1所示: [0102] position ID of the AP location information, wherein, when the AP is located indoors, the position ID format may be as shown in Table 1:

[0103] [0103]

Figure CN102196417BD00092

[0104] 表1AP位于室内时,AP的地理位置信息格式 [0104] Table 1AP when located indoors, AP location information format

[0105] 当AP位于室外时,position ID的格式可如表2所示: [0105] When the AP is located outdoors, position ID format may be as shown in Table 2:

[0106] [0106]

Figure CN102196417BD00093

[0107] 表2AP位于室内时,AP的地理位置信息格式 [0107] Table 2AP located indoors, AP location information format

[0108] AP可将自身的接口ID保存在永久性存储器中,以方便查询。 [0108] AP own interface ID may be stored in volatile memory, for consultation.

[0109] 步骤402:AP上线,接收路由器发来的RA消息,读取该消息中的网络前缀。 [0109] Step 402: AP on-line, receiving an RA message sent by the router, the message is read in the network prefix.

[0110] 步骤403:AP根据网络前缀和自身的接口ID生成自身的IPv6地址。 [0110] Step 403: AP generates its own IPv6 address according to the network prefix and its own interface ID. [0111] 步骤404:AP使用生成的IPv6地址与AC建立CAPWAP连接,AC保存AP的序列号与AP的IPv6地址的对应关系。 [0111] Step 404: using the generated IPv6 address of the AP and AC CAPWAP connection establishment, AC saved correspondence between the IPv6 address and the serial number of the AP AP.

[0112] 步骤405:当需要定位AP时,从AP获取该AP的接口ID或IPv6地址,从该接口ID或IPv6地址中解析出该AP的地理位置信息;或者,从该AP连接上的AC上获取该AP的IPv6地址,从该IPv6地址解析出该AP的地理位置信息。 [0112] Step 405: When the AP needs to be positioned, from the acquired IPv6 address AP interface ID or the AP, or from the interface ID in the IPv6 address parsing the geographic location information of the AP; or from the AP connection AC acquiring the IPv6 address of the AP, the AP parses the geographic location information from the IPv6 address.

[0113] 图4所示实施例中,可由AP自己采用新的接口ID生成方式生成接口ID,或者由管理员采用新的接口ID生成方式为AP生成接口ID并配置在AP上,但是,为了兼容现有的配置方式,即:AP不支持新的接口ID生成方式且管理员不在AP上配置接口ID的情况,本发明提供了如下实施例: [0113] FIG. 4 embodiment, by using their new AP interface ID generating mode generates the interface ID, or by the administrator using the new interface ID generating mode is interface ID generated by the AP in the AP and configured, however, to configuration compatible with existing, namely: AP does not support the new interface ID generating mode and the administrator ID of an interface where the AP is not on, the present invention provides the following embodiments:

[0114] 图5为本发明实施例三提供的定位AP的流程图,如图5所示,其具体步骤如下: [0114] FIG 5 is a flowchart AP positioned according to a third embodiment of the present invention, shown in Figure 5, the specific steps are as follows:

[0115] 步骤501:AP根据配置在自身的现有接口ID生成方式,生成接口ID。 [0115] Step 501: AP arranged in its conventional manner to generate an interface ID, the interface ID generated in accordance with.

[0116] 本步骤中的现有接口ID生成方式为现有技术,而不是本发明提供的由AP的地理位置信息生成接口ID的方式。 [0116] the interface ID generated by the location information of the AP interface ID generated prior embodiment of the present step is prior art, the present invention is not provided.

[0117] 步骤502:AP上线,接收路由器发来的RA消息,读取该消息中的网络前缀。 [0117] Step 502: AP on-line, receiving an RA message sent by the router, the message is read in the network prefix.

[0118] 步骤503:AP根据网络前缀和步骤501中的接口ID生成自身的IPv6地址。 [0118] Step 503: AP generates its own IPv6 address prefix based on the network in step 501 and interface ID.

[0119] 步骤504:AP使用生成的IPv6地址与一个AC建立CAPWAP连接。 [0119] Step 504: AP IPv6 address generated by the AC to establish a CAPWAP connection.

[0120] 步骤505:AC根据自身配置的该AP的位置字符串得到该AP的地理位置信息,根据该AP的地理位置信息生成该AP的接口ID,将生成的该AP的接口ID下发给该AP。 [0120] Step 505: AC string position itself of the AP configuration is obtained according to the geographic location information of the AP, the AP interface ID according to the location information generating the interface ID of the AP, the AP will send the generated the AP.

[0121] 本步骤中的接口ID生成方式与步骤401相同。 [0121] the same manner as in the interface ID generated in step 401 in this step.

[0122] 步骤506:AP接收并保存AC下发的接口ID,断开与AC之间的CAPWAP连接。 [0122] Step 506: AP receives and stores the issued AC interface ID, the disconnect between the CAPWAP AC.

[0123] 步骤507:AP根据AC下发的接口ID以及步骤502中的网络前缀,重新生成一个IPv6地址。 [0123] Step 507: AP The AC issued by the network prefix and the interface ID in step 502, generates a new IPv6 address.

[0124] 步骤508:AP使用新生成的IPv6地址重新与AC建立CAPWAP连接。 [0124] Step 508: AP newly generated IPv6 address is used to re-establish a CAPWAP connection to AC.

[0125] 步骤509:当需要定位AP时,从AP获取该AP的接口ID或IPv6地址,从该接口ID或IPv6地址中解析出该AP的地理位置信息;或者,从该AP连接上的AC上,获取该AP的IPv6地址,从该IPv6地址解析出该AP的地理位置信息;或者,也可采用现有技术:从该AP连接上的AC上获取该AP的位置字符串,由该位置字符串得知该AP的地理位置信息。 [0125] Step 509: When the AP needs to be positioned, from the acquired IPv6 address AP interface ID or the AP, or from the interface ID in the IPv6 address parsing the geographic location information of the AP; or from the AP connection AC on acquiring an IPv6 address of the AP, the AP parses the geographic location information from said IPv6 address; Alternatively, the prior art may also be used: Get the string from the AP on the AC connected to the AP, by the position string that location information of the AP.

[0126] 实际应用中,可将接口ID的生成方式配置在网管服务器和/或用户侧设备和/或控制设备上,并在网管服务器和/或用户侧设备和/或控制设备上提供可输入标准格式的用户侧设备的地理位置信息的界面,当用户侧设备要部署到一个地理位置上时,由管理员等将用户侧设备的地理位置信息输入到网管服务器和/或用户侧设备和/或控制设备上,然后网管服务器和/或用户侧设备和/或控制设备采用接口ID生成方式,生成该用户侧设备的接口ID。 [0126] practice, the generation mode of the interface ID may be configured on the network management server and / or the user-side equipment and / or control devices, and to provide input on the network server and / or the user-side equipment and / or control device an interface location information of the user side apparatus of a standard format, when the user-side device to be deployed to a location, the administrator or the like to the user-side device location information is input to the network management server and / or the user-side device and / or the control device, then the network management server and / or the user-side device and / or the control device uses the interface ID generation mode to generate the user-side device interface ID.

[0127] 这里,也可同时将由接口ID解析出地理位置信息的接口ID解析方式配置在网管服务器和/或用户侧设备和/或控制设备上,这样,当管理员要查询一个用户侧设备的地理位置信息时,对于网管服务器或控制设备,只需输入用户侧设备的IPv6地址,网管服务器或控制设备就可根据该用户侧设备的IPv6地址解析出该用户侧设备的接口ID,再采用接口ID解析方式,得到该用户侧设备的地理位置信息并输出;对于用户侧设备,则可直接根据接口ID解析出用户侧设备的地址位置信息并输出,或者,根据该用户侧设备的IPv6地址解析出该用户侧设备的接口ID,再由接口ID解析出该用户侧设备的地理位置信息并输出。 [0127] Here, at the same time may be parsed by the Interface ID Interface ID analytically geographical location information configured on the network management server and / or the user-side equipment and / or control device, so that, when the administrator to query a user side device when the geographic location information for the network management server or a control device, simply enter the user side device IPv6 address, the network management server or the control device can parse the user-side device according to the IPv6 address of the user-side device port ID, and then uses the interface ID analytically to obtain location information of the user-side device and an output; user-side equipment, the interface ID may be resolved directly from the user-side device and outputs the address information of the location, or resolved according to the IPv6 address of the user-side device an interface ID of the user-side device, and then parsed by the interface ID of the user-side device and outputs the location information.

[0128] 图6为本发明实施例一提供的用户侧设备的组成图,如图6所示,其主要包括:接口ID生成模块61、接口ID存储模块62、连接建立模块63和定位处理模块64,其中: [0128] FIG 6 is composed of FIG user side device according to a first embodiment of the invention, shown in Figure 6, which includes: an interface ID generating module 61, the interface ID storage module 62, a connection establishing module 63 and the positioning processing module 64, in which:

[0129] 接口ID生成模块61:根据本用户侧设备的地理位置信息生成本用户侧设备的接口ID,将该接口ID保存在接口ID存储模块62中。 [0129] Interface ID generating module 61: The interface ID location information generating apparatus according to the cost of the user side of the user side device, the interface ID is stored in the storage module 62 in the interface ID.

[0130] 接口ID存储模块62:保存本用户侧设备的接口ID。 [0130] Interface module 62 ID memory: This saved user-side equipment interface ID.

[0131] 连接建立模块63:本用户侧设备上线时,从接口ID存储模块62获取本用户侧设备的接口ID,根据该接口ID生成一个IPv6地址,使用该IPv6地址与控制设备建立连接。 [0131] Connection establishment module 63: The line of the present user-side device acquired from the interface ID storage module 62 is the interface ID of the user-side equipment, generates an IPv6 address based on the interface ID, using the IPv6 address of the control device to establish a connection.

[0132] 定位处理模块64:接收外部输入的定位请求,从接口ID存储模块62获取本用户侧设备的接口ID,将该接口ID输出,以便外部根据该接口ID解析出本用户侧设备的地理位置信息;或者,从连接建立模块63获取该用户侧设备的IPv6地址并输出,以便外部根据该IPv6地址解析出本用户侧设备的地理位置信息。 [0132] Positioning the processing module 64: external input receiving the positioning request, acquires the present user side device 62 from the interface ID storage module interface ID, the interface ID is output to an external analytical apparatus according to the present user side of the interface ID geography position information; or from the connection establishing module 63 acquires an IPv6 address of the user-side device and outputs to an external user side device of the present parsed location information according to the IPv6 address.

[0133] 在实际应用中,用户侧设备还可包括:接口ID解析模块,用于接收定位处理模块64输入的接口ID或IPv6地址,从该接口ID或IPv6地址解析出本用户侧设备的地理位置信息,将该地理位置信息输出。 [0133] In practical applications, the user-side device further comprising: a parsing module interface ID, an interface module for receiving positioning process ID or IPv6 address input 64, this user-side equipment parsed from the interface ID of the IPv6 address or geographic location information, the location information is output.

[0134] 图7为本发明实施一提供的控制设备的组成图,如图7所示,其主要包括:定位处理模块71和IPv6地址解析模块72,其中: [0134] FIG. 7 embodiment FIG composition provided a control apparatus of the present invention shown in Figure 7, which includes: a processing module 71 and the positioning IPv6 address resolution module 72, wherein:

[0135] 定位处理模块71:接收外部输入的定位请求,将该请求中的用户侧设备的IPv6地址发送给IPv6地址解析模块72,接收IPv6地址解析模块72返回的用户侧设备的地理位置信息,将该地理位置信息输出到外部。 [0135] positioned processing module 71: external input received location request, transmits the IPv6 address of the user-side device to request an IPv6 address resolution module 72, receives IPv6 address resolution module location in the user-side device 72 is returned, the location information output to the outside.

[0136] IPv6地址解析模块72:接收定位处理模块71输入的IPv6地址,从该IPv6地址解析出用户侧设备的地理位置信息,将该地理位置信息返回给定位处理模块71。 [0136] IPv6 address resolution module 72: the processing module receives the positioning of the IPv6 address input 71, the geographic location information parsed from the user side device IPv6 address, the location information is returned to the processing module 71 is positioned.

[0137] 图6所示的用户侧设备可以为交换机、AP等。 [0137] As shown in FIG. 6 may be user side device for the switch, AP like. 当为交换机时,图6中提到的控制设备可以为网管服务器;当为AP时,图6中提到的控制设备为AC。 When the switch control device in FIG. 6 may be referred to as the network management server; when an AP, control apparatus as mentioned in FIG. 6 AC.

[0138] 图7所示的控制设备可以是网管服务器、AC等。 The control device shown in [0138] FIG. 7 may be a network server, AC and so on. 当为网管服务器时,图7中提到的用户侧设备可以为交换机;当为AC时,图7中提到的用户侧设备为AP。 When the network management server, the user-side equipment referred to in FIG. 7 may be a switch; when is AC, the user-side equipment referred to in FIG. 7 AP.

[0139] 图8为本发明实施例二提供的AP的组成图,如图8所示,其主要包括:接口ID存储模块81、连接建立模块82和定位处理模块83,其中: [0139] FIG. 8 Composition according to the second embodiment of the present invention, an AP, shown in Figure 8, which mainly includes: an interface ID storage module 81, a connection establishing module 82 and the positioning processing module 83, wherein:

[0140] 接口ID存储模块81:保存本AP的接口ID。 [0140] Interface ID storage module 81: Save the interface ID of the AP.

[0141] 连接建立模块82:本AP上线时,根据现有方法生成本AP的接口ID,根据该接口ID生成一个IPv6地址,使用该IPv6地址与AC建立CAPWAP连接;接收AC下发的由本AP的地理位置信息生成的接口ID,将该AC下发的接口ID保存到接口ID存储模块81,同时断开与该AC的CAPWAP连接,采用该AC下发的接口ID重新生成一个IPv6地址,采用新生成的IPv6地址,重新与该AC建立CAPWAP连接。 [0141] Connection establishment module 82: The present AP on the line, according to the interface ID of an existing method of raw cost AP generates an IPv6 address based on the interface ID, using the IPv6 address establish a CAPWAP connection to AC; issued by the received AC by the AP location information generated by the interface ID, the interface ID storage AC delivered to the interface at the ID storage module 81, while the AC disconnect CAPWAP, using the interface ID delivered by the AC to regenerate an IPv6 address, using the new generation of IPv6 addresses, to re-establish a CAPWAP connection to the AC.

[0142] 定位处理模块83:接收外部输入的定位请求,从接口ID存储模块81获取本AP的接口ID或者从连接建立模块82获取本AP新生成的IPv6地址,将该接口ID输出或IPv6地址输出,以便外部根据该接口ID或IPv6地址解析出本AP的地理位置信息。 [0142] The processing module 83 positioned: positioning request receiving an external input, the interface 81 acquires from the ID storage module interface ID of the AP or the AP newly established access this IPv6 address generated from the connection module 82, the interface ID or IPv6 address output output to an external location information parsed according to the present AP interface ID or IPv6 address.

[0143] 在实际应用中,AP还可包括:接口ID解析模块,用于接收定位处理模块83输入的接口ID或IPv6地址,从该接口ID或IPv6地址解析出本AP的地理位置信息,将该地理位置信息输出。 [0143] In practical applications, AP further comprising: a parsing module interface ID, or the interface ID for the IPv6 address of the processing module 83 is positioned in the input, parses the present location information of the interface ID from an AP or an IPv6 address. the location information output.

[0144] 图9为本发明实施二提供的AC的组成图,如图9所示,其主要包括:连接处理模块91和接口ID生成模块92,其中: [0144] FIG 9 provided in the second embodiment of FIG AC composition of the present invention, shown in Figure 9, which includes: a processing module connected to the interface ID generating module 91 and 92, wherein:

[0145] 连接处理模块91:发现一AP与本AC建立了CAPWAP连接,向接口ID生成模块92发送该AP序列号。 [0145] connecting the processing module 91: a discovery of the present AP to establish a CAPWAP AC connection, the AP transmits the serial number to the interface ID generating module 92.

[0146] 接口ID生成模块92:接收连接处理模块91发来的AP序列号,根据该AP序列号查找到本AC配置的该AP的位置字符串,根据该位置字符串得到该AP的地理位置信息,根据该AP的地理位置信息生成该AP的接口ID,将该接口ID下发给该AP。 [0146] Interface module 92 generates ID: receiving a connection processing sequence number AP sent by the module 91, to find the string configuration of the AP according to the present AP AC serial number, location of the AP is obtained based on the position of the string information, the AP generates location information based on the interface ID of the AP, the AP issued under the interface ID.

[0147] 在实际应用中,AC还可包括:定位处理模块和IPv6地址解析模块,其中: [0147] In a practical application, the AC further comprising: locating a processing module and IPv6 address resolution module, wherein:

[0148] 定位处理模块:接收外部输入的定位请求,将该请求中的AP的IPv6地址发送给IPv6地址解析模块,接收IPv6地址解析模块返回的AP的地理位置信息,将该地理位置信息输出。 [0148] Positioning the processing module to: receive a location request an external input, and transmits the IPv6 address of the AP to request an IPv6 address resolution module, receiving the geographic location information of the AP is returned IPv6 address resolution module, the output geographic information.

[0149] IPv6地址解析模块:接收定位处理模块输入的AP的IPv6地址,从该IPv6地址解析出AP的地理位置信息,将该地理位置信息返回给定位处理模块。 [0149] IPv6 address resolution module: AP processing module receives the positioning input IPv6 address, the IPv6 address from the parsed location information of the AP, the location information is returned to the positioning processing module.

[0150] 以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。 [0150] The foregoing is only preferred embodiments of the present invention but are not intended to limit the present invention, all within the spirit and principle of the present invention, any changes made, equivalent substitutions and improvements should be included within the scope of protection of the present invention.

Claims (7)

  1. 1.一种定位用户侧设备的方法,其特征在于,所述用户侧设备为接入点AP,该方法包括: AP上线,采用现有接口标识ID生成方式生成一个接口ID,根据该接口ID生成一个IPv6地址,采用该IPv6地址与一个接入控制器AC建立连接,该AC根据自身配置的该AP的位置字符串得到该AP的地理位置信息; 所述采用现有接口标识ID生成方式生成一个接口ID包括:将AP的地理位置信息以预先定义的标准格式表示,根据预先定义的映射规则,将AP的地理位置信息映射为接口ID ; 所述AC根据所述AP的地理位置信息生成该AP的接口ID,并将该接口ID下发给该AP,AP保存该接口ID; 上线AP根据所述AC下发的接口ID生成一个IPv6地址,使用该IPv6地址与AC建立连接; 当需要定位AP时,从AP上获取该AP的接口ID或IPv6地址,由该从AP上获取的接口ID或IPv6地址解析出该AP的地理位置信息;或者,从该AP连接的AC CLAIMS 1. A method for locating a user-side device, wherein the user side device to the AP the access point, the method comprising: AP on-line using existing interface identification (ID) generation mode to generate an interface ID, the interface ID according to this generating an IPv6 address, the IPv6 address using the access controller AC and a connection is established, the AC obtain geographic location information of the AP according to the position of the character string arranged AP itself; the use of prior generation mode to generate the interface identifier ID an interface ID comprises: the AP location information in a standard format defined in advance, said pre-defined mapping rules, the location information is mapped to the AP interface ID; the AC generating the geographic location information of the AP AP, port ID, and the ID of the interface delivers the AP, the AP save interface ID; on-line AP generates an IPv6 address based on the interface ID delivered by the AC, the IPv6 address is used to establish a connection to the AC; to locate the AP, the AP acquired from the IPv6 interface ID or address of the AP, the AP parsed location information by the interface ID or IPv6 address acquired from the AP; Alternatively, the AC connection from the AP 获取该AP的IPv6地址,由该IPv6地址解析出该AP的地理位置信息。 Obtain the IPv6 address of the AP, the AP parses the geographic location information from the IPv6 address.
  2. 2.根据权利要求1所述的方法,其特征在于,所述方法进一步包括:网管服务器获取用户侧设备的IPv6地址, 且,当网管服务器接收到携带用户侧设备IPv6地址的定位请求后,从该IPv6地址解析出该用户侧设备的地理位置信息,将该地理位置信息输出。 2. The method according to claim 1, wherein said method further comprises: the network management server acquires an IPv6 address of the user-side device, and when the network management server receives the positioning request carries the IPv6 address of the user side device, from the IPv6 address resolution information of the geographical location of the user-side device, the location information is output.
  3. 3.如权利要求1所述的方法,其特征在于,` 所述AP保存该接口ID的同时进一步包括:所述AP断开与所述AC的连接。 While the method of claim 1, wherein the AP to hold the `interface ID further comprises: the AP is disconnected from said AC.
  4. 4.一种接入点AP,其特征在于,该AP包括: 接口ID存储模块,保存接入控制器AC下发的由本AP的地理位置信息生成的接口ID ; 连接建立模块,上线时,根据现有接口ID生成方式生成本AP的接口ID,根据该接口ID生成一个IPv6地址,使用该IPv6地址与AC建立连接;接收AC下发的由本AP的地理位置信息生成的接口ID,将该AC下发的接口ID保存到接口ID存储模块,同时断开与该AC的连接,采用该AC下发的接口ID重新生成一个IPv6地址,采用新生成的IPv6地址,重新与该AC建立连接; 定位处理模块,接收外部输入的定位请求,从接口ID存储模块获取AC下发的由本AP的地理位置信息生成的接口ID,将该接口ID输出,以便外部根据该接口ID解析出本AP的地理位置信息;或者,从连接建立模块获取本AP新生成的IPv6地址,将该IPv6地址输出,以便外部根据该IPv6地址解析出本AP的地理位置信息 4. An access point AP, characterized in that the AP comprising: a storage module interface ID, the interface ID generated by the storage location information of the AP sent by the present access controller the AC; connection establishing module, when on-line, in accordance with interface ID generated conventional manner AP cost raw interface ID, and generates an IPv6 address based on the interface ID, the IPv6 address is used to establish a connection to the AC; AC issued by the receiving interface ID generated by the present location information of the AP, the AC save issued to the interface ID of the interface ID storage module, and disconnect the AC, using AC issued by the interface ID regenerate an IPv6 address, an IPv6 address of the new generation, the re-established connection to AC; Location processing module receives the external input location request, the interface ID generated by acquiring location information of the AP sent by the present AC interface ID from the storage module, the output interface ID, so that the external AP parses the present location based on the interface ID information; alternatively, establish a connection module acquires an IPv6 address from the present AP newly generated, the IPv6 address output to the external location information parsed according to the present AP, the IPv6 address is
  5. 5.如权利要求4所述的AP,其特征在于,所述AP进一步包括: 接口ID解析模块,接收定位处理模块输入的接口ID或IPv6地址,从该接口ID或IPv6地址解析出本AP的地理位置信息,将该地理位置信息输出。 5. The AP according to claim. 4, wherein the AP further comprising: a parsing module interface ID, interface ID or receives positioning IPv6 address processing module inputs, parsed from the present AP interface ID of the IPv6 address or geographic location information, the location information is output.
  6. 6.一种接入控制器AC,其特征在于,该AC包括: 连接处理模块,发现一接入点AP与本AC连接上,将该AP的序列号发送给接口ID生成模块; 接口ID生成模块,接收连接处理模块发来的AP的序列号,根据该AP的序列号查找到本AC配置的该AP的位置字符串,根据该位置字符串得到该AP的地理位置信息,根据该AP的地理位置信息生成该AP的接口ID,将该接口ID下发给该AP。 An access controller AC, wherein the AC comprises: a processing module is connected, and found an access point AP present on the AC connection, the AP sends the serial number to the interface ID generating module; interface ID generated module, a processing module connected to the receiving AP sent by the serial number, to find the string configuration of the AP according to the present AC serial number of the AP, the AP to obtain location information based on the position of the character string, according to the AP generating location information of the AP interface ID, the ID issued to the AP interface.
  7. 7.如权利要求6所述的AC,其特征在于,所述AC进一步包括: 定位处理模块,接收外部输入的定位请求,将该请求中的AP的IPv6地址输出到IPv6地址解析模块,接收IPv6地址解析模块返回的AP的地理位置信息,将该地理位置信息输出; IPv6地址解析模块,接收定位处理模块输入的AP的IPv6地址,从该IPv6地址解析出AP的地理位置信息,将该地理.位置信息返回给定位处理模块。 7. The AC according to claim 6, wherein said AC further comprising: positioning processing module for receiving positioning requests the external input, and outputs the IPv6 address of the AP to request an IPv6 address resolution module, receiving IPv6 address resolution module returns the location information of the AP, the location information is output; IPv6 address resolution module, the input module receives the positioning of the AP processing IPv6 address, the IPv6 address from the parsed location information of the AP, the geography. positioning position information back to the processing module.
CN 201010127171 2010-03-16 2010-03-16 Method for user-side equipment and user-side equipment, control equipment CN102196417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010127171 CN102196417B (en) 2010-03-16 2010-03-16 Method for user-side equipment and user-side equipment, control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010127171 CN102196417B (en) 2010-03-16 2010-03-16 Method for user-side equipment and user-side equipment, control equipment

Publications (2)

Publication Number Publication Date
CN102196417A true CN102196417A (en) 2011-09-21
CN102196417B true CN102196417B (en) 2013-12-25

Family

ID=44603658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010127171 CN102196417B (en) 2010-03-16 2010-03-16 Method for user-side equipment and user-side equipment, control equipment

Country Status (1)

Country Link
CN (1) CN102196417B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167493A (en) * 2011-12-16 2013-06-19 中兴通讯股份有限公司 Method and system for wireless access controller concentrating identification under local transmitting mode
CN104079506B (en) * 2014-07-18 2017-02-15 国家电网公司 Switch port three-tier management architecture and its application of location-based information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101513020A (en) 2006-07-07 2009-08-19 高通股份有限公司 Geolocation-based addressing method for IPV6 addresses
CN101588619A (en) 2009-06-15 2009-11-25 常熟理工学院 Implement system and service method of next generation all-IP wireless sensor network router
CN101662786A (en) 2009-10-10 2010-03-03 杭州华三通信技术有限公司 Fit AP network site determining method and equipment thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101513020A (en) 2006-07-07 2009-08-19 高通股份有限公司 Geolocation-based addressing method for IPV6 addresses
CN101588619A (en) 2009-06-15 2009-11-25 常熟理工学院 Implement system and service method of next generation all-IP wireless sensor network router
CN101662786A (en) 2009-10-10 2010-03-03 杭州华三通信技术有限公司 Fit AP network site determining method and equipment thereof

Also Published As

Publication number Publication date Type
CN102196417A (en) 2011-09-21 application

Similar Documents

Publication Publication Date Title
US8064418B2 (en) Scalable WLAN gateway
US20020164952A1 (en) Location-aware service proxies in a short-range wireless environment
US6959009B2 (en) Address acquisition
US8391262B2 (en) WLAN communication device
US6671735B1 (en) System and method for using an IP address as a wireless unit identifier
US20070025306A1 (en) Method and system for dynamic assignment of wireless LAN access point identity
US20080019339A1 (en) Radio Interface Selection for a Terminal
US20130201979A1 (en) Method and System for Partitioning Wireless Local Area Network
CN1972230A (en) A broadcasting method and access controller for wireless LAN address resolution protocol
CN101505524A (en) Method and apparatus for selecting network by user equipment
CN101360094A (en) Method for server automatic discovery configuring by house base station
CN101753635A (en) Method and system of collocating IPV6 (internet protocol version 6) addresses
CN101990274A (en) Method and system for realizing accessing through wireless local area network access network
CN101557414A (en) Positioning method, equipment and system based on WLAN
US20090213792A1 (en) Apparatus and method for setting a default gateway address in a mobile communication system
US20080137823A1 (en) Distributed Architecture for IP-Based Telemetry Services
US20130007233A1 (en) Device Abstraction in Autonomous Wireless Local Area Networks
CN102170395A (en) Data transmission method and network equipment
US20080276004A1 (en) Populating Location Wiremap Databases
US20030093542A1 (en) Communication device and communication control method using efficient echonet address determination scheme
CN101719927A (en) Method and system thereof for carrying out remote management on gateway down-hanging device
CN101510853A (en) Method and apparatus for implementing WLAN wireless bridge, and wireless access client terminal
Mortier et al. Control and understanding: Owning your home network
CN102137173A (en) Routing information distributing method, equipment, virtual special network system
CN102158563A (en) Method, system and device for acquiring IPv6 (Internet Protocol Version 6) configuration information from IPv6 transition network

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CP03