CN111131178A - Terminal equipment identification method, device, equipment and computer storage medium - Google Patents

Terminal equipment identification method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN111131178A
CN111131178A CN201911232889.5A CN201911232889A CN111131178A CN 111131178 A CN111131178 A CN 111131178A CN 201911232889 A CN201911232889 A CN 201911232889A CN 111131178 A CN111131178 A CN 111131178A
Authority
CN
China
Prior art keywords
equipment
information
identification
address
library
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.)
Granted
Application number
CN201911232889.5A
Other languages
Chinese (zh)
Other versions
CN111131178B (en
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201911232889.5A priority Critical patent/CN111131178B/en
Publication of CN111131178A publication Critical patent/CN111131178A/en
Application granted granted Critical
Publication of CN111131178B publication Critical patent/CN111131178B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a terminal equipment identification method, which comprises the following steps: when a terminal equipment identification request is received, acquiring equipment characteristic information of the terminal equipment; comparing the equipment address information in the equipment characteristic information with prestored address information in a correct equipment address library; if target address information matched with the equipment address information exists in the correct equipment address library, acquiring equipment information corresponding to the target address information; and outputting the equipment information as the identification result of the terminal equipment. The invention also discloses a terminal equipment identification device, equipment and a computer storage medium. In the invention, a correct equipment address library is preset, the correct equipment address library comprises the mapping relation between the equipment address information and the equipment information, and the server identifies the equipment by inquiring the correct equipment address library, so that the accuracy and the efficiency of equipment information identification are improved.

Description

Terminal equipment identification method, device, equipment and computer storage medium
Technical Field
The present invention relates to the field of device identification, and in particular, to a method, an apparatus, a device, and a computer storage medium for identifying a terminal device.
Background
For purposes of security, user profile creation, etc., a router or other gateway device typically performs device identification for the accessing terminal device.
The current equipment identification method mainly collects host name information of terminal equipment, then matches the host name information by utilizing a regular rule set obtained in advance, and identifies the equipment according to a matching result, but the equipment identification method is only suitable for original host name information.
Disclosure of Invention
The invention mainly aims to provide a terminal equipment identification method, a terminal equipment identification device, terminal equipment and a computer storage medium, and aims to solve the technical problems of low identification accuracy and low identification efficiency of the current equipment.
In order to achieve the above object, the present invention provides a terminal device identification method, including the steps of:
when a terminal equipment identification request is received, acquiring equipment characteristic information of the terminal equipment;
comparing the equipment address information in the equipment characteristic information with prestored address information in a correct equipment address library;
if target address information matched with the equipment address information exists in the correct equipment address library, acquiring equipment information corresponding to the target address information;
and outputting the equipment information as the identification result of the terminal equipment.
In an embodiment, after the step of comparing the device address information in the device feature information with the pre-stored address information in the correct device address library, the method includes:
if the target address information matched with the equipment address information does not exist in the correct equipment address library, comparing the equipment characteristic information with preset characteristic information in a preset cache library;
if target characteristic information matched with the equipment characteristic information exists in the preset cache library, acquiring equipment information corresponding to the target characteristic information;
and outputting the equipment information as the identification result of the terminal equipment.
In an embodiment, after the step of comparing the device address information in the device feature information with the pre-stored address information in the correct device address library, the method includes:
if the target address information matched with the equipment address information does not exist in the correct equipment address library, comparing the equipment characteristic information with preset characteristic information in an equipment information cache library;
if the target characteristic information matched with the equipment characteristic information exists in the equipment information cache library, acquiring equipment information corresponding to the target characteristic information, and outputting the equipment information as an identification result of the terminal equipment;
if the target characteristic information matched with the equipment characteristic information does not exist in the equipment information cache library, comparing the equipment identification information in the equipment characteristic information with preset identification information in an equipment identification cache library;
and if the target identification information matched with the equipment identification information exists in the equipment identification cache library, acquiring equipment information corresponding to the target identification information, and outputting the equipment information as the identification result of the terminal equipment.
In an embodiment, after the step of comparing the device feature information with the preset feature information in a preset cache library if the target address information matching the device address information does not exist in the correct device address library, the method includes:
if the target characteristic information matched with the equipment characteristic information does not exist in the preset cache library, inputting the equipment characteristic information into a preset identification engine;
and processing the equipment characteristic information through a preset identification engine, obtaining equipment information corresponding to the equipment characteristic information, and outputting the equipment information as an identification result of the terminal equipment.
In one embodiment, the preset recognition engine includes a preset device identifier recognition engine and a feature field recognition engine;
if the target address information matched with the equipment address information does not exist in the correct equipment address library, the step of comparing the equipment characteristic information with the preset characteristic information in a preset cache library comprises the following steps:
if the target characteristic information matched with the equipment characteristic information does not exist in the preset cache library, inputting the equipment characteristic information into an equipment identification recognition engine;
processing the device characteristic information through the device identification recognition engine to obtain device information corresponding to the device characteristic information, and outputting the device information as a recognition result of the terminal device;
if the equipment information output by the equipment identification recognition engine is not received at a preset first time interval, inputting the equipment characteristic information into the characteristic field recognition engine;
and processing the equipment characteristic information through the characteristic field identification engine to obtain equipment information corresponding to the equipment characteristic information, and outputting the equipment information as an identification result of the terminal equipment.
In an embodiment, after the step of inputting the device feature information to a preset recognition engine if there is no target feature information matching the device feature information in the preset cache library, the method includes:
if the preset second time interval does not receive the equipment information fed back by the preset identification engine, sending the equipment characteristic information to an equipment identification interface;
respectively matching the equipment characteristic information through regular rule sets in the equipment identification interface to obtain a matching result of each regular rule set;
if at least two regular rule sets are successfully matched, acquiring equipment information in each matching result and the reliability weight of the equipment information;
and fusing according to the credibility weight of each piece of equipment information to obtain and output the accessed equipment information of the terminal equipment.
In an embodiment, after the step of comparing the device address information in the device feature information with the pre-stored address information in the correct device address library, the method includes:
if the correct equipment address library does not have target address information matched with the equipment address information, inputting the equipment characteristic information into an offline equipment information statistical library;
counting the occurrence frequency of address information of each device in the offline device information counting library, acquiring high-frequency address information with the occurrence frequency larger than a preset threshold value, and identifying the high-frequency address information to acquire device information corresponding to the high-frequency address information;
and storing the high-frequency address information and the equipment information into a correct equipment address library in a correlated manner so as to update the correct equipment address library.
In addition, to achieve the above object, the present invention further provides a terminal device identification apparatus, including:
the information acquisition module is used for acquiring the equipment characteristic information of the terminal equipment when receiving a terminal equipment identification request;
the information comparison module is used for comparing the equipment address information in the equipment characteristic information with prestored address information in a correct equipment address library;
the information acquisition module is used for acquiring equipment information corresponding to the target address information if the target address information matched with the equipment address information exists in the correct equipment address library;
and the information output module is used for outputting the equipment information as the identification result of the terminal equipment.
In addition, in order to achieve the above object, the present invention also provides a terminal device identification device;
the terminal device identification device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program realizes the steps of the terminal device identification method as described above when executed by the processor.
In addition, to achieve the above object, the present invention also provides a computer storage medium;
the computer storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the terminal device identification method as described above.
The embodiment of the invention provides a terminal equipment identification method, a device, equipment and a computer storage medium, wherein a correct equipment address library is preset in the embodiment of the invention, the correct equipment address library comprises mapping relation between equipment address information and equipment information, the correct equipment address library is standard and visual equipment information, and a server acquires equipment characteristic information of the terminal equipment when receiving a terminal equipment identification request; the server compares the equipment address information in the equipment characteristic information with prestored address information in a correct equipment address library; if target address information matched with the equipment address information exists in the correct equipment address library, the server acquires equipment information corresponding to the target address information; the server outputs the device information as a result of the identification of the terminal device. In the device identification method in this embodiment, the server only processes the device address information in the device feature information, which reduces the analysis processing amount of the device feature information to improve the efficiency of device identification, and meanwhile, compared with the existing method of identifying the device information according to the device identifier, in this embodiment, the user cannot modify the device address information, so that the device information identified by the correct device address library is more accurate.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of the terminal device identification method of the present invention;
fig. 3 is a schematic flow chart of a second embodiment of the terminal device identification method of the present invention;
fig. 4 is a schematic flow chart of a third embodiment of the terminal device identification method according to the present invention;
fig. 5 is a schematic flow chart of a fifth embodiment of the terminal device identification method of the present invention;
fig. 6 is a schematic functional module diagram of an embodiment of a terminal device identification apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a server (also called a terminal device identification device, where the terminal device identification device may be formed by a single terminal device identification apparatus, or may be formed by combining other apparatuses with the terminal device identification apparatus) in a hardware operating environment according to an embodiment of the present invention.
The server in the embodiment of the invention refers to a computer for managing resources and providing services for users, and is generally divided into a file server, a database server and an application server. The computer or computer system running the above software is also referred to as a server. Compared with a common PC (personal computer), the server has higher requirements on stability, safety, performance and the like; as shown in fig. 1, the server may include: the processor 1001 includes, for example, a Central Processing Unit (CPU), a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002, a chipset, a disk system, hardware such as a network, and the like. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., WIFI interface, WIreless FIdelity, WIFI interface). The memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (e.g., a disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the server may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, and a WiFi module; the input unit is compared with a display screen and a touch screen; the network interface can be selected from the wireless interface, such as Bluetooth, a probe and the like except WiFi. Those skilled in the art will appreciate that the server architecture shown in FIG. 1 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the computer software product is stored in a storage medium (storage medium: also called computer storage medium, computer medium, readable storage medium, computer readable storage medium, or direct storage medium, etc., and the storage medium may be a non-volatile readable storage medium, such as RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method according to the embodiments of the present invention, and a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a computer program.
In the server shown in fig. 1, the network interface 1004 is mainly used for connecting to a background database and performing data communication with the background database; the user interface 1003 is mainly used for connecting a client (client, also called user side or terminal, the terminal in the embodiment of the present invention may be a fixed terminal or a mobile terminal, for example, an intelligent air conditioner with networking function, an intelligent electric lamp, an intelligent power supply, an intelligent sound box, an automatic driving car, a PC, a smart phone, a tablet computer, an electronic book reader, a portable computer, etc., the terminal includes sensors such as a light sensor, a motion sensor, and other sensors, which are not described herein again), and performs data communication with the client; and the processor 1001 may be configured to call the computer program stored in the memory 1005 and execute the steps of the terminal device identification method provided by the following embodiment of the present invention.
Based on the hardware structure, the embodiment of the terminal equipment identification method is provided.
Due to the fact that information formats of terminal equipment manufacturers are different and the like, host name information of the terminal equipment is directly extracted at present to carry out equipment identification, identified equipment information formats are not uniform, equipment information is not visually represented, and a user cannot easily confirm the terminal equipment according to the equipment information in the identification mode of the current terminal equipment.
Based on the above problems, the terminal device identification method in the embodiment of the present invention is proposed, and the terminal device identification method in the embodiment of the present invention relies on a correct device address library, where the correct device address library includes a mapping relationship between device address information and device information, and the device information is standardized in the correct device address library according to a predetermined rule, and the standardized device information has a uniform format and an intuitive information expression manner, so that a user can quickly confirm the terminal device. Specifically, the method comprises the following steps:
referring to fig. 2, in a first embodiment of the terminal device identification method of the present invention, the terminal device identification method includes:
step S11, when receiving the terminal device identification request, acquiring device feature information of the terminal device.
The terminal device identification method in this embodiment is applied to a terminal device identification device (the type of the terminal device identification device is not limited, that is, the terminal device identification device may be a router to which the terminal device accesses, and the terminal device identification device may also be a server communicatively connected to the router).
In this embodiment, a server is taken as an example for explanation, the server receives a terminal device identification request, and a triggering manner of the terminal device identification request is not specifically limited, that is, the terminal device identification request may be actively triggered by a user, for example, the server outputs terminal device identification prompt information, and the user clicks the identification prompt information to trigger the terminal device identification request; in addition, the terminal device identification request may also be triggered automatically by the server, for example, the triggering condition for the terminal device identification request preset in the server is as follows: when the terminal equipment is accessed to the server, the server automatically triggers the terminal equipment identification request when detecting that the terminal equipment is accessed.
After receiving the terminal device identification request, the server acquires device feature information carried in the terminal device identification request, that is, the server acquires a communication message reported by the terminal device, and the server parses the communication message (such as a hypertext transfer protocol (HTTP) message) reported by the terminal device to acquire the device feature information of the terminal device.
The device characteristic information in this embodiment refers to information that can reflect the characteristics of the terminal device, and the device characteristic information may be understood as information that is entered by each device manufacturer in the process of producing the terminal device, for example, the device characteristic information includes but is not limited to: device Address information (also called a MAC Address, also called a lan Address, MAC Address information, Media Access Control Address, the device Address information is an Ethernet Address or a Physical Address, the device Address information is an Address for confirming a location of the terminal device), a host Name (Hostname) of the terminal device, user agent (user agent) information, device feature field information (also called OP60, the device feature field information is a field with identification, the device feature field information is for identifying a brand, a model, a type, etc.), DNS (DNS, Domain Name System device Domain Name) information associated with the terminal device, and the like.
It is understood that the device characteristic information refers to original device information, for example, the device characteristic information is: a1660 (equipment model); the device information is general device information subjected to standardization processing, for example, device characteristic information a1660, and the corresponding standardized device information is: apple 7 (equipment model).
Step S12, comparing the device address information in the device feature information with the pre-stored address information in the correct device address library.
A correct device address library is preset in the server, and a mapping relationship between address information and device information is prestored in the correct device address library, for example, the device address information is a456xxxx123, and the corresponding device information includes: equipment brand: millet, equipment type: ma4, device type: an intelligent air conditioner; after the identification information in the correct equipment address library is subjected to standardization processing, a user can intuitively know the equipment brand, the equipment model, the equipment type and the like of the terminal equipment; the correct device address library in the embodiment of the present invention may be stored in the cloud, or may be stored locally in the server, for example, in an extended memory of the server, the correct device address library is stored in the extended memory, or in a storage device added in the local area network, for example, the correct device address library is stored in the storage device.
The server compares the equipment address information in the equipment characteristic information with each pre-stored address information in a correct equipment address base, namely, a regular expression is arranged in the server, the server compares the equipment address information in the equipment characteristic information with each pre-stored address information in the correct equipment address base according to the regular expression to obtain target address information matched with the equipment address information, and the server obtains the equipment information corresponding to the target address information to finally determine the identification result of the terminal equipment.
Step S13, if the correct device address library has target address information matching the device address information, acquiring device information corresponding to the target address information.
If the target address information matched with the equipment address information exists in the correct equipment address library, namely the equipment address information and the equipment information of the terminal equipment are stored in the correct equipment address library, the server acquires the equipment information corresponding to the target address information in the correct equipment address library.
And step S14, outputting the device information as the identification result of the terminal device.
The server takes the equipment information as the identification result of the terminal equipment and outputs the identification result so as to facilitate the user to check. In the device identification method in this embodiment, the server only processes the device address information in the device feature information, which reduces the analysis processing amount of the device feature information to improve the efficiency of device identification, and meanwhile, compared with the prior art in which the device information is identified according to the device identifier, in this embodiment, the device information identified by the correct device address library is more accurate because the user cannot modify the device address information.
Further, referring to fig. 3, a second embodiment of the terminal device identification method of the present invention is proposed on the basis of the first embodiment of the present invention.
This embodiment is after step S12 in the first embodiment, and the difference between this embodiment and the first embodiment of the present invention is:
step S21, if the correct device address library does not have the target address information matching the device address information, comparing the device characteristic information with preset characteristic information in a preset cache library.
Step S22, if there is target feature information matching the device feature information in the preset cache library, acquiring device information corresponding to the target feature information.
And step S23, outputting the device information as the identification result of the terminal device.
In this embodiment, if target address information matching the device address information does not exist in the correct device address library, the server performs device identification through the preset cache library, and the server compares the device address information with preset feature information in the preset cache library (the preset cache library refers to a preset database for storing a mapping relationship between the device feature information and the device information).
And if the target characteristic information matched with the equipment characteristic information exists in the preset cache library, the server acquires the equipment information corresponding to the target characteristic information, and the server takes the equipment information as the identification result of the terminal equipment and outputs the identification result.
In this embodiment, when the target address information matching the device address information does not exist in the correct device address library, the server performs device identification through the preset cache library, and compared with device identification performed by using the correct device address library, the amount of information in the preset cache library is the latest device information, and the amount of information in the preset cache library is small, so that the comparison time of the device characteristic information can be reduced, and the real-time performance of device identification is improved.
It can be understood that, because the device information has a plurality of types, the server may set different types of cache libraries to realize fast query of the device information, for example, the preset cache library in this embodiment includes a preset device information cache library and a device identifier cache library; the server carries out the step of equipment information identification through a preset equipment information cache library and an equipment identification cache library, and the method comprises the following steps:
a1, if the correct device address library does not have the target address information matched with the device address information, comparing the device characteristic information with the preset characteristic information in the device information cache library;
a2, if target characteristic information matched with the device characteristic information exists in the device information cache library, acquiring device information corresponding to the target characteristic information, and outputting the device information as an identification result of the terminal device;
a3, if there is no target characteristic information matching with the device characteristic information in the device information cache library, comparing the device identification information in the device characteristic information with the preset identification information in the device identification cache library;
step a4, if target identification information matching with the device identification information exists in the device identification cache library, acquiring device information corresponding to the target identification information, and outputting the device information as the recognition result of the terminal device.
That is, if the correct device address library does not have the target address information matching the device address information, the server compares the device characteristic information with preset characteristic information in a device information cache library (the device information cache library is a preset database for storing the mapping relationship between the device characteristic information and the device information, that is, the device characteristic information contained in the device information cache library includes device address information, device trademark information, device model information, device type information and the like); and if the target characteristic information matched with the equipment characteristic information exists in the equipment information cache library, the server acquires the equipment information corresponding to the target characteristic information, and the server outputs the equipment information as the identification result of the terminal equipment.
If the target characteristic information matched with the equipment characteristic information does not exist in the equipment information cache library, the server compares the equipment identification information in the equipment characteristic information with preset identification information in an equipment identification cache library (the equipment identification cache library is a preset database for storing the mapping relation between the equipment identification information and the equipment information, the equipment identification information contained in the equipment identification cache library comprises equipment address information, equipment host name information, equipment user agent information, equipment user information, equipment characteristic field information and the like), if the target identification information matched with the equipment identification information exists in the equipment identification cache library, the server acquires the equipment information corresponding to the target identification information, and the server outputs the equipment information as the identification result of the terminal equipment.
In this embodiment, the server compares the device information cache library and the device identifier cache library in sequence, and identifies the device information of the terminal device, so that the device information identification is more real-time and accurate. It can be understood that the server may simultaneously use the device information cache library and the device identification cache library to identify the device, and the device information obtained first is used as the device information of the terminal device, or the two device information databases may be used in sequence according to a predetermined time sequence to identify the device.
In addition, in the device information cache library and the device identifier cache library in this embodiment, device feature information of different dimensions is recorded in the device information cache library and the device identifier cache library, respectively, and the server can perform device identification according to the device feature information of different dimensions by setting the device information cache library and the device identifier cache library, so that even if the device features of the terminal device are incomplete, effective device identification can be performed.
Further, referring to fig. 4, on the basis of the above-mentioned embodiment of the present invention, a third embodiment of the terminal device identification method of the present invention is proposed.
This embodiment is a step subsequent to step S21 in the second embodiment, and differs from the above embodiment in that:
step S31, if there is no target feature information matching the device feature information in the preset cache library, inputting the device feature information into a preset recognition engine.
If the target address information matched with the equipment address information does not exist in the preset cache library, the server inputs the equipment characteristic information into a preset identification engine (the preset identification engine refers to a preset equipment information identification algorithm, the preset identification engine is obtained by training through equipment characteristic sample information, and the equipment characteristic sample information comprises the equipment characteristic information and a label representing the equipment information), the server inputs the equipment characteristic information into the preset identification engine, and the preset identification engine is used for obtaining the equipment information of the terminal equipment.
Step S32, processing the device feature information by a preset recognition engine, obtaining device information corresponding to the device feature information, and outputting the device information as a recognition result of the terminal device.
The server processes the device characteristic information through a preset identification engine, obtains device information corresponding to the device characteristic information, and outputs the device information as an identification result of the terminal device. In the embodiment, the equipment information is identified through the preset identification engine, the comprehensiveness of equipment identification is improved, and even if the server does not identify the terminal equipment in the earlier stage, the server can also automatically identify the equipment through the preset identification engine.
Specifically, the preset recognition engine in this embodiment includes a preset device identifier recognition engine (the device identifier recognition engine refers to a device recognition model obtained through device host name information training in advance) and a feature field recognition engine (the feature field recognition engine refers to a device recognition model obtained through device feature field information recognition in advance); the method for identifying the equipment information by the server through the preset equipment identification engine and the characteristic field identification engine comprises the following steps:
b1, if the target characteristic information matched with the equipment characteristic information does not exist in the preset cache library, inputting the equipment characteristic information into the equipment identification recognition engine; processing the device characteristic information through the device identification recognition engine to obtain device information corresponding to the device characteristic information, and outputting the device information as a recognition result of the terminal device;
b2, if the device information output by the device identification recognition engine is not received in a preset first time interval, inputting the device characteristic information into the characteristic field recognition engine; and processing the equipment characteristic information through the characteristic field identification engine to obtain equipment information corresponding to the equipment characteristic information, and outputting the equipment information as an identification result of the terminal equipment.
Namely, the server processes the device feature information through the device identifier recognition engine, obtains device information corresponding to the device feature information, and outputs the device information as a recognition result of the terminal device.
If the preset first time interval (which may be set according to a specific scenario, for example, set to 30s) is not received, the server processes the device feature information through the feature field recognition engine to obtain device information corresponding to the device feature information, and the server outputs the device information as a recognition result of the terminal device.
In the embodiment, the equipment identification is performed through the plurality of identification engines, so that the accuracy of the equipment identification can be ensured, and the identification engines can be simpler.
Further, on the basis of the above-mentioned embodiment of the present invention, a fourth embodiment of the terminal device identification method of the present invention is provided.
This embodiment is the third embodiment step S32: the present embodiment differs from the above embodiments in that, through the steps after the preset recognition engine processes the device feature information:
if the preset second time interval does not receive the equipment information fed back by the preset identification engine, sending the equipment characteristic information to an equipment identification interface;
respectively matching the equipment characteristic information through regular rule sets in the equipment identification interface to obtain a matching result of each regular rule set;
if at least two regular rule sets are successfully matched, acquiring equipment information in each matching result and the reliability weight of the equipment information;
and fusing according to the credibility weight of each piece of equipment information to obtain and output the accessed equipment information of the terminal equipment.
Specifically, if the preset second time interval (which may be set according to a specific scenario, for example, the preset second time interval is set to 1 minute) is not received by the server, that is, the preset recognition engine may not recognize the device information corresponding to the device feature information, at this time, the server sends the device feature information to the device recognition interface; the server respectively matches partial or all information in the equipment characteristic information through the equipment identification interface to respectively obtain the matching result of each regular rule set;
and if only one regular rule set is successfully matched, the server acquires the equipment information in the matching result, and the server takes the equipment information as the equipment information of the accessed terminal equipment and outputs the equipment information.
If at least two regular rule sets are successfully matched, the server fuses according to the credibility weight of each piece of equipment information to obtain and output the accessed equipment information of the terminal equipment, namely, values of the same equipment information obtained in different matching modes are possibly different, for example, equipment brands obtained by matching of different regular rule sets are different, selection is needed to be made from the equipment information.
Specifically, the device information includes multiple fields, and in order to fuse the matching results according to the reliability weight of each matching result to obtain the device information of the terminal device, the server searches for a target field value of each field of the device information, where the target field value is a value of a target field included in a target matching result, and the target matching result is a matching result with the highest reliability weight among all matching results including the target field.
In the embodiment of the invention, the field with the highest credibility weight is respectively obtained from each matching result to form the identification result of the terminal equipment. The higher the reliability weight is, the higher the accuracy of the corresponding field is, and the recognition precision can be effectively improved by adopting the embodiment.
Further, referring to fig. 5, a fifth embodiment of the terminal device identification method of the present invention is proposed on the basis of the above-mentioned embodiment of the present invention.
This embodiment is a step after step S11 in the first embodiment, and is different from the above-described embodiments in that:
step S51, if the correct device address library does not have the target address information matching the device address information, inputting the device feature information into an offline device information statistics library.
If the correct equipment address library does not have target address information matched with the equipment address information, the server adds the accessed equipment characteristic information of the terminal equipment to an offline equipment information statistical library, and the server extracts the equipment address information in the equipment characteristic information.
Step S52, counting the occurrence frequency of each device address information in the offline device information counting library, acquiring high-frequency address information with the occurrence frequency larger than a preset threshold value, and identifying the high-frequency address information to acquire device information corresponding to the high-frequency address information.
The server counts the occurrence frequency of address information of each device in an offline device information statistics library, specifically: the server inquires an offline equipment information statistical library, judges whether the same equipment address information exists in the offline equipment information statistical library or not, and adds one to the occurrence frequency of the equipment address information in the offline equipment information statistical library if the same equipment address information exists in the offline equipment information statistical library; if the same equipment address information does not exist in the offline equipment information statistical library, the server marks the occurrence frequency of the equipment address information in the equipment characteristic information as one time.
It can be understood that, in this embodiment, the statistical duration of the occurrence frequency of the device address information in the device information statistical library under the statistical line can be flexibly set according to a specific scene, for example, the server sets the statistical duration to 7 days, the server counts the occurrence frequency of the device address information in the device information statistical library under the statistical line within 7 days, and the occurrence frequency is updated in real time, for example, the 7 days counted by the server means that the current time is 7 days ahead with the current time as a terminal, the current time is 11 and 22 days in 2019, and the statistical period is from 11 and 22 days in 2019 to 11 and 16 days in 2019; if the current time is 11/23 days in 2019, the statistical period is from 11/23 days in 2019 to 11/17 days in 2019, that is, the server automatically updates the occurrence frequency of the device address information and discards the occurrence frequency which is not in the time period.
The server acquires high-frequency address information of which the occurrence frequency is greater than a preset threshold (the preset threshold refers to a critical value identified by the device feature information, if the occurrence frequency of the device address information is greater than the preset threshold, the server identifies the device feature information to which the device address information belongs, if the occurrence frequency of the device address information is less than or equal to the preset threshold, the server continues to count, the preset threshold in the embodiment can be flexibly set according to a specific scene, for example, the preset threshold is set to be 10), and the server identifies the high-frequency address information to acquire the device information corresponding to the high-frequency address information. Determining the device information through the high-frequency address information may be performed through a preset identification engine, a device identification interface, and the like, which is not described in detail in this embodiment.
And step S53, storing the high-frequency address information and the device information into a correct device address library in a correlated manner so as to update the correct device address library.
And the server stores the high-frequency address information and the equipment information in association with a correct equipment address library so as to update the correct equipment address library. In this embodiment, the correct device address library is updated in real time, so as to facilitate subsequent device identification operations.
In addition, referring to fig. 6, an embodiment of the present invention further provides a terminal device identification apparatus, where the terminal device identification apparatus includes:
the information acquiring module 10 is configured to acquire device feature information of a terminal device when receiving a terminal device identification request;
an information comparison module 20, configured to compare the device address information in the device feature information with pre-stored address information in a correct device address library;
an information obtaining module 30, configured to obtain, if target address information matching the device address information exists in the correct device address library, device information corresponding to the target address information;
and the information output module 40 is configured to output the device information as an identification result of the terminal device.
In an embodiment, the apparatus for identifying a terminal device includes:
the cache comparison module is used for comparing the equipment characteristic information with preset characteristic information in a preset cache library if target address information matched with the equipment address information does not exist in the correct equipment address library;
a comparison obtaining module, configured to obtain, if target feature information matching the device feature information exists in the preset cache library, device information corresponding to the target feature information;
and the information output module is used for outputting the equipment information as the identification result of the terminal equipment.
In an embodiment, the apparatus for identifying a terminal device includes:
the first comparison module is used for comparing the equipment characteristic information with preset characteristic information in an equipment information cache library if target address information matched with the equipment address information does not exist in the correct equipment address library;
a first output module, configured to, if target feature information matching the device feature information exists in the device information cache library, obtain device information corresponding to the target feature information, and output the device information as an identification result of the terminal device;
the second comparison module is used for comparing the equipment identification information in the equipment characteristic information with preset identification information in an equipment identification cache library if target characteristic information matched with the equipment characteristic information does not exist in the equipment information cache library;
and the second output module is used for acquiring the equipment information corresponding to the target identification information if the target identification information matched with the equipment identification information exists in the equipment identification cache library, and outputting the equipment information as the identification result of the terminal equipment.
In an embodiment, the apparatus for identifying a terminal device includes:
the information input module is used for inputting the equipment characteristic information into a preset identification engine if the target characteristic information matched with the equipment characteristic information does not exist in the preset cache library;
and the identification output module is used for processing the equipment characteristic information through a preset identification engine, acquiring equipment information corresponding to the equipment characteristic information, and outputting the equipment information as an identification result of the terminal equipment.
In one embodiment, the preset recognition engine includes a preset device identifier recognition engine and a feature field recognition engine;
the terminal equipment identification device comprises:
the first input module is used for inputting the equipment characteristic information into an equipment identification recognition engine if the target characteristic information matched with the equipment characteristic information does not exist in the preset cache library;
the third output module is used for processing the equipment characteristic information through the equipment identification recognition engine, obtaining equipment information corresponding to the equipment characteristic information and outputting the equipment information as a recognition result of the terminal equipment;
the second input module is used for inputting the equipment characteristic information into the characteristic field recognition engine if the equipment information output by the equipment identification recognition engine is not received within a preset first time interval;
and the fourth output module is used for processing the equipment characteristic information through the characteristic field identification engine, acquiring equipment information corresponding to the equipment characteristic information, and outputting the equipment information as an identification result of the terminal equipment.
In an embodiment, the apparatus for identifying a terminal device includes:
the information sending module is used for sending the equipment characteristic information to an equipment identification interface if the equipment information fed back by the preset identification engine is not received at a preset second time interval;
the information comparison module is used for respectively matching the equipment characteristic information through regular rule sets in the equipment identification interface to obtain a matching result of each regular rule set;
the matching obtaining module is used for obtaining the equipment information in each matching result and the credibility weight of the equipment information if at least two regular rule sets are successfully matched;
and the information output module is used for fusing according to the credibility weight of each piece of equipment information to obtain and output the accessed equipment information of the terminal equipment.
In an embodiment, the apparatus for identifying a terminal device includes:
the information output module is used for inputting the equipment characteristic information into an offline equipment information statistical library if target address information matched with the equipment address information does not exist in the correct equipment address library;
the offline counting module is used for counting the occurrence frequency of address information of each device in the offline device information counting library, acquiring high-frequency address information with the occurrence frequency larger than a preset threshold value, identifying the high-frequency address information and acquiring device information corresponding to the high-frequency address information;
and the database updating module is used for storing the high-frequency address information and the equipment information into a correct equipment address library in a correlation manner so as to update the correct equipment address library.
The steps implemented by each functional module of the terminal device identification apparatus may refer to each embodiment of the terminal device identification method of the present invention, and are not described herein again.
In addition, the embodiment of the invention also provides a computer storage medium.
The computer storage medium stores thereon a computer program that, when executed by a processor, implements operations in the terminal device identification method provided by the above-described embodiments.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity/action/object from another entity/action/object without necessarily requiring or implying any actual such relationship or order between such entities/actions/objects; the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, in that elements described as separate components may or may not be physically separate. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A terminal device identification method is characterized by comprising the following steps:
when a terminal equipment identification request is received, acquiring equipment characteristic information of the terminal equipment;
comparing the equipment address information in the equipment characteristic information with prestored address information in a correct equipment address library;
if target address information matched with the equipment address information exists in the correct equipment address library, acquiring equipment information corresponding to the target address information;
and outputting the equipment information as the identification result of the terminal equipment.
2. The method for identifying a terminal device according to claim 1, wherein the step of comparing the device address information in the device feature information with the pre-stored address information in the correct device address library comprises:
if the target address information matched with the equipment address information does not exist in the correct equipment address library, comparing the equipment characteristic information with preset characteristic information in a preset cache library;
if target characteristic information matched with the equipment characteristic information exists in the preset cache library, acquiring equipment information corresponding to the target characteristic information;
and outputting the equipment information as the identification result of the terminal equipment.
3. The terminal device identification method according to claim 2, wherein the predetermined cache library includes a predetermined device information cache library and a device identification cache library;
after the step of comparing the device address information in the device feature information with the pre-stored address information in the correct device address library, the method includes:
if the target address information matched with the equipment address information does not exist in the correct equipment address library, comparing the equipment characteristic information with preset characteristic information in the equipment information cache library;
if the target characteristic information matched with the equipment characteristic information exists in the equipment information cache library, acquiring equipment information corresponding to the target characteristic information, and outputting the equipment information as an identification result of the terminal equipment;
if the target characteristic information matched with the equipment characteristic information does not exist in the equipment information cache library, comparing the equipment identification information in the equipment characteristic information with preset identification information in the equipment identification cache library;
and if the target identification information matched with the equipment identification information exists in the equipment identification cache library, acquiring equipment information corresponding to the target identification information, and outputting the equipment information as the identification result of the terminal equipment.
4. The method for identifying a terminal device according to claim 2, wherein the step of comparing the device characteristic information with preset characteristic information in a preset cache library after the step of comparing the device characteristic information with the preset characteristic information in the preset cache library if the target address information matching the device address information does not exist in the correct device address library comprises:
if the target characteristic information matched with the equipment characteristic information does not exist in the preset cache library, inputting the equipment characteristic information into a preset identification engine;
and processing the equipment characteristic information through the preset identification engine, obtaining equipment information corresponding to the equipment characteristic information, and outputting the equipment information as an identification result of the terminal equipment.
5. The terminal device identification method according to claim 4, wherein the preset identification engine includes a preset device identification engine and a characteristic field identification engine;
if the target address information matched with the equipment address information does not exist in the correct equipment address library, the step of comparing the equipment characteristic information with the preset characteristic information in a preset cache library comprises the following steps:
if the target characteristic information matched with the equipment characteristic information does not exist in the preset cache library, inputting the equipment characteristic information into the equipment identification recognition engine;
processing the device characteristic information through the device identification recognition engine to obtain device information corresponding to the device characteristic information, and outputting the device information as a recognition result of the terminal device;
if the equipment information output by the equipment identification recognition engine is not received at a preset first time interval, inputting the equipment characteristic information into the characteristic field recognition engine;
and processing the equipment characteristic information through the characteristic field identification engine to obtain equipment information corresponding to the equipment characteristic information, and outputting the equipment information as an identification result of the terminal equipment.
6. The method for identifying a terminal device according to claim 4, wherein the step of inputting the device feature information into a predetermined identification engine after the step of inputting the device feature information into a predetermined identification engine if the target feature information matching the device feature information does not exist in the predetermined cache library comprises:
if the preset second time interval does not receive the equipment information fed back by the preset identification engine, sending the equipment characteristic information to an equipment identification interface;
respectively matching the equipment characteristic information through regular rule sets in the equipment identification interface to obtain a matching result of each regular rule set;
if at least two regular rule sets are successfully matched, acquiring equipment information in each matching result and the reliability weight of the equipment information;
and fusing according to the credibility weight of each piece of equipment information to obtain and output the accessed equipment information of the terminal equipment.
7. The method for identifying terminal equipment according to any one of claims 1 to 6, wherein after the step of comparing the equipment address information in the equipment characteristic information with the pre-stored address information in a correct equipment address library, the method comprises:
if the correct equipment address library does not have target address information matched with the equipment address information, inputting the equipment characteristic information into an offline equipment information statistical library;
counting the occurrence frequency of address information of each device in the offline device information counting library, acquiring high-frequency address information with the occurrence frequency larger than a preset threshold value, and identifying the high-frequency address information to acquire device information corresponding to the high-frequency address information;
and storing the high-frequency address information and the equipment information into a correct equipment address library in a correlated manner so as to update the correct equipment address library.
8. A terminal device identification apparatus, characterized in that the terminal device identification apparatus comprises:
the information acquisition module is used for acquiring the equipment characteristic information of the terminal equipment when receiving a terminal equipment identification request;
the information comparison module is used for comparing the equipment address information in the equipment characteristic information with prestored address information in a correct equipment address library;
the information acquisition module is used for acquiring equipment information corresponding to the target address information if the target address information matched with the equipment address information exists in the correct equipment address library;
and the information output module is used for outputting the equipment information as the identification result of the terminal equipment.
9. A terminal device identification device, characterized in that the terminal device identification device comprises: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein:
the computer program realizing the steps of the terminal device identification method according to any one of claims 1 to 7 when executed by the processor.
10. A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the terminal device identification method according to any one of claims 1 to 7.
CN201911232889.5A 2019-12-04 2019-12-04 Terminal equipment identification method, device, equipment and computer storage medium Active CN111131178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911232889.5A CN111131178B (en) 2019-12-04 2019-12-04 Terminal equipment identification method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911232889.5A CN111131178B (en) 2019-12-04 2019-12-04 Terminal equipment identification method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN111131178A true CN111131178A (en) 2020-05-08
CN111131178B CN111131178B (en) 2022-03-08

Family

ID=70497502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911232889.5A Active CN111131178B (en) 2019-12-04 2019-12-04 Terminal equipment identification method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111131178B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507087A (en) * 2020-12-21 2021-03-16 苏州三六零智能安全科技有限公司 Terminal equipment identification method, equipment, storage medium and device
CN114915576A (en) * 2021-12-28 2022-08-16 天翼数字生活科技有限公司 Method and system for identifying terminal equipment at router

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063620A (en) * 2010-12-31 2011-05-18 北京捷通华声语音技术有限公司 Handwriting identification method, system and terminal
CN106230883A (en) * 2016-07-14 2016-12-14 精硕世纪科技(北京)有限公司 A kind of method and system of investigation information gathering based on network router
US20170006140A1 (en) * 2015-07-01 2017-01-05 Lg Electronics Inc. Method of transmitting and receiving data using new layer in wireless communication system
US20180241876A1 (en) * 2017-02-23 2018-08-23 T-Mobile Usa, Inc. Iot-connected devices and equipment automated login system
CN109246163A (en) * 2017-07-10 2019-01-18 中国电信股份有限公司 End message recognition methods and device
CN109905292A (en) * 2019-03-12 2019-06-18 北京奇虎科技有限公司 A kind of terminal device recognition methods, system and storage medium
CN109905293A (en) * 2019-03-12 2019-06-18 北京奇虎科技有限公司 A kind of terminal device recognition methods, system and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063620A (en) * 2010-12-31 2011-05-18 北京捷通华声语音技术有限公司 Handwriting identification method, system and terminal
US20170006140A1 (en) * 2015-07-01 2017-01-05 Lg Electronics Inc. Method of transmitting and receiving data using new layer in wireless communication system
CN106230883A (en) * 2016-07-14 2016-12-14 精硕世纪科技(北京)有限公司 A kind of method and system of investigation information gathering based on network router
US20180241876A1 (en) * 2017-02-23 2018-08-23 T-Mobile Usa, Inc. Iot-connected devices and equipment automated login system
CN109246163A (en) * 2017-07-10 2019-01-18 中国电信股份有限公司 End message recognition methods and device
CN109905292A (en) * 2019-03-12 2019-06-18 北京奇虎科技有限公司 A kind of terminal device recognition methods, system and storage medium
CN109905293A (en) * 2019-03-12 2019-06-18 北京奇虎科技有限公司 A kind of terminal device recognition methods, system and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507087A (en) * 2020-12-21 2021-03-16 苏州三六零智能安全科技有限公司 Terminal equipment identification method, equipment, storage medium and device
CN112507087B (en) * 2020-12-21 2022-11-04 苏州三六零智能安全科技有限公司 Terminal equipment identification method, equipment, storage medium and device
CN114915576A (en) * 2021-12-28 2022-08-16 天翼数字生活科技有限公司 Method and system for identifying terminal equipment at router
CN114915576B (en) * 2021-12-28 2024-04-16 天翼数字生活科技有限公司 Method and system for identifying terminal equipment at router

Also Published As

Publication number Publication date
CN111131178B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN109905293B (en) Terminal equipment identification method, system and storage medium
CN109951354B (en) Terminal equipment identification method, system and storage medium
US20160239540A1 (en) Data Query Method and Apparatus, Server, and System
EP2854378B1 (en) Method, device and network equipment for acquiring feature information
CN111131178B (en) Terminal equipment identification method, device, equipment and computer storage medium
CN109905292B (en) Terminal equipment identification method, system and storage medium
CN110502442B (en) Dynamic parameter checking method, device, equipment and storage medium
CN110446273B (en) Networking method and device based on electronic price tags
CN111177483A (en) Terminal device identification method, device and computer readable storage medium
US20190363943A1 (en) Systems and methods for determining characteristics of devices on a network
WO2013152729A1 (en) Method and apparatus for providing software for terminal device
CN111224797A (en) Equipment access method and device and electronic equipment
CN115865525B (en) Log data processing method, device, electronic equipment and storage medium
CN115277198A (en) Vulnerability detection method and device for industrial control system network and storage medium
CN106549801B (en) alarm type identification method and equipment
CN111107064A (en) Terminal equipment identification method, device, equipment and readable storage medium
CN111385360A (en) Terminal equipment identification method and device and computer readable storage medium
CN111181921B (en) Information management method, device, equipment and computer storage medium
CN115118774B (en) Equipment updating method and device, electronic equipment and storage medium
CN113055420A (en) HTTPS service identification method and device and computing equipment
CN111147321B (en) Information processing method, device, equipment and computer storage medium
CN114996080A (en) Data processing method, device, equipment and storage medium
CN114154010A (en) Data processing method, device, equipment and storage medium
CN111131534B (en) Domain name rule processing method and device and computer readable storage medium
CN110418020B (en) List state information processing method and device, electronic terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant