A terminal device type identification method and system, electronic device and storage medium
By combining the MAC address library, device trajectory information and name database, the trust value is calculated and the weight is allocated, which solves the problems of low device identification accuracy and insufficient performance in the existing technology, achieves more efficient terminal device type identification, and ensures improve network security and management efficiency.
Patent Information
- Application Number
- CN202410986778.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-23
AI Technical Summary
Existing device identification technology has problems such as low identification accuracy, vulnerability to camouflage, and insufficient performance. It is particularly difficult to meet the needs in large-scale network environments.
By combining the MAC address library, device trajectory information and device name database, use packet capture instructions to obtain broadcast data packets, analyze trajectory information and name information, calculate trust values and assign weights, and use predefined type calculation formulas to identify terminal device types. .
It improves the accuracy and efficiency of device type identification, solves the problem of identification failure caused by static information camouflage, and ensures network security and management efficiency.
Smart Images

Figure CN118524397B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer information technology, and in particular to a method and system for identifying the type of a terminal device, an electronic device, and a storage medium. Background Art
[0002] In today's information technology field, device identification technology plays a vital role. With the rapid development of the Internet of Things (IoT) and the increasing importance of network security, accurate and efficient identification of device types has become an important means to ensure network security and manage network resources. However, although existing device identification technologies have made progress to a certain extent, they still face a series of challenges and limitations. First, current device identification technologies often rely on a single identification method, such as identification methods based on network protocols, device fingerprints, or traffic characteristics. These methods have their own advantages and disadvantages, but none of them can cover all scenarios, which can easily lead to low identification accuracy or missed identification. For example, identification methods based on network protocols may be affected by protocol spoofing attacks, and identification methods based on device fingerprints are easily affected by device disguises, resulting in unreliable identification results. Second, existing device identification technologies often rely too much on static features of devices. For example, identification methods may only be based on static information such as the device's MAC address and operating system version for identification, which makes the system vulnerable to device disguises or feature changes, resulting in reduced identification accuracy. In addition, some identification methods may also rely on information such as device models and manufacturers, which limits the ability to identify new or customized devices. In addition, existing device identification technologies also have certain deficiencies in performance and efficiency. Some identification methods may increase the system's computational burden or network latency, affecting the system's overall performance and user experience. In addition, with the continuous expansion of network scale and the rapid increase in the number of devices, traditional device identification methods often cannot meet the needs of large-scale network environments, resulting in low identification efficiency. Summary of the invention
[0003] In view of the above problems, the present invention provides a method and system for identifying the type of a terminal device, an electronic device, and a storage medium, in order to solve at least one of the above problems.
[0004] According to a first aspect of the present invention, there is provided a method for identifying a type of a terminal device, comprising:
[0005] Based on the authorization of the target terminal device, the broadcast data packet returned by the target terminal device is obtained by sending a packet capture instruction to the target terminal device, and the broadcast data packet including the MAC information is analyzed using the MAC address library to obtain the trust value based on the MAC information;
[0006] Based on the authorization of the target terminal device, the track information of the target terminal device within a preset time range is obtained by setting a device track list, and the track information is used to calculate the trust value based on the track information;
[0007] Based on the authorization of the target terminal device, the name information of the target terminal device is obtained by building a device name database, and a trust value based on the name information is calculated;
[0008] Weights are assigned to the trust value based on MAC information, the trust value based on trajectory information, and the trust value based on name information, and the type of the target terminal device is identified using a predefined type calculation formula and the assigned weights.
[0009] According to an embodiment of the present invention, based on the authorization of the target terminal device, the broadcast data packet returned by the target terminal device is obtained by sending a packet capture instruction to the target terminal device, and the broadcast data packet including the MAC information is analyzed by using the MAC address library, and the trust value based on the MAC information is obtained, including:
[0010] Based on the authorization of the target terminal device, a packet capture instruction is sent to the target terminal device, so that the target terminal device captures the broadcast data packet matching the packet capture instruction, and obtains a message containing MAC address information based on the broadcast data packet;
[0011] The MAC address library is used as a data source, and semantic analysis is performed on broadcast data packets including MAC information. The trust value based on the MAC information is obtained using the semantic analysis results.
[0012] According to an embodiment of the present invention, based on the authorization of the target terminal device, obtaining the trajectory information of the target terminal device within a preset time range by setting a device trajectory list, and calculating the trust value based on the trajectory information using the trajectory information includes:
[0013] Within a preset time range, the device trajectory list sent by the target terminal device is analyzed to obtain the coordinate positioning information of the target terminal device;
[0014] Based on the coordinate positioning information, the trajectory duration of the target terminal device in the same area is integrated to obtain the presence duration of the target terminal device in different areas;
[0015] The trust value based on trajectory information is calculated using the trust calculation method based on trajectory information and the presence duration of the target terminal device in different areas.
[0016] According to an embodiment of the present invention, the above-mentioned trust calculation method based on trajectory information is shown in formula (1):
[0017] (1),
[0018] in, Indicates the maximum time that the target terminal device stays in a specific area within a preset time range. Indicates the total time that the target terminal device is in all areas within the preset time range.
[0019] According to an embodiment of the present invention, based on the authorization of the target terminal device, obtaining the name information of the target terminal device by building a device name database, and calculating the trust value based on the name information includes:
[0020] Based on the authorization of the target terminal device, obtain the name information of the target terminal device through a predefined query instruction;
[0021] Build a device name database based on the Key-Value mapping mode, and use the device name database to match the acquired name information;
[0022] In case the name information successfully matches the device name database, a trust value based on the name information is obtained;
[0023] In the case where the name information is not successfully matched with the device name database, the device name database is updated by adding the name information of the target terminal device to the device name database.
[0024] According to an embodiment of the present invention, the above-mentioned weight allocation of the trust value based on MAC information, the trust value based on trajectory information, and the trust value based on name information, and using the predefined type calculation formula and the allocated weight to identify the type of the target terminal device includes:
[0025] The trust value based on MAC information, the trust value based on trajectory information, and the trust value based on name information are calculated with the corresponding weights to obtain a device type value;
[0026] When the device type value is greater than a preset threshold, the target terminal device is identified as a mobile terminal device type;
[0027] When the type value is less than or equal to the preset threshold, the target terminal device is identified as a non-mobile terminal device type.
[0028] According to an embodiment of the present invention, the above-mentioned predefined type calculation formula is shown in formula (2):
[0029] (2),
[0030] in, Indicates different trust values of the target terminal device, Indicates the weights assigned to different trust values of the target terminal device.
[0031] According to a second aspect of the present invention, there is provided a type identification system for a terminal device, comprising:
[0032] The MAC information module is used to obtain the broadcast data packet returned by the target terminal device by sending a packet capture instruction to the target terminal device based on the authorization of the target terminal device, and analyze the broadcast data packet including the MAC information using the MAC address library to obtain the device type result based on the MAC information;
[0033] A track information judgment module is used to obtain the track information of the target terminal device within a preset time range by setting a device track list based on the authorization of the target terminal device, and use the track information to calculate the device type result based on the track information;
[0034] A name information module is used to obtain the name information of the target terminal device by building a device name database based on the authorization of the target terminal device, and calculate the device type result based on the name information;
[0035] The type identification module is used to assign weights to the device type results based on MAC information, the device type results based on trajectory information, and the device type results based on name information, and identify the type of the target terminal device using a predefined type judgment method and the assigned weights.
[0036] According to a third aspect of the present invention, there is provided an electronic device, comprising:
[0037] one or more processors;
[0038] a storage device for storing one or more programs,
[0039] When one or more programs are executed by one or more processors, the one or more processors execute the type identification method of the terminal device.
[0040] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute a method for identifying the type of a terminal device.
[0041] The type identification method of the above-mentioned terminal device provided by the present invention combines the device's trajectory information and device name database as auxiliary means on the basis of the existing MAC address library identification, further improves the accuracy and efficiency of device type identification, and solves the problem of terminal device type identification failure caused by static information masquerading, thereby ensuring network security and improving management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The above contents and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0043] Figure 1 is a flow chart of a method for identifying a type of a terminal device according to an embodiment of the present invention;
[0044] Figure 2 is an architecture diagram of a terminal device type identification method according to an embodiment of the present invention;
[0045] Figure 3 It is a specific scenario diagram of the type identification method of the terminal device provided by the present invention;
[0046] Figure 4 is a schematic diagram of a type identification system for a terminal device according to an embodiment of the present invention;
[0047] Figure 5 A block diagram of an electronic device suitable for implementing a method for identifying the type of a terminal device according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION
[0048] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.
[0049] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0050] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0051] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0052] In the technical solution of the present invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0053] Although the existing device identification technology has improved the ability of network management and security monitoring to a certain extent, it still faces many challenges and limitations. Therefore, the present invention provides a device identification method that integrates multiple identification methods and has high accuracy and high efficiency to cope with the increasingly complex and diverse network environment, ensure network security and improve management efficiency.
[0054] It should be particularly noted that the identification of the target terminal device in the present invention is authorized by the target terminal device or the owner of the terminal device, and with the authorization of the relevant parties, the relevant information of the target terminal device is processed legally and compliantly, and necessary and reliable confidentiality measures are taken in the relevant process.
[0055] Figure 1 is a flow chart of a method for identifying the type of a terminal device according to an embodiment of the present invention.
[0056] like Figure 1 As shown, the above-mentioned method for identifying the type of terminal equipment includes operations S110 to S140.
[0057] In operation S110, based on the authorization of the target terminal device, a packet capture instruction is sent to the target terminal device to obtain the broadcast data packet returned by the target terminal device, and the broadcast data packet including the MAC information is analyzed using the MAC address library to obtain a trust value based on the MAC information.
[0058] In operation S120, based on the authorization of the target terminal device, the track information of the target terminal device within a preset time range is obtained by setting a device track list, and the track information is used to calculate a trust value based on the track information.
[0059] In operation S130, based on the authorization of the target terminal device, the name information of the target terminal device is acquired by constructing a device name database, and a trust value based on the name information is calculated.
[0060] In operation S140, weights are assigned to the trust value based on the MAC information, the trust value based on the track information, and the trust value based on the name information, and the type of the target terminal device is identified using a predefined type calculation formula and the assigned weights.
[0061] The type identification method of the above-mentioned terminal device provided by the present invention combines the device's trajectory information and device name database as auxiliary means on the basis of the existing MAC address library identification, further improves the accuracy and efficiency of device type identification, and solves the problem of terminal device type identification failure caused by static information masquerading, thereby ensuring network security and improving management efficiency.
[0062] According to an embodiment of the present invention, the above-mentioned method based on the authorization of the target terminal device, obtaining the broadcast data packet returned by the target terminal device by sending a packet capture instruction to the target terminal device, and analyzing the broadcast data packet including MAC information using the MAC address library to obtain the trust value based on the MAC information includes: based on the authorization of the target terminal device, sending a packet capture instruction to the target terminal device so that the target terminal device captures the broadcast data packet matching the packet capture instruction, and obtains a message including MAC address information based on the broadcast data packet; using the MAC address library as a data source, performing semantic analysis on the broadcast data packet including MAC information, and using the semantic analysis result to obtain the trust value based on the MAC information.
[0063] The process of the trust value based on MAC information is further described in detail below in conjunction with specific embodiments.
[0064] Get the MAC address of the terminal and use the static MAC address of the device as the basis for preliminary judgment. The principle is as follows: The common 48-bit MAC address is actually specified by IEEE (Institute of Electrical and Electronics Engineers). The original official name is EUI-48 (48 Bits Extended Unique Identifiers). EUI-48 contains OUI (Organizationally Unique Identifier), which is a unique identifier managed by IEEE and assigned to related hardware manufacturers. By identifying this part, the manufacturer of the device can be determined. Combined with the MAC address library provided by IEEE as the data source, the MAC information is analyzed.
[0065] According to an embodiment of the present invention, the above-mentioned authorization based on the target terminal device, obtaining the trajectory information of the target terminal device within a preset time range by setting a device trajectory list, and using the trajectory information to calculate the trust value based on the trajectory information includes: within the preset time range, analyzing the device trajectory list sent by the target terminal device to obtain the coordinate positioning information of the target terminal device; based on the coordinate positioning information, integrating the trajectory duration of the target terminal device in the same area to obtain the presence duration of the target terminal device in different areas; and calculating the trust value based on the trajectory information using the trust calculation method based on the trajectory information and the presence duration of the target terminal device in different areas.
[0066] According to an embodiment of the present invention, the above-mentioned trust calculation method based on trajectory information is shown in formula (1):
[0067] (1),
[0068] in, Indicates the maximum time that the target terminal device stays in a specific area within a preset time range. Indicates the total time that the target terminal device is in all areas within the preset time range.
[0069] The process of obtaining the trustworthiness based on the trajectory information is further described in detail below with reference to specific embodiments.
[0070] The trajectory results are obtained in list form: [{startTime: ,endTime: ,Location area: },{startTime: ,endTime: ,Location area: }, ].
[0071] For each device, obtain the location track of the device within 30 days of the specified time, and integrate the track duration of all the same areas to obtain the existence time of the device in different areas. The existence time result is in the form of a list: [{timeRange: ,Location area: },{timeRange: ,Location area: }, ].
[0072] Formula (1) is used to determine the type of terminal device. If the index P>0.99, the method determines that the device type is a PC. If the index P<0.99, the method determines that the device type is a mobile device.
[0073] According to an embodiment of the present invention, the above-mentioned method of obtaining the name information of the target terminal device by constructing a device name database based on the authorization of the target terminal device and calculating the trust value based on the name information includes: obtaining the name information of the target terminal device through a predefined query instruction based on the authorization of the target terminal device; constructing a device name database based on a Key-Value mapping mode, and matching the acquired name information with the device name database; obtaining a trust value based on the name information when the name information successfully matches the device name database; and updating the device name database by adding the name information of the target terminal device to the device name database when the name information fails to successfully match the device name database.
[0074] The process of obtaining the trust value based on the name information is further described in detail below through a specific embodiment.
[0075] Get device name information: Get the device name information by connecting to the device. Prepare a device name database whose content is based on the key-value mapping mode, that is, a device name is mapped to the device type of the device. Match and analyze the acquired device name with the information in the device name database. Based on the matching result, give the type of the device for this solution. If it does not exist, give the reason and prompt to update the device name database. Update the device name database: Based on the newly acquired and analyzed device name information, the device name database is regularly updated and maintained to ensure the real-time and accuracy of the database information. By using the device name for type analysis, the device type determination process is simplified, and the accuracy and efficiency of the determination are improved. At the same time, the continuously updated device name database can also provide more accurate device type information, enabling device users or managers to more accurately understand the characteristics of the device and improve the efficiency of device use and maintenance quality.
[0076] According to an embodiment of the present invention, the above-mentioned weight allocation of the trust value based on MAC information, the trust value based on trajectory information and the trust value based on name information, and the use of a predefined type calculation formula and the allocated weight to identify the type of the target terminal device includes: calculating the trust value based on MAC information, the trust value based on trajectory information and the trust value based on name information with the corresponding weights to obtain a device type value; when the device type value is greater than a preset threshold, identifying the target terminal device as a mobile terminal device type; when the type value is less than or equal to the preset threshold, identifying the target terminal device as a non-mobile terminal device type.
[0077] According to an embodiment of the present invention, the above-mentioned predefined type calculation formula is shown in formula (2):
[0078] (2),
[0079] in, Indicates different trust values of the target terminal device, Indicates the weights assigned to different trust values of the target terminal device.
[0080] The process of identifying the type of the target terminal device is further described in detail below through a specific embodiment.
[0081] The present invention assigns scoring weights and trust to three methods of device type, namely, MAC address library analysis, trajectory analysis, and device name analysis. Each method can obtain the results of its analysis, and the fault tolerance and accuracy of the fusion of multiple methods are improved through scoring weights and trust. The three methods of device type analyze the mobility of the device based on their own judgment results and their own scoring weights. The judgment formula is shown in formula (2), where: The current method determines the mobility of the device. If the type of determination is mobility, then is 1 if yes, otherwise -1. is the weight assigned to the current mode. mobility>0 is considered a mobile device, and mobility<0 is considered a non-mobile device.
[0082] The three types of device types are based on their own judgment results and their own trustworthiness, and the analysis type of the device is refined. Based on the analyzed mobility of the device, the type of device is refined based on the judgment method with higher trustworthiness among the judgment methods given.
[0083] The following is a detailed experiment and attached Figure 2~3 The type identification method of the terminal device provided by the present invention is further described in detail.
[0084] Figure 2 4 is an architecture diagram of a terminal device type identification method according to an embodiment of the present invention.
[0085] Figure 3 It is a specific scenario diagram of the type identification method of the terminal device provided by the present invention.
[0086] like Figure 2 As shown, the above-mentioned terminal device type identification method architecture has three modules, namely, a MAC-based module, a track information-based module, and a device name-based module.
[0087] Among them, based on the MAC address library, the type of each terminal device is determined as follows: take the first 24 bits of the MAC address (corresponding to the commonly used hexadecimal representation of the bar, which is the first three groups of 6 hexadecimal characters, such as AABBCC of AA-BB-CC-DD-EE-FF) and match them exactly with the assignment field of the database.
[0088] If the organization_name field of the matching result is IEEE Registration Authority, proceed to the next step; otherwise, return the current matching result directly. Take the first 28 bits of the MAC address (corresponding to the first three groups of 7 hexadecimal characters in the commonly used hexadecimal notation, such as AABBCCD of AA-BB-CC-DD-EE-FF) and match them exactly with the assignment field of the database. If the organization_name field of the matching result is IEEE Registration Authority, proceed to the next step; otherwise, return the current matching result directly. Take the first 36 bits of the MAC address (corresponding to the first three groups of 7 hexadecimal characters in the commonly used hexadecimal notation, such as AABBCCD of AA-BB-CC-DD-EE-FF) and match them exactly with the assignment field of the database. Based on the MAC address library, most terminals can be matched with the terminal network card manufacturers according to their MAC addresses, such as "Intel Corporate", "HP Inc", "vivo Mobile Communications Co Ltd", etc., which can intuitively divide the device types into PC and mobile terminals based on the names of these manufacturers. However, there are still most manufacturers with names such as "apple inc", "Shenzhen Gooxi Information Security CO., Ltd.", etc., where the network card is used for both PC and mobile terminals or the manufacturer is an agent production. It is difficult to further use the MAC address library to determine the device type. Therefore, only semantic analysis is performed here for the identifiable device network card manufacturers, and preliminary device type analysis is performed based on semantic recognition based on regular expression matching, such as "Intel Corporate", "HP Inc" for PC terminals, "MobileCo Ltd", "Communication Co Ltd", etc. for mobile terminals.
[0089] Among them, the track information of the device within a week is sorted out, such as Figure 3 The scenario shown:
[0090] [{startTime:2024-02-27 00:00:00,endTime:2024-02-27 00:00:18,location area:6th floor-603},
[0091] {startTime:2024-02-27 00:00:30,endTime:2024-02-27 08:26:12,location area:6th floor-601},
[0092] {startTime:2024-02-23 00:00:06,endTime:2024-02-23 17:45:03,location area:6th floor-601},
[0093] {startTime:2024-02-22 00:00:21,endTime:2024-02-22 23:59:57,location area:6th floor-601},
[0094] {startTime:2024-02-21 10:33:30,endTime:2024-02-21 23:59:12,location area:6th floor-601},].
[0095] According to the formula, the index p>0.99, which means that the device is a PC. In the actual scenario, it is a Mac PC device in room 601.
[0096] Among them, by obtaining the device name and the device database, the device type is analyzed. Taking a computer with a device name of desktop as an example, the result of this solution is PC through the "desktop->PC end" mapping in the device database.
[0097] Among them, the mobility analysis of the device is performed based on the scoring authority of the three methods. Here, the scoring weight is: the scoring weight based on the MAC address library analysis is set to 2, the scoring weight based on the device name analysis is set to 3, and the scoring weight based on the trajectory analysis is set to 4. Through the judgment results of the three methods on the device and the calculation formula of the device mobility, it can be known that mobility = -9, that is, the device does not have mobility. The device type is analyzed by a method with a higher degree of trust. Here, the method with the highest degree of trust that is judged as non-mobile is selected. Here, all three methods are judged as non-mobile, so the device name with the highest degree of trust is used to analyze and refine the device type, and finally it is concluded that the device is a PC.
[0098] Figure 4 is a schematic diagram of a type identification system for a terminal device according to an embodiment of the present invention.
[0099] like Figure 4 As shown, the type identification system 400 of the terminal device includes a MAC information module 410 , a track information determination module 420 , a name information module 430 and a type identification module 440 .
[0100] The MAC information module 410 is used to obtain the broadcast data packet returned by the target terminal device by sending a packet capture instruction to the target terminal device based on the authorization of the target terminal device, and use the MAC address library to analyze the broadcast data packet including the MAC information to obtain the device type result based on the MAC information.
[0101] The track information determination module 420 is used to obtain the track information of the target terminal device within a preset time range by setting a device track list based on the authorization of the target terminal device, and calculate the device type result based on the track information using the track information.
[0102] The name information module 430 is used to obtain the name information of the target terminal device by building a device name database based on the authorization of the target terminal device, and calculate the device type result based on the name information.
[0103] The type identification module 440 is used to assign weights to the device type results based on MAC information, the device type results based on track information, and the device type results based on name information, and identify the type of the target terminal device using a predefined type judgment method and the assigned weights.
[0104] Figure 5 A block diagram of an electronic device suitable for implementing a method for identifying the type of a terminal device according to an embodiment of the present invention is schematically shown.
[0105] like Figure 5 As shown, the electronic device 500 according to an embodiment of the present invention includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 to a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.
[0106] In RAM 503, various programs and data required for the operation of electronic device 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present invention by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present invention by executing the program stored in one or more memories.
[0107] According to an embodiment of the present invention, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The electronic device 500 may further include one or more of the following components connected to the input / output (I / O) interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output (I / O) interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that the computer program read therefrom is installed into the storage portion 508 as needed.
[0108] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.
[0109] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present invention, the computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.
[0110] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0111] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present invention may be combined and / or combined in various ways, even if such combinations and / or combinations are not explicitly described in the present invention. In particular, the features described in the various embodiments and / or claims of the present invention may be combined and / or combined in various ways without departing from the spirit and teachings of the present invention. All of these combinations and / or combinations fall within the scope of the present invention.
[0112] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination. The scope of the present invention is defined by the appended claims and their equivalents. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.
Claims
1. A method for identifying the type of a terminal device, characterized in that: include: Based on the authorization of the target terminal device, a packet capture instruction is sent to the target terminal device to obtain the broadcast data packet returned by the target terminal device, and the broadcast data packet including the MAC information is analyzed by using the MAC address library to obtain a trust value based on the MAC information; Based on the authorization of the target terminal device, obtaining the track information of the target terminal device within a preset time range by setting a device track list, and using the track information to calculate a trust value based on the track information; Based on the authorization of the target terminal device, obtaining the name information of the target terminal device by building a device name database, and calculating a trust value based on the name information; Assigning weights to the trust value based on the MAC information, the trust value based on the track information, and the trust value based on the name information, and identifying the type of the target terminal device using a predefined type calculation formula and the assigned weights; The step of weighting the trust value based on the MAC information, the trust value based on the track information, and the trust value based on the name information, and identifying the type of the target terminal device using a predefined type calculation formula and the assigned weights includes: The trust value based on the MAC information, the trust value based on the track information, and the trust value based on the name information are calculated with corresponding weights to obtain a device type value; When the device type value is greater than a preset threshold, identifying the target terminal device as a mobile terminal device type; When the type value is less than or equal to the preset threshold, the target terminal device is identified as a non-mobile terminal device type.
2. The method according to claim 1, characterized in that Based on the authorization of the target terminal device, a packet capture instruction is sent to the target terminal device to obtain the broadcast data packet returned by the target terminal device, and the broadcast data packet including the MAC information is analyzed using the MAC address library to obtain the trust value based on the MAC information, including: Based on the authorization of the target terminal device, a packet capture instruction is sent to the target terminal device, so that the target terminal device captures a broadcast data packet matching the packet capture instruction, and obtains a message containing MAC address information based on the broadcast data packet; The MAC address library is used as a data source, a semantic analysis is performed on the broadcast data packet including the MAC information, and the trust value based on the MAC information is obtained using the semantic analysis result.
3. The method according to claim 1, characterized in that Based on the authorization of the target terminal device, obtaining the track information of the target terminal device within a preset time range by setting a device track list, and using the track information to calculate a trust value based on the track information includes: Within the preset time range, analyzing the device trajectory list sent by the target terminal device to obtain the coordinate positioning information of the target terminal device; Based on the coordinate positioning information, the track duration of the target terminal device in the same area is integrated to obtain the presence duration of the target terminal device in different areas; The trust value based on the trajectory information is calculated using the trust calculation method based on the trajectory information and the existence time of the target terminal device in different areas.
4. The method according to claim 3, characterized in that The trust calculation method based on trajectory information is shown in formula (1): (1), in, Indicates the maximum time that the target terminal device is in a specific area within the preset time range, Indicates the total time that the target terminal device is in all areas within the preset time range.
5. The method according to claim 1, characterized in that Based on the authorization of the target terminal device, obtaining the name information of the target terminal device by constructing a device name database, and calculating the trust value based on the name information includes: Based on the authorization of the target terminal device, obtaining the name information of the target terminal device through a predefined query instruction; Building a device name database based on the Key-Value mapping mode, and using the device name database to match the acquired name information; In the case where the name information successfully matches the device name database, obtaining the trust value based on the name information; In the case that the name information is not successfully matched with the device name database, the device name database is updated by adding the name information of the target terminal device to the device name database.
6. The method according to claim 1, characterized in that The predefined type calculation formula is shown in formula (2): (2), in, represents different trust values of the target terminal device, Indicates the weights assigned to different trust values of the target terminal device.
7. A terminal device type identification system, characterized in that: include: A MAC information module is used to obtain a broadcast data packet returned by the target terminal device by sending a packet capture instruction to the target terminal device based on the authorization of the target terminal device, and analyze the broadcast data packet including the MAC information using the MAC address library to obtain a device type result based on the MAC information; A track information judgment module, used to obtain the track information of the target terminal device within a preset time range by setting a device track list based on the authorization of the target terminal device, and calculate a device type result based on the track information using the track information; A name information module, used to obtain the name information of the target terminal device by building a device name database based on the authorization of the target terminal device, and calculate a device type result based on the name information; A type identification module, used to assign weights to the device type result based on the MAC information, the device type result based on the track information, and the device type result based on the name information, and identify the type of the target terminal device using a predefined type determination method and the assigned weights; The step of weighting the trust value based on the MAC information, the trust value based on the track information, and the trust value based on the name information, and identifying the type of the target terminal device using a predefined type calculation formula and the assigned weights includes: The trust value based on the MAC information, the trust value based on the track information, and the trust value based on the name information are calculated with corresponding weights to obtain a device type value; When the device type value is greater than a preset threshold, identifying the target terminal device as a mobile terminal device type; When the type value is less than or equal to the preset threshold, the target terminal device is identified as a non-mobile terminal device type.
8. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 6.
