CN112039729A - Device identification method, server, electronic device, and storage medium - Google Patents

Device identification method, server, electronic device, and storage medium Download PDF

Info

Publication number
CN112039729A
CN112039729A CN202010886599.9A CN202010886599A CN112039729A CN 112039729 A CN112039729 A CN 112039729A CN 202010886599 A CN202010886599 A CN 202010886599A CN 112039729 A CN112039729 A CN 112039729A
Authority
CN
China
Prior art keywords
equipment
information
library
user
agent
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
CN202010886599.9A
Other languages
Chinese (zh)
Other versions
CN112039729B (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.)
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 CN202010886599.9A priority Critical patent/CN112039729B/en
Publication of CN112039729A publication Critical patent/CN112039729A/en
Application granted granted Critical
Publication of CN112039729B publication Critical patent/CN112039729B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques

Abstract

The embodiment of the invention discloses a device identification method, a server, electronic equipment and a storage medium, and relates to the field of communication networks. The equipment identification method comprises the following steps: when a device is accessed to a network, acquiring a user-agent field of the device, a mac address of the device and a domain name of the device; matching the user-agent field with a preset user-agent device library to obtain a first group of device information, wherein the preset user-agent device library comprises a 4-level user-agent device library and a 3-level user-agent device library; matching the mac address and the domain name with a preset mac domain name equipment library to acquire a second group of equipment information; matching the mac address with a preset mac equipment library to acquire a third group of equipment information and a network access mode of the equipment; and acquiring the equipment identification information of the equipment according to the first set of equipment information, the second set of equipment information and the third set of equipment information. The method is applied to the network communication process, and the purpose of improving the information identification accuracy of the communication equipment is achieved.

Description

