Method, device and equipment for detecting IP identification fingerprint information of IPv6 device

By using probing hosts and forged hosts in IPv6 networks to take turns sending ICMPv6 probes and packet too large messages, and merging IP identification sequences to distinguish IP-ID types of IPv6 devices, the problem of insufficient IP-ID detection in IPv6 networks is solved and provides Efficient classification and network security support for IPv6 devices.

CN118473831BActive Publication Date: 2024-09-06NAT UNIV OF DEFENSE TECH
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410930049.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-06
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

The existing technology lacks large-scale detection research on IP-ID in IPv6 networks, making it difficult to know the types and proportions of vulnerable IP-ID generation methods in Internet IPv6 devices, and making it difficult to effectively evaluate the prevention capabilities of IP-ID-based attacks. .

Method used

The probing host and the forged host take turns sending ICMPv6 probes and packet too large messages to the IPv6 target address, and combine the obtained IP identification sequences to determine the IP identification type of the target address, including global type, local type, random type and weird type, providing IPv6 device IP identification fingerprint information detection method, device and computer equipment.

Benefits of technology

Detecting IPv6 addresses within the Internet and distinguishing different IP-ID generation types provides effective technical and data support for network mapping and network security research, and improves the ability to prevent IP-ID-based attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118473831B
    Figure CN118473831B
Patent Text Reader

Abstract

The present application relates to a method, apparatus and device for detecting IP identification fingerprint information of an IPv6 device. The method targets a public IPv6 active address data set, sets the MTU value of the target address for the target address ICMPv6 Too Big message, and then sends a series of ICMPv6 Echo Request probes larger than the MTU to guide the target address to generate an IP‑ID for subsequent response messages, and distinguishes different IP‑ID generation types by alternately detecting the detection host and the fake host. Compared with traditional technologies, this technology can detect IPv6 addresses within the scope of the Internet, guide IPv6 addresses to generate IP‑ID sequences, and distinguish different IP‑ID generation methods based on different sequence performances, providing effective technical and data support for network mapping and network security research.
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 IP identification fingerprint information of an IPv6 device. Background Art

[0002] IP-ID (IP Identification) is a field in the IP packet header that serves the purpose of data packet fragmentation and reassembly. The simple and predictable IP-ID generation method has been used in IPv4 (Internet Protocol Version 4) networks for traffic statistics, alias resolution, NAT (Network Address Translation) post-host statistics, and port scanning, leading to problems such as device hidden information leakage, which has an adverse impact on the information security of network devices.

[0003] In IPv6 networks, IP-ID no longer appears as a fixed field, but is placed in the extended header for flexible use. However, some attack methods are still applicable in IPv6. For example, ICMPv6 packet too big (Too Big) error messages and oversized messages are used to cause the IPv6 target host to fragment and generate IP-ID, and this mechanism is used to perform alias resolution and device identification on the target device. Some people also proposed Idle Scan in IPv6 networks, which can complete the port scanning task while hiding the identity of the attacker.

[0004] However, there is a lack of large-scale detection research on IP-ID in IPv6 networks. The types and proportions of vulnerable IP-ID generation methods used in Internet IPv6 devices are difficult to know, making it difficult for relevant researchers to effectively evaluate the ability to prevent IP-ID-based attacks. Summary of the invention

[0005] In view of the problems existing in the above-mentioned traditional methods, the present invention proposes a method for detecting IP identification fingerprint information of an IPv6 device, a device for detecting IP identification fingerprint information of an IPv6 device, and a computer device, which can effectively detect and classify the IP-ID of Internet IPv6 devices within the Internet range, and facilitate effective evaluation of the prevention capability based on IP-ID attacks.

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

[0007] On the one hand, a method for detecting IP identification fingerprint information of an IPv6 device is provided, comprising the steps of:

[0008] The detection host uses the local address and the pseudo address of the forged host as the source address, respectively sends a probe of a first set size byte to the target address in the IPv6 detection data set, and receives a first response message corresponding to the local address and a second response message corresponding to the pseudo address; the probe is an ICMPv6 response request;

[0009] The detection host uses the local address and the pseudo address of the forged host as the source address, respectively sending an ICMPv6 packet too big message of a second set size byte to the target address; wherein the size of the path maximum transmission unit is set to the second set size, and the above ICMPv6 packet too big message is filled with data of the first response message and the second response message;

