WO2017067276A1 - 基于多个vlan的接入点获取客户端mac地址的方法及装置 - Google Patents

基于多个vlan的接入点获取客户端mac地址的方法及装置 Download PDF

Info

Publication number
WO2017067276A1
WO2017067276A1 PCT/CN2016/093108 CN2016093108W WO2017067276A1 WO 2017067276 A1 WO2017067276 A1 WO 2017067276A1 CN 2016093108 W CN2016093108 W CN 2016093108W WO 2017067276 A1 WO2017067276 A1 WO 2017067276A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
mac address
address
association table
association
Prior art date
Application number
PCT/CN2016/093108
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 WO2017067276A1 publication Critical patent/WO2017067276A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • Invention name Method and device for acquiring client MAC address based on access points of multiple VLANs
  • the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for acquiring a client MAC address based on an access point of multiple VLANs.
  • the client does not perform service communication, that is, the user data of the client is not forwarded by the AP
  • the correspondence between the IP address of the client and the MAC address does not exist in the ARP table, resulting in a defect.
  • the AP cannot obtain the MAC address of the client. If the client does not perform service communication, the corresponding relationship between the IP address and the MAC address of the client is deleted. As a result, the AP cannot obtain the client. MAC address.
  • the access point may not be able to obtain the MAC address of the client.
  • an embodiment of the present invention provides a method and an apparatus for acquiring a client MAC address by using an access point of multiple VLANs, so as to solve the problem that the access point is flawed in the case of multiple VLANs in the prior art. Unable to get the client's MAC address.
  • an embodiment of the present invention provides a method for acquiring a client MAC address by using an access point that is based on multiple VLANs, including:
  • the IP address of the client is obtained, and the association information of the MAC address and the IP address of the client is added to the In the association table, and storing the added association table.
  • an embodiment of the present invention provides an apparatus for acquiring a client MAC address by using an access point that is based on multiple VLANs, including:
  • a first MAC address obtaining unit configured to: when receiving user data sent by the client, obtain a media access control MAC address of the client from the user data;
  • an association table obtaining unit configured to acquire a pre-stored association table
  • a first association table processing unit configured to acquire an internet protocol IP address of the client, and obtain a MAC address of the client, if the MAC address of the client is not found in the association table
  • the association information of the IP address is added to the association table, and the added association table is stored.
  • the embodiment of the present invention When receiving the user data sent by the client, the embodiment of the present invention obtains the MAC address of the client from the user data, and checks in the association table. After the MAC address of the client is not queried, the IP address of the client is obtained, and the association information of the MA C address and the IP address of the client is added to the association table, thereby implementing access in multiple VLANs. The MAC address of the client is obtained, so that in the case of multiple VLANs, the MAC address of the client is not obtained through the ARP table, and the problem that the access point cannot obtain the MAC address of the client due to the aging of the ARP table is solved.
  • FIG. 1 is a flowchart of an implementation of a method for acquiring a client MAC address by using multiple VLAN-based access points according to an embodiment of the present invention
  • FIG. 2 is a flowchart of an implementation of a method for acquiring a client MAC address by using multiple VLAN-based access points according to another embodiment of the present invention
  • FIG. 3 is a flowchart of an implementation of a method for acquiring a client MAC address by using multiple VLAN-based access points according to another embodiment of the present invention
  • FIG. 4 is a structural block diagram of an apparatus for acquiring a client MAC address by a plurality of VLAN-based access points according to an embodiment of the present invention.
  • FIG. 1 is a flowchart showing an implementation of a method for acquiring a client MAC address by using multiple VLAN-based access points according to an embodiment of the present invention, as follows:
  • step S101 when the user data sent by the client is received, the media access control MAC address of the client is obtained from the user data.
  • execution subject in the embodiment of the present invention may be a ⁇ AP.
  • the client when the client is online or online and receives the user data sent by the client, the data frame of the user data is analyzed and processed, and the MA C of the client is extracted from the data frame of the user data. address.
  • user data refers to data sent by the client.
  • step S102 a pre-stored association table is acquired.
  • an association table is established in a wireless network card of the ⁇ AP, and the association table is used to record association information between a MAC address and an IP address of a client that has accessed the ,AP, where the client M
  • the association information between the AC address and the IP address refers to the correspondence between the MAC address and the IP address of the client.
  • step S103 if the MAC address of the client is not found in the association table, the Internet Protocol IP address of the client is obtained, and the MAC address of the client is associated with the IP address. Information is added to the association table, and the added association table is stored.
  • the MAC address of the client is extracted from the user data sent by the client and stored.
  • the problem is that the MAC address of the client is obtained in the case of multiple VLANs, so that the MAC address of the client is obtained through the ARP table, and the problem that the access point cannot obtain the MAC address of the client due to the aging of the ARP table is solved.
  • FIG. 2 is a flowchart of an implementation of a method for acquiring a client MAC address by using multiple VLAN-based access points according to another embodiment of the present invention. Referring to FIG. 2:
  • step S201 when the user data sent by the client is received, the media access control MAC address of the client is obtained from the user data;
  • step S202 acquiring a pre-stored association table
  • step S203 if the MAC address of the client is not found in the association table, the IP address of the client is obtained, and the MAC address of the client is associated with the IP address. Information is added to the association table, and the added association table is stored;
  • step S204 if the MAC address of the client is queried in the association table, the association table is not changed.
  • FIG. 3 is a flowchart of an implementation of a method for acquiring a client MAC address by using multiple VLANs according to another embodiment of the present invention. Referring to FIG. 3:
  • step S301 when the user data sent by the client is received, the media access control MAC address of the client is obtained from the user data;
  • step S302 acquiring a pre-stored association table
  • step S303 if the MAC address of the client is not found in the association table, the IP address of the client is obtained, and the MAC address of the client is associated with the IP address. Information is added to the association table, and the added association table is stored;
  • step S304 when receiving the offline request sent by the client, obtaining the offline request Taking the MAC address of the client;
  • step S305 if the association information of the MAC address and the IP address of the client is queried in the association table, the association between the MAC address of the client and the IP address is deleted from the association table. [0040] In step S306, if the association information of the MAC address and the IP address of the client is not found in the association table, the association table is not changed.
  • the association table in the wireless network card of the AP is only used to record the M of the online client.
  • the association information between the MAC address and the IP address of the client is deleted from the association table, which saves the storage space of the AP.
  • the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be taken to the embodiment of the present invention.
  • the implementation process constitutes any limitation.
  • the MAC address of the client is obtained from the user data, and the MAC address of the client is not found in the association table, and the IP address of the client is obtained. And adding the association information of the MAC address and the IP address of the client to the association table, thereby realizing that the access point acquires the MAC address of the client in the case of multiple VLANs, thereby avoiding in the case of multiple VLANs.
  • the MAC address of the client is obtained through the ARP table. The problem that the access point cannot obtain the MAC address of the client due to the aging of the ARP table is solved.
  • FIG. 4 is a structural block diagram of an apparatus for acquiring a client MAC address by using multiple VLAN-based access points according to an embodiment of the present invention, where the apparatus may be used to run multiple based on multiple operations shown in FIG. 1 to FIG. A method in which a VLAN access point obtains a client MAC address. For the convenience of description, only the parts related to the embodiment of the present invention are shown.
  • the device includes:
  • the first MAC address obtaining unit 41 is configured to: when receiving the user data sent by the client, obtain the media access control MAC address of the client from the user data;
  • the association table obtaining unit 42 is configured to acquire a pre-stored association table
  • the first association table processing unit 43 is configured to: if the MAC address of the client is not found in the association table, And obtaining an internet protocol IP address of the client, adding the association information of the MAC address and the IP address of the client to the association table, and storing the added association table.
  • the device further includes:
  • the second association table processing unit 44 is configured to: if the MAC address of the client is queried in the association table, the association table is not changed.
  • the device further includes:
  • the second MAC address obtaining unit 45 is configured to: after receiving the offline request sent by the client, obtain the MAC address of the client from the offline request;
  • the third association table processing unit 46 is configured to: if the association information of the MAC address and the IP address of the client is queried in the association table, delete the MAC address of the client from the association table. Information associated with an IP address.
  • the device further includes:
  • the fourth association table processing unit 47 is configured to: if the association information of the MAC address and the IP address of the client is not found in the association table, the association table is not changed.
  • the MAC address of the client is obtained from the user data, and the MAC address of the client is not queried in the association table, and the IP address of the client is obtained. And adding the association information of the MAC address and the IP address of the client to the association table, thereby realizing that the access point acquires the MAC address of the client in the case of multiple VLANs, thereby avoiding in the case of multiple VLANs.
  • the MAC address of the client is obtained through the ARP table. The problem that the access point cannot obtain the MAC address of the client due to the aging of the ARP table is solved.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface, indirect coupling or communication connection of the unit, and may be in electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read only memory (ROM, Read-Only)
  • RAM random access memory
  • disk disk or optical disk, and other media that can store program code.

