Method, device and equipment for detecting fingerprint information of router on IPv6 side

By sending specific data packets and extracting features, combining SNMPv3 and EUI-64 addresses to obtain router labels, and establishing a mapping relationship between feature vectors and manufacturers, the problem of insufficient IPv6 router identification performance in the existing technology is solved, and efficient and accurate router classification is achieved. and identification, suitable for diverse network environments.

CN118631780BActive Publication Date: 2024-10-22NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411089481.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-10-22
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

The existing technology has the problem of insufficient performance when identifying IPv6 router manufacturers. Especially in diversified network environments, strict confidentiality of router configurations and noise caused by manufacturer mergers increase the difficulty of identification.

Method used

By sending ICMPv6 echo requests, TCP request packets, UDP request packets and SNMPv3 request packets, features such as IPID sequence, initial TTL value and response size are extracted, and the accurate manufacturer label is obtained based on the SNMPv3 and EUI-64 addresses, and the relationship between the feature vector and the manufacturer label is established. The mapping relationship forms a signature database to achieve efficient router fingerprint identification.

Benefits of technology

It achieves accurate classification of IPv6 router addresses within the Internet, with high coverage, high accuracy, low intrusion and high efficiency. It is suitable for a variety of network environments and supports network mapping and security research.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631780B_ABST
    Figure CN118631780B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device and equipment for detecting fingerprint information of routers on the IPv6 side. Ten specific data packets are sent to all target addresses in an IPv6 router address data set respectively to extract set features from corresponding response messages. The accurate manufacturer labels of routers in the IPv6 router address data set are obtained through the EUI‑64 addresses existing in SNMPv3 and IPv6 to establish a benchmark data set. The characteristic values ​​of all set features under each target address are assembled into corresponding characteristic vectors, and then a mapping relationship between the characteristic vector and the manufacturer label is established. Finally, the characteristic vector of the target address to be detected is obtained and compared with the signature in the signature database, and the manufacturer type of the target router is directly determined by the matched signature. The correct and efficient classification of network router address types is achieved, and the method is suitable for a variety of network environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of Internet IPv6 (Internet Communication Protocol Version 6) measurement, and relates to a method, device and equipment for detecting fingerprint information of routers on an IPv6 side device. Background Art

[0002] The architecture of the Internet features multi-party participation, distributed control, and heterogeneity. This diversity extends to the physical infrastructure level. Routers from different manufacturers are interconnected and interoperable globally, forming a complex network ecosystem. This diversity brings many security impacts. For example, some security vulnerabilities may only exist in the equipment of a specific manufacturer. If exploited, these vulnerabilities may have an adverse impact on specific networks and paths. In addition, there is a risk that the equipment of certain specific manufacturers will be disabled.

[0003] Although the diversity of router vendors is a critical issue, the composition of router vendors on the Internet is still vague. There are also many challenges in identifying router vendors. The configuration of many routers is strictly confidential, blocking any external requests; code is shared between different vendors, making devices difficult to distinguish. Noise generated by vendor mergers, such as mergers and acquisitions between vendors, further increases the difficulty of identification. Existing device fingerprinting technologies mainly include passive and active types, which use open ports, identifiers, and implementation differences to fingerprint devices. Although these technologies have achieved certain results in host fingerprinting, they still have technical problems of insufficient performance in router fingerprinting. Summary of the invention

[0004] In view of the problems existing in the above-mentioned traditional methods, the present invention proposes a method for detecting fingerprint information of a router of an IPv6 side device, a device for detecting fingerprint information of a router of an IPv6 side device, and a computer device, which can realize high-performance detection of router fingerprint information.

[0005] In order to achieve the above objectives, the embodiments of the present invention adopt the following technical solutions:

[0006] On the one hand, a method for detecting fingerprint information of a router of an IPv6 side device is provided, comprising the steps of:

[0007] The detection host uses the local address as the source address, sends 10 data packets to the target address and receives the corresponding response packets returned by the target address, and extracts the set features from the response packets; the target address is the address in the IPv6 router address data set, the data packets include ICMPv6 echo request, TCP request packet, UDP request packet and SNMPv3 request packet, and the set features include IPID sequence, initial TTL value and response size;