Device identification method, server, electronic device, and storage medium
Technical Field
The embodiment of the invention relates to the field of network communication, in particular to a device identification method, a server, electronic equipment and a storage medium.
Background
Since the network card of each device has a globally unique mac address and the user-agent field in the http protocol contains terminal information, the mac address or the user-agent field is usually used for identification in the conventional device identification technology. When the mac address is used for identification, the identification is carried out through the first six bits of the mac address, the first six bits of the mac address are company IDs distributed to various manufacturers by IEEE, and the manufacturers of the terminal equipment can be judged by identifying the first six bits of the mac address; when the user-agent field is used for equipment identification, the information such as the type, the model and the operating system of the terminal equipment is judged by identifying the user-agent field carried by a user when the user accesses the browser.
However, in the prior art, when the first six bits of the mac address are used for identification, only manufacturers of the device can be roughly judged, and the manufacturers of the terminal device can purchase chips of other manufacturers for assembly, so that multiple terminals use the same mac address; when the user-agent field is used for equipment identification, the problem that the equipment cannot send an http request or the user-agent field information is encrypted exists; in addition, neither method can identify the network access method of the terminal device, and the success rate of identification of the terminal device is reduced due to the above problems.
Disclosure of Invention
An object of embodiments of the present invention is to provide a device identification method, a server, an electronic device, and a storage medium, which can improve accuracy of identifying device information and a network access method of an identification device when performing device identification.
In order to solve the above technical problem, an embodiment of the present invention provides an apparatus identification method, including: when a device is accessed to a network, acquiring a user-agent field of the device, a mac address of the device and a domain name of the device; matching the user-agent field with a preset user-agent device library to obtain a first group of device information, wherein the preset user-agent device library comprises a 4-level user-agent device library and a 3-level user-agent device library; matching the mac address and the domain name with a preset mac domain name equipment library to acquire a second group of equipment information; matching the mac address with a preset mac equipment library to acquire a third group of equipment information and a network access mode of the equipment; and acquiring the equipment identification information of the equipment according to the first set of equipment information, the second set of equipment information and the third set of equipment information.
An embodiment of the present invention further provides an apparatus identification server, including:
an acquisition module: the method comprises the steps that when the equipment is accessed to a network, a user-agent field of the equipment, a mac address of the equipment and a domain name of the equipment are obtained;
the equipment library module: the device comprises a preset user-agent device library, a preset mac domain name device library and a preset mac device library, wherein the preset user-agent device library comprises a 4-level user-agent device library and a 3-level user-agent device library;
a matching module: the device library module is used for matching the user-agent field, the mac address and the domain name of the device with the user-agent device library, the mac domain name device library and the mac device library in the device library module;
a feedback module: and the device information and the network access mode of the equipment are acquired according to the matching result acquired by the matching module.
An embodiment of the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the device identification method described above.
An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to implement the device identification method described above when executed by a processor.
Compared with the prior art, the method and the device for accessing the network acquire the user-agent field, the mac address and the domain name of the device when the device is accessed to the network; matching the user-agent field with a preset user-agent device library to obtain a first group of device information, wherein the preset user-agent device library comprises a 4-level user-agent device library and a 3-level user-agent device library; matching the mac address and the domain name with a preset mac domain name equipment library to acquire a second group of equipment information; matching the mac address with a preset mac equipment library to acquire a third group of equipment information and a network access mode of the equipment; the equipment information of the equipment is acquired according to the first group of equipment information, the second group of equipment information and the third group of equipment information, so that the purpose of comprehensively using three kinds of information, namely a user-agent field, a mac address and a domain name, for equipment identification is achieved, and the problem that the accuracy rate of terminal identification is low due to single information identification in the prior art is solved.
In addition, in the device identification method provided in the embodiment of the present invention, the matching of the user-agent field with a preset user-agent device library to obtain a first set of device information, where the preset user-agent device library includes a 4-level user-agent device library and a 3-level user-agent device library, includes: acquiring high, medium and low priority keywords in the user-agent data; and matching the high-priority, medium-priority and low-priority keywords with the data in the 4-level user-agent equipment library to acquire the first group of equipment information, wherein when the keywords with relatively high priority are successfully matched, the matching is not performed. When the matching of the high-priority keywords, the medium-priority keywords and the low-priority keywords fails, acquiring new keywords according to the high-priority keywords, the medium-priority keywords and the low-priority keywords; and matching the new keyword with the 3-level user-agent equipment library to acquire the first group of terminal equipment information, wherein the method can identify according to the priority of the keyword of the user-agent field when equipment is identified, so that the technical scheme provided by the embodiment of the invention can improve the accuracy of equipment information identification.
In addition, in the device identification method provided in the embodiment of the present invention, the matching the mac address and the domain name with a preset mac domain name device library, and the obtaining of the second group of device information includes: combining the mac address with the domain name to obtain mac domain name data; and matching the mac domain name data with the mac domain name equipment library to acquire the second group of equipment information, wherein the method combines the mac address and the domain name as equipment identification data, so that the technical scheme provided by the embodiment of the invention can further improve the accuracy of equipment information identification.
In addition, the method for identifying devices according to the embodiment of the present invention, matching the mac address with a preset mac device library to obtain information about a third group of devices, includes: acquiring the first six bits of the mac address; matching the first six-bit mac address with the mac equipment library to acquire the third group of equipment information; and determining the network access mode of the equipment according to the third group of equipment information, wherein when the method is used for identification by using the mac address, the network access mode of the equipment can be acquired while the equipment information is acquired, so that the technical scheme provided by the embodiment of the invention can improve the accuracy rate of equipment information identification and improve the practicability.
In addition, the method for identifying a device according to an embodiment of the present invention, where the acquiring device information of the device according to the first set of device information, the second set of device information, and the third set of device information includes: and acquiring terminal information of the equipment from the first group of equipment information, the second group of equipment information and the third group of equipment information according to the priority, wherein the first group of equipment information is high priority, the second group of equipment information is medium priority and the third group of equipment information is low priority, fusing the equipment information and the equipment network access mode to acquire equipment identification information of the equipment, and acquiring final equipment identification information according to the three groups of equipment information by the method, so that the identification accuracy of the equipment information can be improved by the technical scheme provided by the embodiment of the invention.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flowchart of a device identification method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a device identification method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a device identification method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a device identification method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device identification server according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
A first embodiment of the present invention relates to an apparatus identification method, and a specific flow is as shown in fig. 1:
step 101, when the device accesses to the network, acquiring a user-agent field, a mac address and a domain name of the device.
In this embodiment, when the device is powered on and is connected to the network, http data, a mac address, and a domain name are obtained from all data carried by the device through DPI flow data, and then a user-agent field is obtained from the http data, where the obtained user-agent field may be in a standard mode: dalvik/2.1.0 (linux; u; android 6.0.1; oppo r9s build/mmb29m), also possibly in non-standard mode: 1605-a01_6.0.1_ weibo _9.4.2_ android _ wifi, and the obtained mac address format is as follows: 08: 00: 20: 0A: 8C: 6D, the format of the acquired domain name is as follows: www. wikipedia.org, in the embodiment of the present invention, the method for obtaining the user-agent field, the mac address, and the domain name is not unique, and any method capable of obtaining the user-agent field, the mac address, and the domain name can be applied to the embodiment of the present invention, which is not described herein.
And 102, matching the user-agent field with a preset user-agent device library to acquire a first group of device information, wherein the user-agent device library comprises a 4-level user-agent device library and a 3-level user-agent device library.
In the embodiment, firstly, keywords in a user-agent field are acquired, the acquired keywords are high priority when the format standard of the user-agent field is standard, the acquired keywords are medium priority when the format of the user-agent field is non-standard but the device information is still obvious, the acquired keywords are low priority when the format of the user-agent field is non-standard and the device information is not obvious, the acquired keywords are matched with a 4-level user-agent device library when the keywords of any level are acquired, the keywords of lower priority are not acquired when the matching is successful, and the keywords of lower priority are required to be acquired continuously to be matched with the 4-level user-agent device library when the matching is failed until the device information is successfully identified; and when the matching of the high-priority, medium-priority and low-priority keywords with the 4-level user-agent equipment library fails, summarizing the high-priority, medium-priority and low-priority keywords to obtain a new keyword, matching the new keyword with the 3-level user-agent equipment library, and obtaining the equipment information of the equipment to be identified.
It should be noted that since the devices of the types such as the intelligent terminal, the tablet computer, the smart television, and the OTT box often access public network resources, the user-agent fields of the devices of the types such as the intelligent terminal, the tablet computer, the smart television, and the OTT box are easily obtained, so that the technical scheme provided by the embodiment of the present invention can accurately identify the devices of the types such as the intelligent terminal, the tablet computer, the smart television, and the OTT box.
And 103, matching the mac address and the domain name with a preset mac domain name equipment library to acquire a second group of equipment information.
In this embodiment, the obtained mac address and the domain name are combined to form a new device data, which is called mac domain name data, and the format of the mac domain name data is as follows: com, in the combination process, the mode that the mac address is in front or the domain name is in front is mainly used, combination in other modes is supported, and then the combined mac domain name data is matched with a mac domain name equipment library to acquire the equipment information of the equipment to be identified.
It should be noted that: the intelligent sound box, the intelligent camera and other emerging intelligent household equipment generally only access a specific domain name provided by a manufacturer of the intelligent sound box, the intelligent camera and other emerging intelligent household equipment, so that the mac address and the domain name of the intelligent sound box, the intelligent camera and other emerging intelligent household equipment are relatively representative, and the technical scheme provided by the embodiment of the invention can accurately identify the intelligent sound box, the intelligent camera and other emerging intelligent household equipment.
And 104, matching the mac address with a preset mac device library to acquire the third group of device information and the network access mode of the device.
In this embodiment, first six bits of a mac address need to be obtained from the obtained mac address, then the first six bits of the mac address are used to match with a mac device library to obtain device information of a device to be identified, and then whether a manufacturer to which the mac address belongs is a router is determined according to the identified device information, if the manufacturer is a router, the network access mode of the device is indirect connection, and if the manufacturer is not a router, the network access mode of the device is direct connection, where indirect connection refers to that the device accesses a network by way of a router, and direct connection refers to that the device accesses a network by way of a non-router (WiFi, data traffic, etc.).
And 105, acquiring the equipment identification information according to the first set of equipment information, the second set of equipment information and the third set of equipment information.
In this embodiment, the obtained three sets of device information include priorities, where the first set of device information is of a high priority, the second set of device information is of a medium priority, and the third set of device information is of a low priority, and then when obtaining the device information according to the obtained three sets of device information, it is determined whether there is higher priority device information, if there is higher priority device information, then higher priority device information is selected, if there is no higher priority device information, then lower priority device information is selected, after obtaining the device information, it is necessary to merge the obtained device information with the device network access method obtained in step 104, and finally obtain device identification information of the device, where the device identification information may be a device category, a device type, a device manufacturer, a device model, and a device network access method, or a device category, a device type, Equipment manufacturers and equipment network access modes.
It should be noted that the user-agent device library, the mac domain name device library and the mac device library mentioned in the above steps need to be preset in advance, and in the presetting process, a large number of device information libraries need to be acquired from the network, and then the acquired device information libraries are classified and fused to form the user-agent device library, the mac domain name device library and the mac device library used in the embodiment of the present invention.
Compared with the prior art, the method and the device for accessing the network acquire the user-agent field, the mac address and the domain name of the device when the device is accessed to the network; matching the user-agent field with a preset user-agent device library to obtain a first group of device information, wherein the preset user-agent device library comprises a 4-level user-agent device library and a 3-level user-agent device library; matching the mac address and the domain name with a preset mac domain name equipment library to acquire a second group of equipment information; matching the mac address with a preset mac equipment library to acquire a third group of equipment information and a network access mode of the equipment; the equipment information is acquired according to the first group of equipment information, the second group of equipment information and the third group of equipment information, the equipment information is fused with the equipment network access mode, and the equipment identification information of the equipment is acquired, so that the purpose of comprehensively using three information, namely a user-agent field, a mac address and a domain name, for equipment identification is achieved, and the problem that the accuracy of terminal identification is low due to single information identification in the prior art is solved.
A second embodiment of the present invention relates to a device identification method, which is substantially the same as the device identification method provided in the first embodiment, except that, as shown in fig. 2, step 102 includes:
step 201, acquiring a high-priority keyword of a user-agent field.
In this embodiment, the high-priority keyword may be obtained only when the obtained user-agent field exists in a standard form, where the standard form refers to that the device information in the user-agent field appears at a position where the device information should appear, and the standard user-agent field is as follows: dalvik/2.1.0 (linux; u; android 6.0.1; oppo r9s built/mmb 29m), because the device information of the standard user-agent field is obvious, a method of direct acquisition may be adopted, for example, the obtained high-priority key is oppo r9s, when the high-priority key acquisition is successful, step 202 is executed, and when the high-priority key acquisition is failed, step 203 is executed.
Step 202, judging whether the matching with the 4-level user-agent device library is successful.
In this embodiment, the high-priority keyword obtained in step 201 is matched with the device information in the 4-level user-agent device library, and if the matching is successful, step 209 is executed, and if the matching is not successful, step 203 is executed.
Step 203, acquiring the medium priority keywords of the user-agent field.
In this embodiment, when the high-priority keyword fails to be obtained, it is determined that the obtained user-agent field is not in a standard format, and at this time, a non-violent word segmentation method needs to be used to obtain a medium-priority keyword from the obtained user-agent field, where the presence of the medium-priority keyword indicates that the obtained format of the user-agent field is non-standard, but the device information thereof is still obvious, for example, the style of the user-agent field is as follows: 1605-a01_6.0.1_ weibo _9.4.2_ android _ wifi, the medium priority key mentioned is: 1605-a01, wherein the non-violent segmentation method means that segmentation methods other than the violent segmentation method can be used, step 204 is executed when the acquisition of the medium priority keyword is successful, and step 205 is executed when the acquisition of the high priority keyword is failed.
And step 204, judging whether the matching with the 4-level user-agent equipment library is successful.
In this embodiment, the high-priority keyword obtained in step 203 is matched with the device information in the 4-level user-agent device library, and if the matching is successful, step 209 is executed, and if the matching is not successful, step 205 is executed.
Step 205, obtain the low priority key word of the user-agent field.
In this embodiment, when the acquisition of the medium-priority keyword fails, it indicates that the acquired user-agent field is not in a standard format and the device information is not obvious, at this time, a brute force word segmentation method needs to be used to acquire a low-priority keyword from the acquired user-agent field, and the presence of the low-priority keyword indicates that the format of the acquired user-agent field is non-standard and the device information is not obvious, where the brute force word segmentation method is to forcibly calculate the possible probabilities of all words in the user-agent field, then select the most appropriate word according to the probabilities of the words, and execute step 206 when the acquisition of the low-priority keyword succeeds, and execute step 207 when the acquisition of the high-priority keyword fails.
Step 206, judging whether the matching with the 4-level user-agent device library is successful.
In this embodiment, the high-priority keyword obtained in step 204 is matched with the device information in the 4-level user-agent device library, and if the matching is successful, step 209 is executed, and if the matching is not successful, step 207 is executed.
And step 207, acquiring new keywords according to the high, medium and low priority keywords of the user-agent field.
In this embodiment, when the high, medium and low priority keywords are all unsuccessfully matched with the device information in the 4-level user-agent device library, the high, medium and low priority keywords need to be collected and deduplicated to obtain new keywords, for example: the high priority keyword is OPPO r9s, the medium priority keyword is OPPO, the low priority keyword is o, the new keyword is OPPO, when the new keyword is successfully acquired, step 208 is executed, when the new keyword is unsuccessfully acquired, step 103 is executed.
And step 208, judging whether the matching with the 3-level user-agent equipment library is successful.
In this embodiment, the high-priority keyword obtained in step 201 is matched with the device information in the 3-level user-agent device library, and if the matching is successful, step 209 is executed, and if the matching is not successful, step 301 is executed.
In step 209, a first set of device information is obtained.
In this embodiment, when the obtained keyword is successfully matched with the device information in the user-agent device library, the device information in the user-agent device library corresponding to the keyword is obtained, and the obtained device information is used as the first set of device information, where the first set of device information may be a device class, a device type, a device manufacturer, a device model, or a device class, a device type, or a device manufacturer.
A third embodiment of the present invention relates to a device identification method, which is substantially the same as the device identification method provided in the first embodiment, except that, as shown in fig. 3, step 103 includes:
step 301, the mac address and the domain name are combined to obtain mac domain name data.
In this embodiment, a complete mac address is obtained, such as 08: 00: 20: 0A: 8C: 6D, the first six bits of the mac address need to be obtained first, as 08: 00: and 20, combining the first six bits of the mac address with the domain name to form mac domain name data, such as: 08: 00: com is mainly used in the binding process in the form of mac address-preceded or domain name-preceded, and also supports binding in other forms.
Step 302, determine whether the matching with the mac domain name device library is successful.
In the present embodiment, the mac domain name data acquired in step 301 is matched with the device information in the mac domain name device library, and if the matching is successful, step 303 is executed, and if the matching is not successful, step 104 is executed.
Step 303, obtain a second set of device information.
In this embodiment, when the obtained mac domain name data is successfully matched with the device information in the mac domain name device library, the device information in the mac domain name device library corresponding to the mac domain name data is obtained, and the obtained device information is used as the second group of device information.
A fourth embodiment of the present invention relates to a device identification method, which is substantially the same as the device identification method provided in the first embodiment, except that, as shown in fig. 4, step 104 includes:
step 401, the first six bits of the mac address are obtained.
In this embodiment, a complete mac address is obtained, such as 08: 00: 20: 0A: 8C: 6D, the first six bits of the mac address need to be obtained first, as 08: 00: 20.
step 402, determine whether the matching with the mac device library is successful.
In the present embodiment, the first six bits of the mac address acquired in step 401 are matched with the device information in the mac device library, and if the matching is successful, step 403 is executed, and if the matching is not successful, step 105 is executed.
Step 403, obtain the third set of device information.
In the present embodiment, when the first six bits of the obtained mac address are successfully matched with the device information in the mac device library, the device information in the mac device library corresponding to the first six bits of the mac address is obtained, and the obtained device information is regarded as the third group of device information.
And step 404, acquiring a device network access mode according to the third group of device information.
In this embodiment, it may be determined whether a manufacturer to which the mac address belongs is a router according to the device information included in the third set of device information, where if the manufacturer is a router, the network access mode representing the device is indirect connection, and if the manufacturer is not a router, the network access mode representing the device is direct connection, where indirect connection refers to the device accessing the network through a router, and direct connection refers to the device accessing the network through a non-router (WiFi, data traffic).
The steps of the above embodiments are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the steps include the same logical relationship, which is within the scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A fifth embodiment of the present invention relates to a device identification server, as shown in fig. 5, including:
the obtaining module 501: the method comprises the steps that when the equipment is accessed to a network, a user-agent field of the equipment, a mac address of the equipment and a domain name of the equipment are obtained;
device library module 502: the device comprises a preset user-agent device library, a preset mac domain name device library and a preset mac device library, wherein the preset user-agent device library comprises a 4-level user-agent device library and a 3-level user-agent device library;
the matching module 503: the device library module is used for matching the user-agent field, the mac address and the domain name of the device with the user-agent device library, the mac domain name device library and the mac device library in the device library module;
the feedback module 504: and the device information and the network access mode of the equipment are acquired according to the matching result acquired by the matching module.
It should be noted that this embodiment is a system embodiment corresponding to the first embodiment, and this embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
Since the first embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and the technical effects that can be achieved in the first embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
A sixth embodiment of the present invention relates to an electronic apparatus, as shown in fig. 6, including:
at least one processor 601; and the number of the first and second groups,
a memory 602 communicatively coupled to the at least one processor 601; wherein the content of the first and second substances,
the memory 602 stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor 601 to enable the at least one processor 601 to execute the device identification method according to the first to fourth embodiments of the present invention.
The memory and the processor are connected by a bus, which may include any number of interconnected buses and bridges, linking together one or more of the various circuits of the processor and the memory. The bus may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
A seventh embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the above embodiments may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for practicing the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A device identification method, comprising:
when a device is accessed to a network, acquiring a user-agent field of the device, a mac address of the device and a domain name of the device;
matching the user-agent field with a preset user-agent device library to obtain a first group of device information, wherein the preset user-agent device library comprises a 4-level user-agent device library and a 3-level user-agent device library;
matching the mac address and the domain name with a preset mac domain name equipment library to acquire a second group of equipment information;
matching the mac address with a preset mac equipment library to acquire a third group of equipment information and a network access mode of the equipment;
and acquiring the equipment identification information of the equipment according to the first set of equipment information, the second set of equipment information and the third set of equipment information.
2. The device identification method according to claim 1, wherein the step of matching the user-agent field with a preset user-agent device library to obtain a first set of device information, wherein the preset user-agent device library includes a 4-level user-agent device library and a 3-level user-agent device library, and comprises:
acquiring high, medium and low priority keywords in the user-agent field;
and matching the high-priority, medium-priority and low-priority keywords with the 4-level user-agent equipment library to acquire the first group of equipment information, wherein when the keywords with relatively high priority are successfully matched, the matching is not performed.
3. The device identification method according to claim 2, wherein the matching the high, medium, and low priority keywords with the data in the 4-level user-agent device library to obtain the first set of device information further comprises:
when the matching of the high-priority keywords, the medium-priority keywords and the low-priority keywords fails, acquiring new keywords according to the high-priority keywords, the medium-priority keywords and the low-priority keywords;
and matching the new keyword with the 3-level user-agent equipment library to acquire the information of the first group of terminal equipment.
4. The device identification method according to claim 1, wherein the matching the mac address and the domain name with a preset mac domain name device library, and the obtaining the second set of device information comprises:
combining the mac address with the domain name to obtain mac domain name data;
and matching the mac domain name data with the mac domain name equipment library to acquire the second group of equipment information.
5. The device identification method according to claim 1, wherein the matching the mac address with a preset mac device library to obtain a third set of device information comprises:
acquiring the first six bits of the mac address;
matching the first six-bit mac address with the mac equipment library to acquire the third group of equipment information;
and determining the network access mode of the equipment according to the third group of equipment information.
6. The device identification method of claim 1, wherein the obtaining device identification information for the device based on the first set of device information, the second set of device information, and the third set of device information comprises:
acquiring the equipment information of the equipment from the first group of equipment information, the second group of equipment information and the third group of equipment information according to the priority, wherein the first group of equipment information is high priority, the second group of equipment information is medium priority and the third group of equipment information is low priority;
and fusing the equipment information and the equipment network access mode to acquire the equipment identification information of the equipment.
7. The device identification method of claim 1, wherein the obtaining the device information of the device according to the first set of device information, the second set of device information, and the third set of device information comprises:
the equipment category, equipment type, equipment manufacturer and equipment model of the equipment; alternatively, the first and second electrodes may be,
the device class, the device type, and the device manufacturer of the device.
8. A device identification server, comprising:
an acquisition module: the method comprises the steps that when the equipment is accessed to a network, a user-agent field of the equipment, a mac address of the equipment and a domain name of the equipment are obtained;
the equipment library module: the device comprises a preset user-agent device library, a preset mac domain name device library and a preset mac device library, wherein the preset user-agent device library comprises a 4-level user-agent device library and a 3-level user-agent device library;
a matching module: the device library module is used for matching the user-agent field, the mac address and the domain name of the device with the user-agent device library, the mac domain name device library and the mac device library in the device library module;
a feedback module: and the device information and the network access mode of the equipment are acquired according to the matching result acquired by the matching module.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the device identification method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the device identification method of any one of claims 1 to 7.
CN202010886599.9A 2020-08-28 2020-08-28 Device identification method, server, electronic device, and storage medium Active CN112039729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010886599.9A CN112039729B (en) 2020-08-28 2020-08-28 Device identification method, server, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010886599.9A CN112039729B (en) 2020-08-28 2020-08-28 Device identification method, server, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN112039729A true CN112039729A (en) 2020-12-04
CN112039729B CN112039729B (en) 2022-04-01