Abstract

一种基于多个VLAN的接入点获取客户端MAC地址的方法及装置。该方法包括:当接收到客户端发送的用户数据时,从所述用户数据中获取所述客户端的介质访问控制MAC地址;获取预先存储的关联表;若在所述关联表中查询不到所述客户端的MAC地址,则获取所述客户端的网际协议IP地址,并将所述客户端的MAC地址与IP地址的关联信息添加到所述关联表中,并存储添加后的所述关联表。上述方法实现了在多个VLAN的情况下接入点获取客户端的MAC地址,并在多个VLAN的情况下,避免通过ARP表获取客户端的MAC地址,解决了由于ARP表老化等问题造成的接入点无法获取客户端的MAC地址的问题。

Description

说明书
发明名称:基于多个 VLAN的接入点获取客户端 MAC地址的方法及 装置
技术领域
[0001] 本发明属于通信技术领域, 尤其涉及基于多个 VLAN的接入点获取客户端 MAC 地址的方法及装置。
背景技术
[0002] 在采用痩 AP (Access Point, 接入点) 与无线 AC (Access Controller, 接入控制 器) 的 WLAN (Wireless Local Area Network, 无线局域网) 解决方案中, 客户端 的用户数据是通过 VLAN (Virtual Local Area Network, 虚拟局域网) 进行传输 的。 当用户数据的业务类型较多吋, 一般需要划分多个 VLAN。 现有技术中, 在 多个 VLAN的情况下, 在痩 AP上运行的应用层程序若想要获取客户端的 MAC ( Media Access Control, 介质访问控制) 地址, 通常通过接口从 ARP (Address Resolution Protocol地址解析协议) 表中获取。 然而, 若客户端未进行业务通信 , 即客户端的用户数据未经过痩 AP的转发, 则 ARP表中不存在该客户端的 IP (In ternet Protocol, 网际协议) 地址与 MAC地址的对应关系, 导致痩 AP无法获取客 户端的 MAC地址; 若客户端长吋间未进行业务通信, 贝 1油于 ARP表的老化, 该 客户端的 IP地址与 MAC地址的对应关系会被刪除, 导致痩 AP无法获取客户端的 MAC地址。
[0003] 综上, 现有技术在多个 VLAN的情况下, 接入点有吋无法获取客户端的 MAC地 址。
技术问题
[0004] 鉴于此, 本发明实施例提供了一种基于多个 VLAN的接入点获取客户端 MAC地 址的方法及装置, 以解决现有技术在多个 VLAN的情况下, 接入点有吋无法获取 客户端的 MAC地址的问题。
问题的解决方案 技术解决方案
[0005] 第一方面, 本发明实施例提供了一种基于多个 VLAN的接入点获取客户端 MAC 地址的方法, 包括:
[0006] 当接收到客户端发送的用户数据吋, 从所述用户数据中获取所述客户端的介质 访问控制 MAC地址;
[0007] 获取预先存储的关联表;
[0008] 若在所述关联表中査询不到所述客户端的 MAC地址, 则获取所述客户端的网 际协议 IP地址, 并将所述客户端的 MAC地址与 IP地址的关联信息添加到所述关 联表中, 并存储添加后的所述关联表。
[0009] 第二方面, 本发明实施例提供了一种基于多个 VLAN的接入点获取客户端 MAC 地址的装置, 包括:
[0010] 第一 MAC地址获取单元, 用于当接收到客户端发送的用户数据吋, 从所述用 户数据中获取所述客户端的介质访问控制 MAC地址;
[0011] 关联表获取单元, 用于获取预先存储的关联表;
[0012] 第一关联表处理单元, 用于若在所述关联表中査询不到所述客户端的 MAC地 址, 则获取所述客户端的网际协议 IP地址, 并将所述客户端的 MAC地址与 IP地 址的关联信息添加到所述关联表中, 并存储添加后的所述关联表。
发明的有益效果
有益效果
[0013] 本发明实施例与现有技术相比存在的有益效果是: 本发明实施例通过当接收到 客户端发送的用户数据吋, 从用户数据中获取客户端的 MAC地址, 在关联表中 査询不到该客户端的 MAC地址吋, 获取该客户端的 IP地址, 并将该客户端的 MA C地址与 IP地址的关联信息添加到关联表中, 由此实现了在多个 VLAN的情况下 接入点获取客户端的 MAC地址, 从而在多个 VLAN的情况下, 避免通过 ARP表 获取客户端的 MAC地址, 解决了由于 ARP表老化等问题造成的接入点无法获取 客户端的 MAC地址的问题。
对附图的简要说明
附图说明 [0014] 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现有技术描 述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性 的前提下, 还可以根据这些附图获得其他的附图。
[0015] 图 1是本发明实施例提供的基于多个 VLAN的接入点获取客户端 MAC地址的方 法的实现流程图;
[0016] 图 2是本发明另一实施例提供的基于多个 VLAN的接入点获取客户端 MAC地址 的方法的实现流程图;
[0017] 图 3是本发明另一实施例提供的基于多个 VLAN的接入点获取客户端 MAC地址 的方法的实现流程图;
[0018] 图 4是本发明实施例提供的基于多个 VLAN的接入点获取客户端 MAC地址的装 置的结构框图。
本发明的实施方式
[0019] 为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图及实施例
, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅仅用 以解释本发明, 并不用于限定本发明。
[0020] 图 1示出了本发明实施例提供的基于多个 VLAN的接入点获取客户端 MAC地址 的方法的实现流程图, 详述如下:
[0021] 在步骤 S101中, 当接收到客户端发送的用户数据吋, 从所述用户数据中获取所 述客户端的介质访问控制 MAC地址。
[0022] 需要说明的是, 本发明实施例中的执行主体可以为痩 AP。
[0023] 在本发明实施例中, 当客户端在线或者上线且接收到客户端发的的用户数据吋 , 对用户数据的数据帧进行分析处理, 从用户数据的数据帧中提取客户端的 MA C地址。 在这里, 用户数据指的是客户端发送的数据。
[0024] 在步骤 S102中, 获取预先存储的关联表。
[0025] 作为本发明的一个实施例, 在痩 AP的无线网卡中建立关联表, 关联表用于记 录已接入痩 AP的客户端的 MAC地址与 IP地址的关联信息, 在这里, 客户端的 M AC地址与 IP地址的关联信息指的是客户端的 MAC地址与 IP地址的对应关系。
[0026] 在获取关联表后, 査询关联表中是否存在客户端的 MAC地址。
[0027] 在步骤 S103中, 若在所述关联表中査询不到所述客户端的 MAC地址, 则获取 所述客户端的网际协议 IP地址, 并将所述客户端的 MAC地址与 IP地址的关联信 息添加到所述关联表中, 并存储添加后的所述关联表。
[0028] 本发明实施例通过从客户端发送的用户数据中提取客户端的 MAC地址并存储
, 实现了在多个 VLAN的情况下获取客户端的 MAC地址, 从而避免通过 ARP表 获取客户端的 MAC地址, 解决了由于 ARP表老化等问题造成的接入点无法获取 客户端的 MAC地址的问题。
[0029] 图 2示出了本发明另一实施例提供的基于多个 VLAN的接入点获取客户端 MAC 地址的方法的实现流程图, 参照图 2:
[0030] 在步骤 S201中, 当接收到客户端发送的用户数据吋, 从所述用户数据中获取所 述客户端的介质访问控制 MAC地址;
[0031] 在步骤 S202中, 获取预先存储的关联表;
[0032] 在步骤 S203中, 若在所述关联表中査询不到所述客户端的 MAC地址, 则获取 所述客户端的网际协议 IP地址, 并将所述客户端的 MAC地址与 IP地址的关联信 息添加到所述关联表中, 并存储添加后的所述关联表;
[0033] 在步骤 S204中, 若在所述关联表中査询到所述客户端的 MAC地址, 则不对所 述关联表进行更改。
[0034] 图 3示出了本发明另一实施例提供的基于多个 VLAN的接入点获取客户端 MAC 地址的方法的实现流程图, 参照图 3:
[0035] 在步骤 S301中, 当接收到客户端发送的用户数据吋, 从所述用户数据中获取所 述客户端的介质访问控制 MAC地址;
[0036] 在步骤 S302中, 获取预先存储的关联表;
[0037] 在步骤 S303中, 若在所述关联表中査询不到所述客户端的 MAC地址, 则获取 所述客户端的网际协议 IP地址, 并将所述客户端的 MAC地址与 IP地址的关联信 息添加到所述关联表中, 并存储添加后的所述关联表;
[0038] 在步骤 S304中, 当接收到所述客户端发送的下线请求吋, 从所述下线请求中获 取所述客户端的 MAC地址;
[0039] 在步骤 S305中, 若在所述关联表中査询到所述客户端的 MAC地址与 IP地址的关 联信息, 则从所述关联表中刪除所述客户端的 MAC地址与 IP地址的关联信息; [0040] 在步骤 S306中, 若在所述关联表中査询不到所述客户端的 MAC地址与 IP地址的 关联信息, 则不对所述关联表进行更改。
[0041] 在本发明实施例中, 痩 AP的无线网卡中的关联表仅用于记录在线的客户端的 M
AC地址与 IP地址的关联信息。 当客户端从痩 AP下线吋, 将该客户端的 MAC地址 与 IP地址的关联信息从关联表中刪除, 以避免造成冗余数据。 通过在客户端从痩
AP下线吋, 将该客户端的 MAC地址与 IP地址的关联信息从关联表中刪除, 节省 了痩 AP的存储空间。
[0042] 应理解, 在本发明实施例中, 上述各过程的序号的大小并不意味着执行顺序的 先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应对本发明实施例 的实施过程构成任何限定。
[0043] 本发明实施例通过当接收到客户端发送的用户数据吋, 从用户数据中获取客户 端的 MAC地址, 在关联表中査询不到该客户端的 MAC地址吋, 获取该客户端的 I P地址, 并将该客户端的 MAC地址与 IP地址的关联信息添加到关联表中, 由此实 现了在多个 VLAN的情况下接入点获取客户端的 MAC地址, 从而在多个 VLAN的 情况下, 避免通过 ARP表获取客户端的 MAC地址, 解决了由于 ARP表老化等问 题造成的接入点无法获取客户端的 MAC地址的问题。
[0044] 图 4示出了本发明实施例提供的基于多个 VLAN的接入点获取客户端 MAC地址 的装置的结构框图, 该装置可以用于运行图 1至图 3所示的基于多个 VLAN的接入 点获取客户端 MAC地址的方法。 为了便于说明, 仅示出了与本发明实施例相关 的部分。
[0045] 参照图 4, 该装置包括:
[0046] 第一 MAC地址获取单元 41, 用于当接收到客户端发送的用户数据吋, 从所述 用户数据中获取所述客户端的介质访问控制 MAC地址;
[0047] 关联表获取单元 42, 用于获取预先存储的关联表;
[0048] 第一关联表处理单元 43, 用于若在所述关联表中査询不到所述客户端的 MAC 地址, 则获取所述客户端的网际协议 IP地址, 并将所述客户端的 MAC地址与 IP 地址的关联信息添加到所述关联表中, 并存储添加后的所述关联表。
[0049] 进一步地, 所述装置还包括:
[0050] 第二关联表处理单元 44, 用于若在所述关联表中査询到所述客户端的 MAC地 址, 则不对所述关联表进行更改。
[0051] 优选地, 所述装置还包括:
[0052] 第二 MAC地址获取单元 45, 用于当接收到所述客户端发送的下线请求吋, 从 所述下线请求中获取所述客户端的 MAC地址;
[0053] 第三关联表处理单元 46, 用于若在所述关联表中査询到所述客户端的 MAC地 址与 IP地址的关联信息, 则从所述关联表中刪除所述客户端的 MAC地址与 IP地 址的关联信息。
[0054] 优选地, 所述装置还包括:
[0055] 第四关联表处理单元 47, 用于若在所述关联表中査询不到所述客户端的 MAC 地址与 IP地址的关联信息, 则不对所述关联表进行更改。
[0056] 本发明实施例通过当接收到客户端发送的用户数据吋, 从用户数据中获取客户 端的 MAC地址, 在关联表中査询不到该客户端的 MAC地址吋, 获取该客户端的 I P地址, 并将该客户端的 MAC地址与 IP地址的关联信息添加到关联表中, 由此实 现了在多个 VLAN的情况下接入点获取客户端的 MAC地址, 从而在多个 VLAN的 情况下, 避免通过 ARP表获取客户端的 MAC地址, 解决了由于 ARP表老化等问 题造成的接入点无法获取客户端的 MAC地址的问题。
[0057] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。
[0058] 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的装 置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再 赘述。 [0059] 在本申请所提供的几个实施例中, 应该理解到, 所揭露的装置和方法, 可以通 过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的划分方 式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可 以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通 信连接可以是通过一些接口, 单元的间接耦合或通信连接, 可以是电性, 机械 或其它的形式。
[0060] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。
[0061] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。
[0062] 所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用吋, 可 以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案 本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产 品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令 用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 执 行本发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U盘 、 移动硬盘、 只读存储器 (ROM, Read-Only
Memory) 、 随机存取存储器 (RAM, Random Access Memory) 、 磁碟或者光盘 等各种可以存储程序代码的介质。
[0063] 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化 或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应所述 以权利要求的保护范围为准。