[0010] The detection host uses the local address and the pseudo address of the forged host as the source address, and sends a set number of probes of a first set size of bytes to the target address alternately;

[0011] Merge the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the forged host to obtain a merged sequence;

[0012] The IP identification type of the target address is determined according to the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the forged host, and the value rule of the combined sequence.

[0013] In one embodiment, the process of determining the IP identification type of the target address includes:

[0014] If the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the forged host, and the combined sequence are all monotonically increasing, then the IP identification type of the target address is determined to be a global type.

[0015] In one embodiment, the process of determining the IP identification type of the target address includes:

[0016] If the values ​​of the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the forged host are monotonically increasing, and the value of the combined sequence is not monotonically increasing, then the IP identification type of the target address is determined to be a local type.

[0017] In one embodiment, the process of determining the IP identification type of the target address includes:

[0018] If the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the forged host, and the combined sequence are not monotonically increasing, then the IP identification type of the target address is determined to be a random type.

[0019] In one embodiment, the process of determining the IP identification type of the target address includes:

[0020] The IP identification type of the target address that does not belong to the global type, the local type, and the random type is determined as a weird type.

[0021] On the other hand, an IPv6 device IP identification fingerprint information detection device is also provided, comprising:

[0022] The probe first sending module is used to send a probe of a first set size byte to the target address in the IPv6 detection data set by using the local address and the pseudo address of the forged host as the source address through the detection host, and receive the first response message corresponding to the local address and the second response message corresponding to the pseudo address; the probe is an ICMPv6 response request;

[0023] A fragment filling module is used to send an ICMPv6 packet too big message of a second set size byte to a target address by using a local address and a pseudo address of a forged host as source addresses through a detection host; wherein the size of the maximum transmission unit of the path is set to the second set size, and the ICMPv6 packet too big message is filled with data of a first response message and a second response message;

[0024] The probe alternate sending module is used to send a set number of probes of a first set size of bytes alternately to a target address by using the local address and the pseudo address of the pseudo host as the source address through the detection host;

[0025] A sequence merging module, used to merge the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the forged host to obtain a merged sequence;

[0026] The detection output module is used to determine the IP identification type of the target address according to the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the forged host and the value rule of the combined sequence.

[0027] In one embodiment, the detection output module determines that the IP identification type of the target address is a global type when the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the counterfeit host, and the combined sequence are all monotonically increasing.

[0028] In one of the embodiments, when the values ​​of the IP identification sequence obtained by the detection output module from the target address at the detection host and the IP identification sequence obtained from the target address at the forged host are monotonically increasing, and the value of the combined sequence is not monotonically increasing, the IP identification type of the target address is determined to be a local type.

[0029] In one of the embodiments, the detection output module determines that the IP identification type of the target address is a random type when the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the counterfeit host, and the combined sequence are not monotonically increasing.

[0030] On the other hand, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned IPv6 device IP identification fingerprint information detection method when executing the computer program.

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

[0032] The above-mentioned IPv6 device IP identification fingerprint information detection method, device and equipment, by targeting the public IPv6 active (address) data set, sets the MTU (maximum transmission unit) value of the target address for the target address ICMPv6 packet too large message, and then sends a series of ICMPv6 Echo Request probes larger than the MTU to guide the target address to generate an IP-ID for subsequent response messages, and distinguishes different IP-ID generation types by detecting the host and the fake host in turn. Compared with traditional technologies, this technology can detect IPv6 addresses within the scope of the Internet, guide IPv6 addresses to generate IP-ID sequences, and distinguish different IP-ID generation methods according to different sequence performances, providing effective technical and data support for network mapping and network security research. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application or 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 A schematic diagram of a flow chart of a method for detecting IP identification fingerprint information of an IPv6 device in one embodiment;

[0035] Figure 2 Schematic diagram of different classifications of IP-ID in one embodiment; wherein (a) is a global type sequence classification, (b) is a local type sequence classification, (c) is a random type sequence classification, and (d) is a weird type sequence classification;

[0036] Figure 3 A schematic diagram of an application flow of a method for detecting IP identification fingerprint information of an IPv6 device in an embodiment;

[0037] Figure 4 The present invention is a schematic diagram of the module structure of an IPv6 device IP identification fingerprint information detection device in an embodiment. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application 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 application and are not intended to limit the present application. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application.

[0039] 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.

[0040] 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.

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