Family

ID=73586181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010886599.9A Active CN112039729B (en) 2020-08-28 2020-08-28 Device identification method, server, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN112039729B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000101589A (en) * 1998-09-21 2000-04-07 Nippon Telegr & Teleph Corp <Ntt> Dynamic domain name system
CN101252581A (en) * 2007-02-22 2008-08-27 株式会社日立制作所 Data communication system and session management server
US20100248627A1 (en) * 2009-03-31 2010-09-30 Telibrahma Convergent Communications Private Limited Identification of Make and Model of Communication Devices over Bluetooth Protocol
CN102143220A (en) * 2010-02-02 2011-08-03 国际商业机器公司 Method and system for discovering physical server location by correlating external and internal server information
US20110321098A1 (en) * 2010-06-25 2011-12-29 At&T Intellectual Property I, L.P. System and Method for Automatic Identification of Key Phrases during a Multimedia Broadcast
US20140317054A1 (en) * 2013-04-18 2014-10-23 Dropbox, Inc. Techniques for administering comingled content items
CN105122759A (en) * 2013-12-12 2015-12-02 华为技术有限公司 Method for processing packet in access network, and network device
CN106487938A (en) * 2015-08-24 2017-03-08 中兴通讯股份有限公司 The retransmission method of domain name and device
CN109639536A (en) * 2019-01-28 2019-04-16 中国信息通信研究院 A kind of method, system, equipment and the medium of intelligent wireless device parameter extraction
CN109656625A (en) * 2018-11-15 2019-04-19 平安科技(深圳)有限公司 Recognition methods, device, computer equipment and the storage medium of mobile device model
CN109905293A (en) * 2019-03-12 2019-06-18 北京奇虎科技有限公司 A kind of terminal device recognition methods, system and storage medium
CN109951354A (en) * 2019-03-12 2019-06-28 北京奇虎科技有限公司 A kind of terminal device recognition methods, system and storage medium
CN110572485A (en) * 2018-06-06 2019-12-13 阿里巴巴集团控股有限公司 Domain name resolution method, device and system
CN111177483A (en) * 2019-12-04 2020-05-19 北京奇虎科技有限公司 Terminal device identification method, device and computer readable storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000101589A (en) * 1998-09-21 2000-04-07 Nippon Telegr & Teleph Corp <Ntt> Dynamic domain name system
CN101252581A (en) * 2007-02-22 2008-08-27 株式会社日立制作所 Data communication system and session management server
US20100248627A1 (en) * 2009-03-31 2010-09-30 Telibrahma Convergent Communications Private Limited Identification of Make and Model of Communication Devices over Bluetooth Protocol
CN102143220A (en) * 2010-02-02 2011-08-03 国际商业机器公司 Method and system for discovering physical server location by correlating external and internal server information
US20110321098A1 (en) * 2010-06-25 2011-12-29 At&T Intellectual Property I, L.P. System and Method for Automatic Identification of Key Phrases during a Multimedia Broadcast
US20140317054A1 (en) * 2013-04-18 2014-10-23 Dropbox, Inc. Techniques for administering comingled content items
CN105122759A (en) * 2013-12-12 2015-12-02 华为技术有限公司 Method for processing packet in access network, and network device
CN106487938A (en) * 2015-08-24 2017-03-08 中兴通讯股份有限公司 The retransmission method of domain name and device
CN110572485A (en) * 2018-06-06 2019-12-13 阿里巴巴集团控股有限公司 Domain name resolution method, device and system
CN109656625A (en) * 2018-11-15 2019-04-19 平安科技(深圳)有限公司 Recognition methods, device, computer equipment and the storage medium of mobile device model
CN109639536A (en) * 2019-01-28 2019-04-16 中国信息通信研究院 A kind of method, system, equipment and the medium of intelligent wireless device parameter extraction
CN109905293A (en) * 2019-03-12 2019-06-18 北京奇虎科技有限公司 A kind of terminal device recognition methods, system and storage medium
CN109951354A (en) * 2019-03-12 2019-06-28 北京奇虎科技有限公司 A kind of terminal device recognition methods, system and storage medium
CN111177483A (en) * 2019-12-04 2020-05-19 北京奇虎科技有限公司 Terminal device identification method, device and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHENGDE GAO等: "Bone biomaterials and interactions with stem cells", 《BONE RESEARCH》 *
王平泉等: "面向物联网的多元标识映射模型", 《中国科学:信息科学》 *

Also Published As

Publication number Publication date
CN112039729B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
US8949469B2 (en) Method for software program synchronization
CN103475577B (en) Method, device and network equipment for obtaining characteristic information
CN107911249B (en) Method, device and equipment for sending command line of network equipment
CN111342992B (en) Method and system for processing equipment information change record
CN112202747A (en) Target device binding method and device, storage medium and electronic device
CN112532711A (en) Edge computing application deployment method, terminal, edge computing node and storage medium
CN110198533B (en) Method for remotely controlling BLE Bluetooth device and BLE Bluetooth device
US20230283470A1 (en) Service Request Handling
CN111669448B (en) Information interaction method and device for Internet of things equipment, storage medium and device
CN112039729B (en) Device identification method, server, electronic device, and storage medium
CN105281944B (en) Method for setting network protocol address and service management system
CN112019358A (en) Network configuration method, device, equipment and system
US20220052902A1 (en) Method for managing remote device through management device
CN115297104A (en) File uploading method and device, electronic equipment and storage medium
CN113342811A (en) HBase table data processing method and device
CN113746932A (en) Network request merging method and device, electronic device and computer program product
CN111541680A (en) Registration method of intelligent device, system and storage medium
CN112055058A (en) Data storage method and device and computer readable storage medium
CN106412657B (en) A kind of method and system of set-top box programming sequence code
CN114651236A (en) Resource deleting method, device, equipment and storage medium
CN105207980A (en) Information processing method and electronic equipment
CN113824710B (en) Communication protocol conversion method and device and computer readable storage medium
US11520645B2 (en) Apparatus and method for structuring a resource of an application programming interface
CN105052207B (en) Information query method, equipment and system
CN116431119B (en) Software component port creation method and device, electronic equipment 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