Claims

权利要求书
一种基于多个 VLAN的接入点获取客户端 MAC地址的方法, 其特征在 于, 包括:
当接收到客户端发送的用户数据吋, 从所述用户数据中获取所述客户 端的介质访问控制 MAC地址;
获取预先存储的关联表;
若在所述关联表中査询不到所述客户端的 MAC地址, 则获取所述客 户端的网际协议 IP地址, 并将所述客户端的 MAC地址与 IP地址的关联 信息添加到所述关联表中, 并存储添加后的所述关联表。
如权利要求 1所述的方法, 其特征在于, 在所述获取预先存储的关联 表之后, 所述方法还包括:
若在所述关联表中査询到所述客户端的 MAC地址, 则不对所述关联 表进行更改。
如权利要求 1所述的方法, 其特征在于, 在所述获取预先存储的关联 表之后, 所述方法还包括:
当接收到所述客户端发送的下线请求吋, 从所述下线请求中获取所述 客户端的 MAC地址;
若在所述关联表中査询到所述客户端的 MAC地址与 IP地址的关联信 息, 则从所述关联表中刪除所述客户端的 MAC地址与 IP地址的关联 f π息。
如权利要求 3所述的方法, 其特征在于, 在所述从所述下线请求中获 取所述客户端的 MAC地址之后, 所述方法还包括:
若在所述关联表中査询不到所述客户端的 MAC地址与 IP地址的关联 信息, 则不对所述关联表进行更改。
一种基于多个 VLAN的接入点获取客户端 MAC地址的装置, 其特征在 于, 包括:
第一 MAC地址获取单元, 用于当接收到客户端发送的用户数据吋, 从所述用户数据中获取所述客户端的介质访问控制 MAC地址; 关联表获取单元, 用于获取预先存储的关联表;
第一关联表处理单元, 用于若在所述关联表中査询不到所述客户端的 MAC地址, 则获取所述客户端的网际协议 IP地址, 并将所述客户端 的 MAC地址与 IP地址的关联信息添加到所述关联表中, 并存储添加 后的所述关联表。
[权利要求 6] 如权利要求 5所述的装置, 其特征在于, 所述装置还包括:
第二关联表处理单元, 用于若在所述关联表中査询到所述客户端的 M AC地址, 则不对所述关联表进行更改。
[权利要求 7] 如权利要求 5所述的装置, 其特征在于, 所述装置还包括:
第二 MAC地址获取单元, 用于当接收到所述客户端发送的下线请求 吋, 从所述下线请求中获取所述客户端的 MAC地址;
第三关联表处理单元, 用于若在所述关联表中査询到所述客户端的 M AC地址与 IP地址的关联信息, 则从所述关联表中刪除所述客户端的 MAC地址与 IP地址的关联信息。
[权利要求 8] 如权利要求 7所述的装置, 其特征在于, 所述装置还包括:
第四关联表处理单元, 用于若在所述关联表中査询不到所述客户端的 MAC地址与 IP地址的关联信息, 则不对所述关联表进行更改。
PCT/CN2016/093108 2015-10-19 2016-08-03 基于多个vlan的接入点获取客户端mac地址的方法及装置 WO2017067276A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510676165.5A CN105227695B (zh) 2015-10-19 2015-10-19 基于多个vlan的接入点获取客户端mac地址的方法及装置
CN201510676165.5 2015-10-19