[0008] Through the EUI-64 addresses existing in SNMPv3 and IPv6, the accurate manufacturer labels of each router in the IPv6 router address dataset are obtained and a benchmark dataset is constructed;

[0009] Collect the set features obtained by the detection host from the target address, and assemble the feature values ​​of all the set features under each target address into a feature vector; the feature vector corresponds to the target address one by one;

[0010] Using the benchmark dataset as the training set, we train all feature vectors through supervised learning, establish a mapping relationship between feature vectors and manufacturer labels, and obtain a signature database.

[0011] After obtaining the feature vector of the target address to be detected through the detection host, a target signature matching the feature vector of the target address to be detected is found from the signature database, and the manufacturer type of the target router corresponding to the target address to be detected is determined using the target signature.

[0012] On the other hand, a device for detecting fingerprint information of a router on an IPv6 side is also provided, comprising:

[0013] The feature detection module is used to detect the host and send 10 data packets to the target address with the local address as the source address, and receive the corresponding response message returned by the target address, and extract the set features from the response message; the target address is the address in the IPv6 router address data set, the data packet includes ICMPv6 echo request, TCP request packet, UDP request packet and SNMPv3 request packet, and the set features include IPID sequence, initial TTL value and response size;

[0014] A benchmark building module, used to obtain the accurate vendor label of each router in the IPv6 router address dataset and build a benchmark dataset through the EUI-64 address existing in SNMPv3 and IPv6;

[0015] The vector assembly module is used to collect the set features obtained by the detection host from the target address, and assemble the feature values ​​of all the set features under each target address into a feature vector; the feature vector corresponds to the target address one by one;

[0016] The learning mapping module is used to use the benchmark data set as the training set, conduct training through supervised learning based on all feature vectors, establish a mapping relationship between feature vectors and manufacturer labels, and obtain a signature database;

[0017] The detection output module is used to obtain the feature vector of the target address to be detected through the detection host, find the target signature matching the feature vector of the target address to be detected from the signature database, and use the target signature to determine the manufacturer type of the target router corresponding to the target address to be detected.

[0018] On the other hand, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned IPv6 side device router fingerprint information detection method are implemented.

[0019] One of the above technical solutions has the following advantages and beneficial effects:

[0020] The above-mentioned IPv6 side device router fingerprint information detection method, device and equipment, by taking the public IPv6 router address data set as the target, respectively sending 10 specific data packets for all the target addresses therein, to extract the set features from the corresponding response messages; and obtaining the accurate manufacturer labels of some routers in the IPv6 router address data set through the EUI-64 address existing in SNMPv3 and IPv6, to establish a benchmark data set; and also assembling the feature values ​​of all the set features under each target address into corresponding feature vectors, taking the benchmark data set as the training set, and training according to all the feature vectors by supervised learning, thereby establishing a mapping relationship between the feature vector and the manufacturer label, and forming a signature database. Finally, after obtaining the feature vector of the target address to be detected, it is compared with the signature in the signature database, and the manufacturer type of the target router is directly determined by the matching signature.

[0021] Compared with traditional technologies, it can perform router fingerprint detection on IPv6 router addresses within the Internet, and correctly and efficiently classify the types of network router addresses. It has the characteristics of high coverage, high accuracy, low intrusion and high efficiency. It is suitable for a variety of network environments and performs well in different network environments. It can adapt to diverse network configurations and equipment, and provides effective technical and data support for network mapping and network security research. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 A schematic diagram of a flow chart of a method for detecting fingerprint information of a router on an IPv6 side device in one embodiment;

[0024] Figure 2 A schematic diagram of the overall architecture of a method for detecting fingerprint information of a router on an IPv6 side device in one embodiment;

[0025] Figure 3 The module structure diagram of the device fingerprint information detection device of the IPv6 side device router in one embodiment. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and Examples. 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 present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0027] It should be noted that the reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The presentation of this phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It will be appreciated by those skilled in the art that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the specification of the present invention and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0028] The following will describe the implementation of the present invention in detail with reference to the accompanying drawings in the embodiment diagram of the present invention.

[0029] In one embodiment, Figure 1 As shown, a method for detecting fingerprint information of a router on an IPv6 side device is provided, which may include the following processing steps S12 to S20:

[0030] S12, by detecting the host with the local address as the source address, sending 10 data packets to the target address respectively and receiving the corresponding response packets returned by the target address, extracting the set features from the response packets; the target address is the address in the IPv6 router address data set, the data packets include ICMPv6 echo requests, TCP request packets, UDP request packets and SNMPv3 request packets, and the set features include IPID sequence, initial TTL value and response size.

[0031] It can be understood that the detection host can use the local address as the source address to send 10 data packets to each target address in the IPv6 router address data set, and receive a series of response messages corresponding to these target addresses. Then, for each target address, various set features are extracted from its response message, such as the IPID sequence (a series of identifiers generated by the IP protocol, used to uniquely identify a data packet of the sender in a communication, these identifiers are mainly used for data packet fragmentation and reassembly), the initial TTL value (Time To Live, specifying the maximum number of network segments allowed to pass before the IP packet is discarded by the router) and the response size (that is, the content length in the HTTP response message, which includes the sum of the response header and the response body).

[0032] The 10 data packets may include three types of data packets: ICMPv6 Echo Requests, TCP (Transmission Control Protocol), UDP (User Datagram Protocol) and SNMPv3 Requests.

[0033] In some implementations, the 10 data packets may include three ICMPv6 echo requests of a first byte size, three TCP request packets of a second byte size, three UDP request packets of a third byte size, and one SNMPv3 request packet of a fourth byte size.

[0034] It can be understood that the detection host (which can be recorded as A) uses the local address (which can be recorded as B) as the source address to send three ICMPv6 Echo Request packets (Ping request messages) with a size of the first byte (which can be recorded as W1), three TCP packets (Ping request messages) with a size of the second byte (which can be recorded as W2), three UDP packets (Ping request messages) with a size of the third byte (which can be recorded as W3) and one SNMPv3 packet (Ping request message) with a size of the fourth byte (which can be recorded as W4) to the target address (which can be recorded as X), and obtains corresponding response messages (the response messages corresponding to the four data packets can be recorded as RA1, RA2, RA3 and RA4 respectively). Among them, these target addresses used are usually addresses in the public IPv6 router address data set, and the detection host used should limit the packet sending rate to avoid causing restrictions.

[0035] S14, through the EUI-64 addresses existing in SNMPv3 and IPv6, the accurate manufacturer label of each router in the IPv6 router address dataset is obtained and a benchmark dataset is constructed.

[0036] It can be understood that the accurate vendor labels of some routers in the IPv6 router address data set can be directly obtained through SNMPv3 (Simple Network Management Protocol version 3, a protocol for network device management and monitoring) and the EUI-64 (Extended Unique Identifier 64, a method for generating interface ID (Interface Identifier)) address in IPv6. The Engine ID (engine identifier) ​​in the SNMPv3 response and the OUI information contained in the EUI-64 address highly reliably identify the router manufacturer, thereby building a correct benchmark data set. The EUI-64 address refers to how a device in an IPv6 network uses the EUI-64 mechanism to automatically generate part of its IPv6 address. This mechanism allows the device to obtain the network prefix by listening to the router's advertisement message (Router Advertisement, RA) without external configuration, and combines its own EUI-64 interface ID to generate a globally unique IPv6 address.

[0037] Through the EUI-64 addresses present in SNMPv3 and IPv6, the accurate vendor tags (which can be denoted as Z) of some routers in the IPv6 router address dataset are obtained. SNMPv3 is a widely used protocol for network device management. It can obtain detailed information about routers, including vendor information, device uptime, and restart times, by sending a single unsolicited and unauthenticated request. The Engine ID in the SNMPv3 response contains a unique identifier for the device, which can highly reliably identify the manufacturer of the router. The Organizationally Unique Identifier (OUI) information contained in the EUI-64 address can also be used to determine the manufacturer of the device. By combining these two sources of information, a high-precision benchmark dataset can be generated that covers a wide range of router vendor information and provides a reliable reference for further router identification and classification.

[0038] S16, collecting the set features obtained by the detection host from the target address, and assembling the feature values ​​of all the set features under each target address into a feature vector; the feature vector corresponds to the target address one by one.

[0039] It can be understood that the characteristic values ​​of the set features are collected from the responses obtained by the detection host from the target address and combined into a feature vector. For each set feature of the response, its specific characteristic value is recorded and the uniqueness of these values ​​between different manufacturers is checked. For each IP address, the characteristic values ​​of all the responses corresponding to it are assembled into a feature vector, which includes all the extracted set features.

[0040] Specifically, the detection host collects the feature values ​​of the set features extracted from the response received from each target address, and combines these feature values ​​corresponding to each target address into a feature vector. Specifically, the detection host will receive a series of responses from the target IP address, and these responses contain various network layer and transport layer characteristics. For each feature in the response, the detection host will record its specific feature value in detail, such as IPID sequence, initial TTL value and response size (which can be recorded as S A ). These characteristic values ​​are not only recorded, but also further analyzed to check whether they are unique between devices from different manufacturers.

[0041] All responses for each IP address are processed comprehensively, and all extracted feature values ​​are integrated into a complete feature vector, which represents the network behavior characteristics of the IP address in multiple dimensions. In this way, the feature vector can reflect the specific implementation and configuration of the target device, thereby helping to identify its manufacturer.

[0042] S18, using the benchmark data set as a training set, training is performed through supervised learning based on all feature vectors, a mapping relationship between feature vectors and manufacturer labels is established, and a signature database is obtained.

[0043] It can be understood that the classification model can be trained by collecting feature vectors with vendor labels: using the benchmark data set as the training set, the mapping relationship between feature vectors and vendors is established through supervised learning. All feature vectors and corresponding vendor labels are stored in a signature database. Each feature vector is a signature representing a router of a specific vendor.

[0044] Specifically, a classification model is trained with the collected feature vectors with vendor labels to achieve accurate router vendor identification: First, these feature vectors and their corresponding vendor labels are used as input data for the training process of the classification model. During the training process, the previously constructed high-confidence benchmark dataset is used as the training set, and the mapping relationship between feature vectors and vendors is established through supervised learning.

[0045] During the supervised learning process, the algorithm learns and extracts key features that can distinguish different manufacturers based on the input feature vectors and corresponding manufacturer labels. These features vary significantly in devices from different manufacturers, enabling the classification model to make accurate predictions on new, unlabeled feature vectors.

[0046] After training is completed, all feature vectors and their corresponding vendor labels are stored in a dedicated signature database. This signature database (also called fingerprint database) is the core resource of this embodiment. It contains feature vectors of a large number of different router vendors. Each feature vector serves as a signature, representing a router of a specific vendor. When a new router needs to be identified, its feature vector is compared with the signature in the signature database to determine its vendor identity.

[0047] S20, after acquiring the feature vector of the target address to be detected through the detection host, find the target signature matching the feature vector of the target address to be detected from the signature database, and determine the manufacturer type of the target router corresponding to the target address to be detected by using the target signature.

[0048] It can be understood that the detection host obtains its feature vector from the response of the target address to be detected, and the feature vector will be matched with the signature in the previously established fingerprint library. Specifically, the detection host will convert the response data of the target address to be detected into a set of unique feature values ​​according to a predefined algorithm (corresponding to the above-mentioned feature vector assembly and feature value collection process), and these feature values ​​constitute a complete feature vector. Then, the detection host will compare this feature vector with all known signatures in the fingerprint library.

[0049] The fingerprint library contains a large number of signatures of known router manufacturers. These signatures are established by analyzing a large number of router data from different manufacturers and extracting their unique feature combinations. When a new feature vector highly matches a signature in the fingerprint library (the corresponding matching degree threshold can be set for discrimination according to the requirements of the actual application), it can be determined that the feature vector follows the feature law in the fingerprint library. Once the match is successful, the detection host can accurately determine the manufacturer type of the target router corresponding to the target address to be detected (that is, the router fingerprint) based on this matching result.

