Asset Partitioning Method Based on Similarity of IP Address and MAC Address

By obtaining the IP address and MAC address of the device, generating fingerprints and making group judgments, fixed assets that cannot be identified through scanning are identified, solving the problem of asset identification under firewall shielding and realizing supplementary identification of difficult-to-identify assets.

CN111970141BActive Publication Date: 2024-09-06ZHEJIANG YUANWANG INFORMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010618003.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-30
Publication Date
2024-09-06
Estimated Expiration
2040-06-30

AI Technical Summary

Technical Problem

Existing technology is difficult to identify fixed assets that cannot pass scanning due to opening firewalls and other reasons, and these assets lack obvious IP address and MAC address characteristics.

Method used

Obtain the IP address and MAC address of the device through the switch SNMP protocol, generate fingerprints and obtain device information, group them according to the characteristics of the MAC address and IP address, and determine the device type. If the two types are consistent, they will be marked as a specific type. If they are inconsistent, they will be marked as 'None', thereby identifying and replenishing unrecognized fixed assets.

Benefits of technology

It can identify hardware assets that do not respond to scanning and have no obvious traffic characteristics, solving the problem that fixed assets cannot be identified through scanning and improving the accuracy of fixed asset management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111970141B
    Figure CN111970141B
Patent Text Reader

Abstract

The present invention proposes an asset division method based on the similarity of IP address and MAC address, which includes the following steps in sequence: S1: obtain the IP address and MAC address of the device; S2, obtain device information and identify fixed assets; S3, S4: group the MAC address and IP address in sequence, and judge and record the type characteristics of each group; S5: judge whether there is IP address information and MAC address information in sequence; if yes, jump to S6; otherwise, analyze the next device; S6: judge the type characteristics of the MAC address group and the IP address group; if both type characteristics are not "none", jump to S7; otherwise, analyze the next device; S7: if the type characteristics of the MAC address group and the IP address group are consistent, report the device type and continue to analyze the next unidentified device; otherwise, analyze the next unidentified device. This method can solve the technical problem that the discoverable fixed assets cannot be identified by scanning due to the opening of firewalls.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of office network asset identification methods, and in particular to an asset classification method based on the similarity of IP addresses and MAC addresses. Background Art

[0002] With the rapid development of my country's economy, the scale of fixed assets in schools, enterprises, governments and hospitals has expanded rapidly, and its composition has become increasingly complex, making management more and more difficult. In particular, with the deepening of various reforms in logistics, finance, personnel, distribution and other aspects implemented within schools, enterprises, governments and hospitals, new requirements have been continuously put forward for fixed asset management. However, for many years, fixed asset management has always been a weak link in the management of schools, enterprises, governments and hospitals. The basic management work is not standardized enough, the asset safety control system is not perfect, and the phenomenon of unclear assets, discrepancies between accounts and actual assets, and asset loss still exists in many schools, which is not in line with the new situation of development and reform. In recent years, in order to strengthen the management of fixed assets, some schools, enterprises, governments and hospitals in China have conducted useful explorations, developed management software, and started to use computers to manage various assets and equipment, etc., and have made certain technical progress. But in general, these software often achieve a simple replacement of the original manual labor, and only complete the management of single business and special-purpose assets, and fail to fundamentally change the passive and lagging situation of fixed asset management. In order to solve the above problems, active identification of fixed assets has become a top priority. However, there is a class of devices that do not respond to scans and whose traffic has no obvious characteristics. The asset segmentation method based on the similarity of IP addresses and MAC addresses can be used to improve the results of active identification of fixed assets. Summary of the invention

[0003] The purpose of the present invention is to solve the problems in the prior art and to propose an asset classification method based on the similarity of IP addresses and MAC addresses, which can solve the technical problem that discoverable fixed assets cannot be identified by scanning due to the opening of firewalls, etc.

[0004] To achieve the above object, the present invention proposes an asset division method based on the similarity of IP addresses and MAC addresses, which comprises the following steps in sequence:

[0005] S1. Obtain the IP address and MAC address of the device through the switch SNMP protocol;

[0006] S2. Send a data packet to the device, generate a fingerprint based on the returned data packet, obtain device information through the generated fingerprint, and identify the fixed asset;

[0007] S3. Group the devices according to the MAC address characteristics, determine and record the type characteristics of each group, and if there is no outstanding asset type, mark the characteristic as "none";

[0008] S4. Group the devices according to the IP address characteristics, determine and record the type characteristics of each group, and if it is determined that the device does not have a prominent asset type, mark the characteristic as "none";

[0009] S5, analyze all unidentified devices in turn to determine whether they have IP address information and MAC address information; if yes, jump to S6; otherwise, end the analysis of this device and continue to analyze the next unidentified device;

[0010] S6, query the type characteristics of the MAC address group and the IP address group to which it belongs; if both type characteristics are not "none", jump to S7; otherwise, end the analysis of this device and continue to analyze the next unidentified device;

[0011] S7. Determine whether the type characteristics of the MAC address group and the IP address group are consistent; if the two are consistent, it proves that the unidentified device has this type of characteristics, report the device type and continue to analyze the next unidentified device; if they are inconsistent, end the analysis of this device and continue to the next unidentified device.

[0012] Preferably, the grouping method in step S3 is: count the proportion of hardware asset types in each MAC address group, and then use the type with a higher proportion in the group as the type feature of the group. If there is no asset type with a significantly prominent number, the feature is marked as "none".

[0013] Preferably, the grouping method in step S4 is: counting the proportion of hardware asset types in each IP segment group; then taking the type with a higher proportion in the group as the type feature of the group; if there is no asset type with a significantly prominent number, the type feature is marked as "none".

[0014] Preferably, the device information obtained through the generated fingerprint in step S2 includes: device type, operating system, and open port services.