Publications (1)

Publication Number Publication Date
WO2017067276A1 true WO2017067276A1 (zh) 2017-04-27

Family

ID=54996364

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/093108 WO2017067276A1 (zh) 2015-10-19 2016-08-03 基于多个vlan的接入点获取客户端mac地址的方法及装置

Country Status (2)

Country Link
CN (1) CN105227695B (zh)
WO (1) WO2017067276A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227695B (zh) * 2015-10-19 2018-07-17 华讯方舟科技有限公司 基于多个vlan的接入点获取客户端mac地址的方法及装置
CN111385371B (zh) * 2018-12-28 2022-10-21 钉钉控股(开曼)有限公司 Mac地址获取方法、装置和设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080219273A1 (en) * 2007-03-05 2008-09-11 Fujitsu Limited Scheduling method for executing job, scheduling apparatus for executing job, and commutative recording medium having recorded thereon scheduling program for causing execution of job
CN101835145A (zh) * 2010-03-30 2010-09-15 北京傲天动联技术有限公司 基于瘦ap的用户信息管理方法
CN103532850A (zh) * 2013-09-29 2014-01-22 福建星网锐捷网络有限公司 一种上行报文转发方法、装置及接入点ap设备
CN104066083A (zh) * 2013-03-18 2014-09-24 华为终端有限公司 一种接入无线局域网的方法和装置
CN105227695A (zh) * 2015-10-19 2016-01-06 深圳市华讯方舟科技有限公司 基于多个vlan的接入点获取客户端mac地址的方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5279873B2 (ja) * 2010-12-10 2013-09-04 株式会社東芝 情報処理装置および情報処理方法
CN102710439B (zh) * 2012-05-29 2014-07-16 南京邮电大学 一种用户终端参数信息的获取方法
CN104158917B (zh) * 2013-05-14 2017-12-15 新华三技术有限公司 回收动态主机配置协议客户端的ip地址的方法及设备
CN104601737B (zh) * 2013-10-31 2018-05-01 上海斐讯数据通信技术有限公司 Ap获取客户端ip地址的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080219273A1 (en) * 2007-03-05 2008-09-11 Fujitsu Limited Scheduling method for executing job, scheduling apparatus for executing job, and commutative recording medium having recorded thereon scheduling program for causing execution of job
CN101835145A (zh) * 2010-03-30 2010-09-15 北京傲天动联技术有限公司 基于瘦ap的用户信息管理方法
CN104066083A (zh) * 2013-03-18 2014-09-24 华为终端有限公司 一种接入无线局域网的方法和装置
CN103532850A (zh) * 2013-09-29 2014-01-22 福建星网锐捷网络有限公司 一种上行报文转发方法、装置及接入点ap设备
CN105227695A (zh) * 2015-10-19 2016-01-06 深圳市华讯方舟科技有限公司 基于多个vlan的接入点获取客户端mac地址的方法及装置

