[go: up one dir, main page]

CN115776477A - Information identification method, device, equipment and storage medium - Google Patents

Information identification method, device, equipment and storage medium Download PDF

Info

Publication number
CN115776477A
CN115776477A CN202111044598.0A CN202111044598A CN115776477A CN 115776477 A CN115776477 A CN 115776477A CN 202111044598 A CN202111044598 A CN 202111044598A CN 115776477 A CN115776477 A CN 115776477A
Authority
CN
China
Prior art keywords
information
gateway
target
access control
media access
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111044598.0A
Other languages
Chinese (zh)
Inventor
韩凯
徐沁沁
鲁银冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202111044598.0A priority Critical patent/CN115776477A/en
Publication of CN115776477A publication Critical patent/CN115776477A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请公开了一种信息的标识方法,方法包括:获取网关的媒体存取控制地址;从网关区域分布库中,查找与媒体存取控制地址对应的网关的参考位置信息;若获取到的参考位置信息的数量满足第一数量筛选条件,获取网关下的挂载设备信息;基于媒体存取控制地址和挂载设备信息,创建用于唯一标识网关的目标标识。本申请同时还公开了一种信息的标识装置、电子设备和计算机可读存储介质。

Figure 202111044598

This application discloses a method for identifying information. The method includes: obtaining the media access control address of the gateway; searching for the reference location information of the gateway corresponding to the media access control address from the gateway regional distribution database; if the obtained reference The quantity of the location information satisfies the first quantity screening condition, and the mounted device information under the gateway is obtained; based on the media access control address and the mounted device information, a target identifier for uniquely identifying the gateway is created. The application also discloses an information identification device, electronic equipment and a computer-readable storage medium.

Figure 202111044598

Description

一种信息的标识方法、装置、设备和存储介质An information identification method, device, equipment and storage medium

技术领域technical field

本申请涉及计算机技术领域,尤其是涉及一种信息的标识方法、信息的标识装置、电子设备和计算机可读存储介质。The present application relates to the field of computer technology, and in particular to an information identification method, an information identification device, electronic equipment, and a computer-readable storage medium.

背景技术Background technique

目前,家庭中一般拥有的设备大致可以分为三类:以家用电脑、笔记本电脑、掌上电脑为代表的信息设备;以电视机、高密度数字视频光盘(Digital Video Disc,DVD)、数码摄像机、音响为代表的传统娱乐设备;包括冰箱、洗衣机、灯光和家庭安防系统在内的涉及家庭日常起居的家用设备。智能家居是指将家庭中的这些设备组成家庭内部网络并通过家庭网关连接到外部网络,从而进行远程控制和管理。家庭网关是智能家居的重要组成部分,是实现家庭网络中内部网络与外部网络相互通信的中间设备。家庭网关作为家庭宽带统一的入网接口,能够准确的知道家庭网关的省市分布、数量规模、行为习惯是智慧家庭分区域精细化运营的一个基础性需求。目前,智慧家庭运营中心以各个省份中家庭网关的媒体存取控制(Media Access Control,MAC)地址,作为家庭网关的唯一标识,从而使得网络运营商能够获知家庭网关在各地区的省市分布、数量规模、部署情况和行为习惯。At present, the equipment generally owned in the family can be roughly divided into three categories: information equipment represented by home computers, notebook computers, and handheld computers; televisions, high-density digital video discs (Digital Video Disc, DVD), Traditional entertainment equipment represented by audio; household equipment related to daily life of the family, including refrigerators, washing machines, lighting and home security systems. Smart home means that these devices in the home form a home internal network and connect to the external network through a home gateway for remote control and management. The home gateway is an important part of the smart home, and it is an intermediate device that realizes the communication between the internal network and the external network in the home network. As a unified network access interface for home broadband, the home gateway can accurately know the provincial and city distribution, quantity scale, and behavior habits of home gateways, which is a basic requirement for the refined operation of smart homes in different regions. At present, the smart home operation center uses the Media Access Control (MAC) address of the home gateway in each province as the unique identifier of the home gateway, so that network operators can know the distribution of home gateways in various regions, provinces, and cities. Quantity size, deployment situation and behavior habits.

然而,相关技术中由于家庭网关的设备厂商众多,但是设备厂商在生成家庭网关时,各设备厂商之间缺乏沟通,使得部分的家庭网关的MAC地址出现重复的情况,从而导致网络运营商无法准确获知家庭网关在各地区的部署信息。However, in the related art, due to the large number of home gateway equipment manufacturers, when the equipment manufacturers generate home gateways, there is a lack of communication between the equipment manufacturers, which makes the MAC addresses of some home gateways duplicate, which makes network operators unable to accurately Learn about the deployment information of home gateways in various regions.

发明内容Contents of the invention

本申请提供一种信息的标识方法、信息的标识装置、电子设备和计算机可读存储介质,解决相关技术中部分的家庭网关的MAC地址出现重复的情况,从而导致网络运营商无法准确获知家庭网关在各地区的部署信息的问题。The present application provides an information identification method, an information identification device, electronic equipment, and a computer-readable storage medium, which solve the situation that the MAC addresses of some home gateways in the related art are duplicated, resulting in network operators being unable to accurately obtain home gateways Issues with deployment information in various regions.

本申请的技术方案是这样实现的:The technical scheme of the present application is realized like this:

一种信息的标识方法,所述方法包括:A method for identifying information, the method comprising:

获取网关的媒体存取控制地址;Obtaining the media access control address of the gateway;

从网关区域分布库中,查找与所述媒体存取控制地址对应的所述网关的参考位置信息;Searching for reference location information of the gateway corresponding to the media access control address from the gateway area distribution library;

若获取到的参考位置信息的数量满足第一数量筛选条件,获取所述网关下的挂载设备信息;If the obtained quantity of reference position information satisfies the first quantity screening condition, obtain the information of the mounted device under the gateway;

基于所述媒体存取控制地址和所述挂载设备信息,创建用于唯一标识所述网关的目标标识。Create a target identifier for uniquely identifying the gateway based on the media access control address and the mounted device information.

一种信息的标识装置,所述信息的标识装置包括:An information identification device, the information identification device comprising:

获取单元,用于获取网关的媒体存取控制地址;an obtaining unit, configured to obtain the media access control address of the gateway;

处理单元,用于从网关区域分布库中,查找与所述媒体存取控制地址对应的所述网关的参考位置信息;a processing unit, configured to search the reference location information of the gateway corresponding to the media access control address from the gateway area distribution library;

所述处理单元,还用于若获取到的参考位置信息的数量满足第一数量筛选条件,获取所述网关下的挂载设备信息;The processing unit is further configured to obtain the information of the mounted device under the gateway if the obtained quantity of reference position information satisfies the first quantity screening condition;

所述处理单元,还用于基于所述媒体存取控制地址和所述挂载设备信息,创建用于唯一标识所述网关的目标标识。The processing unit is further configured to create a target identifier for uniquely identifying the gateway based on the media access control address and the mounted device information.

一种电子设备,所述电子设备包括:,An electronic device comprising:

存储器,用于存储可执行指令;memory for storing executable instructions;

处理器,用于执行所述存储器中存储的可执行指令时,实现上述信息的标识方法的步骤。The processor is configured to implement the steps of the above information identification method when executing the executable instructions stored in the memory.

一种计算机存储介质,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如上述的信息的标识方法的步骤。A computer storage medium, where one or more programs are stored in the computer storage medium, and the one or more programs can be executed by one or more processors, so as to realize the steps of the above information identification method.

本申请所提供的信息的标识方法、信息的标识装置、电子设备和计算机可读存储介质,获取网关的媒体存取控制地址;从网关区域分布库中,查找与媒体存取控制地址对应的网关的参考位置信息;若获取到的参考位置信息的数量满足第一数量筛选条件,获取网关下的挂载设备信息;基于媒体存取控制地址和挂载设备信息,创建用于唯一标识网关的目标标识;如此,本申请采用了目标标识来唯一标识网关,优化相关技术中基于家庭网关MAC来唯一标记家庭与定位省市归属的方法的不足,便于运营商获知各个网关的地理位置,并便于确定网关在各地区的部署情况;同时,可以便捷、准确、高效地确定MAC地址的归属地信息,使得基于归属地信息的后续操作更为精确,提升了用户的使用体验。The information identification method, information identification device, electronic equipment, and computer-readable storage medium provided in this application obtain the media access control address of the gateway; find the gateway corresponding to the media access control address from the gateway regional distribution database reference location information; if the number of obtained reference location information satisfies the first quantity filter condition, obtain the mounted device information under the gateway; based on the media access control address and the mounted device information, create a target for uniquely identifying the gateway In this way, this application uses the target identifier to uniquely identify the gateway, and optimizes the shortcomings of the method of uniquely marking the family and locating the province and city based on the MAC of the home gateway in the related art, so that the operator can know the geographical location of each gateway, and it is convenient to determine The deployment of gateways in various regions; at the same time, the attribution information of the MAC address can be determined conveniently, accurately and efficiently, making the follow-up operations based on the attribution information more accurate and improving the user experience.

