WO2013159591A1 - 一种区分无线终端的方法及装置 - Google Patents

一种区分无线终端的方法及装置 Download PDF

Info

Publication number
WO2013159591A1
WO2013159591A1 PCT/CN2013/071824 CN2013071824W WO2013159591A1 WO 2013159591 A1 WO2013159591 A1 WO 2013159591A1 CN 2013071824 W CN2013071824 W CN 2013071824W WO 2013159591 A1 WO2013159591 A1 WO 2013159591A1
Authority
WO
WIPO (PCT)
Prior art keywords
dhcp
packet
wireless hotspot
information
data packet
Prior art date
Application number
PCT/CN2013/071824
Other languages
English (en)
French (fr)
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
Application filed by 深圳市同洲电子股份有限公司 filed Critical 深圳市同洲电子股份有限公司
Publication of WO2013159591A1 publication Critical patent/WO2013159591A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for distinguishing wireless terminals.
  • the Dynamic Host Configuration Protocol is a LAN network protocol. It has two main purposes: to automatically assign the Internet Protocol (IP) address to the internal network or network service provider. User; Give internal network administrators a means of central management of all computers. At present, the implementation of various services of operators is mostly established on the IP layer. If you want to better manage terminal devices, you must distinguish the terminal devices.
  • IP Internet Protocol
  • wireless routers At present, home users generally set the wireless router as a wireless hotspot, and access the Internet by connecting to a wireless router, thereby achieving wireless networking.
  • existing wireless routers usually only provide one wireless hotspot, and can only provide a single service.
  • multiple wireless hotspots While providing multiple services for users, multiple wireless hotspots also bring the disadvantages of a large number of wireless terminal devices and difficulty in distinguishing wireless terminal devices accessed under different wireless hotspots. This is not conducive to the operation management of operators, which is not conducive to The normal development of various businesses.
  • a technical problem to be solved by embodiments of the present invention is to provide a method and apparatus for distinguishing wireless terminals. It can distinguish wireless terminal devices under different wireless hotspots, which is convenient for operators' operation management and various The normal operation of the business.
  • an embodiment of the present invention provides a method for distinguishing a wireless terminal, including:
  • the output processed DHCP packet causes the wireless terminal device to acquire a different IP address segment.
  • the step of creating a processing process for each wireless hotspot includes:
  • the configuration parameter information includes network interface information and DHCP option information corresponding to the wireless hotspot.
  • the step of processing the DHCP data packet through the wireless hotspot includes: parsing a DHCP data packet that passes the wireless hotspot;
  • DHCP data packet Determining whether the DHCP data packet is a valid DHCP data packet, and if yes, parsing the DHCP data packet; otherwise, parsing the next DHCP data packet that passes the wireless hotspot;
  • the step of replacing the DHCP option information in the DHCP data packet with the DHCP option information of the wireless hotspot includes:
  • an embodiment of the present invention further provides a set top box, including:
  • a process creation module configured to separately create a processing process for each wireless hotspot
  • a processing module configured to process a DHCP data packet that passes through the wireless hotspot
  • the process creation module includes:
  • a reading unit configured to read configuration parameter information of each wireless hotspot
  • An initialization unit configured to determine whether the configuration parameter information is successfully read, and if yes, perform network initialization, create a DHCP packet processing process and a corresponding socket, and otherwise return the information that fails to be read and exit;
  • the listening unit is configured to determine whether the network initialization is successful, and if so, listen to the DHCP packet passing the wireless hot spot, otherwise return the initialization failure information and exit.
  • the configuration parameter information includes network interface information and DHCP option information corresponding to the wireless hotspot.
  • the processing module includes:
  • a first parsing unit configured to parse the DHCP data packet that passes the wireless hotspot
  • a second parsing unit configured to determine whether the DHCP data packet is a valid DHCP data packet, and if yes, parse the DHCP data packet , otherwise parsing the next DHCP packet passing through the wireless hotspot;
  • An information replacing unit configured to determine whether the DHCP data packet is a request packet, and if yes, replace DHCP option information in the DHCP data packet with DHCP option information of the wireless hotspot, otherwise match and delete the DHCP data packet DHCP option information.
  • the information replacing unit is further configured to determine whether the DHCP data packet has DHCP option information, and if yes, replace the DHCP option information in the DHCP data packet with the DHCP option information of the wireless hotspot, otherwise the wireless The hot spot DHCP option information is inserted into the DHCP packet.
  • FIG. 1 is a schematic flow chart of a first embodiment of a method for distinguishing a wireless terminal according to the present invention
  • FIG. 2 is a schematic flow chart of a second embodiment of a method for distinguishing a wireless terminal according to the present invention
  • Figure 3 is a schematic view showing the composition of a first embodiment of the set top box of the present invention.
  • Figure 4 is a schematic view showing the composition of a second embodiment of the set top box of the present invention. detailed description
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for distinguishing a wireless terminal according to the present invention. The method includes:
  • Step S101 Create a processing process for each wireless hotspot separately.
  • a corresponding processing process is separately created for each wireless hotspot, and one wireless hotspot corresponds to one processing process, and the wireless hotspots are isolated from each other, and the processing processes do not affect each other at the same time.
  • Step S102 processing a DHCP data packet that passes through the wireless hotspot.
  • the DHCP data packet of the wireless hotspot includes a request packet and a response packet, and the DHCP option information corresponding to the wireless hotspot is attached to the request packet; the DHCP packet option information that is included in the response packet is deleted and transmitted to the wireless terminal device. .
  • Step S103 Output the DHCP data packet so that the wireless terminal acquires different IP address segments. Specifically, the request packet is output to the front-end server, and the front-end server allocates the corresponding IP address segment of the wireless terminal device according to the DHCP option information in the request packet.
  • the IP address of the wireless terminal device connected to the different wireless hotspots is divided into different network segments by using the method according to the first embodiment of the present invention. Basically, wireless terminal devices under different wireless hotspots are distinguished.
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for distinguishing a wireless terminal according to the present invention. Said party The law includes:
  • the configuration parameter information includes network interface information, DHCP option information, and the like corresponding to the wireless hotspot.
  • Step S202 determining whether the configuration parameter information is successfully read, if yes, executing step S203, otherwise performing step S204.
  • Step S203 performing network initialization, creating a DHCP packet processing process and corresponding sockets.
  • the socket is used for communication between the processing process and a front-end server.
  • Step S204 returning the failure information and exiting.
  • Step S205 determining whether the network initialization is successful, if yes, executing step S206, otherwise performing step S204.
  • Step S206 listening to a DHCP data packet passing through the wireless hotspot.
  • the DHCP data packet includes a request packet sent by the wireless terminal device to the front-end server and a response packet sent by the front-end server to the wireless terminal device.
  • Step S207 parsing a DHCP data packet that passes through the wireless hotspot.
  • Step S208 determining whether the DHCP data packet is a valid DHCP data packet, if yes, executing step S209; otherwise, executing step S207.
  • the DHCP data packet is invalid, the DHCP data packet is discarded and the next DHCP data packet passing through the wireless hotspot is parsed and determined to be legal.
  • Step S209 parsing the DHCP data packet.
  • the header and DHCP option information of the DHCP packet are parsed.
  • Step S210 Determine whether the DHCP data packet is a request packet, and if yes, execute step S211; otherwise, execute step S212.
  • Step S211 determining whether the DHCP data packet has DHCP option information, and if yes, executing step S213, otherwise performing step S214.
  • Step S212 matching and deleting the DHCP option information in the DHCP data packet.
  • the DHCP option information in the DHCP data packet is matched and deleted, and then the socket is called to send the response packet to the wireless terminal device.
  • Step S213 replacing the DHCP packet with the DHCP option information of the wireless hotspot.
  • DHCP option information S214. Insert DHCP option information of the wireless hotspot into the DHCP data packet.
  • the front-end server matches the DHCP option information and assigns different IP address segments to the wireless terminal devices under different wireless hotspots according to different DHCP option information.
  • the set-top box includes: a process creation module 100, a processing module 200, and an output module 300.
  • the process creation module 100 is configured to create a process for each wireless hotspot; the processing module 200 is configured to pass the wireless hotspot.
  • the DHCP packet is processed; the output module 300 is configured to output the processed DHCP packet.
  • the set-top box includes: a process creation module 100, a processing module 200, and an output module 300.
  • the process creation module 100 is configured to create a process for each wireless hotspot; the processing module 200 is configured to pass the wireless hotspot.
  • the DHCP packet is processed; the output module 300 is configured to output the processed DHCP packet.
  • the process creation module 100 includes a reading unit 110, an initialization unit 120, and a listening unit 130, where the reading unit 110 is configured to read configuration parameter information of each wireless hotspot; Determining whether the configuration parameter information is successfully read, if yes, performing network initialization, creating a DHCP packet processing process and a corresponding socket, otherwise returning the information that failed to be read and exiting; the listening unit 130 is configured to determine Whether the network initialization is successful, if yes, listening to the DHCP packet passing through the wireless hotspot, otherwise returning the information of the initialization failure and exiting.
  • the configuration parameter information includes network interface information and DHCP option information corresponding to the wireless hotspot.
  • the processing module 200 includes a first parsing unit 210, a second parsing unit 220, and an information replacing unit 230, where the first parsing unit 210 is configured to parse a DHCP data packet that passes through the wireless hotspot;
  • the second parsing unit 220 is configured to determine whether the DHCP data packet is a valid DHCP data packet, and if yes, parse the DHCP data packet, and otherwise parse the next DHCP data packet that passes the wireless hotspot;
  • the unit 230 is configured to determine whether the DHCP data packet is a request packet, and if yes, replace the DHCP option information in the DHCP data packet with the DHCP option information of the wireless hotspot, otherwise match and delete the DHCP data packet.
  • DHCP selection Item information where the first parsing unit 210 is configured to parse a DHCP data packet that passes through the wireless hotspot.
  • the second parsing unit 220 is configured to determine whether the
  • the information replacing unit 230 is further configured to determine whether the DHCP option information exists in the DHCP data packet, and if yes, replace the DHCP option information in the DHCP data packet with the DHCP option information of the wireless hotspot, otherwise The DHCP option information of the wireless hotspot is inserted into the DHCP packet.
  • the present invention has the following advantages:
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例公开了一种区分无线终端的方法,包括:为每个无线热点分别创建一个处理进程;对通过所述无线热点的DHCP数据包进行处理;输出处理后的DHCP数据包使得无线终端获取到不同的IP地址段。本发明实施例还公开了一种机顶盒。采用本发明,可区分不同无线热点下的无线终端设备,便于运营商的运营管理及各项业务的正常开展。

