BSSID 可以用作唯一标识符吗? [英] Can BSSID be used as an unique identifier?

查看:149
本文介绍了BSSID 可以用作唯一标识符吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个列出用户周围所有 wifi 网络的 Android 应用.

I'm building an Android App that lists all wifi networks arround the user.

当用户尝试使用特定服务时,我的应用需要有关用户网络的信息.

My app requires the informations about the user's network when he tries to use an specific service.

当我的应用从用户的网络获取所有信息时,它会自动在我的数据库表中插入一个新行,其中包含所有这些必要的信息.

When my app gets all the informations from the user's network, it automatically inserts on my database table a new row, with all these necessary informations.

我遇到的问题是我不知道是否所有 Wifi 网络都有唯一标识符.我会把所有的东西都保存在我的数据库中,有些 Wifi 信息不是唯一的,比如 SSID

The issue that I'm having is that I don't know if all Wifi networks got an unique identifier. I will save everything on my Database, and some Wifi informations aren't unique, like the SSID

所以,我想知道 BSSID 是否可以用作唯一 ID,因为我必须比较每个网络.

So, I would like to know if BSSID can be used as an unique ID, because I will have to compare every network.

我将检查网络是否在我的数据库中,检查 BSSID 值是否在我的数据库中.

I will check if a network is on my Database checking if the BSSID value is on my database.

谢谢.

推荐答案

信标帧中的 BSSID 应该足以识别唯一的接入点,因为它实际上是 MAC 地址.通常它对于每个 NIC 都是唯一的.但是,有人可以使用允许手动更改 NIC 的 MAC 地址的设备来实现自己的接入点,这在典型的接入点设备中不是这种情况,但知识渊博的人可以做到.

BSSID in a beacon frame should be good enough to identify unique access points as it is actually the MAC address. Normally it is unique for every NIC. However, somebody could implement there own access point with a device that allows manual change of the NIC's MAC address, this is not the case in typical access point devices but something knowledgeable people can do.

但是,您必须知道具有不同 BSSID(不同基本服务集)的两个 AP 可以属于同一个 WLAN,具有相同的 SSID.这是当 2 个或更多 BSS 形成扩展服务集 (ESS) 时

However, you must know that two AP's with different BSSID's (different Basic Service Sets) can belong to the same WLAN, with the same SSID. This is when 2 or more BSS's form an Extended Service Set (ESS)

这篇关于BSSID 可以用作唯一标识符吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