附图说明Description of drawings

图1是本申请提供的一种可选的信息的标识方法的流程示意图;FIG. 1 is a schematic flowchart of an optional information identification method provided by the present application;

图2是本申请提供的一种获取媒体存取控制地址对应的网关的参考位置信息的流程示意图;FIG. 2 is a schematic flow diagram of obtaining reference location information of a gateway corresponding to a media access control address provided by the present application;

图3是本申请提供的一种可选的信息的标识方法的流程示意图;FIG. 3 is a schematic flowchart of an optional information identification method provided by the present application;

图4是本申请提供的一种确定网关的目标位置信息的流程示意图;Fig. 4 is a schematic flow chart of determining the target location information of the gateway provided by the present application;

图5是本申请提供的一种可选的信息的标识方法的流程示意图;FIG. 5 is a schematic flowchart of an optional information identification method provided by the present application;

图6是本申请提供的一种创建目标标识的流程示意图;Fig. 6 is a schematic flow chart of creating a target identifier provided by the present application;

图7是本申请提供的又一种创建目标标识的流程示意图;Fig. 7 is a schematic flow chart of creating another target identifier provided by the present application;

图8是本申请提供的一种家庭树的结构示意图;Fig. 8 is a schematic structural diagram of a family tree provided by the present application;

图9是本申请提供的一种信息的标识装置的结构示意图;Fig. 9 is a schematic structural diagram of an information identification device provided by the present application;

图10是本申请提供的一种电子设备的结构示意图。FIG. 10 is a schematic structural diagram of an electronic device provided by the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,这里,关于附图说明中提到的“另一种”或“又一种”并非指特定某个实施例,本申请的各个实施例可以在不冲突的情况下相互结合。The technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Here, the "another" or "another" mentioned in the description of the drawings does not mean Specific to a certain embodiment, the various embodiments of the present application can be combined with each other without conflict.

应理解,说明书通篇中提到的“本申请实施例”或“前述实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“本申请实施例中”或“在前述实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中应用。在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。It should be understood that references to "an embodiment of the present application" or "the foregoing embodiment" throughout the specification mean that a specific feature, structure or characteristic related to the embodiment is included in at least one embodiment of the present application. Therefore, appearances of "in the embodiment of the present application" or "in the foregoing embodiment" throughout the specification do not necessarily refer to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. In various embodiments of the present application, the serial numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, rather than the implementation process of the embodiments of the present application. constitute any limitation. The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.

本申请提供一种信息的标识方法,应用于电子设备,参照图1所示,该方法包括以下步骤:This application provides a method for identifying information, which is applied to electronic equipment. Referring to FIG. 1, the method includes the following steps:

步骤101、获取网关的媒体存取控制地址。Step 101, acquire the media access control address of the gateway.

本申请实施例中,电子设备向网关发送针对网关的媒体存取控制MAC地址的查询请求,并接收网关返回的MAC地址查询响应。其中,MAC地址查询响应携带有网关的MAC地址信息。In the embodiment of the present application, the electronic device sends a query request for the MAC address of the gateway to the gateway, and receives a MAC address query response returned by the gateway. Wherein, the MAC address query response carries the MAC address information of the gateway.

其中,网关(Gateway)又称网间连接器、协议转换器。网关是复杂的网络互连设备,实现了网络层以上的网络互连,可以用于两个高层协议不同的网络互连。需要说明的是,网关可以用于广域网(Wide Area Network,WAN)互连,也可以用于局域网(Local AreaNetwork,LAN))互连。Among them, the gateway (Gateway) is also called an internet connection and a protocol converter. A gateway is a complex network interconnection device that realizes the network interconnection above the network layer and can be used for the interconnection of two networks with different high-level protocols. It should be noted that the gateway may be used for interconnection of a wide area network (Wide Area Network, WAN), and may also be used for interconnection of a local area network (Local Area Network, LAN).

本申请实施例中,电子设备包括可以包括诸如手机、平板电脑、笔记本电脑、个人数字助理(Personal Digital Assistant,PDA)、相机、可穿戴设备、车载设备等移动终端设备,以及诸如台式计算机等固定终端设备。In the embodiment of the present application, electronic devices may include mobile terminal devices such as mobile phones, tablet computers, notebook computers, personal digital assistants (Personal Digital Assistant, PDA), cameras, wearable devices, and vehicle-mounted devices, as well as fixed devices such as desktop computers. Terminal Equipment.

本申请实施例中,MAC地址可以用于确认网络设备位置的位址;MAC地址由设备厂商在生产网络设备时写在硬件内部的。一般的,MAC地址是48位的(6个字节),通常表示为12个16进制数,每2个16进制数之间用冒号隔开,例如08:00:20:0A:8C:6D就是一个MAC地址。其中,前三个字节表示组织唯一标识符(Organizationally Unique Identifier,OUI),是电气与电子工程师协会(Institute of Electrical and Electronics Engineers,IEEE)的注册管理机构给不同厂家分配的代码,区分不同的厂家。后三个字节由设备厂商自行分配。由于各设备厂商之间缺乏沟通,使得部分的家庭网关的MAC地址出现重复的情况,从而导致网络运营商无法准确获知家庭网关在各地区的省市分布、数量规模、部署情况和行为习惯。In the embodiment of this application, the MAC address can be used to confirm the address of the network device location; the MAC address is written inside the hardware by the device manufacturer when producing the network device. Generally, the MAC address is 48 bits (6 bytes), usually expressed as 12 hexadecimal numbers, separated by a colon between each 2 hexadecimal numbers, for example 08:00:20:0A:8C : 6D is a MAC address. Among them, the first three bytes represent the Organizationally Unique Identifier (OUI), which is the code assigned to different manufacturers by the Registry of the Institute of Electrical and Electronics Engineers (IEEE) to distinguish different factory. The last three bytes are allocated by the device manufacturer. Due to the lack of communication among various equipment manufacturers, the MAC addresses of some home gateways are duplicated, which makes network operators unable to accurately know the distribution, quantity, deployment and behavior habits of home gateways in various regions.

电子设备可以通过无线保真(Wireless Fidelity,Wi-Fi)、全球移动通信系统(Global System for Mobile Communications,GSM)移动通信,码分多址(Code DivisionMultiple Access,CDMA)移动通信,第三代移动通信技术(3rd-Generation,3G)移动通信,第四代移动通信技术(the 4th generation mobile communication technology,4G)移动通信,第五代移动通信技术(5rd-Generation,5G)移动通信、窄带物联网(Narrow BandInternet of Things,NBIoT)等入网方式接入网关。Electronic devices can use wireless fidelity (Wireless Fidelity, Wi-Fi), Global System for Mobile Communications (Global System for Mobile Communications, GSM) mobile communication, code division multiple access (Code Division Multiple Access, CDMA) mobile communication, third-generation mobile Communication technology (3rd-Generation, 3G) mobile communication, the 4th generation mobile communication technology (4G) mobile communication, 5th-generation mobile communication technology (5rd-Generation, 5G) mobile communication, narrowband Internet of Things (Narrow Band Internet of Things, NBIoT) and other network access methods to access the gateway.

本申请实施例中,MAC地址信息从电子设备与网关的关联过程中交换的消息中获取;可选地,MAC地址信息可以是在电子设备与网关的扫描、认证和关联的任一握手过程中获取的。In the embodiment of this application, the MAC address information is obtained from the messages exchanged during the association process between the electronic device and the gateway; optionally, the MAC address information can be obtained during any handshake process of scanning, authentication and association between the electronic device and the gateway acquired.

在本实施例中,网关可以通过MAC地址的查询请求中获取MAC地址信息,省去了在电子设备关联到网关过程中获取MAC地址信息的过程,当然也可以从电子设备关联到网关过程中获取MAC地址信息,增加了网关获取MAC地址信息的灵活性。In this embodiment, the gateway can obtain the MAC address information through the query request of the MAC address, which saves the process of obtaining the MAC address information in the process of associating the electronic device with the gateway. Of course, it can also be obtained from the process of associating the electronic device with the gateway. MAC address information increases the flexibility of the gateway to obtain MAC address information.

步骤102、从网关区域分布库中,查找与媒体存取控制地址对应的网关的参考位置信息。Step 102: Find the reference location information of the gateway corresponding to the media access control address from the gateway area distribution database.

其中,网关区域分布库中存储有映射关系,映射关系用于指示MAC地址对应的参考位置关系。Wherein, a mapping relationship is stored in the gateway area distribution library, and the mapping relationship is used to indicate a reference location relationship corresponding to the MAC address.

本申请实施例中,基于网关的MAC地址,从网关区域分布库即网关MAC省市归属库中,查询与MAC地址对应的网关的参考位置信息即MAC地址的省市归属;并确定查询到的与MAC地址对应的网关的参考位置信息的数量。In the embodiment of the present application, based on the MAC address of the gateway, from the gateway regional distribution library, that is, the gateway MAC province and city attribution library, query the reference location information of the gateway corresponding to the MAC address, that is, the province and city attribution of the MAC address; and determine the inquired The number of reference location information of the gateway corresponding to the MAC address.