Description

一种区分无线终端的方法 ^置
本申请要求于 2012年 4月 28日提交中国专利局,申请号为 201210128855.3、 发明名称为 "一种区分无线终端的方法及装置" 的中国专利申请的优先权, 其 全部内容通过引用结合在本申请中。
技术领域 本发明涉及通信领域, 尤其涉及一种区分无线终端的方法及装置。
背景技术
动态主机设置协议 ( Dynamic Host Configuration Protocol, DHCP )是一个局 域网的网络协议, 主要有两个用途: 给内部网络或网络服务供应商自动分配网 络之间互连的协议( Internet Protocol , IP )地址给用户; 给内部网络管理员作为 对所有计算机作中央管理的手段。 目前, 运营商的各项业务的实现大都是建立 在 IP层上的, 若想更好的管理终端设备就必须对终端设备进行区分。
目前家庭用户一般将无线路由器设为无线热点, 通过连接无线路由器访问 互联网, 从而实现无线联网。 但是现有无线路由器通常只能提供一个无线热点, 只能提供单一业务, 而目前存在多个运营商, 存在多种无线业务。 如果用户需 要享受多种业务则需要建立多个无线热点。 多个无线热点在为用户提供多种业 务的同时, 也带来了无线终端设备数量多, 不同无线热点下接入的无线终端设 备难以区分的缺点, 这样不利于运营商的运营管理, 不利于各项业务的正常开 展。
发明内容
本发明实施例所要解决的技术问题在于, 提供一种区分无线终端的方法及 装置。 可区分不同无线热点下的无线终端设备, 便于运营商的运营管理及各项 业务的正常开展。
为了解决上述技术问题, 本发明实施例提供了一种区分无线终端的方法, 包括:
为每个无线热点分别创建一个处理进程;
对通过所述无线热点的 DHCP数据包进行处理;
输出处理后的 DHCP数据包使得无线终端设备获取不同的 IP地址段。
其中, 所述为每个无线热点都创建一个处理进程的步骤包括:
读取每个无线热点的配置参数信息;
判断所述配置参数信息是否读取成功,若是,则进行网络初始化,创建 DHCP 数据包处理进程及相应的套接字, 否则返回读取失败的信息并退出;
判断网络初始化是否成功, 若是, 则侦听通过所述无线热点的 DHCP数据 包, 否则返回初始化失败的信息并退出。
其中, 所述配置参数信息包括所述无线热点对应的网络接口信息及 DHCP 选项信息。
其中, 所述对通过所述无线热点的 DHCP数据包进行处理的步骤包括: 对通过所述无线热点的 DHCP数据包进行解析;
判断所述 DHCP数据包是否为合法的 DHCP数据包, 若是, 则解析所述 DHCP数据包, 否则解析下一个通过所述无线热点的 DHCP数据包;
判断所述 DHCP数据包是否为请求包, 若是, 则用所述无线热点的 DHCP 选项信息替换所述 DHCP数据包中的 DHCP选项信息, 否则匹配并删除所述 DHCP数据包中的 DHCP选项信息。
其中, 所述用所述无线热点的 DHCP选项信息替换所述 DHCP数据包中的 DHCP选项信息的步骤包括:
判断所述 DHCP数据包是否存在 DHCP选项信息, 若是, 则用所述无线热 点的 DHCP选项信息替换所述 DHCP数据包中的 DHCP选项信息, 否则将所述 无线热点的 DHCP选项信息插入所述 DHCP数据包中。
相应地, 本发明实施例还提供了一种机顶盒, 包括:
进程创建模块, 用于为每个无线热点分别创建一个处理进程;
处理模块, 用于对通过所述无线热点的 DHCP数据包进行处理;
输出模块, 用于输出处理后的 DHCP数据包。 其中, 所述进程创建模块包括:
读取单元, 用于读取每个无线热点的配置参数信息;
初始化单元, 用于判断所述配置参数信息是否读取成功, 若是, 则进行网 络初始化, 创建 DHCP数据包处理进程及相应的套接字, 否则返回读取失败的 信息并退出;
侦听单元, 用于判断网络初始化是否成功, 若是, 则侦听通过所述无线热 点的 DHCP数据包, 否则返回初始化失败的信息并退出。
其中, 所述配置参数信息包括所述无线热点对应的网络接口信息及 DHCP 选项信息。
其中, 所述处理模块包括:
第一解析单元, 用于对通过所述无线热点的 DHCP数据包进行解析; 第二解析单元, 用于判断所述 DHCP数据包是否为合法的 DHCP数据包, 若是, 则解析所述 DHCP数据包, 否则解析下一个通过所述无线热点的 DHCP 数据包;
信息更换单元, 用于判断所述 DHCP数据包是否为请求包, 若是, 则用所 述无线热点的 DHCP选项信息替换所述 DHCP数据包中的 DHCP选项信息, 否 则匹配并删除所述 DHCP数据包中的 DHCP选项信息。
其中, 所述信息更换单元还用于判断所述 DHCP数据包是否存在 DHCP选 项信息, 若是则用所述无线热点的 DHCP选项信息替换所述 DHCP数据包中的 DHCP选项信息, 否则将所述无线热点的 DHCP选项信息插入所述 DHCP数据 包中。
实施本发明实施例, 具有如下有益效果:
设置多个无线热点, 并根据不同无线热点的 DHCP选项信息为不同无线热 点下连接的无线终端设备的分配不同网段的 IP地址段, 从根本上将不同无线热 点下的无线终端区分开来, 利于运营商的运营管理, 保证各项业务的正常开展; 将多个无线热点集成在机顶盒内, 在机顶盒硬件成本不变的情况下, 实现运营 商多业务的规划及管理, 且方便用户使用及享受多种业务。
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施 例或现有技术描述中所需要使用的附图作筒单地介绍, 显而易见地, 下面描述 中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付 出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明区分无线终端的方法第一实施例的流程示意图;
图 2是本发明区分无线终端的方法第二实施例的流程示意图;
图 3是本发明机顶盒的第一实施例的组成示意图;
图 4是本发明机顶盒的第二实施例的组成示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
参照图 1 , 为本发明区分无线终端的方法第一实施例的流程示意图。 所述方 法包括:
步骤 S101 , 为每个无线热点分别创建一个处理进程。
具体地, 为每个无线热点分别创建一个对应的处理进程, 一个无线热点对 应一个处理进程, 无线热点之间相互隔离, 处理进程之间互不影响, 同时进行。
步骤 S102, 对通过所述无线热点的 DHCP数据包进行处理。
具体地, 通过所述无线热点的 DHCP数据包包括请求包及响应包, 对请求 包附上无线热点对应的 DHCP选项信息; 对响应包匹配删除其自带的 DHCP选 项信息并传输给无线终端设备。
步骤 S103, 输出所述 DHCP数据包使得无线终端获取到不同的 IP地址段。 具体地, 输出所述请求包至前端服务器, 所述前端服务器根据所述请求包 中的 DHCP选项信息分配给无线终端设备相应的 IP地址段。
因为运营商各项业务的实现都是建立在 IP层上的, 因此, 采用本发明第一 实施例所述方法将不同无线热点下连接的无线终端设备的 IP地址划分为不同的 网段, 从根本上将不同无线热点下的无线终端设备区分开来。
参照图 2, 为本发明区分无线终端的方法第二实施例的流程示意图。 所述方 法包括:
S201 , 读取每个无线热点的配置参数信息。
具体地,所述配置参数信息包括所述无线热点对应的网络接口信息及 DHCP 选项信息等。
步骤 S202, 判断所述配置参数信息是否读取成功, 若是则执行步骤 S203, 否则执行步骤 S204。
步骤 S203 ,进行网络初始化,创建 DHCP数据包处理进程及相应的套接字。 具体地, 所述套接字用于所述处理进程与前端服务器之间的通信。
步骤 S204, 返回失败信息并退出。
步骤 S205, 判断网络初始化是否成功, 若是, 则执行步骤 S206, 否则执行 步骤 S204。
步骤 S206, 侦听通过所述无线热点的 DHCP数据包。
具体地, 所述 DHCP数据包包括无线终端设备向前端服务器发送的请求包 及前端服务器向无线终端设备发送的响应包。
步骤 S207, 对通过所述无线热点的 DHCP数据包进行解析。
步骤 S208 , 判断所述 DHCP数据包是否为合法的 DHCP数据包, 若是则执 行步骤 S209 , 否则执行步骤 S207。
具体地, 当所述 DHCP数据包不合法, 则放弃此 DHCP数据包并对下一个 通过所述无线热点的 DHCP数据包进行解析并判断其是否合法。
步骤 S209 , 解析所述 DHCP数据包。
具体地, 对所述 DHCP数据包的包头及 DHCP选项信息进行解析。
步骤 S210,判断所述 DHCP数据包是否为请求包,若是,则执行步骤 S211 , 否则执行步骤 S212。
步骤 S211 , 判断所述 DHCP数据包是否存在 DHCP选项信息, 若是, 则执 行步骤 S213, 否则执行步骤 S214。
步骤 S212, 匹配并删除所述 DHCP数据包中的 DHCP选项信息。
具体地, 当所述 DHCP数据包为响应包时, 匹配并删除所述 DHCP数据包 中 DHCP选项信息, 然后调用所述套接字将所述响应包发送至无线终端设备。
步骤 S213,用所述无线热点的 DHCP选项信息替换所述 DHCP数据包中的
DHCP选项信息。 S214, 将所述无线热点的 DHCP选项信息插入所述 DHCP数据包中。
具体地, 当获取包含对应所述无线热点的 DHCP选项信息的请求包后, 调 用用于所述处理进程与前端服务器通信的所述套接字, 将得到的所述 DHCP请 求包发送给所述前端服务器, 所述前端服务器匹配 DHCP选项信息并根据不同 的 DHCP选项信息给不同无线热点下的无线终端设备分配不同的 IP地址段。
参照图 3, 为本发明机顶盒的第一实施例的组成示意图。 所述机顶盒包括: 进程创建模块 100、 处理模块 200及输出模块 300, 所述进程创建模块 100用于 为每个无线热点分别创建一个处理进程; 所述处理模块 200用于对通过所述无 线热点的 DHCP数据包进行处理; 所述输出模块 300用于输出处理后的 DHCP 数据包。
参照图 4, 为本发明机顶盒的第二实施例的组成示意图。 所述机顶盒包括: 进程创建模块 100、 处理模块 200及输出模块 300, 所述进程创建模块 100用于 为每个无线热点分别创建一个处理进程; 所述处理模块 200用于对通过所述无 线热点的 DHCP数据包进行处理; 所述输出模块 300用于输出处理后的 DHCP 数据包。
具体地, 所述进程创建模块 100包括读取单元 110、 初始化单元 120及侦听 单元 130, 所述读取单元 110用于读取每个无线热点的配置参数信息; 所述初始 化单元 120用于判断所述配置参数信息是否读取成功, 若是, 则进行网络初始 化, 创建 DHCP数据包处理进程及相应的套接字, 否则返回读取失败的信息并 退出; 所述侦听单元 130用于判断网络初始化是否成功, 若是, 则侦听通过所 述无线热点的 DHCP数据包, 否则返回初始化失败的信息并退出。
其中, 所述配置参数信息包括所述无线热点对应的网络接口信息及 DHCP 选项信息。
更具体地, 所述处理模块 200包括第一解析单元 210、 第二解析单元 220及 信息更换单元 230, 所述第一解析单元 210用于对通过所述无线热点的 DHCP 数据包进行解析; 所述第二解析单元 220用于判断所述 DHCP数据包是否为合 法的 DHCP数据包, 若是, 则解析所述 DHCP数据包, 否则解析下一个通过所 述无线热点的 DHCP数据包; 所述信息更换单元 230用于判断所述 DHCP数据 包是否为请求包, 若是, 则用所述无线热点的 DHCP选项信息替换所述 DHCP 数据包中的 DHCP选项信息, 否则匹配并删除所述 DHCP数据包中的 DHCP选 项信息。
进一步地, 所述信息更换单元 230还用于判断所述 DHCP数据包是否存在 DHCP选项信息, 若是, 则用所述无线热点的 DHCP选项信息替换所述 DHCP 数据包中的 DHCP选项信息, 否则将所述无线热点的 DHCP选项信息插入所述 DHCP数据包中。
通过上述实施例的描述, 本发明具有以下优点:
设置多个无线热点, 并根据不同无线热点的 DHCP选项信息为不同无线热 点下连接的无线终端设备的分配不同网段的 IP地址段, 从根本上将不同无线热 点下的无线终端区分开来, 利于运营商的运营管理, 保证各项业务的正常开展; 将多个无线热点集成在机顶盒内, 在机顶盒硬件成本不变的情况下, 实现运营 商多业务的规划及管理, 且方便用户使用及享受多种业务。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算 机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的流程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。
以上所揭露的仅为本发明较佳实施例而已, 当然不能以此来限定本发明之 权利范围, 因此依本发明权利要求所作的等同变化, 仍属本发明所涵盖的范围。