[0015] Preferably, the MAC address feature in step S3 utilizes the first 6 characters of the MAC address.

[0016] Preferably, the IP address feature in step S4 utilizes the Class C segment of the IP segment.

[0017] Beneficial effects of the present invention: Based on the principle of the relatively simple structure of the office network, the present invention utilizes the characteristics of unified procurement of office network environment equipment, divides it into regions through IP and MAC characteristics, and classifies the equipment with the same characteristics together. Therefore, the fixed asset types that cannot be identified by conventional scanning in the same area can be supplemented according to the main equipment types in the area. Compared with the traditional scanning and identification of hardware assets, hardware assets that do not respond to scanning and have no obvious characteristics in traffic can be identified; the technical problem that the discoverable fixed assets cannot be identified by scanning due to the opening of firewalls, etc. is solved.

[0018] The features and advantages of the present invention will be described in detail through embodiments in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 The present invention is a flowchart of an asset division method based on the similarity of IP addresses and MAC addresses. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below through the accompanying drawings and embodiments. However, it should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the scope of the present invention. In addition, in the following description, the description of known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0021] Since this method is based on conventional scanning and requires conventional scanning results as a foundation, the steps of conventional scanning will not be described in detail. Figure 1 The specific steps of the asset division method based on the similarity of IP addresses and MAC addresses of the present invention are as follows:

[0022] S1. Obtain the IP address and MAC address of the device through the switch SNMP protocol;

[0023] S2. Send a data packet to the device, generate a fingerprint based on the returned data packet, obtain the device type, operating system, and open port service through the generated fingerprint, and identify the fixed assets;

[0024] S3. Group the devices according to the MAC address characteristics, i.e. the first 6 characters of the MAC address; count the proportion of hardware asset types in each MAC address group; then use the type with a higher proportion in the group as the type feature of the group; if there is no asset type with a significantly higher number, mark the feature as "none";

[0025] S4. Group the devices according to IP address characteristics, i.e. IP segments (specific division depends on the scale of the office network environment, usually according to Class C segments); count the proportion of hardware asset types in each IP segment group; then use the type with a higher proportion in the group as the type feature of the group. If there is no asset type with a significant number, mark the type feature as "none";

[0026] S5, analyze all unidentified devices in turn to determine whether they have IP address information and MAC address information; if yes, jump to S6; if no, end the analysis of this device and continue to analyze the next unidentified device;

[0027] S6, query the type characteristics of the MAC address group and IP address group to which it belongs; if both type characteristics are not "none", jump to S7; otherwise, end the analysis of this device and continue to analyze the next unidentified device;

[0028] S7, determine whether the type characteristics of the MAC address group and the IP address group are consistent; if the two are consistent, it proves that the unidentified device has this type of characteristics, report the device type and continue to analyze the next unidentified device; if they are inconsistent, end the analysis of this device and continue to the next unidentified device;

[0029] The present invention can identify office network assets through IP addresses and MAC addresses. By utilizing the adjacent characteristics of IP addresses of assets of the same type in the office network environment and the similar characteristics of MAC addresses of assets of the same type, the technical problem that discoverable fixed assets cannot be identified through scanning due to the opening of firewalls, etc. is solved.

[0030] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent substitution or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An asset division method based on the similarity of IP addresses and MAC addresses, characterized in that: The steps are as follows: S1. Obtain the IP address and MAC address of the device through the switch SNMP protocol; S2. Send a data packet to the device, generate a fingerprint based on the returned data packet, obtain device information through the generated fingerprint, and identify the fixed asset; S3. Group the devices according to the first 6 characters of the MAC address, determine and record the type characteristics of each group, and if there is no outstanding asset type, mark the characteristic as "none"; S4. Group the devices according to the C segment of the IP address, determine and record the type characteristics of each group, and if it is determined that the device does not have a prominent asset type, mark the characteristic as "none"; S5, analyze all unidentified devices in turn to determine whether they have IP address information and MAC address information; if yes, jump to S6; otherwise, end the analysis of this device and continue to analyze the next unidentified device; S6, query the type characteristics of the MAC address group and IP address group to which it belongs; if both type characteristics are not "none", jump to S7; otherwise, end the analysis of this device and continue to analyze the next unidentified device; S7, determining whether the type characteristics of the MAC address group and the IP address group are consistent; If the two are consistent, it proves that the unidentified device has this type of characteristics, and the device type is reported and the analysis of the next unidentified device continues; if they are inconsistent, the analysis of this device is terminated and the next unidentified device is continued.

2. The asset partitioning method based on the similarity of IP addresses and MAC addresses as claimed in claim 1, characterized in that: The grouping method in step S3 is: count the proportion of hardware asset types in each MAC address group, and then use the type with a higher proportion in the group as the type feature of the group. If there is no asset type with a significantly prominent number, the feature is marked as "none".

3. The asset partitioning method based on the similarity of IP addresses and MAC addresses as claimed in claim 1 or 2, characterized in that: The grouping method in step S4 is: count the proportion of hardware asset types in each IP segment group; then use the type with a higher proportion in the group as the type feature of the group. If there is no asset type with a significant number, mark the type feature as "none".

4. The asset division method based on the similarity of IP addresses and MAC addresses as claimed in claim 1, characterized in that: The device information obtained through the generated fingerprint in step S2 includes: device type, operating system, and open port services.

5. The asset division method based on the similarity of IP addresses and MAC addresses as claimed in claim 1, characterized in that: The MAC address feature in step S3 utilizes the first 6 characters of the MAC address.

6. The asset division method based on the similarity of IP addresses and MAC addresses as claimed in claim 1, characterized in that: The IP address feature in step S4 utilizes the Class C segment of the IP segment.