图2是本申请提供的一种获取媒体存取控制地址对应的网关的参考位置信息的流程示意图。先获取网关的MAC地址,并从网关区域分布库中,查找与媒体存取控制地址对应的网关的参考位置信息;并确定网关的参考位置信息的数量。示例性的,电子设备通过判断网关的参考位置信息是否唯一,确定网关的参考位置信息的数量为1即网关的参考位置信息唯一、或确定网关的参考位置信息的数量大于1即网关的参考位置信息不唯一,或确定网关的参考位置信息的数量为0,即不存在网关的参考位置信息。FIG. 2 is a schematic flowchart of obtaining reference location information of a gateway corresponding to a media access control address provided in the present application. First obtain the MAC address of the gateway, and search the reference location information of the gateway corresponding to the media access control address from the gateway area distribution database; and determine the number of reference location information of the gateway. Exemplarily, the electronic device determines whether the reference position information of the gateway is unique, determines that the number of reference position information of the gateway is 1, that is, the reference position information of the gateway is unique, or determines that the number of reference position information of the gateway is greater than 1, that is, the reference position of the gateway The information is not unique, or it is determined that the number of reference location information of the gateway is 0, that is, there is no reference location information of the gateway.

步骤103、若获取到的参考位置信息的数量满足第一数量筛选条件,获取网关下的挂载设备信息。Step 103, if the obtained quantity of reference location information satisfies the first quantity screening condition, acquire the information of the mounted device under the gateway.

其中,挂载设备信息包括挂载在网关下的至少一个设备的IP数据、以及挂载在网关下每一设备的设备信息;挂载在网关下的每一设备的设备信息包括但不限于挂载在网关下的每一设备的MAC地址、每一设备的类型、每一设备的品牌、每一设备的型号。Wherein, the mounted device information includes the IP data of at least one device mounted under the gateway, and the device information of each device mounted under the gateway; the device information of each device mounted under the gateway includes but is not limited to The MAC address of each device, the type of each device, the brand of each device, and the model of each device loaded under the gateway.

本申请实施例中,当电子设备确定查询到的与MAC地址对应的网关的参考位置信息的数量满足第一数量筛选条件时,根据该网关下挂载的设备的状态信息,确定挂载在该网关下的设备,并获取挂载在该网关下的设备的挂载设备信息。设备的状态信息包括设备处于可用状态或设备处于不可用状态。In the embodiment of the present application, when the electronic device determines that the quantity of the reference location information of the gateway corresponding to the MAC address queried satisfies the first quantity screening condition, according to the status information of the device mounted under the gateway, it is determined that the gateway is mounted on the gateway. Devices under the gateway, and obtain the mounted device information of the devices mounted under the gateway. The status information of the device includes whether the device is in an available state or in an unavailable state.

本申请实施例中,确定获取到的参考位置信息的数量满足第一数量筛选条件即确定获取到的参考位置信息的数量为0个,或者确定获取到的参考位置信息的数量大于1个。In the embodiment of the present application, determining that the number of acquired reference location information satisfies the first quantity screening condition means determining that the number of acquired reference location information is 0, or determining that the number of acquired reference location information is greater than 1.

示例性的,挂载在网关下的设备的挂载设备信息包括:MAC1-电视-设备1、MAC2-路由器-设备2;或者挂载在网关下设备的挂载设备信息包括:MAC3-手机-设备3、MAC4-手机-设备4。Exemplarily, the mounted device information of the device mounted under the gateway includes: MAC1-TV-device 1, MAC2-router-device 2; or the mounted device information of the device mounted under the gateway includes: MAC3-mobile phone- Device 3, MAC4-mobile phone-device 4.

步骤104、基于媒体存取控制地址和挂载设备信息,创建用于唯一标识网关的目标标识。Step 104, based on the media access control address and the mounted device information, create a target identifier for uniquely identifying the gateway.

本申请实施例中,电子设备基于网关的MAC地址和挂载设备信息创建用于唯一标识网关的目标标识。In the embodiment of the present application, the electronic device creates a target identifier for uniquely identifying the gateway based on the MAC address of the gateway and the mounted device information.

本申请提供的信息的标识方法,方法包括:获取网关的媒体存取控制地址;从网关区域分布库中,查找与媒体存取控制地址对应的网关的参考位置信息;若获取到的参考位置信息的数量满足第一数量筛选条件,获取网关下的挂载设备信息;基于媒体存取控制地址和挂载设备信息,创建用于唯一标识网关的目标标识。如此,本申请采用了目标标识来唯一标识网关,优化相关技术中基于家庭网关MAC来唯一标记家庭与定位省市归属的方法的不足,便于运营商获知各个网关的地理位置,并便于确定网关在各地区的部署情况;同时,可以便捷、准确、高效地确定MAC地址的归属地信息,使得基于归属地信息的后续操作更为精确,提升了用户的使用体验。The information identification method provided by this application includes: obtaining the media access control address of the gateway; searching for the reference location information of the gateway corresponding to the media access control address from the gateway regional distribution database; if the obtained reference location information The quantity satisfies the first quantity screening condition, and the mounted device information under the gateway is obtained; based on the media access control address and the mounted device information, a target identifier for uniquely identifying the gateway is created. In this way, this application uses the target identifier to uniquely identify the gateway, and optimizes the shortcomings of the method of uniquely marking the family and locating the province and city based on the MAC of the home gateway in the related art, so that the operator can know the geographical location of each gateway, and it is convenient to determine the location of the gateway. The deployment status of each region; at the same time, the attribution information of the MAC address can be determined conveniently, accurately and efficiently, making the follow-up operations based on the attribution information more accurate and improving the user experience.

本申请提供一种信息的标识方法,应用于电子设备,参照图3所示,该方法可以通过步骤201至205实现;或者该方法可以通过步骤201至202以及步骤206实现:This application provides a method for identifying information, which is applied to electronic devices. Referring to FIG. 3 , the method can be implemented through steps 201 to 205; or the method can be implemented through steps 201 to 202 and step 206:

步骤201、获取网关的媒体存取控制地址。Step 201, acquire the media access control address of the gateway.

步骤202、从网关区域分布库中,查找与媒体存取控制地址对应的网关的参考位置信息。Step 202: Find the reference location information of the gateway corresponding to the media access control address from the gateway area distribution database.

步骤203、若获取到的参考位置信息的数量满足第一数量筛选条件,获取网关下的挂载设备信息。Step 203, if the obtained quantity of reference location information satisfies the first quantity screening condition, acquire the information of the mounted device under the gateway.

步骤204、基于网际互连协议数据,确定网关的目标位置信息。Step 204, based on the Internet Protocol data, determine the target location information of the gateway.

本申请实施例中,若获取到的参考位置信息的数量满足第一数量筛选条件,即确定获取到的参考位置信息的数量不是唯一的,电子设备在预设时间段内采集网关下挂的不同设备在网络通信过程中发起的深度报文检测(Deep Packet Inspection,DPI)、域名系统(Domain Name System,DNS)、超文本传输协议(Hyper Text Transfer Prtcl,HTTP)流量中的互联网通信协议第四版(Internet Protocol version 4,IPV4)和互联网通信协议第六版(Internet Protocol version 6,IPV6)数据来确定网关的目标位置信息。需要说明的是,网关所使用的IPV4资源、IPV6资源都来自于由IP资源的统一分配,通过IP数据可以准确的定位到网关省市归属地。其中,预设时间段内可以是一小时、一天、一周、一个月等。In the embodiment of the present application, if the number of obtained reference location information satisfies the first quantity screening condition, that is, it is determined that the number of obtained reference location information is not unique, the electronic device collects the different data connected to the gateway within a preset time period. Internet communication protocols in Deep Packet Inspection (DPI), Domain Name System (Domain Name System, DNS), and Hypertext Transfer Protocol (Hyper Text Transfer Prtcl, HTTP) traffic initiated by the device during network communication. Version (Internet Protocol version 4, IPV4) and Internet Protocol version 6 (Internet Protocol version 6, IPV6) data to determine the target location information of the gateway. It should be noted that the IPV4 resources and IPV6 resources used by the gateway all come from the unified allocation of IP resources, and the provinces and cities of the gateway can be accurately located through the IP data. Wherein, the preset time period may be one hour, one day, one week, one month and so on.

本申请实施例中,挂载设备通过网关与任一第三方平台进行业务往来时,挂载设备会通过网关向第三方平台发送的业务信息。其中,业务信息包括挂载设备的地理位置信息和当时时间,以使网关根据挂载设备的地理位置信息确定出在各时间段内,网关的地理位置信息所归属的地理范围,以确定出在各时间段内各地理范围内的网关分布状况。例如,挂载在网关下的设备MAC1和MAC2在近一周的行为都发生在浙江杭州;挂载在网关下的设备MAC3和MAC4在近一周的行为都发生在北京。In the embodiment of the present application, when the mounting device conducts business with any third-party platform through the gateway, the mounting device will send business information to the third-party platform through the gateway. Wherein, the service information includes the geographic location information of the mounted device and the time at that time, so that the gateway can determine the geographical range to which the geographic location information of the gateway belongs in each time period according to the geographic location information of the mounted device, so as to determine the The distribution of gateways in each geographical range for each time period. For example, the behaviors of devices MAC1 and MAC2 mounted under the gateway both occurred in Hangzhou, Zhejiang Province in the past week; the behaviors of devices MAC3 and MAC4 mounted under the gateway occurred in Beijing in the past week.