[0050] like Figure 2 The figure shows the overall architecture of the IPv6 side device router fingerprint information detection method. A is used as the source address to send 9 data packets to X, and an SNMPv3 data packet is sent for verification. After receiving X, the router at the target address returns the corresponding series of response messages. The detection host performs EUI-64 method verification and classification model training to obtain the router fingerprint library. After obtaining the router fingerprint, the detection host (router) compares it with the fingerprint library, returns the matching result, and obtains the correct router manufacturer.

[0051] The above-mentioned IPv6 side device router fingerprint information detection method uses the public IPv6 router address data set as the target, and sends 10 specific data packets to all the target addresses therein to extract the set features from the corresponding response messages; and obtains the accurate manufacturer labels of some routers in the IPv6 router address data set through the EUI-64 address existing in SNMPv3 and IPv6 to establish a benchmark data set; and assembles the feature values ​​of all the set features under each target address into corresponding feature vectors, takes the benchmark data set as the training set, and trains according to all the feature vectors through supervised learning, thereby establishing a mapping relationship between feature vectors and manufacturer labels to form a signature database. Finally, after obtaining the feature vector of the target address to be detected, it is compared with the signature in the signature database, and the manufacturer type of the target router is directly determined by the matching signature.

[0052] Compared with traditional technologies, it can perform router fingerprint detection on IPv6 router addresses within the Internet, and correctly and efficiently classify the types of network router addresses. It has the characteristics of high coverage, high accuracy, low intrusion and high efficiency. It is suitable for a variety of network environments and performs well in different network environments. It can adapt to diverse network configurations and equipment, and provides effective technical and data support for network mapping and network security research.

[0053] In one embodiment, the above-mentioned IPv6 side device router fingerprint information detection method may also include the following steps:

[0054] After the detection host obtains the feature vector of the target address to be detected, if there is no target signature in the signature database that matches the feature vector of the target address to be detected, an unknown detection prompt is performed; the unknown detection prompt is an unknown router or a router to be added.

[0055] In this way, the current detection result can be clearly indicated, and the user can be prompted with corresponding unknown security risks of the router or try to update the router's manufacturer type into the signature database to achieve detection expansion.

[0056] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Moreover, Figure 1At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0057] In one embodiment, Figure 3 As shown, an IPv6 side device router fingerprint information detection device 100 is also provided, including a feature detection module 11, a benchmark construction module 13, a vector assembly module 15, a learning mapping module 17 and a detection output module 19. Among them, the feature detection module 11 is used to detect the host with the local address as the source address, send 10 data packets to the target address respectively and receive the corresponding response message returned by the target address, and extract the set features from the response message; the target address is the address in the IPv6 router address data set, the data packet includes ICMPv6 echo request, TCP request packet, UDP request packet and SNMPv3 request packet, and the set features include IPID sequence, initial TTL value and response size. The benchmark construction module 13 is used to obtain the accurate manufacturer label of each router in the IPv6 router address data set and construct a benchmark data set through the EUI-64 address existing in SNMPv3 and IPv6. The vector assembly module 15 is used to collect the set features obtained by the detection host from the target address, and assemble the feature values ​​of all the set features under each target address into a feature vector respectively; the feature vector corresponds to the target address one by one. The learning mapping module 17 is used to use the benchmark data set as a training set, train according to all feature vectors through supervised learning, establish a mapping relationship between feature vectors and manufacturer labels, and obtain a signature database. The detection output module 19 is used to obtain the feature vector of the target address to be detected through the detection host, find the target signature matching the feature vector of the target address to be detected from the signature database, and use the target signature to determine the manufacturer type of the target router corresponding to the target address to be detected.

[0058] The above-mentioned IPv6 side device router fingerprint information detection device 100, by taking the public IPv6 router address data set as the target, sends 10 specific data packets to all the target addresses therein, so as to extract the set features from the corresponding response messages; and obtains the accurate manufacturer labels of some routers in the IPv6 router address data set through the EUI-64 address existing in SNMPv3 and IPv6 to establish a benchmark data set; and also assembles the feature values ​​of all the set features under each target address into corresponding feature vectors, takes the benchmark data set as the training set, and trains according to all the feature vectors through supervised learning, so as to establish a mapping relationship between the feature vector and the manufacturer label, and form a signature database. Finally, after obtaining the feature vector of the target address to be detected, it is compared with the signature in the signature database, and the manufacturer type of the target router is directly determined by the matching signature.

[0059] Compared with traditional technologies, it can perform router fingerprint detection on IPv6 router addresses within the Internet, and correctly and efficiently classify the types of network router addresses. It has the characteristics of high coverage, high accuracy, low intrusion and high efficiency. It is suitable for a variety of network environments and performs well in different network environments. It can adapt to diverse network configurations and equipment, and provides effective technical and data support for network mapping and network security research.

[0060] In one embodiment, the data packet includes three ICMPv6 echo requests of a first byte size, three TCP request packets of a second byte size, three UDP request packets of a third byte size, and one SNMPv3 request packet of a fourth byte size.

[0061] In one embodiment, the above-mentioned IPv6 side device router fingerprint information detection device 100 may also include a prompt module, which is used to obtain the feature vector of the target address to be detected through the detection host, and when there is no target signature matching the feature vector of the target address to be detected in the signature database, perform an unknown detection prompt; the unknown detection prompt is an unknown router or a router to be added. At the same time, the current detection result can be clearly prompted, and the user can be prompted of the corresponding unknown security risks of the router or try to update the router manufacturer type to the signature database to achieve detection expansion.

[0062] The specific definition of the device router fingerprint information detection device 100 on the IPv6 side can be found in the definition of the device router fingerprint information detection method on the IPv6 side, which will not be repeated here. Each module in the above-mentioned device router fingerprint information detection device 100 on the IPv6 side can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0063] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following processing steps when executing the computer program: by detecting a host with the local address as the source address, 10 data packets are sent to the target address respectively and a response message returned by the target address is received, and a set feature is extracted from the response message; the target address is an address in an IPv6 router address data set, the data packet includes an ICMPv6 echo request, a TCP request packet, a UDP request packet and an SNMPv3 request packet, and the set feature includes an IPID sequence, an initial TTL value and a response size; through the EUI-64 address existing in SNMPv3 and IPv6, The accurate manufacturer label of each router in the IPv6 router address data set is used to construct a benchmark data set; the set features obtained by the detection host from the target address are collected, and the feature values ​​of all the set features under each target address are assembled into a feature vector; the feature vector corresponds to the target address one by one; using the benchmark data set as the training set, training is performed through supervised learning according to all the feature vectors, and a mapping relationship between the feature vector and the manufacturer label is established to obtain a signature database; after obtaining the feature vector of the target address to be detected through the detection host, the target signature matching the feature vector of the target address to be detected is found from the signature database, and the target signature is used to determine the manufacturer type of the target router corresponding to the target address to be detected.

[0064] It can be understood that in addition to the memory and processor mentioned above, the above-mentioned computer device may also include other software and hardware components not listed in this specification. The specific details can be determined according to the model of the specific network data processing device in different application scenarios, and this specification will not list them one by one in detail.

[0065] In one embodiment, when the processor executes the computer program, the processor may also implement the steps or sub-steps added in each embodiment of the above-mentioned IPv6 side device router fingerprint information detection method.

[0066] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following processing steps are implemented: by detecting a host with a local address as the source address, 10 data packets are sent to a target address respectively and a response message returned by the target address is received, and a set feature is extracted from the response message; the target address is an address in an IPv6 router address data set, and the data packet includes an ICMPv6 echo request, a TCP request packet, a UDP request packet, and an SNMPv3 request packet, and the set feature includes an IPID sequence, an initial TTL value, and a response size; through the EUI-64 address existing in SNMPv3 and IPv6, the IPv6 The accurate manufacturer label of each router in the router address data set is used to construct a benchmark data set; the set features obtained by the detection host from the target address are collected, and the feature values ​​of all the set features under each target address are assembled into a feature vector; the feature vector corresponds to the target address one by one; using the benchmark data set as the training set, training is performed through supervised learning based on all the feature vectors, and a mapping relationship between the feature vector and the manufacturer label is established to obtain a signature database; after obtaining the feature vector of the target address to be detected through the detection host, the target signature matching the feature vector of the target address to be detected is found from the signature database, and the target signature is used to determine the manufacturer type of the target router corresponding to the target address to be detected.