Claims

权 利 要 求
1、 一种区分无线终端的方法, 其特征在于, 包括:
为每个无线热点分别创建一个处理进程;
对通过所述无线热点的 DHCP数据包进行处理;
输出处理后的 DHCP数据包使得无线终端获取不同的 IP地址段。
2、 如权利要求 1所述的方法, 其特征在于, 所述为每个无线热点分别创建 一个处理进程的步骤包括:
读取每个无线热点的配置参数信息;
判断所述配置参数信息是否读取成功,若是,则进行网络初始化,创建 DHCP 数据包处理进程及相应的套接字, 否则返回读取失败的信息并退出;
判断网络初始化是否成功,若是则侦听通过所述无线热点的 DHCP数据包, 否则返回初始化失败的信息并退出。
3、 如权利要求 2所述的方法, 其特征在于, 所述配置参数信息包括所述无 线热点对应的网络接口信息及 DHCP选项信息。
4、 如权利要求 1或 3所述的方法, 其特征在于, 所述对通过所述无线热点 的 DHCP数据包进行处理的步骤包括:
对通过所述无线热点的 DHCP数据包进行解析;
判断所述 DHCP数据包是否为合法的 DHCP数据包, 若是, 则解析所述 DHCP数据包, 否则解析下一个通过所述无线热点的 DHCP数据包;
判断所述 DHCP数据包是否为请求包, 若是, 则用所述无线热点的 DHCP 选项信息替换所述 DHCP数据包中的 DHCP选项信息, 否则匹配并删除所述 DHCP数据包中的 DHCP选项信息。
5、 如权利要求 4所述的方法, 其特征在于, 所述用所述无线热点的 DHCP 选项信息替换所述 DHCP数据包中的 DHCP选项信息的步骤包括:
判断所述 DHCP数据包是否存在 DHCP选项信息, 若是, 则用所述无线热 点的 DHCP选项信息替换所述 DHCP数据包中的 DHCP选项信息, 否则将所述 无线热点的 DHCP选项信息插入所述 DHCP数据包中。
6、 一种机顶盒, 其特征在于, 包括:
进程创建模块, 用于为每个无线热点分别创建一个处理进程;
处理模块, 用于对通过所述无线热点的 DHCP数据包进行处理;
输出模块, 用于输出处理后的 DHCP数据包。
7、 如权利要求 6所述的机顶盒, 其特征在于, 所述进程创建模块包括: 读取单元, 用于读取每个无线热点的配置参数信息;
初始化单元, 用于判断所述配置参数信息是否读取成功, 若是, 则进行网 络初始化, 创建 DHCP数据包处理进程及相应的套接字, 否则返回读取失败的 信息并退出;
侦听单元, 用于判断网络初始化是否成功, 若是, 则侦听通过所述无线热 点的 DHCP数据包, 否则返回初始化失败的信息并退出。
8、 如权利要求 7所述的机顶盒, 其特征在于, 所述配置参数信息包括所述 无线热点对应的网络接口信息及 DHCP选项信息。
9、 如权利要求 8所述的机顶盒, 其特征在于, 所述处理模块包括: 第一解析单元, 用于对通过所述无线热点的 DHCP数据包进行解析; 第二解析单元, 用于判断所述 DHCP数据包是否为合法的 DHCP数据包, 若是, 则解析所述 DHCP数据包, 否则解析下一个通过所述无线热点的 DHCP 数据包;
信息更换单元, 用于判断所述 DHCP数据包是否为请求包, 若是, 则用所 述无线热点的 DHCP选项信息替换所述 DHCP数据包中的 DHCP选项信息, 否 则匹配并删除所述 DHCP数据包中的 DHCP选项信息。
10、 如权利要求 9所述的机顶盒, 其特征在于, 所述信息更换单元还用于 判断所述 DHCP数据包是否存在 DHCP选项信息, 若是, 则用所述无线热点的 DHCP选项信息替换所述 DHCP数据包中的 DHCP选项信息, 否则将所述无线 热点的 DHCP选项信息插入所述 DHCP数据包中。
PCT/CN2013/071824 2012-04-28 2013-02-25 一种区分无线终端的方法及装置 WO2013159591A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210128855.3 2012-04-28
CN201210128855.3A CN102711080B (zh) 2012-04-28 2012-04-28 一种区分无线终端的方法及装置