图4是本申请提供的一种确定网关的目标位置信息的流程示意图。示例性的,先确定网关的MAC地址,并确定挂载在该网关下的设备;例如,媒体存取控制地址为MAC1的设备1、媒体存取控制地址为MAC2的设备2、媒体存取控制地址为MAC3的设备3、媒体存取控制地址为MAC4的设备4。进一步的,根据设备在网络通信过程中发起的DPI/DNS流量中的IPV4和IPV6数据,并基于IPV4和IPV6数据从IP省市归属库中,确定预设时间段内网关的目标位置信息。例如,媒体存取控制地址为MAC1的设备1和在媒体存取控制地址为MAC2的设备2近一周归属地:浙江杭州。媒体存取控制地址为MAC3的设备3和在媒体存取控制地址为MAC4的设备4近一周归属地:北京。Fig. 4 is a schematic flow chart of determining target location information of a gateway provided by the present application. Exemplarily, first determine the MAC address of the gateway, and determine the devices mounted under the gateway; for example, device 1 with the media access control address of MAC1, device 2 with the media access control address of MAC2, media access control Device 3 with address MAC3 and device 4 with MAC address MAC4. Further, according to the IPV4 and IPV6 data in the DPI/DNS traffic initiated by the device during the network communication process, and based on the IPV4 and IPV6 data from the IP province and city attribution database, determine the target location information of the gateway within the preset time period. For example, the device 1 whose media access control address is MAC1 and the device 2 whose media access control address is MAC2 have belonged to: Hangzhou, Zhejiang Province for nearly a week. The device 3 with the media access control address MAC3 and the device 4 with the media access control address MAC4 have been attributing for nearly a week: Beijing.

步骤205、基于媒体存取控制地址和目标位置信息,创建目标标识。Step 205: Create a target identifier based on the MAC address and target location information.

本申请实施例中,电子设备基于网关的MAC地址和网关的目标位置信息,创建目标标识。In the embodiment of the present application, the electronic device creates a target identifier based on the MAC address of the gateway and the target location information of the gateway.

在本申请其他实施例中,步骤205基于媒体存取控制地址和目标位置信息,创建目标标识,可以通过图5所示的步骤实现:In other embodiments of the present application, step 205 creates a target identifier based on the media access control address and target location information, which can be implemented through the steps shown in FIG. 5:

步骤2051、对每一设备的设备信息进行拼接处理,得到每一设备对应的设备字符串。Step 2051: Concatenate the device information of each device to obtain the device string corresponding to each device.

本申请实施例中,当获取到挂载在网关下的设备后,对每一设备的设备信息进行拼接,得到每一设备对应的设备字符串。例如,设备字符串为:aa-dd-ee-ff-cc-ww+电视+设备1+skyworth 55k5s。In the embodiment of the present application, after obtaining the devices mounted under the gateway, the device information of each device is spliced to obtain the device string corresponding to each device. For example, the device string is: aa-dd-ee-ff-cc-ww+tv+device1+skyworth 55k5s.

本申请实施例中,当获取到挂载在网关下的设备后,对每一常用设备的设备信息进行拼接,得到每一常用设备对应的设备字符串。本申请将近7天内有5天以上接入网关的设备定义为常用设备。In the embodiment of the present application, after obtaining the devices mounted under the gateway, the device information of each commonly used device is spliced to obtain the device string corresponding to each commonly used device. In this application, devices that have been connected to the gateway for more than 5 days in the past 7 days are defined as common devices.

为了保证数据的安全性,采用加密算法对设备字符串进行加密。示例性的,加密算法包括但不限于采用哈希(Hash)算法中的信息摘要函数(Message-Digest Algorithm 5,MD5)、安全散列函数1(Secure Hash Algorithm 1,SHA-1)、开放寻址法、链表法。示例性的,对设备字符串“aa-dd-ee-ff-cc-ww+电视+设备1+skyworth 55k5s”进行加密,得到加密后的设备字符串“c18ce2e93e0a2ec9fd89cf19ea28924a”。In order to ensure data security, an encryption algorithm is used to encrypt the device string. Exemplary, the encryption algorithm includes but is not limited to using the message digest function (Message-Digest Algorithm 5, MD5) in the hash (Hash) algorithm, the secure hash function 1 (Secure Hash Algorithm 1, SHA-1), open search Address method, linked list method. Exemplarily, the device string "aa-dd-ee-ff-cc-ww+television+device 1+skyworth 55k5s" is encrypted to obtain the encrypted device string "c18ce2e93e0a2ec9fd89cf19ea28924a".

步骤2052、将媒体存取控制地址、目标位置信息和每一设备对应的设备字符串按照目标格式进行处理,得到用于表征网关挂载设备的业务类型的第一辅助信息。Step 2052, process the media access control address, target location information, and device character string corresponding to each device according to the target format, and obtain first auxiliary information used to characterize the service type of the device mounted on the gateway.

本申请实施例中,将媒体存取控制地址、目标位置信息和每一设备对应的设备字符串按照目标格式进行处理,得到用于表征网关挂载设备的业务类型的第一辅助信息。示例性的,将媒体存取控制地址、目标位置信息和每一设备对应的设备字符串按照目标格式进行处理,得到第一辅助信息为:(网关的MAC地址,目标位置信息,设备字符串1,设备字符串2)=(aa-bb-cc-dd-ee-ff,浙江杭州,c18ce2e93e0a2ec9fd89cf19ea28924a,55313690b28ee830d42222b155adaf23)。或者得到第一辅助信息为:(网关的MAC地址,目标位置信息,设备字符串1)=(aa-bb-cc-dd-ee-ff,北京,88a8df45bcea280d330502d39f9cb31f)。其中,第一辅助信息可以表征网关挂载设备的业务类型。In the embodiment of the present application, the media access control address, the target location information and the device string corresponding to each device are processed according to the target format to obtain the first auxiliary information used to characterize the service type of the device mounted on the gateway. Exemplarily, the media access control address, the target location information and the device string corresponding to each device are processed according to the target format, and the first auxiliary information is obtained as: (the MAC address of the gateway, the target location information, the device string 1 , device string 2)=(aa-bb-cc-dd-ee-ff, Hangzhou, Zhejiang, c18ce2e93e0a2ec9fd89cf19ea28924a, 55313690b28ee830d42222b155adaf23). Or the first auxiliary information obtained is: (MAC address of gateway, target location information, device character string 1)=(aa-bb-cc-dd-ee-ff, Beijing, 88a8df45bcea280d330502d39f9cb31f). Wherein, the first auxiliary information may represent the service type of the device attached to the gateway.

本申请实施例中,目标格式包括但不限于三元组结构、向量结构、树形结构。In the embodiment of the present application, the target format includes, but is not limited to, a triple structure, a vector structure, and a tree structure.

步骤2053、基于第一辅助信息、媒体存取控制地址和目标位置信息,得到目标标识。Step 2053: Obtain the target identifier based on the first auxiliary information, the MAC address and the target location information.

本申请实施例中,基于第一辅助信息、网关的MAC地址和网关的目标位置信息,得到用于唯一标识网关的目标标识。In the embodiment of the present application, based on the first auxiliary information, the MAC address of the gateway, and the target location information of the gateway, a target identifier for uniquely identifying the gateway is obtained.

在本申请其他实施例中,步骤2053基于第一辅助信息、媒体存取控制地址和目标位置信息,得到目标标识,可以通过步骤A1至A2实现,或者可以通过步骤A3至A6,或者可以通过步骤A3至B4、步骤A7来实现:In other embodiments of the present application, step 2053 obtains the target identifier based on the first auxiliary information, the media access control address and the target location information, which can be realized through steps A1 to A2, or through steps A3 to A6, or through steps A3 to B4, step A7 to achieve:

步骤A1、若标识数据库中不存在媒体存取控制地址对应的参考标识,对第一辅助信息进行加密,得到加密后的第一辅助信息。Step A1, if there is no reference identifier corresponding to the MAC address in the identifier database, encrypt the first auxiliary information to obtain encrypted first auxiliary information.

本申请实施例中,标识数据库存储有映射关系,映射关系存储有网关的MAC地址对应的目标标识信息。In the embodiment of the present application, the identification database stores a mapping relationship, and the mapping relationship stores target identification information corresponding to the MAC address of the gateway.

本申请实施例中,若标识数据库中不存在MAC地址对应的参考标识,对第一辅助信息进行加密,得到加密后的第一辅助信息。In the embodiment of the present application, if there is no reference identifier corresponding to the MAC address in the identifier database, the first auxiliary information is encrypted to obtain encrypted first auxiliary information.

本申请实施例中,为了保证数据的安全性,采用加密算法对处理后目标格式信息进行加密。示例性的,加密算法包括但不限于采用哈希(Hash)算法中的信息摘要函数(Message-Digest Algorithm 5,MD5)、安全散列函数1(Secure Hash Algorithm 1,SHA-1)、开放寻址法、链表法。示例性的,对第一辅助信息“aa-bb-cc-dd-ee-ff,北京,88a8df45bcea280d330502d39f9cb31f”进行加密,得到加密后的第一辅助信息“607aa0071ec96dd294497ab34577d49d”。In the embodiment of the present application, in order to ensure data security, an encryption algorithm is used to encrypt the processed target format information. Exemplary, the encryption algorithm includes but is not limited to using the message digest function (Message-Digest Algorithm 5, MD5) in the hash (Hash) algorithm, the secure hash function 1 (Secure Hash Algorithm 1, SHA-1), open search Address method, linked list method. Exemplarily, the first auxiliary information "aa-bb-cc-dd-ee-ff, Beijing, 88a8df45bcea280d330502d39f9cb31f" is encrypted to obtain encrypted first auxiliary information "607aa0071ec96dd294497ab34577d49d".

步骤A2、将媒体存取控制地址、加密后的第一辅助信息和网关的目标位置信息按照三元组结构排列,得到目标标识。Step A2. Arranging the MAC address, the encrypted first auxiliary information and the target location information of the gateway according to the triple structure to obtain the target identifier.

本申请实施例中,将网关的MAC地址、加密后的第一辅助信息和网关的目标位置信息按照三元组结构排列,得到目标标识,例如:得到目标标识为:(网关的MAC地址,加密后的第一辅助信息,网关的目标位置信息)=(aa-bb-cc-dd-ee-ff,607aa0071ec96dd294497ab34577d49d,北京),并将目标标识存储值标识数据库中。In the embodiment of the present application, the MAC address of the gateway, the encrypted first auxiliary information and the target location information of the gateway are arranged according to the triple structure to obtain the target identification, for example: the obtained target identification is: (the MAC address of the gateway, encrypted The following first auxiliary information, target location information of the gateway)=(aa-bb-cc-dd-ee-ff, 607aa0071ec96dd294497ab34577d49d, Beijing), and store the target identifier in the value identifier database.

步骤A3、若标识数据库中存在参考标识,解析参考标识得到参考标识关联的第二辅助信息。Step A3, if there is a reference identifier in the identifier database, parsing the reference identifier to obtain second auxiliary information associated with the reference identifier.

本申请实施例中,若标识数据库中存在MAC地址对应的参考标识,将与MAC地址对应的参考标识进行解析,得到与参考标识关联的第二辅助信息。解析参考标识包括先获取参考标识中的目标位的参考信息,并对参考信息进行解密操作,得到第二辅助信息。In the embodiment of the present application, if the reference identifier corresponding to the MAC address exists in the identifier database, the reference identifier corresponding to the MAC address is analyzed to obtain the second auxiliary information associated with the reference identifier. Analyzing the reference identifier includes first obtaining reference information of the target bit in the reference identifier, and performing a decryption operation on the reference information to obtain the second auxiliary information.

步骤A4、确定第一辅助信息与第二辅助信息的相似度。Step A4. Determine the similarity between the first auxiliary information and the second auxiliary information.

本申请实施例中,电子设备确定第一辅助信息与第二辅助信息的相似度。例如,先获取第一辅助信息为:(aa-bb-cc-dd-ee-ff,浙江杭州,c18ce2e93e0a2ec9fd89cf19ea28924a,55313690b28ee830d42222b155adaf23)和第二辅助信息为:(aa-bb-cc-dd-ee-ff,北京,88a8df45bcea280d330502d39f9cb31f)。将待比较相似度的辅助信息融合,构建特征值集合,例如:(浙江杭州,c18ce2e93e0a2ec9fd89cf19ea28924a,55313690b28ee830d42222b155adaf23,北京,88a8df45bcea280d330502d39f9cb31f),那么,第一辅助信息的结果为(1,1,1,0,0),第二辅助信息的结果为(0,0,0,1,1)。最后,基于第一辅助信息的结果和第二辅助信息的结果,使用相似度算法计算相似度。本申请实施例中,相似度算法包括但不限于余弦相似度、曼哈顿距离(Manhattan Distance)、欧氏距离(Euclidean Distance)、切比雪夫距离(Chebyshev Distance)、皮尔逊相关系数(Pearson Correlation)。In this embodiment of the present application, the electronic device determines the similarity between the first auxiliary information and the second auxiliary information. For example, the first auxiliary information obtained first is: (aa-bb-cc-dd-ee-ff, Hangzhou, Zhejiang, c18ce2e93e0a2ec9fd89cf19ea28924a, 55313690b28ee830d42222b155adaf23) and the second auxiliary information is: (aa-bb-cc-dd-ee-ff, Beijing, 88a8df45bcea280d330502d39f9cb31f). The auxiliary information to be compared similarity is fused to construct a feature value set, for example: (Hangzhou, Zhejiang, c18ce2e93e0a2ec9fd89cf19ea28924a, 55313690b28ee830d42222b155adaf23, Beijing, 88a8df45bcea280d330502d39f9cb31f), then the result of the first auxiliary information is (01, 01f) , the result of the second auxiliary information is (0, 0, 0, 1, 1). Finally, based on the result of the first side information and the result of the second side information, a similarity algorithm is used to calculate the similarity. In the embodiment of the present application, the similarity algorithm includes but not limited to cosine similarity, Manhattan Distance, Euclidean Distance, Chebyshev Distance, and Pearson Correlation.

步骤A5、若相似度大于或等于相似度阈值,对第二辅助信息进行加密操作,得到加密后的第二辅助信息。Step A5. If the similarity is greater than or equal to the similarity threshold, perform an encryption operation on the second auxiliary information to obtain encrypted second auxiliary information.

本申请实施例中,相似度阈值可以设置为50%;若确定第一辅助信息与第二辅助信息的相似度大于或等于相似度阈值,即当确定相似度大于或等于50%,复用标识数据库中的存量的信息,并对第二辅助信息进行加密操作,得到加密后的第二辅助信息。示例性的,第二辅助信息为:(aa-bb-cc-dd-ee-ff,浙江杭州,c18ce2e93e0a2ec9fd89cf19ea28924a,55313690b28ee830d42222b155adaf23),对第二辅助信息进行加密操作,得到加密后的第二辅助信息为“5666bc792349fef2942ae343d38156ee”。In the embodiment of the present application, the similarity threshold can be set to 50%; if it is determined that the similarity between the first auxiliary information and the second auxiliary information is greater than or equal to the similarity threshold, that is, when it is determined that the similarity is greater than or equal to 50%, the multiplexing flag information stored in the database, and perform an encryption operation on the second auxiliary information to obtain encrypted second auxiliary information. Exemplarily, the second auxiliary information is: (aa-bb-cc-dd-ee-ff, Hangzhou, Zhejiang, c18ce2e93e0a2ec9fd89cf19ea28924a, 55313690b28ee830d42222b155adaf23), the second auxiliary information is encrypted, and the encrypted second auxiliary information is " 5666bc792349fef2942ae343d38156ee".

步骤A6、将媒体存取控制地址、加密后的第二辅助信息和目标位置信息按照三元组结构排列,得到目标标识。Step A6, arrange the MAC address, the encrypted second auxiliary information and the target location information according to the triplet structure to obtain the target identifier.

本申请实施例中,将媒体存取控制地址、加密后的第二辅助信息和目标位置信息按照三元组结构排列,得到目标标识。例如:得到目标标识为:(网关的MAC地址,加密后的第一辅助信息,网关的目标位置信息)=(aa-bb-cc-dd-ee-ff,5666bc792349fef2942ae343d38156ee,浙江杭州),并将目标标识存储值标识数据库中。In the embodiment of the present application, the MAC address, the encrypted second auxiliary information, and the target location information are arranged according to a triple structure to obtain the target identifier. For example: the target identification is obtained as: (the MAC address of the gateway, the encrypted first auxiliary information, the target location information of the gateway)=(aa-bb-cc-dd-ee-ff, 5666bc792349fef2942ae343d38156ee, Zhejiang Hangzhou), and the target The identity stores the value in the identity database.

步骤A7、若相似度小于相似度阈值,将媒体存取控制地址、加密后的第一辅助信息和网关的目标位置信息按照三元组结构排列,得到目标标识。Step A7. If the similarity is less than the similarity threshold, arrange the MAC address, the encrypted first auxiliary information, and the target location information of the gateway according to the triplet structure to obtain the target identifier.

本申请实施例中,当相似度小于相似度阈值,即计算目标标识信息,将网关的MAC地址、加密后的第一辅助信息和网关的目标位置信息按照三元组结构排列,得到目标标识,例如:得到目标标识为:(网关的MAC地址,加密后的第一辅助信息,网关的目标位置信息)=(aa-bb-cc-dd-ee-ff,607aa0071ec96dd294497ab34577d49d,北京),并将目标标识存储值标识数据库中。In the embodiment of the present application, when the similarity is less than the similarity threshold, the target identification information is calculated, and the MAC address of the gateway, the encrypted first auxiliary information and the target location information of the gateway are arranged according to the triple structure to obtain the target identification, For example: obtain target identification as: (the MAC address of gateway, the first auxiliary information after encryption, the target location information of gateway)=(aa-bb-cc-dd-ee-ff, 607aa0071ec96dd294497ab34577d49d, Beijing), and target identification Store the value ID in the database.