[0067] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus dynamic random access memory (RambusDRAM, referred to as RDRAM) and interface dynamic random access memory (DRDRAM).

[0068] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0069] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of protection of the invention. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.

Claims

1. A method for detecting fingerprint information of an IPv6 side device router, characterized in that: Includes steps: The detection host uses the local address as the source address, sends 10 data packets to the target address respectively, and receives the response message returned by the target address, and extracts the set features from the response message; the target address is the address in the IPv6 router address data set, the data packet includes ICMPv6 echo request, TCP request packet, UDP request packet and SNMPv3 request packet, and the set features include IPID sequence, initial TTL value and response size; Through the EUI-64 addresses existing in SNMPv3 and IPv6, the accurate manufacturer labels of each router in the IPv6 router address dataset are obtained and a benchmark dataset is constructed; Collecting the set features obtained by the detection host from the target address, and assembling the feature values ​​of all the set features under each target address into a feature vector; Said The feature vector corresponds to the target address one by one; Using the benchmark data set as a training set, training is performed in a supervised learning manner based on all the feature vectors, a mapping relationship between the feature vectors and the manufacturer labels is established, and a signature database is obtained; After obtaining the feature vector of the target address to be detected through the detection host, a target signature matching the feature vector of the target address to be detected is found from the signature database, and the manufacturer type of the target router corresponding to the target address to be detected is determined using the target signature.

2. The method for detecting fingerprint information of an IPv6 side device router according to claim 1, characterized in that: The data packet includes three ICMPv6 echo requests with a size of a first byte, three TCP request packets with a size of a second byte, three UDP request packets with a size of a third byte, and one SNMPv3 request packet with a size of a fourth byte.

3. The method for detecting fingerprint information of an IPv6 side device router according to claim 1 or 2, characterized in that: Also includes the steps: After the detection host obtains the feature vector of the target address to be detected, if there is no target signature in the signature database that matches the feature vector of the target address to be detected, an unknown detection prompt is performed; the unknown detection prompt is an unknown router or a router to be added.

4. An IPv6 side device router fingerprint information detection device, characterized in that: include: The feature detection module is used to detect the host and send 10 data packets to the target address with the local address as the source address, and receive the response message returned by the target address, and extract the set features from the response message; the target address is the address in the IPv6 router address data set, the data packet includes ICMPv6 echo request, TCP request packet, UDP request packet and SNMPv3 request packet, and the set features include IPID sequence, initial TTL value and response size; A benchmark building module, used to obtain the accurate vendor label of each router in the IPv6 router address dataset and build a benchmark dataset through the EUI-64 address existing in SNMPv3 and IPv6; A vector assembly module, used for collecting the set features obtained by the detection host from the target address, and assembling the feature values ​​of all the set features under each target address into a feature vector; Said The feature vector corresponds to the target address one by one; A learning mapping module, used to use the benchmark data set as a training set, perform training according to all the feature vectors by supervised learning, establish a mapping relationship between the feature vectors and the manufacturer labels, and obtain a signature database; The detection output module is used to obtain the feature vector of the target address to be detected through the detection host, find the target signature matching the feature vector of the target address to be detected from the signature database, and use the target signature to determine the manufacturer type of the target router corresponding to the target address to be detected.

5. The device for detecting fingerprint information of an IPv6 side device router according to claim 4, characterized in that: The data packet includes three ICMPv6 echo requests with a size of a first byte, three TCP request packets with a size of a second byte, three UDP request packets with a size of a third byte, and one SNMPv3 request packet with a size of a fourth byte.

6. The device for detecting fingerprint information of a router on the IPv6 side according to claim 4 or 5, characterized in that: Also includes: The prompt module is used to obtain the feature vector of the target address to be detected through the detection host, and when there is no target signature matching the feature vector of the target address to be detected in the signature database, perform an unknown detection prompt; the unknown detection prompt is an unknown router or a router to be added.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method for detecting fingerprint information of an IPv6-side device router are implemented as described in any one of claims 1 to 3.