Also Published As

Publication number Publication date
CN105227695A (zh) 2016-01-06
CN105227695B (zh) 2018-07-17

Similar Documents

Publication Publication Date Title
EP3401783B1 (en) Method and apparatus for determining virtual machine migration
US9756010B2 (en) Resolving network address conflicts
US20150222448A1 (en) Avoiding unknown unicast floods resulting from mac address table overflows
WO2014210572A1 (en) Network service slotting
WO2008045616A1 (en) System and method for assigning virtual local area networks
CN107800743B (zh) 云桌面系统、云管理系统和相关设备
US10812599B2 (en) Method and system for creating virtual non-volatile storage medium, and management system
WO2019075773A1 (zh) 数据处理方法、装置、计算机设备和存储介质
WO2017215492A1 (zh) 设备检测方法及装置
JP2008181427A (ja) シングルサインオンシステム、情報端末装置、シングルサインオンサーバ、プログラム
US8819139B2 (en) Virtual desktop infrastructure (VDI) login acceleration
US8887237B2 (en) Multimode authentication
US20150052575A1 (en) Steering Traffic Among Multiple Network Services Using a Centralized Dispatcher
US20170054765A1 (en) Systems and methods for establishing a control channel between a virtualization server and a client device
WO2014094218A1 (zh) 基于虚拟组网的交换机配置方法及集群管理设备
WO2017067276A1 (zh) 基于多个vlan的接入点获取客户端mac地址的方法及装置
CN104579939B (zh) 网关的保护方法和装置
CN103795584A (zh) 客户端身份检测方法及网关
CN106936608B (zh) 一种建立ssh连接的方法、相关设备及系统
KR101491322B1 (ko) 자기 구성 근거리 네트워크 보안
WO2016177185A1 (zh) 媒体访问控制mac地址的处理方法及装置
TWI543576B (zh) 網路協定位址之設定方法及伺服管理系統
JP5617729B2 (ja) 通信装置及びネットワーク接続方法
WO2015117380A1 (zh) 一种远程桌面协议网关进行路由交换的方法、设备及系统
US8730811B2 (en) Managing network traffic

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: 16856711

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16856711

Country of ref document: EP

Kind code of ref document: A1