图6是本申请提供的创建目标标识的流程示意图。当电子设备获取的参考信息的数量不唯一或者参考信息的数量为空时,获取网关的MAC地址,并判断网关的MAC地址是否在标识数据库中,当网关的MAC地址在标识数据库中,比较标识数据库中与网关的MAC地址对应的第二辅助信息与当前确定的网关的MAC地址对应的第一辅助信息的相似度与相似度阈值的大小,当第一辅助信息和第二辅助信息的相似度大于或者等于相似度阈值,确定标识数据库中的参考标识为目标标识。当第一辅助信息和第二辅助信息的相似度小于相似度阈值或网关的MAC地址不在标识数据库,需要重新计算目标标识。Fig. 6 is a schematic flow chart of creating a target ID provided by this application. When the number of reference information obtained by the electronic device is not unique or the number of reference information is empty, obtain the MAC address of the gateway and judge whether the MAC address of the gateway is in the identification database. When the MAC address of the gateway is in the identification database, compare the identification The similarity between the second auxiliary information corresponding to the MAC address of the gateway in the database and the first auxiliary information corresponding to the currently determined MAC address of the gateway and the size of the similarity threshold, when the similarity between the first auxiliary information and the second auxiliary information If it is greater than or equal to the similarity threshold, it is determined that the reference identifier in the identifier database is the target identifier. When the similarity between the first auxiliary information and the second auxiliary information is less than the similarity threshold or the MAC address of the gateway is not in the identification database, the target identification needs to be recalculated.

步骤206、若数量满足第二数量筛选条件,基于媒体存取控制地址和网关的参考位置确定目标标识。Step 206: If the quantity satisfies the second quantity screening condition, determine the target identifier based on the MAC address and the reference location of the gateway.

本申请实施例中,当电子设备确定查询到的与MAC地址对应的网关的参考位置信息的数量满足第二数量筛选条件时,基于网关的MAC地址和网关的参考位置确定目标标识。In the embodiment of the present application, when the electronic device determines that the number of reference location information of the gateway corresponding to the MAC address found meets the second quantity filter condition, the target identifier is determined based on the MAC address of the gateway and the reference location of the gateway.

本申请实施例中,确定获取到的参考位置信息的数量满足第二数量筛选条件即确定获取到的参考位置信息的数量为1个。也就是说,从网关MAC省市归属库中确定该网关的MAC地址对应的省份归属地唯一,则该网关的MAC地址可信,电子设备从网关MAC省份归属库获取到网关的省份归属地,并基于网关的MAC地址和网关的省份归属地,得到目标标识A1,示例性的,目标标识A1的输出格式为:(网关的MAC地址,网关的指纹信息,网关的省份归属地)=(aa-bb-cc-dd-ee-ff,aa-bb-cc-dd-ee-ff,浙江杭州)。In the embodiment of the present application, it is determined that the quantity of the obtained reference location information satisfies the second quantity screening condition, that is, it is determined that the quantity of the obtained reference location information is one. That is to say, if it is determined from the gateway MAC province and city attribution database that the province attribution corresponding to the MAC address of the gateway is unique, then the MAC address of the gateway is credible, and the electronic device obtains the province attribution of the gateway from the gateway MAC province attribution database. And based on the MAC address of the gateway and the provincial attribution of the gateway, the target identification A1 is obtained. Exemplarily, the output format of the target identification A1 is: (the MAC address of the gateway, the fingerprint information of the gateway, the provincial attribution of the gateway)=(aa -bb-cc-dd-ee-ff, aa-bb-cc-dd-ee-ff, Hangzhou, Zhejiang).

图7是本申请提供的创建目标标识的流程示意图。首先,电子设备获取网关的MAC地址、网关的目标位置信息,以及挂载在网关下的挂载设备;从挂载在网关下的挂载设备,筛选出挂载设备中的常用设备,并获取常用设备的信息例如:常用设备信息包括:电视-设备1-MAC1、路由器-设备2-MAC2和手机-设备3-MAC3。然后,以网关的MAC地址为根节点,网关的目标位置信息和常用设备信息为子树,构建成家庭树。图8是本申请提供的一种家庭树的结构示意图。如图8所示,以网关的MAC地址例如aa-bb-cc-dd-ee-ff为根节点,以网关的目标位置信息为根节点下的一级子节点,例如网关的目标位置信息包括归属地在浙江杭州或归属地在北京。以常用设备信息中的MAC地址为二级子节点,例如,归属地在浙江杭州时,包括设备1:MAC1以及设备2:MAC2。归属地在北京时,包括设备3:MAC3。以常用设备信息中的设备信息为三级子节点,例如设备的类型:手机、电脑和路由器;设备的品牌:A、B和C。设备的信号:skyworth 55、W7和hwh v3。Fig. 7 is a schematic flow chart of creating a target ID provided by this application. First, the electronic device obtains the MAC address of the gateway, the target location information of the gateway, and the mounted devices mounted under the gateway; from the mounted devices mounted under the gateway, the commonly used devices in the mounted devices are screened out, and the Commonly used device information For example: commonly used device information includes: TV-device 1-MAC1, router-device 2-MAC2 and mobile phone-device 3-MAC3. Then, the MAC address of the gateway is used as the root node, and the target location information and common equipment information of the gateway are used as subtrees to form a family tree. Fig. 8 is a schematic structural diagram of a family tree provided by the present application. As shown in Figure 8, the MAC address of the gateway such as aa-bb-cc-dd-ee-ff is the root node, and the target location information of the gateway is the first-level child node under the root node. For example, the target location information of the gateway includes The attribution is in Hangzhou, Zhejiang or the attribution is in Beijing. The MAC address in the commonly used device information is used as the second-level child node. For example, when the attribution is in Hangzhou, Zhejiang, it includes device 1: MAC1 and device 2: MAC2. When the attribution is in Beijing, including device 3: MAC3. Take the device information in common device information as the third-level child nodes, such as device types: mobile phones, computers, and routers; device brands: A, B, and C. Signals for equipment: skyworth 55, W7 and hwh v3.

如图7所示,在家庭树构建完成后,对家庭树进行向量化处理以及加密处理。例如,将不同的目标位置信息下每一个常用设备子树的MAC、类型、品牌和型号信息拼接,并通过Hash加密构建成一个的字符串。然后,判断标识数据库中是否存在网关的MAC地址对应的参考标识,若标识数据库中存在网关的MAC地址对应的参考标识,计算标识数据库中的MAC地址对应的第二辅助信息与当前确定的网关的MAC地址对应的第一辅助信息的相似度,当相似度大于或等于相似度阈值时,标识数据库中的MAC地址对应的参考标识为目标标识。若标识数据库中不存在网关的MAC地址对应的参考标识,或者相似度小于相似度阈值,重新计算目标标识。最后,将目标标识存储进标识数据库中。As shown in FIG. 7 , after the family tree is constructed, the family tree is vectorized and encrypted. For example, the MAC, type, brand, and model information of each commonly used device subtree under different target location information are spliced, and encrypted by Hash to construct a string. Then, determine whether there is a reference identifier corresponding to the MAC address of the gateway in the identifier database, if there is a reference identifier corresponding to the MAC address of the gateway in the identifier database, calculate the second auxiliary information corresponding to the MAC address in the identifier database and the currently determined gateway The similarity of the first auxiliary information corresponding to the MAC address, when the similarity is greater than or equal to the similarity threshold, the reference identifier corresponding to the MAC address in the identification database is the target identifier. If there is no reference identifier corresponding to the MAC address of the gateway in the identifier database, or the similarity is smaller than the similarity threshold, the target identifier is recalculated. Finally, the target identity is stored in an identity database.

需要说明的是,本实施例中与其它实施例中相同步骤和相同内容的说明,可以参照其它实施例中的描述,此处不再赘述。It should be noted that, for descriptions of the same steps and content in this embodiment as in other embodiments, reference may be made to the descriptions in other embodiments, and details are not repeated here.

本申请提供一种信息的标识装置,该信息的标识装置用于实施图1、图3对应的所提供的一种信息的标识方法中,参照图9所示,该信息的标识装置9包括:The present application provides an information identification device, which is used to implement the information identification method provided in Figure 1 and Figure 3. Referring to Figure 9, the information identification device 9 includes:

获取单元901,用于获取网关的媒体存取控制地址;An obtaining unit 901, configured to obtain the media access control address of the gateway;

处理单元902,用于从网关区域分布库中,查找与媒体存取控制地址对应的网关的参考位置信息;The processing unit 902 is configured to search the reference location information of the gateway corresponding to the media access control address from the gateway area distribution library;