[0042] S12, by detecting the host with the local address and the pseudo address of the forged host as the source address, respectively sends a probe of a first set size byte to the target address in the IPv6 detection data set, and receives a first response message corresponding to the local address and a second response message corresponding to the pseudo address; the probe is an ICMPv6 response request.

[0043] It can be understood that the detection host (which can be recorded as A) uses the local address and the pseudo address of the forged forged host (which can be recorded as B) as the source address to send an ICMPv6 echo request (Echo Request) packet (Ping request message) of the first set size (which can be recorded as W) bytes to the target address (which can be recorded as X), and obtains the corresponding response message (the first response message can be recorded as R A1 , the second response message is recorded as R B1). The target addresses used are usually addresses in the public IPv6 detection data set, and the detection host A and the fake host B used should be hosts in the same subnet to avoid filtering of source address verification.

[0044] S14, by detecting the host with the local address and the pseudo address of the forged host as the source address, respectively sending an ICMPv6 packet too big message of the second set size bytes to the target address; wherein the size of the maximum transmission unit of the path is set to the second set size, and the above ICMPv6 packet too big message is filled with the data of the first response message and the second response message.

[0045] It can be understood that the detection host A uses the local address and the pseudo address of the forged host B as the source address to send an ICMPv6 packet too big (Too Big) message of the second set size (which can be recorded as Z) bytes to the target address X, where MTU=Z is set and the message is filled with part R A1 and R B1 Specifically, the target host at the target address X will verify the legitimacy of the ICMPv6 Too Big message after receiving it, so it needs to fill in R A1 and R B1 After verifying the legitimacy of the data, the target host will set its PMTU (path maximum transmission unit) value to the detection host A to Z. When the upper layer has a data message exceeding Z bytes and hands it over to the IP layer for transmission, the target host will perform regular fragmentation on the data message and fill in the IP-ID value.

[0046] S16, the detection host uses the local address and the pseudo address of the pseudo host as the source address, and sends a set number of probes with a size of a first set size of bytes to the target address alternately.

[0047] It can be understood that the detection host A uses the local address and the fake address of the fake host B as the source address to send a set number (N / 2) ICMPv6 Echo Request packets of size W bytes to the target address X alternately. The IP-ID value obtained at the detection host A is x 1, x 3,…, x The first sequence of N-1 (which can be denoted as S A ), the IP-ID value obtained at the forged host B is x 2, x 4,…, x The second sequence of N (which can be denoted as S B ). Where N is the total number of target addresses. The value of W needs to be greater than the value of Z to guide the target address fragmentation.

[0048] S18, merging the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the forged host to obtain a merged sequence.

[0049] It can be understood that merging the first sequence S A , the second sequence S B These two sequences, the resulting sequence [ x 1, x 2, x 3,…, x N-1, x N] as a combined sequence (which can be denoted as S T ) for subsequent classification processing.

[0050] The IP-ID sequence may appear as Figure 2 As shown, the horizontal axis is the time axis (the unit can be seconds or minutes). Different IP-ID sequences have different characteristics, namely: (1) Global type: The device maintains the same counter for all destination addresses. The counter increases with each packet sent, and the increase is uncertain. Therefore, the IP-ID sequence values ​​of the detection host A and the fake host B increase alternately, and overall it looks like a monotonically increasing sequence, such as Figure 2 (a) Sequence. (2) Local type: This address maintains different counters for different connections or different purposes. The counter increases with each packet sent, and the increase is uncertain. Therefore, the IP-ID sequence values ​​of the detection host A and the fake host B increase separately and are unrelated to each other, as shown in Figure 2 (b) Sequence. (3) Random type: Use a random number generator to generate the IP-ID sequence, resulting in no regular pattern in the IP-ID sequence value. It is also the most secure type, such as Figure 2 (c) Sequence shown. (4) Odd type: In rare cases, the IP-ID sequence is odd and is uniformly classified as Odd type, such as Figure 2 (d) The sequence is shown. Figure 2 The host represented in maintains different counters for all destination addresses in different time periods, causing them to increase in different time periods; there are other implementation methods, such as incorrect IP-ID sequences due to bugs, misconfiguration, and disorder.

[0051] S20, determining the IP identification type of the target address according to the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the forgery host, and the value rule of the combined sequence.