Publications (1)

Publication Number Publication Date
WO2013159591A1 true WO2013159591A1 (zh) 2013-10-31

Family

ID=46903601

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/071824 WO2013159591A1 (zh) 2012-04-28 2013-02-25 一种区分无线终端的方法及装置

Country Status (2)

Country Link
CN (1) CN102711080B (zh)
WO (1) WO2013159591A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711080B (zh) * 2012-04-28 2016-02-17 深圳市同洲电子股份有限公司 一种区分无线终端的方法及装置
CN103442376A (zh) * 2013-08-06 2013-12-11 深圳市同洲电子股份有限公司 一种无线热点识别方法、相关设备及系统
CN106686635B (zh) * 2015-11-09 2020-05-15 大唐软件技术股份有限公司 基于无线接入点的控制和配置协议的数据传输方法和装置
CN108718329B (zh) * 2018-04-11 2022-02-22 深圳市伟文无线通讯技术有限公司 支持多种方式访问的云存储移动路由设备的方法及设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859172A (zh) * 2005-09-21 2006-11-08 华为技术有限公司 宽带网络业务处理系统中智能终端业务属性的分配方法
CN101174952A (zh) * 2006-10-31 2008-05-07 中兴通讯股份有限公司 Iptv业务自动认证方法及装置
CN101827380A (zh) * 2010-04-09 2010-09-08 北京傲天动联技术有限公司 无线热点识别系统及其方法
CN102711080A (zh) * 2012-04-28 2012-10-03 深圳市同洲电子股份有限公司 一种区分无线终端的方法及装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI387289B (zh) * 2009-02-18 2013-02-21 Giga Byte Tech Co Ltd 一種網域衝突避免方法及運用該方法的路由器

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859172A (zh) * 2005-09-21 2006-11-08 华为技术有限公司 宽带网络业务处理系统中智能终端业务属性的分配方法
CN101174952A (zh) * 2006-10-31 2008-05-07 中兴通讯股份有限公司 Iptv业务自动认证方法及装置
CN101827380A (zh) * 2010-04-09 2010-09-08 北京傲天动联技术有限公司 无线热点识别系统及其方法
CN102711080A (zh) * 2012-04-28 2012-10-03 深圳市同洲电子股份有限公司 一种区分无线终端的方法及装置