处理单元902,用于若获取到的参考位置信息的数量满足第一数量筛选条件,获取网关下的挂载设备信息;The processing unit 902 is configured to acquire the mounted device information under the gateway if the obtained quantity of reference position information satisfies the first quantity screening condition;

处理单元902,用于基于媒体存取控制地址和挂载设备信息,创建用于唯一标识网关的目标标识。The processing unit 902 is configured to create a target identifier for uniquely identifying the gateway based on the media access control address and the mounted device information.

在本申请的其他实施例中,处理单元902,还用于基于网际互连协议数据,确定网关的目标位置信息;基于媒体存取控制地址和目标位置信息,创建目标标识。In other embodiments of the present application, the processing unit 902 is further configured to determine the target location information of the gateway based on the Internet Protocol data; and create a target identifier based on the MAC address and the target location information.

在本申请的其他实施例中,处理单元902,用于对每一设备的设备信息进行拼接处理,得到每一设备对应的设备字符串;将媒体存取控制地址、目标位置信息和每一设备对应的设备字符串按照目标格式进行处理,得到用于表征网关挂载设备的业务类型的第一辅助信息;基于第一辅助信息、媒体存取控制地址和目标位置信息,得到目标标识。In other embodiments of the present application, the processing unit 902 is configured to splice the device information of each device to obtain the device string corresponding to each device; combine the media access control address, target location information and each device The corresponding device character string is processed according to the target format to obtain the first auxiliary information used to characterize the service type of the device mounted on the gateway; based on the first auxiliary information, the media access control address and the target location information, the target identifier is obtained.

在本申请的其他实施例中,处理单元902,用于若标识数据库中不存在媒体存取控制地址对应的参考标识,对第一辅助信息进行加密,得到加密后的第一辅助信息;将媒体存取控制地址、加密后的第一辅助信息和网关的目标位置信息按照三元组结构排列,得到目标标识。In other embodiments of the present application, the processing unit 902 is configured to encrypt the first auxiliary information to obtain encrypted first auxiliary information if there is no reference identifier corresponding to the media access control address in the identification database; The access control address, the encrypted first auxiliary information and the target location information of the gateway are arranged according to the triple structure to obtain the target identifier.

在本申请的其他实施例中,处理单元902,用于若标识数据库中存在参考标识,解析参考标识得到参考标识关联的第二辅助信息;确定第一辅助信息与第二辅助信息的相似度;若相似度大于或等于相似度阈值,对第二辅助信息进行加密操作,得到加密后的第二辅助信息;将媒体存取控制地址、加密后的第二辅助信息和目标位置信息按照三元组结构排列,得到目标标识。In other embodiments of the present application, the processing unit 902 is configured to, if there is a reference identifier in the identifier database, parse the reference identifier to obtain second auxiliary information associated with the reference identifier; determine the similarity between the first auxiliary information and the second auxiliary information; If the similarity is greater than or equal to the similarity threshold, the second auxiliary information is encrypted to obtain the encrypted second auxiliary information; the media access control address, the encrypted second auxiliary information and the target location information are divided into triplets The structures are arranged to obtain the target identification.

在本申请的其他实施例中,处理单元902,用于若相似度小于相似度阈值,将媒体存取控制地址、加密后的第一辅助信息和网关的目标位置信息按照三元组结构排列,得到目标标识。In other embodiments of the present application, the processing unit 902 is configured to arrange the media access control address, the encrypted first auxiliary information, and the target location information of the gateway according to a triplet structure if the similarity is less than a similarity threshold, Get the target ID.

在本申请的其他实施例中,处理单元902,用于若数量满足第二数量筛选条件,基于媒体存取控制地址和网关的参考位置确定目标标识。In other embodiments of the present application, the processing unit 902 is configured to determine the target identifier based on the MAC address and the reference location of the gateway if the quantity satisfies the second quantity screening condition.

需要说明的是,本实施例中与其它实施例中相同步骤和相同内容的说明,可以参照其它实施例中的描述,此处不再赘述。It should be noted that, for descriptions of the same steps and content in this embodiment as in other embodiments, reference may be made to the descriptions in other embodiments, and details are not repeated here.

本申请提供一种电子设备,该电子设备可以实施图1、图3所提供的一种信息的标识方法中,参照图10所示,该电子设备10包括:This application provides an electronic device that can implement the information identification method provided in Figure 1 and Figure 3, as shown in Figure 10, the electronic device 10 includes:

存储器1001,用于存储可执行指令;Memory 1001, for storing executable instructions;

处理器1002,用于执行存储器中存储的可执行指令时,实现如图1、图3所提供的信息的标识方法的步骤。The processor 1002 is configured to implement the steps of the information identification method provided in FIG. 1 and FIG. 3 when executing the executable instructions stored in the memory.

作为示例,处理器可以是一种集成电路芯片,具有信号的处理能力,例如通用处理器、数字信号处理器(Digital Signal Processor,DSP),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等,其中,通用处理器可以是微处理器或者任何常规的处理器等。As an example, the processor may be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), or other programmable logic devices, discrete gate or transistor logic devices, Discrete hardware components, etc., wherein the general-purpose processor may be a microprocessor or any conventional processor, etc.

本申请提供一种计算机可读存储介质,该计算机可读存储介质存储有一个或者多个程序,该一个或者多个程序可被一个或者多个处理器执行,以实现如图1、图3所提供的信息的标识方法中的实现过程,此处不再赘述。The present application provides a computer-readable storage medium, the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, so as to realize the The implementation process in the identification method of the provided information will not be repeated here.

这里需要指出的是:以上存储介质和设备实施例的描述,与上述方法实施例的描述是类似的,具有相同方法实施例相似的有益效果。对于本申请存储介质和设备实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be noted here that: the descriptions of the above storage medium and device embodiments are similar to the descriptions of the above method embodiments, and have similar beneficial effects of the same method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.