[0052] It can be understood that for the first sequence S A , the second sequence S B and merge sequence S TThe decision tree is used to judge the sequence characteristics of the target address X, and the IP-ID generation type of the target address X can be obtained, such as whether it is Global type, Local type, Random type or Odd type. Figure 3 As shown, the process of measuring and classifying IP-ID fingerprint information of IPv6 devices is demonstrated from a physical perspective.

[0053] The above-mentioned IPv6 device IP identification fingerprint information detection method uses the public IPv6 detection (address) data set as the target, sets the MTU value of the target address for the target address ICMPv6 Too Big message, and then sends a series of ICMPv6 Echo Request probes larger than the MTU to guide the target address to generate an IP-ID for subsequent response messages, and distinguishes different IP-ID generation types by alternately detecting the detection host and the fake host. Compared with traditional technologies, this technology can detect IPv6 addresses within the Internet, guide IPv6 addresses to generate IP-ID sequences, and distinguish different IP-ID generation methods based on different sequence performances, providing effective technical and data support for network mapping and network security research.

[0054] In one embodiment, further, in order to improve detection efficiency, the sending of the above probe (such as ICMPv6 EchoRequest packet) and the receiving of the response message need to be performed asynchronously.

[0055] In one embodiment, in the process of determining the IP identification type of the target address in step S20 above, the following classification process may be further included:

[0056] If the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the forged host, and the combined sequence are all monotonically increasing, then the IP identification type of the target address is determined to be a global type.

[0057] Specifically, if the first sequence S A , the second sequence S B and merge sequence S T If they are monotonically increasing, then the IP-ID type of the target address X is determined to be Global. At this point, the measurement and classification of the IP-ID fingerprint information of the IPv6 device at the target address is completed.

[0058] In one embodiment, in the process of determining the IP identification type of the target address in step S20, the following classification process may be further included:

[0059] If the values ​​of the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the forged host are monotonically increasing, and the value of the combined sequence is not monotonically increasing, then the IP identification type of the target address is determined to be a local type.

[0060] Specifically, if the first sequence S A and the second sequence S B is monotonically increasing, but the merge sequence S T If it is not monotonically increasing, then the IP-ID type of the target address X is determined to be Local. At this point, the measurement and classification of the IP-ID fingerprint information of the IPv6 device at the target address is completed.

[0061] In one embodiment, in the process of determining the IP identification type of the target address in step S20, the following classification process may be further included:

[0062] If the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the forged host, and the combined sequence are not monotonically increasing, then the IP identification type of the target address is determined to be a random type.

[0063] Specifically, if the first sequence S A , the second sequence S B and merge sequence S T If the values ​​of the IP-IDs of the target address X are not monotonically increasing, and the probability value obtained by the run test is less than the significance level α, then the IP-ID type of the target address X is determined to be Random. The specific value of the significance level α can be selected according to the actual detection needs. At this point, the measurement and classification of the IP-ID fingerprint information of the IPv6 device at the target address is completed.

[0064] In one embodiment, in the process of determining the IP identification type of the target address in step S20, the following classification process may be further included:

[0065] The IP identification type of the target address that does not belong to the global type, the local type, and the random type is determined as a weird type.

[0066] Specifically, during the classification process, if it is determined that the IP-ID type of the target address X does not belong to the above-mentioned Global, Local and Random types, then the IP-ID type of the target address X is determined to be Odd. At this point, the measurement and classification of the IP-ID fingerprint information of the IPv6 device at the target address is completed.

[0067] In one embodiment, preferably, the first set size W is 1300, the second set size Z is 1280, and the significance level α is 0.5. This parameter combination can have a higher success rate than other value combinations to guide the target address fragmentation.

[0068] It should be understood that although the above process 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 the application, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Figure 1 At 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 sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0069] In one embodiment, Figure 4 As shown, an IPv6 device IP identification fingerprint information detection device 100 is also provided, which may include a probe first sending module 11, a fragment filling module 13, a probe alternating sending module 15, a sequence merging module 17 and a detection output module 19. Among them, the probe first sending module 11 is used to send a probe of a first set size byte to the target address in the IPv6 detection data set by using the local address and the pseudo address of the forged host as the source address through the detection host, and receive the first response message corresponding to the local address and the second response message corresponding to the pseudo address; the probe is an ICMPv6 response request. The fragment filling module 13 is used to send an ICMPv6 packet too large message of a second set size byte to the target address by using the local address and the pseudo address of the forged host as the source address through the detection host; wherein the size of the maximum transmission unit of the path is set to the second set size, and the above ICMPv6 packet too large message is filled with the data of the first response message and the second response message. The probe alternating sending module 15 is used to send a set number of probes of the first set size byte to the target address by using the local address and the pseudo address of the forged host as the source address. The sequence merging module 17 is used to merge the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the forged host to obtain a merged sequence. The detection output module 19 is used to determine the IP identification type of the target address based on the value regularity of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the forged host, and the merged sequence.

[0070] It can be understood that each host can maintain multiple threads to traverse and detect all target addresses in the IPv6 detection data set. For the current target address X, an ICMPv6 Too Big message is generated to set the MTU value of the target address, and then a series of ICMPv6 Echo Request probes larger than the MTU are sent to guide the target address to fragment the subsequent response message, and fill the data of the first response message and the second response message into the IP-ID field. When verifying the legitimacy of the received packet at the target host, the IP-ID field can be obtained from the IPv6 extension header and recorded. It can maintain a first-in-first-out data structure. When a data packet is received, a new node is generated or the IP-ID is recorded in the old node. When the structure size of the data structure is exceeded, the old node can be automatically deleted and recorded in the log file. Finally, the collected IP-ID sequence values ​​can be analyzed and classified by decision tree on the detection host side.

[0071] The above-mentioned IPv6 device IP identification fingerprint information detection device 100, by targeting the public IPv6 active address data set, sets the MTU value of the target address for the target address ICMPv6 packet too large message, and then sends a series of ICMPv6 Echo Request probes larger than the MTU to guide the target address to generate an IP-ID for subsequent response messages, and distinguishes different IP-ID generation types by detecting the host and the fake host in turn. Compared with traditional technologies, this technology can detect IPv6 addresses within the scope of the Internet, guide IPv6 addresses to generate IP-ID sequences, and distinguish different IP-ID generation methods according to different sequence performances, providing effective technical and data support for network mapping and network security research.

[0072] In one embodiment, the detection output module 19 determines that the IP identification type of the target address is a global type when the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the counterfeit host, and the combined sequence are all monotonically increasing.

[0073] In one embodiment, when the values ​​of the IP identification sequence obtained by the detection output module 19 from the target address at the detection host and the IP identification sequence obtained from the target address at the forged host are monotonically increasing, and the value of the combined sequence is not monotonically increasing, the IP identification type of the target address is determined to be a local type.

[0074] In one embodiment, the detection output module 19 determines that the IP identification type of the target address is a random type when the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the counterfeit host, and the combined sequence are not monotonically increasing.

[0075] In one embodiment, the detection output module 19 determines the IP identification type of the target address that does not belong to the global type, the local type, and the random type as a weird type.

[0076] It can be understood that the explanation of each feature in each embodiment of the above-mentioned IPv6 device IP identification fingerprint information detection device 100 can be understood by referring to the explanation of the corresponding features of each embodiment of the above-mentioned IPv6 device IP identification fingerprint information detection method, and will not be repeated here. Each module in the above-mentioned IPv6 device IP identification fingerprint information detection device 100 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 a device with data processing functions in the form of hardware, or can be stored in the memory of the aforementioned device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. The aforementioned device can be but not limited to various types of data calculation and processing devices already available in the art.

[0077] In one embodiment, a computer device is also 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 the host, using the local address and the pseudo address of the forged host as the source address, respectively sending a probe of a first set size byte to the target address in the IPv6 detection data set, and receiving a first response message corresponding to the local address and a second response message corresponding to the pseudo address; the probe is an ICMPv6 response request; by detecting the host, using the local address and the pseudo address of the forged host as the source address, respectively sending an ICMPv6 packet too large message of a second set size byte to the target address; wherein, The size of the maximum transmission unit of the path is set to a second set size, and the above-mentioned ICMPv6 packet too large message is filled with data of the first response message and the second response message; the detection host uses the local address and the pseudo address of the forged host as the source address, and alternately sends a set number of probes with a size of the first set size bytes to the target address; the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the forged host are merged to obtain a merged sequence; the IP identification type of the target address is determined according to the value rules of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the forged host, and the merged sequence.

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

[0079] 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 device IP identification fingerprint information detection method.

[0080] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods 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 in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may 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).

[0081] 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.

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

Claims

1. A method for detecting IP identification fingerprint information of an IPv6 device, characterized in that: Includes steps: The detection host uses the local address and the pseudo address of the forged host as the source address, respectively sends a probe of a first set size byte to the target address in the IPv6 detection data set, and receives a first response message corresponding to the local address and a second response message corresponding to the pseudo address; the probe is an ICMPv6 response request; The detection host uses the local address and the pseudo address of the forged host as the source address to send an ICMPv6 packet too big message of a second set size byte to the target address respectively; wherein the size of the path maximum transmission unit is set to the second set size, and the above ICMPv6 packet too big message is filled with the data of the first response message and the second response message; The detection host uses the local address and the pseudo address of the fake host as source addresses, and sends a set number of probes of a first set size of bytes to the target address alternately; Merging the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the counterfeit host to obtain a merged sequence; The IP identification type of the target address is determined according to the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the counterfeit host, and the value rule of the combined sequence.

2. The method for detecting IPv6 device IP identification fingerprint information according to claim 1, characterized in that: The process of determining the IP identification type of the target address includes: If the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the counterfeit host, and the combined sequence are all monotonically increasing, it is determined that the IP identification type of the target address is a global type.

3. The method for detecting IPv6 device IP identification fingerprint information according to claim 1, characterized in that: The process of determining the IP identification type of the target address includes: If the values ​​of the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the counterfeit host are monotonically increasing, and the value of the combined sequence is not monotonically increasing, then it is determined that the IP identification type of the target address is a local type.

4. The method for detecting IPv6 device IP identification fingerprint information according to claim 1, characterized in that: The process of determining the IP identification type of the target address includes: If the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the counterfeit host, and the combined sequence are not monotonically increasing, the IP identification type of the target address is determined to be a random type.

5. The method for detecting IP identification fingerprint information of an IPv6 device according to any one of claims 1 to 4, characterized in that: The process of determining the IP identification type of the target address includes: The IP identification type of the target address that does not belong to the global type, the local type, and the random type is determined as a weird type.

6. An IPv6 device IP identification fingerprint information detection device, characterized in that: include: The probe first sending module is used to send a probe of a first set size byte to the target address in the IPv6 detection data set by detecting the host with the local address and the pseudo address of the forged host as the source address, and receive a first response message corresponding to the local address and a second response message corresponding to the pseudo address; the probe is an ICMPv6 response request; A fragment filling module is used to send an ICMPv6 packet too big message of a second set size byte to the target address through the detection host with the local address and the pseudo address of the forged host as the source address; wherein the size of the path maximum transmission unit is set to the second set size, and the above ICMPv6 packet too big message is filled with the data of the first response message and the second response message; A probe alternate sending module, used for sending a set number of probes of a first set size of bytes alternately to the target address through the detection host with the local address and the pseudo address of the fake host as the source address; A sequence merging module, used to merge the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the counterfeit host to obtain a merged sequence; The detection output module is used to determine the IP identification type of the target address according to the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the forged host and the value rule of the combined sequence.

7. The device for detecting IPv6 device IP identification fingerprint information according to claim 6, characterized in that: The detection output module determines that the IP identification type of the target address is a global type when the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the counterfeit host, and the combined sequence are all monotonically increasing.

8. The device for detecting IP identification fingerprint information of an IPv6 device according to claim 6, characterized in that: The detection output module determines that the IP identification type of the target address is a local type when the values ​​of the IP identification sequence obtained from the target address at the detection host and the IP identification sequence obtained from the target address at the counterfeit host are monotonically increasing, and the value of the combined sequence is not monotonically increasing.

9. The device for detecting IPv6 device IP identification fingerprint information according to claim 6, characterized in that: The detection output module determines that the IP identification type of the target address is a random type when the values ​​of the IP identification sequence obtained from the target address at the detection host, the IP identification sequence obtained from the target address at the counterfeit host, and the combined sequence are not monotonically increasing.

10. 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 IP identification fingerprint information of an IPv6 device according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Systems and methods for data packet processing

    CN103918246A

  • IPv6 alias prefix detection method based on fragmentation fingerprints

    CN112492062A

  • Detection method of path maximum transmission unit and related equipment

    CN117061625A

  • Apparatus and method of reducing dataflow disruption when detecting path maximum transmission unit (PMTU)

    US20030187975A1

  • System for controlling path maximum transmission unit by detecting repetitional IP packet fragmentation and method thereof

    US20110243138A1