Also Published As

Publication number Publication date
CN102711080B (zh) 2016-02-17
CN102711080A (zh) 2012-10-03

Similar Documents

Publication Publication Date Title
WO2018107943A1 (zh) 一种网络访问控制方法、装置及系统
KR102388195B1 (ko) Bras 시스템 기반 메시지 패키징 방법 및 장치
WO2021057889A1 (zh) 一种数据处理方法、装置、电子设备及存储介质
US9485147B2 (en) Method and device thereof for automatically finding and configuring virtual network
WO2020216339A1 (zh) 接入网关的方法及装置
EP2536092A1 (en) Method and device for port mapping, and communications system
WO2019205952A1 (zh) 一种信息处理方法及装置
US9883010B2 (en) Method, apparatus, device and system for generating DHCP snooping binding table
TW201204098A (en) Dynamic service groups based on session attributes
US20150067033A1 (en) Relay Server Load Balancing and Placement using In-Band Signaling
US9973399B2 (en) IPV6 address tracing method, apparatus, and system
US20130290561A1 (en) Method and device for providing user information to cgn device
WO2010069181A1 (zh) Ipv6地址配置方法和系统
WO2019128273A1 (zh) 确定网络设备连接关系的方法、设备及系统
JP2019515608A (ja) アクセス制御
CN102025792A (zh) 路由器及其ip地址设置方法
WO2016180020A1 (zh) 一种报文处理方法、设备和系统
CN102571729A (zh) Ipv6网络接入认证方法、装置及系统
WO2019047611A1 (zh) 一种数据传输方法、pnf sdn控制器、vnf sdn控制器及系统
WO2013159591A1 (zh) 一种区分无线终端的方法及装置
WO2011072583A1 (zh) 用户接入方法、系统及接入服务器、接入设备
WO2014201600A1 (zh) 一种会话管理方法、地址管理方法及相关装置
JP2011055305A (ja) Vpn設定システム、vpn設定方法及びvpn設定プログラム
US10657093B2 (en) Managing actions of a network device based on policy settings corresponding to a removable wireless communication device
JP2012044601A (ja) 設定システム、設定方法、及び設定プログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13780695

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM1205A DATED 23.04.15)

122 Ep: pct application non-entry in european phase

Ref document number: 13780695

Country of ref document: EP

Kind code of ref document: A1