上述计算机存储介质/存储器可以是只读存储器(Read Only Memory,ROM)、可编程只读存储器(Programmable Read-Only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性随机存取存储器(Ferromagnetic Random Access Memory,FRAM)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(Compact Disc Read-Only Memory,CD-ROM)等存储器;也可以是包括上述存储器之一或任意组合的各种终端,如移动电话、计算机、平板设备、个人数字助理等。Above-mentioned computer storage medium/memory can be read-only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Magnetic Random Access Memory (Ferromagnetic Random Access Memory, FRAM), Flash Memory (Flash Memory), Magnetic Surface Memory, CD-ROM, or CD-ROM (Compact Disc Read-Only Memory, CD-ROM) and other memories; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc. .

应理解,说明书通篇中提到的“一个实施例”或“一实施例”或“本申请实施例”或“前述实施例”或“一些实施例”或“一些实施方式”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”或“本申请实施例”或“前述实施例”或“一些实施例”或“一些实施方式”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。It should be understood that references to "one embodiment" or "an embodiment" or "an embodiment of the present application" or "the foregoing embodiments" or "some embodiments" or "some implementations" throughout the specification mean the same as implementing A particular feature, structure, or characteristic related to an example is included in at least one embodiment of the present application. Thus, appearances of "in one embodiment" or "in an embodiment" or "the present embodiment" or "the foregoing embodiments" or "some embodiments" or "some implementations" throughout the specification do not necessarily mean Must refer to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation. The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.

上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit.

本申请所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in several method embodiments provided in this application can be combined arbitrarily to obtain new method embodiments under the condition of no conflict.

本申请所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in several product embodiments provided in this application can be combined arbitrarily without conflict to obtain new product embodiments.

本申请所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in several method or device embodiments provided in this application can be combined arbitrarily without conflict to obtain new method embodiments or device embodiments.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by hardware related to program instructions, and the aforementioned programs can be stored in computer-readable storage media. When the program is executed, the execution includes The steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes such as removable storage devices, read only memory (ROM), magnetic disks or optical disks.

或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, if the above-mentioned integrated units of the present application are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solutions of the embodiments of the present application or the part that contributes to related technologies can be embodied in the form of software products. The computer software products are stored in a storage medium and include several instructions to make A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the methods in the various embodiments of the present application. The aforementioned storage medium includes various media capable of storing program codes such as removable storage devices, ROMs, magnetic disks or optical disks.

值得注意的是,本申请实施例中的附图只是为了说明各个器件在终端设备上的示意位置,并不代表在终端设备中的真实位置,各器件或各个区域的真实位置可根据实际情况(例如,终端设备的结构)作出相应改变或偏移,并且,图中的终端设备中不同部分的比例并不代表真实的比例。It is worth noting that the drawings in the embodiments of the present application are only for illustrating the schematic position of each device on the terminal device, and do not represent the real position in the terminal device. The real position of each device or each area can be determined according to the actual situation ( For example, the structure of the terminal device) is changed or shifted accordingly, and the ratio of different parts of the terminal device in the figure does not represent the real ratio.

以上所述,仅为本申请的实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only the embodiment of the present application, but the scope of protection of the present application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, and should covered within the scope of protection of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (10)

1.一种信息的标识方法,其特征在于,所述方法包括:1. A method for identifying information, characterized in that the method comprises: 获取网关的媒体存取控制地址;Obtain the media access control address of the gateway; 从网关区域分布库中,查找与所述媒体存取控制地址对应的所述网关的参考位置信息;Searching for reference location information of the gateway corresponding to the media access control address from the gateway area distribution library; 若获取到的参考位置信息的数量满足第一数量筛选条件,获取所述网关下的挂载设备信息;If the obtained quantity of reference position information satisfies the first quantity screening condition, obtain the information of the mounted device under the gateway; 基于所述媒体存取控制地址和所述挂载设备信息,创建用于唯一标识所述网关的目标标识。Create a target identifier for uniquely identifying the gateway based on the media access control address and the mounted device information. 2.根据权利要求1所述的信息的标识方法,其特征在于,所述挂载设备信息包括挂载在所述网关下的至少一个设备的网际互连协议数据,所述基于所述媒体存取控制地址和所述挂载设备信息,创建用于唯一标识所述网关的目标标识,包括:2. The method for identifying information according to claim 1, wherein the mounted device information includes Internet Protocol data of at least one device mounted under the gateway, and the information based on the media storage Get the control address and the mounted device information, create a target ID for uniquely identifying the gateway, including: 基于所述网际互连协议数据,确定所述网关的目标位置信息;determining target location information of the gateway based on the internet protocol data; 基于所述媒体存取控制地址和所述目标位置信息,创建所述目标标识。The target identifier is created based on the MAC address and the target location information. 3.根据权利要求2所述的信息的标识方法,其特征在于,所述挂载设备信息还包括每一所述设备的设备信息,所述基于所述媒体存取控制地址和所述目标位置信息,创建所述目标标识,包括:3. The information identification method according to claim 2, wherein the mounted device information further includes device information of each of the devices, and the media access control address and the target location information to create the target identity, including: 对每一所述设备的设备信息进行拼接处理,得到每一所述设备对应的设备字符串;performing splicing processing on the device information of each of the devices to obtain a device string corresponding to each of the devices; 将所述媒体存取控制地址、所述目标位置信息和每一所述设备对应的设备字符串按照目标格式进行处理,得到用于表征所述网关所述挂载设备的业务类型的第一辅助信息;Processing the media access control address, the target location information, and the device string corresponding to each of the devices according to the target format to obtain a first auxiliary service type used to characterize the mounted device of the gateway information; 基于所述第一辅助信息、所述媒体存取控制地址和所述目标位置信息,得到所述目标标识。Obtain the target identifier based on the first auxiliary information, the MAC address, and the target location information. 4.根据权利要求3所述的信息的标识方法,其特征在于,所述基于所述第一辅助信息、所述媒体存取控制地址、所述目标位置信息,得到所述目标标识,包括:4. The information identification method according to claim 3, wherein said obtaining the target identification based on the first auxiliary information, the media access control address, and the target location information comprises: 若标识数据库中不存在所述媒体存取控制地址对应的参考标识,对所述第一辅助信息进行加密,得到加密后的第一辅助信息;If the reference identifier corresponding to the media access control address does not exist in the identifier database, encrypt the first auxiliary information to obtain encrypted first auxiliary information; 将所述媒体存取控制地址、所述加密后的第一辅助信息和所述网关的目标位置信息按照三元组结构排列,得到所述目标标识。Arranging the media access control address, the encrypted first auxiliary information, and the target location information of the gateway according to a triple structure to obtain the target identifier. 5.根据权利要求4所述的信息的标识方法,其特征在于,所述方法包括:5. The method for identifying information according to claim 4, wherein the method comprises: 若所述标识数据库中存在所述参考标识,解析所述参考标识得到所述参考标识关联的第二辅助信息;If the reference identifier exists in the identifier database, parsing the reference identifier to obtain second auxiliary information associated with the reference identifier; 确定所述第一辅助信息与所述第二辅助信息的相似度;determining a degree of similarity between the first side information and the second side information; 若所述相似度大于或等于相似度阈值,对所述第二辅助信息进行加密操作,得到所述加密后的第二辅助信息;If the similarity is greater than or equal to a similarity threshold, perform an encryption operation on the second auxiliary information to obtain the encrypted second auxiliary information; 将所述媒体存取控制地址、所述加密后的第二辅助信息和所述目标位置信息按照三元组结构排列,得到所述目标标识。Arranging the MAC address, the encrypted second auxiliary information, and the target location information according to a triplet structure to obtain the target identifier. 6.根据权利要求5所述的信息的标识方法,其特征在于,所述方法还包括:6. The method for identifying information according to claim 5, further comprising: 若所述相似度小于所述相似度阈值,将所述媒体存取控制地址、所述加密后的第一辅助信息和所述网关的目标位置信息按照三元组结构排列,得到所述目标标识。If the similarity is less than the similarity threshold, arrange the media access control address, the encrypted first auxiliary information, and the target location information of the gateway according to a triplet structure to obtain the target identifier . 7.根据权利要求1至6中任一项所述的信息的标识方法,其特征在于,所述方法还包括:7. The method for identifying information according to any one of claims 1 to 6, wherein the method further comprises: 若所述数量满足第二数量筛选条件,基于所述媒体存取控制地址和所述网关的参考位置确定目标标识。If the quantity satisfies the second quantity screening condition, determining a target identifier based on the MAC address and the reference location of the gateway. 8.一种信息的标识装置,其特征在于,所述信息的标识装置包括:8. A device for identifying information, characterized in that the device for identifying information comprises: 获取单元,用于获取网关的媒体存取控制地址;an obtaining unit, configured to obtain the media access control address of the gateway; 处理单元,用于从网关区域分布库中,查找与所述媒体存取控制地址对应的所述网关的参考位置信息;a processing unit, configured to search the reference location information of the gateway corresponding to the media access control address from the gateway area distribution library; 所述处理单元,还用于若获取到的参考位置信息的数量满足第一数量筛选条件,获取所述网关下的挂载设备信息;The processing unit is further configured to obtain the information of the mounted device under the gateway if the obtained quantity of reference position information satisfies the first quantity screening condition; 所述处理单元,还用于基于所述媒体存取控制地址和所述挂载设备信息,创建用于唯一标识所述网关的目标标识。The processing unit is further configured to create a target identifier for uniquely identifying the gateway based on the media access control address and the mounted device information. 9.一种电子设备,其特征在于,所述电子设备包括:9. An electronic device, characterized in that the electronic device comprises: 存储器,用于存储可执行指令;memory for storing executable instructions; 处理器,用于执行所述存储器中存储的可执行指令时,实现权利要求1至7任一项所述的信息的标识方法。The processor is configured to implement the information identification method described in any one of claims 1 to 7 when executing the executable instructions stored in the memory. 10.一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求1至7中任一项所述的信息的标识方法。10. A computer-readable storage medium, characterized in that the computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, so as to realize the The identification method of the information described in any one of to 7.
CN202111044598.0A 2021-09-07 2021-09-07 Information identification method, device, equipment and storage medium Pending CN115776477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111044598.0A CN115776477A (en) 2021-09-07 2021-09-07 Information identification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111044598.0A CN115776477A (en) 2021-09-07 2021-09-07 Information identification method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115776477A true CN115776477A (en) 2023-03-10

Family

ID=85387638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111044598.0A Pending CN115776477A (en) 2021-09-07 2021-09-07 Information identification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115776477A (en)

Similar Documents

Publication Publication Date Title
CN107819829B (en) Method, system, blockchain node device and user terminal for accessing blockchain
US8966031B2 (en) Method for addressing management object in management tree and associated device management system
CN112347377B (en) IP address field searching method, service scheduling method, device and electronic equipment
US20180145945A1 (en) Information centric network island bridging
KR101613032B1 (en) Method, device, network equepment, program and storage medium for acquiring feature information
CN1652515B (en) Network dna
CN110313147B (en) Data processing method, device and system
US11722488B2 (en) Non-intrusive / agentless network device identification
CN112602304A (en) Identifying device types based on behavioral attributes
CN112671887A (en) Asset identification method and device, electronic equipment and computer storage medium
CN110290161A (en) A topology hiding method, node, functional entity and computer storage medium
CN114448936A (en) IPv 6-based encoding traceable network transmission rule verification method
CN106302384A (en) DNS message processing method and device
CN101110827A (en) Method, device and system for multidimensional address domain name analysis
WO2024148970A1 (en) Decentralized domain name resolution method and apparatus based on handle system
CN110661896B (en) Method for determining mapping address of data stream and server
CN115396401B (en) Method, system and medium for constructing flexible extension network based on IPv6 characteristic
CN114071448B (en) A data transmission method, related network nodes and storage medium
KR101517096B1 (en) Record creation for resolution of application identifier to connectivity identifier
CN108965318A (en) Detect the method and device of unauthorized access device IP in industrial control network
CN115776477A (en) Information identification method, device, equipment and storage medium
US20190173799A1 (en) Method and system for managing traffic of application programs, and terminal device containing the system
CN106559503B (en) A communication method and device based on the internet of things
CN107800630A (en) Message processing method and device
CN116032762B (en) Processing method, system and gateway equipment of network service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination