[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

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

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

Info

Publication number
CN111385360B
CN111385360B CN202010150466.5A CN202010150466A CN111385360B CN 111385360 B CN111385360 B CN 111385360B CN 202010150466 A CN202010150466 A CN 202010150466A CN 111385360 B CN111385360 B CN 111385360B
Authority
CN
China
Prior art keywords
equipment
identification information
stored
type
terminal device
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.)
Active
Application number
CN202010150466.5A
Other languages
Chinese (zh)
Other versions
CN111385360A (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202010150466.5A priority Critical patent/CN111385360B/en
Publication of CN111385360A publication Critical patent/CN111385360A/en
Application granted granted Critical
Publication of CN111385360B publication Critical patent/CN111385360B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a terminal equipment identification method, which comprises the following steps: when network data sent by terminal equipment are received, data characteristics corresponding to the network data are obtained, wherein the data characteristics comprise application types and/or application names corresponding to application programs for sending the network data; acquiring the equipment type corresponding to the data characteristic; and generating equipment identification information according to the equipment type. The invention also discloses a device for identifying the terminal equipment and a computer readable storage medium, which identify the information of the terminal equipment through the network data sent by the terminal equipment, and the identification equipment does not need to actively scan and actively identify, but passively identify according to the access flow sent by the terminal equipment, so as to avoid the problem that the response of the terminal equipment cannot be obtained, and improve the accuracy of equipment identification.

Description

Terminal equipment identification method, device and computer readable storage medium
Technical Field
The present invention relates to the field of device identification technologies, and in particular, to a method and apparatus for identifying a terminal device, and a computer readable storage medium.
Background
With the development of science and technology, various equipment assets such as computers and servers are widely applied to the fields of fire fighting, public security, banks, securities and the like. Where the number of equipment assets is large, it is necessary to periodically identify these terminal devices to count and supervise the important equipment assets.
The terminal device is usually identified by active scanning, but during active scanning, a response of the terminal device may not be obtained, so that the terminal device cannot be identified.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a method and a device for identifying terminal equipment and a computer readable storage medium, and aims to identify information of the terminal equipment through network data sent by the terminal equipment and avoid the problem that response of the terminal equipment cannot be obtained.
In order to achieve the above object, the present invention provides a method for identifying a terminal device, the method for identifying a terminal device comprising the steps of:
when network data sent by terminal equipment are received, data characteristics corresponding to the network data are obtained, wherein the data characteristics comprise application types and/or application names corresponding to application programs for sending the network data;
acquiring the equipment type corresponding to the data characteristic;
and generating equipment identification information according to the equipment type.
Optionally, the step of obtaining the device type corresponding to the data feature includes:
acquiring a characteristic value corresponding to the data characteristic;
obtaining a pre-stored characteristic value matched with the characteristic value;
acquiring a pre-stored equipment type associated with the matched pre-stored characteristic value;
and taking the obtained pre-stored equipment type as the equipment type corresponding to the characteristic value.
Optionally, the step of obtaining the feature value corresponding to the data feature includes:
performing cyclic redundancy check on the application type to obtain a first check value;
performing cyclic redundancy check on the application name to obtain a second check value;
performing cyclic redundancy check on the first check value and the second check value to obtain a third check value;
and taking the third check value as the characteristic value.
Optionally, the step of obtaining a pre-stored feature value matched with the feature value includes:
obtaining a hash address corresponding to the characteristic value;
and acquiring the pre-stored characteristic value according to the hash address.
Optionally, the step of generating device identification information according to the device type includes:
acquiring a network address of the terminal equipment according to the network data;
and generating the equipment identification information according to the network address and the equipment type.
Optionally, the step of generating the device identification information according to the network address and the device type includes:
and when the pre-stored equipment identification information matched with the network address does not exist in the equipment information database, generating the equipment identification information according to the network address, the equipment type and the current time point.
Optionally, the step of generating the device identification information according to the network address and the device type further comprises:
when the pre-stored equipment identification information matched with the network address exists in the equipment information database, updating an updating time point corresponding to the pre-stored equipment identification information according to the current time point, and updating the equipment type corresponding to the pre-stored equipment identification information according to the equipment type;
and taking the updated pre-stored equipment identification information as the equipment identification information.
Optionally, after the step of generating the device identification information according to the device type, the method further includes:
acquiring an update time point corresponding to the equipment identification information;
and deleting the equipment identification information when the time interval between the updated time point and the current time point is larger than a preset interval.
Optionally, after the step of generating the device identification information according to the device type, the method further includes:
and storing the equipment identification information in a structural mode, wherein a plurality of pieces of equipment identification information form a structural body linked list.
In addition, to achieve the above object, the present invention also provides an identification device of a terminal device, the identification device of a terminal device including:
the receiving module is used for acquiring data characteristics corresponding to the network data when the network data sent by the terminal equipment are received, wherein the data characteristics comprise application types and/or application names corresponding to application programs for sending the network data;
the acquisition module is used for acquiring the equipment type corresponding to the data characteristic;
and the generation module generates equipment identification information according to the equipment type.
In addition, to achieve the above object, the present invention also provides an identification device of a terminal device, the identification device of a terminal device including: the terminal equipment identification device comprises a memory, a processor and a terminal equipment identification program which is stored in the memory and can run on the processor, wherein the terminal equipment identification program realizes the steps of the terminal equipment identification method according to any one of the above when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon an identification program of a terminal device, which when executed by a processor, implements the steps of the identification method of a terminal device as described above.
The method, the device and the computer readable storage medium for identifying the terminal equipment provided by the embodiment of the invention acquire the data characteristics corresponding to the network data when the network data transmitted by the terminal equipment is received, wherein the data characteristics comprise the application type and/or the application name corresponding to the application program for transmitting the network data, acquire the equipment type corresponding to the data characteristics, and generate equipment identification information according to the equipment type. According to the invention, the corresponding equipment type is acquired through the network data sent by the terminal equipment, and then the equipment identification information is generated according to the equipment type, so that the purpose of identifying the terminal equipment is realized, the identification equipment is not required to actively scan and actively identify, but is passively identified according to the access flow sent by the terminal equipment, the problem that the response of the terminal equipment cannot be acquired is avoided, and the accuracy of equipment identification is improved.
Drawings
FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a flowchart of a first embodiment of the identification method of the terminal device of the present invention;
fig. 3 is a flowchart of a second embodiment of the identification method of the terminal device of the present invention;
fig. 4 is a flowchart of a third embodiment of the identification method of the terminal device of the present invention;
fig. 5 is a flowchart of a fourth embodiment of the identification method of the terminal device of the present invention;
fig. 6 is a schematic diagram of a transmission mode of network data according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention provides a solution, wherein the information of the terminal equipment is identified through the network data sent by the terminal equipment, the identification equipment does not need to actively scan and actively identify, but passively identify according to the access flow sent by the terminal equipment, so that the problem that the response of the terminal equipment cannot be obtained is avoided, and the accuracy of equipment identification is improved.
As shown in fig. 1, fig. 1 is a schematic diagram of a terminal structure of a hardware running environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be terminal equipment such as a PC, a smart phone and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an identification program of a terminal device may be included in a memory 1005 as one type of computer-readable storage medium.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call an identification program of the terminal device stored in the memory 1005 and perform the following operations:
when network data sent by terminal equipment are received, data characteristics corresponding to the network data are obtained, wherein the data characteristics comprise application types and/or application names corresponding to application programs for sending the network data;
acquiring the equipment type corresponding to the data characteristic;
and generating equipment identification information according to the equipment type.
Further, the processor 1001 may call the identification program of the terminal device stored in the memory 1005, and further perform the following operations:
acquiring a characteristic value corresponding to the data characteristic;
obtaining a pre-stored characteristic value matched with the characteristic value;
acquiring a pre-stored equipment type associated with the matched pre-stored characteristic value;
and taking the obtained pre-stored equipment type as the equipment type corresponding to the characteristic value.
Further, the processor 1001 may call the identification program of the terminal device stored in the memory 1005, and further perform the following operations:
performing cyclic redundancy check on the application type to obtain a first check value;
performing cyclic redundancy check on the application name to obtain a second check value;
performing cyclic redundancy check on the first check value and the second check value to obtain a third check value;
and taking the third check value as the characteristic value.
Further, the processor 1001 may call the identification program of the terminal device stored in the memory 1005, and further perform the following operations:
obtaining a hash address corresponding to the characteristic value;
and acquiring the pre-stored characteristic value according to the hash address.
Further, the processor 1001 may call the identification program of the terminal device stored in the memory 1005, and further perform the following operations:
acquiring a network address of the terminal equipment according to the network data;
and generating the equipment identification information according to the network address and the equipment type.
Further, the processor 1001 may call the identification program of the terminal device stored in the memory 1005, and further perform the following operations:
and when the pre-stored equipment identification information matched with the network address does not exist in the equipment information database, generating the equipment identification information according to the network address, the equipment type and the current time point.
Further, the processor 1001 may call the identification program of the terminal device stored in the memory 1005, and further perform the following operations:
when the pre-stored equipment identification information matched with the network address exists in the equipment information database, updating an updating time point corresponding to the pre-stored equipment identification information according to the current time point, and updating the equipment type corresponding to the pre-stored equipment identification information according to the equipment type;
and taking the updated pre-stored equipment identification information as the equipment identification information.
Further, the processor 1001 may call the identification program of the terminal device stored in the memory 1005, and further perform the following operations:
acquiring an update time point corresponding to the equipment identification information;
and deleting the equipment identification information when the time interval between the updated time point and the current time point is larger than a preset interval.
Further, the processor 1001 may call the identification program of the terminal device stored in the memory 1005, and further perform the following operations:
and storing the equipment identification information in a structural mode, wherein a plurality of pieces of equipment identification information form a structural body linked list.
Referring to fig. 2, in an embodiment, the method for identifying a terminal device includes the following steps:
step S10, when network data sent by a terminal device are received, data characteristics corresponding to the network data are obtained, wherein the data characteristics comprise application types and/or application names corresponding to application programs for sending the network data;
in this embodiment, the terminal is a device identifying device, configured to identify different terminal devices, and display device information of the identified terminal devices. Generally, the terminal device is not a completely isolated terminal, and needs to perform data interaction with other devices frequently to transfer various data information. The terminal equipment is connected to the equipment identification device through the setting of the network interface, and the network data is transmitted with other equipment through the identification device, so that the equipment identification device can constantly receive the network data sent by the terminal equipment. And when receiving the network data sent by the terminal equipment, acquiring the data characteristics corresponding to the network data.
Optionally, the data feature includes an application type and/or an application name corresponding to the application program that transmits the network data. Specifically, an application program in the terminal device sends out network data to realize data transmission with other terminals, the application type can include the type of the application program, for example, HTTP application, network streaming media, and the like, and the application name includes the name of the application program, for example, a browser, a mobile phone video player, and the like.
Optionally, the device identification function of the device identification apparatus is started in advance, so that the device identification apparatus performs the step of acquiring the data feature corresponding to the network data when the network data sent by the terminal device is received.
Alternatively, the data transmission of part of the terminal devices does not need to pass through the device identification means, whereby the network configuration can be changed so that the network data sent by the terminal devices can reach the device identification means. For example, as shown in fig. 6, fig. 6 is a schematic diagram of a transmission manner of network data, a local area network interface and a wide area network interface are set in the device identification device, the terminal device sends the network data to the device identification device through the local area network interface, and then forwards the network data to the cloud server through the wide area network interface by the device identification device to realize data transmission, and similarly, when receiving response data fed back by the cloud server, the device identification device can also forward the response data to the terminal device. Or the terminal equipment sends the network data to the equipment identification device through the wide area network interface, and the equipment identification device forwards the network data to the target terminal through the local area network interface to realize data transmission.
Step S20, obtaining the equipment type corresponding to the data characteristic;
in this embodiment, the local database stores a plurality of device types and pre-stored data features corresponding to the plurality of device types, so as to count initial device asset information. After the data characteristics corresponding to the network data are acquired, a pre-stored data characteristic matched with the data characteristics can be searched in a local database, and the equipment type corresponding to the pre-stored data characteristic is used as the equipment type corresponding to the acquired data characteristic, wherein the equipment type can comprise a PC (personal computer), a smart phone and the like. For example, in the case of data features: when the HTTP application and the browser are applied, if the type of the pre-stored equipment corresponding to the pre-stored data feature comprising the data feature is PC, the type of the equipment corresponding to the data feature is PC, namely the terminal equipment is PC.
Optionally, calculating a corresponding characteristic value according to the data characteristic, searching a pre-stored characteristic value matched with the characteristic value in the local database, and taking a pre-stored equipment type corresponding to the pre-stored characteristic value as the equipment type corresponding to the data characteristic. The eigenvalues may be calculated by means of cyclic redundancy check (CRC, cyclic Redundancy Check), MD5 Message-Digest Algorithm (MD 5 Message-Digest Algorithm), etc. The local database stores a plurality of pre-stored characteristic values and pre-stored equipment types associated with the pre-stored characteristic values.
Alternatively, when the device type corresponding to the data feature does not exist in the local database, it is indicated that the device is not present in the device asset, so the feature data may be deleted, skipping the identification of the terminal device. And the matching degree of the identified terminal equipment and the actual equipment asset is higher through the screening of the equipment types.
And step S30, generating equipment identification information according to the equipment type.
In this embodiment, when the device type corresponding to the data feature is obtained, it indicates that the terminal device exists in the device asset, so that other identity information in the received network data may be obtained, so as to generate device identification information according to the other identity information and the device type, and achieve the purpose of identifying the device asset. The device identification information is used for recording the identity of the terminal device and distinguishing the terminal device from other terminal devices. The device identification information may include at least one of a network address of the device, a device type, a creation time point, and an update time point to supervise the terminal device through the device identification information.
In the technical scheme disclosed in the embodiment, the corresponding equipment type is acquired through the network data sent by the terminal equipment, and then the equipment identification information is generated according to the equipment type, so that the purpose of identifying the terminal equipment is realized, the identification equipment is not required to actively scan and actively identify, but is passively identified according to the access flow sent by the terminal equipment, so that the problem that the response of the terminal equipment cannot be acquired is avoided, and the accuracy of equipment identification is improved.
In another embodiment, as shown in fig. 3, based on the embodiment shown in fig. 2, step S20 includes:
step S21, obtaining a characteristic value corresponding to the data characteristic;
in this embodiment, the feature value corresponding to the data feature may be calculated according to cyclic redundancy check (CRC, cyclic Redundancy Check). The cyclic redundancy check is a channel coding technology for generating short fixed bit check codes according to data such as network data packets or computer files, and is mainly used for detecting or checking errors possibly occurring after data transmission or storage. It uses the principle of division and remainder to make error detection.
Alternatively, when the data feature includes both the application type and the application name, the check value of the CRC thereof may be calculated for the application type and the application name, respectively. Specifically, cyclic redundancy check is performed on the application type to obtain a first check value so as to extract important features in the application type, and cyclic redundancy check is performed on the application name to obtain a second check value so as to extract important features in the application name. And comprehensively calculating a CRC check value, namely a third check value, of the first check value and the second check value to extract important features in the first check value and the second check value, and taking the third check value as a feature value corresponding to the data feature.
Step S22, obtaining a pre-stored characteristic value matched with the characteristic value;
step S23, obtaining the matched pre-stored equipment type associated with the pre-stored characteristic value;
and step S24, taking the obtained pre-stored equipment type as the equipment type corresponding to the characteristic value.
In this embodiment, after the feature value corresponding to the data feature is obtained, the device type corresponding to the feature value is searched in the local database. Specifically, an identification strategy is configured in a local database in advance, that is, a plurality of pre-stored characteristic values and pre-stored equipment types associated with the pre-stored characteristic values are pre-stored, so that the pre-stored characteristic values matched with the characteristic values are searched in the local database, and the pre-stored equipment types associated with the pre-stored characteristic values are used as equipment types corresponding to the characteristic values.
Alternatively, when configuring the identification policy, a plurality of preset application types and preset application names may be manually acquired, and a device having the plurality of preset application types and preset application names may be used as an initial device asset. And equally, performing cyclic redundancy check on the preset application type and the preset application name to calculate a preset characteristic value of the cyclic redundancy check, taking the preset characteristic value and the equipment type of the terminal equipment with the preset application type and the preset application name as an identification strategy, and pre-storing the identification strategy in a local database.
Alternatively, if there is no pre-stored characteristic value matching the characteristic value, this indicates that the device is not present in the device asset, and therefore the characteristic data may be deleted, bypassing the identification of the terminal device.
Optionally, whether a pre-stored characteristic value matched with the characteristic value exists in the local database or not can be searched according to the hash address, so that the searching efficiency is improved, and the identification speed of the terminal equipment is improved. Specifically, a hash address corresponding to the feature value is calculated through a hash (hash) function, and then a pre-stored feature value matched with the feature value is obtained at a position corresponding to the hash address in a memory. If the pre-stored characteristic value matched with the characteristic value exists, the pre-stored characteristic value can be obtained according to the hash address, and if the pre-stored characteristic value matched with the characteristic value does not exist, the pre-stored characteristic value can not be obtained according to the hash address. It should be noted that, when the pre-stored feature value is pre-stored in the local database, the method may be performed in a hash storage manner, first, a hash address corresponding to the pre-stored feature value is calculated through a hash function, and the pre-stored feature value is stored in a storage area corresponding to the hash address, so that the pre-stored feature value is conveniently searched for according to the hash address.
Optionally, the pre-stored device type is stored in a hash table. Specifically, the pre-stored equipment type is stored in the hash address corresponding to the pre-stored characteristic value, so that the pre-stored equipment type can be directly obtained according to the hash address corresponding to the characteristic value.
In the technical scheme disclosed in the embodiment, the characteristic value corresponding to the data characteristic is obtained, the equipment type corresponding to the data characteristic is searched according to the characteristic value, and the characteristic data is matched through the characteristic value calculated by the CRC, so that the matching efficiency is higher.
In yet another embodiment, as shown in fig. 4, on the basis of the embodiment shown in any one of fig. 2 to 3, step S30 includes:
step S31, obtaining the network address of the terminal equipment according to the network data;
in the present embodiment, when device identification information is generated according to the device type, the network address of the terminal device is acquired according to the network data. Since the network data is sent by the terminal device, the data packet of the network data can obtain the identity information such as the IP address of the terminal device, and the identity information is used for distinguishing different terminal devices.
And step S32, generating the equipment identification information according to the network address and the equipment type.
In this embodiment, after the network address is acquired, the device identification information is generated according to the network address and the device type. The device identification information includes information such as network address and device type for the user to make statistics of the device asset.
Alternatively, when the device identification information is generated according to the network address and the device type, whether pre-stored device identification information matched with the network address exists in a device information database or not may be detected, wherein a plurality of pre-stored device identification information is pre-stored in the device information database. When the pre-stored network address in the pre-stored equipment identification information is consistent with the network address, the pre-stored equipment identification information is judged to be matched with the network address, and the information of the equipment is stored in an equipment information database. When the pre-stored network address in the pre-stored equipment identification information is inconsistent with the network address, the pre-stored equipment identification information is not matched with the network address, the information of the equipment is not stored in the equipment information database,
alternatively, when there is no pre-stored device identification information matching the network address, new device identification information needs to be generated and added to the device information database. When the pre-stored equipment identification information matched with the network address exists, the pre-stored equipment identification information needs to be updated, and the updated pre-stored equipment identification information is used as equipment identification information.
Optionally, when generating the new device identification information, the current time point is acquired, and the new device identification information is generated according to the network address, the device type and the current time point. Wherein the current time point is taken as a creation time point and an update time point in the device identification information.
Optionally, when updating the pre-stored equipment identification information, updating the updating time point in the pre-stored equipment identification information according to the current time point, and updating the equipment type in the pre-stored equipment identification information according to the equipment type, so as to realize updating of the equipment information.
In the technical scheme disclosed in the embodiment, the network address corresponding to the terminal equipment is acquired according to the network data, and the equipment identification information is generated according to the network address and the equipment type, so that the purposes of identifying the terminal equipment in the equipment asset and generating the corresponding equipment information are realized, and the follow-up statistics of the equipment asset by a user is facilitated.
In yet another embodiment, as shown in fig. 5, after step S30, on the basis of the embodiment shown in any one of fig. 2 to fig. 4, the method further includes:
step S40, obtaining an updating time point corresponding to the equipment identification information;
and S50, deleting the equipment identification information when the time interval between the updated time point and the current time point is larger than a preset interval.
In the present embodiment, after the device identification information corresponding to the terminal device is generated, the update time points corresponding to the respective device identification information in the device information database are detected at regular intervals. When the time interval between the updated time point and the current time point is larger than the preset interval, the terminal equipment corresponding to the equipment identification information is indicated to be abandoned or cleaned, and the equipment identification information can be deleted to monitor equipment assets.
Optionally, the device identification information is stored in the device information database, and the device identification apparatus may continuously acquire data of the device information database, and display the acquired device identification information on a front-end interface of the device identification apparatus, so as to allow a user to view and count.
Optionally, after the device identification information corresponding to the terminal device is generated, the device identification information is stored in a structure. A structure is a collection of data that is made up of a series of data of the same type or different types. By storing the device identification information by way of the structure, the operation can be simplified, facilitating subsequent searching of the device identification information, for example, the content of a single structure may include: device network address, device type, creation time point, update time point. In addition, the plurality of device identification information can also form a structure body linked list, and the subsequent searching and deleting of the data in the structure body linked list is more flexible and convenient. The structure body linked list is composed of a head pointer variable and a plurality of nodes, and each node is device identification information stored in a structure body mode.
In the technical scheme disclosed in the embodiment, an update time point corresponding to the equipment identification information is acquired, and when the time interval between the update time point and the current time point is greater than a preset interval, the equipment identification information is deleted, so that the equipment identification information is cleaned regularly, and the equipment asset is updated regularly.
In addition, the embodiment of the invention also provides a device for identifying the terminal equipment, which comprises:
the receiving module is used for acquiring data characteristics corresponding to the network data when the network data sent by the terminal equipment are received, wherein the data characteristics comprise application types and/or application names corresponding to application programs for sending the network data;
the acquisition module is used for acquiring the equipment type corresponding to the data characteristic;
and the generation module generates equipment identification information according to the equipment type.
According to the method and the device, the corresponding device type is obtained through the network data sent by the terminal device, and then the device identification information is generated according to the device type, so that the purpose of identifying the terminal device is achieved, the device is not required to be actively scanned and actively identified, but is passively identified according to the access flow sent by the terminal device, the problem that the response of the terminal device cannot be obtained is avoided, and the accuracy of device identification is improved.
In addition, the embodiment of the invention also provides a device for identifying the terminal equipment, which comprises: the terminal equipment identification device comprises a memory, a processor and a terminal equipment identification program which is stored in the memory and can run on the processor, wherein the terminal equipment identification program realizes the steps of the terminal equipment identification method according to the various embodiments when being executed by the processor.
Furthermore, the embodiments of the present invention also propose a computer-readable storage medium, on which an identification program of a terminal device is stored, which when executed by a processor implements the steps of the identification method of a terminal device as described in the above embodiments.
It should be noted that, in this document, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A method for identifying a terminal device, the method comprising the steps of:
when network data sent by terminal equipment are received, data characteristics corresponding to the network data are obtained, wherein the data characteristics comprise application types and/or application names corresponding to application programs for sending the network data;
performing cyclic redundancy check on the application type to obtain a first check value;
performing cyclic redundancy check on the application name to obtain a second check value;
performing cyclic redundancy check on the first check value and the second check value to obtain a third check value;
taking the third check value as a characteristic value corresponding to the data characteristic;
obtaining a pre-stored characteristic value matched with the characteristic value;
acquiring a pre-stored equipment type associated with the matched pre-stored characteristic value;
taking the obtained pre-stored equipment type as the equipment type corresponding to the characteristic value;
and generating equipment identification information according to the equipment type.
2. The method for identifying a terminal device according to claim 1, wherein the step of acquiring a pre-stored characteristic value that matches the characteristic value comprises:
obtaining a hash address corresponding to the characteristic value;
and acquiring the pre-stored characteristic value according to the hash address.
3. The method for identifying a terminal device according to claim 1, wherein the step of generating device identification information according to the device type comprises:
acquiring a network address of the terminal equipment according to the network data;
and generating the equipment identification information according to the network address and the equipment type.
4. The method of identifying a terminal device according to claim 3, wherein the step of generating the device identification information from the network address and the device type comprises:
and when the pre-stored equipment identification information matched with the network address does not exist in the equipment information database, generating the equipment identification information according to the network address, the equipment type and the current time point.
5. The method of identifying a terminal device according to claim 4, wherein the step of generating the device identification information from the network address and the device type further comprises:
when the pre-stored equipment identification information matched with the network address exists in the equipment information database, updating an updating time point corresponding to the pre-stored equipment identification information according to the current time point, and updating the equipment type corresponding to the pre-stored equipment identification information according to the equipment type;
and taking the updated pre-stored equipment identification information as the equipment identification information.
6. The method for identifying a terminal device according to claim 1, further comprising, after the step of generating device identification information from the device type:
acquiring an update time point corresponding to the equipment identification information;
and deleting the equipment identification information when the time interval between the updated time point and the current time point is larger than a preset interval.
7. The method for identifying a terminal device according to claim 1, further comprising, after the step of generating device identification information from the device type:
and storing the equipment identification information in a structural mode, wherein a plurality of pieces of equipment identification information form a structural body linked list.
8. An identification device of a terminal device, characterized in that the identification device of a terminal device comprises:
the receiving module is used for acquiring data characteristics corresponding to the network data when the network data sent by the terminal equipment are received, wherein the data characteristics comprise application types and/or application names corresponding to application programs for sending the network data;
the acquisition module is used for carrying out cyclic redundancy check on the application type to obtain a first check value; performing cyclic redundancy check on the application name to obtain a second check value; performing cyclic redundancy check on the first check value and the second check value to obtain a third check value; taking the third check value as a characteristic value corresponding to the data characteristic; obtaining a pre-stored characteristic value matched with the characteristic value; acquiring a pre-stored equipment type associated with the matched pre-stored characteristic value; taking the obtained pre-stored equipment type as the equipment type corresponding to the characteristic value;
and the generation module generates equipment identification information according to the equipment type.
9. An identification device of a terminal device, characterized in that the identification device of a terminal device comprises: memory, a processor and a terminal device identification program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the terminal device identification method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an identification program of a terminal device, which when executed by a processor, implements the steps of the identification method of a terminal device according to any one of claims 1 to 7.
CN202010150466.5A 2020-03-05 2020-03-05 Terminal equipment identification method, device and computer readable storage medium Active CN111385360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010150466.5A CN111385360B (en) 2020-03-05 2020-03-05 Terminal equipment identification method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010150466.5A CN111385360B (en) 2020-03-05 2020-03-05 Terminal equipment identification method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111385360A CN111385360A (en) 2020-07-07
CN111385360B true CN111385360B (en) 2023-09-05

Family

ID=71221397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010150466.5A Active CN111385360B (en) 2020-03-05 2020-03-05 Terminal equipment identification method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111385360B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112507087B (en) * 2020-12-21 2022-11-04 苏州三六零智能安全科技有限公司 Terminal equipment identification method, equipment, storage medium and device
CN113762975A (en) * 2021-08-11 2021-12-07 上海市信息网络有限公司 Flow fingerprint-based identity recognition method, system, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2854378A1 (en) * 2013-09-29 2015-04-01 Xiaomi Inc. Method, device and network equipment for acquiring feature information
CN104503862A (en) * 2014-12-09 2015-04-08 北京奇虎科技有限公司 Method and device for obtaining check value of application channel package
CN105867899A (en) * 2015-12-10 2016-08-17 乐视致新电子科技(天津)有限公司 Method and device for identifying device
CN106570363A (en) * 2016-10-26 2017-04-19 中国银联股份有限公司 Verification code generation and calibration method
CN106886371A (en) * 2017-02-15 2017-06-23 中国保险信息技术管理有限责任公司 caching data processing method and device
CN109067762A (en) * 2018-08-29 2018-12-21 深信服科技股份有限公司 A kind of recognition methods of internet of things equipment, device and equipment
CN109995866A (en) * 2019-04-03 2019-07-09 深圳市网心科技有限公司 Distributed document method of calibration, device, computer installation and storage medium
CN110336896A (en) * 2019-07-17 2019-10-15 山东中网云安智能科技有限公司 A kind of lan device kind identification method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9916310B2 (en) * 2015-06-24 2018-03-13 Oracle International Corporation Data storage system with fixity end-to-end data protection during data archiving
CN109492436A (en) * 2018-11-29 2019-03-19 深圳市网心科技有限公司 A kind of file verification method and relevant apparatus

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2854378A1 (en) * 2013-09-29 2015-04-01 Xiaomi Inc. Method, device and network equipment for acquiring feature information
CN104503862A (en) * 2014-12-09 2015-04-08 北京奇虎科技有限公司 Method and device for obtaining check value of application channel package
CN105867899A (en) * 2015-12-10 2016-08-17 乐视致新电子科技(天津)有限公司 Method and device for identifying device
CN106570363A (en) * 2016-10-26 2017-04-19 中国银联股份有限公司 Verification code generation and calibration method
CN106886371A (en) * 2017-02-15 2017-06-23 中国保险信息技术管理有限责任公司 caching data processing method and device
CN109067762A (en) * 2018-08-29 2018-12-21 深信服科技股份有限公司 A kind of recognition methods of internet of things equipment, device and equipment
CN109995866A (en) * 2019-04-03 2019-07-09 深圳市网心科技有限公司 Distributed document method of calibration, device, computer installation and storage medium
CN110336896A (en) * 2019-07-17 2019-10-15 山东中网云安智能科技有限公司 A kind of lan device kind identification method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
H3C无线智能终端识别技术助力高校网络安全;戴爽;《中国教育信息化》;全文 *

Also Published As

Publication number Publication date
CN111385360A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
CN106294614B (en) Method and apparatus for accessing business
CN109309657B (en) Unauthorized access point detection system and method, user terminal used for same, and computer program
US10594677B2 (en) System and method for automatic service discovery and protection
CN109492019B (en) Service request response method, device, computer equipment and storage medium
EP3178011B1 (en) Method and system for facilitating terminal identifiers
JP4456554B2 (en) Data compression method and compressed data transmission method
US8838679B2 (en) Providing state service for online application users
CN109729183B (en) Request processing method, device, equipment and storage medium
CN109327395B (en) Message processing method and device
JP2015508543A (en) Processing store visit data
US9106688B2 (en) System, method and computer program product for sending information extracted from a potentially unwanted data sample to generate a signature
CN111385360B (en) Terminal equipment identification method, device and computer readable storage medium
CN110768875A (en) Application identification method and system based on DNS learning
CN108683668A (en) Resource checksum method, apparatus, storage medium and equipment in content distributing network
CN111597490A (en) Web fingerprint identification method, device, equipment and computer storage medium
CN107592299B (en) Proxy internet access identification method, computer device and computer readable storage medium
CN113849820A (en) Vulnerability detection method and device
CN108764369B (en) Figure identification method and device based on data fusion and computer storage medium
CN113079157A (en) Method and device for acquiring network attacker position and electronic equipment
CN108667768B (en) Network application fingerprint identification method and device
CN108173889A (en) User data processing method and user data processing unit
CN108600255B (en) Mock service management method, device, computer equipment and storage medium
CN104184773A (en) Data download method and system
CN115865457A (en) Network attack behavior identification method, server and medium
CN110944037B (en) Method, computer device and storage medium for client cache change configuration

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