IPv6 alias prefix detection method based on space tree

By using a spatial tree-based method to build a tree structure and generate potential alias prefixes round by round, it solves the problem of low efficiency and insufficient accuracy of alias prefix detection in IPv6 networks, and achieves efficient and low-cost network management and security monitoring.

CN118764465APending Publication Date: 2024-10-11NANKAI UNIV +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410745993.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In IPv6 networks, traditional alias prefix detection methods are inefficient, inaccurate, and costly, making it difficult to effectively manage and monitor network topology and security.

Method used

Adopt a method based on space tree, by reading the IPv6 address seed prefix file, build a tree structure, split to generate leaf nodes, expand to generate new prefixes, and use Zmap software to scan and detect, generate potential alias prefixes round by round, and achieve subspace division .

Benefits of technology

It improves detection efficiency and accuracy, reduces resource consumption, is suitable for IPv6 networks of various sizes and structures, has low implementation cost and wide applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764465A_ABST
    Figure CN118764465A_ABST
Patent Text Reader

Abstract

The invention discloses an IPv6 (Internet Protocol Version 6) alias prefix detection method based on a space tree, which comprises the following steps of: scanning a file containing an IPv6 address seed prefix, constructing a tree structure of a detected node, and storing all the scanned seed prefixes by utilizing the tree structure; expanding the seed prefixes in all the leaf nodes to generate expanded new prefixes; adding the new prefix into the list, and cutting according to the budget; a list containing the expanded prefixes is returned in a function form to serve as potential alias prefixes, the list containing the potential alias prefixes is scanned and detected through Zmap software, the part which is found to be the alias prefixes after scanning continues to be added into a seed prefix set, the next process of generating the potential alias prefixes and detecting is carried out, and the potential alias prefixes are generated. And continuously dividing the subspaces through the space tree by using the process. Compared with the prior art, the efficiency and the accuracy of IPV6 alias prefix detection are effectively improved.
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 protocol, and in particular relates to an IPv6 active address detection method. Background Art

[0002] IPv6 alias prefix detection is a technology used to determine the alias prefixes that exist in an IPv6 network. An IPv6 address consists of a network prefix and a host identifier, where the network prefix is ​​usually provided by an ISP (Internet Service Provider) or organization, and the host identifier is usually generated by the host. An alias prefix refers to the common prefix portion shared by a group of IPv6 addresses in a network. For example, if multiple hosts in a network use the same network prefix, then this network prefix is ​​an alias prefix.

[0003] The purpose of IPv6 alias prefix detection is to determine which common alias prefixes exist in the network, which is very important for network management and security monitoring. By identifying common alias prefixes, administrators can better understand the network topology, monitor address allocation, detect abnormal activities, etc. IPv6 alias prefix detection is crucial for network management and security monitoring, but in IPv6 networks, due to the large and dynamic address space, traditional detection methods have problems such as low efficiency, lack of accuracy, and high cost. Summary of the invention

[0004] In order to solve the technical problem of alias prefix detection in IPv6 network, the present invention proposes an IPV6 alias prefix detection method based on space tree, which aims to help network administrators better identify common alias prefixes in the network through the method of continuously dividing subspaces of space tree, achieve management goals such as network topology discovery and address allocation monitoring, and provide more comprehensive and effective support for network security protection.

[0005] In order to achieve the above-mentioned object of the invention, the present invention proposes the following technical solutions:

[0006] A method for detecting IPv6 alias prefixes based on a space tree is characterized in that it includes: reading a file containing an IPv6 address seed prefix, scanning the file, splitting a detected node containing different elements to generate its leaf nodes until it cannot be split again, constructing a tree structure consisting of a detected node and its split leaf nodes, and storing all scanned seed prefixes using the tree structure; extending the seed prefixes in all leaf nodes, in the process of extending the prefixes, allocating the extension quantity according to the quantity of the seed prefixes, enumerating the variable positions, and generating a new prefix after extension according to a function of possibility; adding the new prefix to a list and cutting it according to a budget; returning a potential alias prefix in the form of a function, scanning and detecting the list of potential alias prefixes using Zmap software, and continuing to add the part found to be an alias prefix after scanning to the seed prefix set, and performing the next round of generating potential alias prefixes and detecting; and continuously dividing subspaces through the space tree using the above process.

[0007] Compared with the traditional IPv6 alias prefix detection technology, the present invention has the following advantages:

[0008] 1) Improve detection efficiency and accuracy: By dividing the subspace into subspaces through the space tree, the search space is reduced, the complexity of detection is effectively reduced, and the efficiency and accuracy of IPV6 alias prefix detection are effectively improved;

[0009] 2) Reduce resource consumption: The optimized detection method reduces unnecessary detection operations, thereby reducing the consumption of network and computing resources;

[0010] 3) Wide applicability: It is applicable to IPv6 networks of various sizes and structures, including large-scale enterprise networks, data center networks, etc.

[0011] 4) Low implementation cost: The implementation cost is lower and does not require complex hardware equipment or a lot of manpower investment. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is an example diagram of a tree structure;

[0013] Figure 2 The present invention is a flow chart of the IPV6 alias prefix detection method based on space tree. DETAILED DESCRIPTION

[0014] The present invention is further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation methods described herein are only used to explain the present invention and are not used to limit the present invention.

[0015] There are two main ways to obtain an IPv6 prefix:

[0016] I. Prefix allocation DHCPv6-PD, when the broadband remote access server (BRAS) allocates prefixes to the optical network unit (ONU) through DHCPv6;

[0017] II. Static prefix acquisition (Static), by manually entering the prefix;

[0018] III. Prefix Delegation (PD for short): the router acts as a PD client and requests prefixes from the upper-level router / device;

[0019] IV. Stateless automatic acquisition of prefixes: This is achieved through ICMPv6 messages. When a node starts up, it sends a request to the router through an RS message. The router returns an RA message, including a prefix information option. The node uses the address prefix and other configuration parameters in the RA message to automatically configure the IPv6 address and other information of the interface.

[0020] V. Automatically obtain the prefix EUI-64: The interface identifier in the IPv6 address is generated using the interface identifier in the IEEE EUI-64 format, which is derived from the MAC address.

[0021] VI. Obtain prefix DHCPV6: The DHCPV6 server is used to obtain the IPv6 address.

[0022] Example:

[0023] The present invention proposes a method for detecting an IPv6 alias prefix based on a space tree, wherein the method flow specifically comprises the following steps:

[0024] First, read a file containing IPv6 address seed prefixes (i.e., a set of prefixes that have been detected as alias prefixes);

[0025] Then, scan from left to right, and build a tree structure by splitting and generating leaf nodes each time the detected node is a different element, until it cannot be split again. All scanned seed prefixes are stored in the tree structure, and each leaf node stores the result determined by the previous splitting process; Figure 1 As shown, taking the tree structure as an example, scanning is performed from node 6-node 2-node 1-node 3. For different elements, node 6 is split to generate leaf nodes 9, 10, and 11, node 3 is split to generate leaf nodes 7 and 8, and node 2 is split to generate leaf nodes 4 and 5.

[0026] Then, according to the budget, the seed prefixes in all leaf nodes of these tree structures are expanded to better cover the IPv6 address space. In the process of expanding the prefix, the program will allocate the expansion quantity according to the number of seed prefixes, and enumerate the variable positions to generate the expanded new prefix according to the function of possibility; except for the leaf nodes, all other nodes are the total set of subordinate nodes

[0027] The new prefix is ​​added to a list and trimmed according to the budget. Finally, a list containing the expanded prefixes is returned in the form of a function as potential alias prefixes. This list of potential alias prefixes is scanned and detected using the Zmap software. The parts that are found to be alias prefixes after scanning are continued to be added to the seed prefix set, and the next round of generating potential alias prefixes and detecting them is carried out. The above process is used to continuously divide the subspace through the space tree.

[0028] The following examples illustrate some of the above-mentioned operations:

[0029] For example, the detected nodes are different elements according to the different characters of the string, such as the third character of aab and aaa. Similar situations are determined to be different elements, and thus split to generate their leaf nodes.

[0030] The seed prefixes in all leaf nodes of the tree structure are expanded by variable positions in the seed prefixes of the leaf nodes, and the element of a leaf node at the variable position is element 1:

[0031] 2001:0db8:85a3:0000:0000:8a2e:0370:7334 / 64Element No. 2: 2001:0db8:85a3:0000:0000:8a2e:0370:7424 / 64Their different positions are the 2nd and 3rd from the last. By enumerating other possibilities for these two positions, a total of 15*15 elements can be expanded. These 225 new elements are the new prefix variable positions to be detected.

[0032] The above is only a preferred embodiment of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for detecting IPv6 alias prefixes based on a space tree, characterized in that: include: Read a file containing IPv6 address seed prefixes, scan the file, split the detected nodes containing different elements to generate their leaf nodes, until they cannot be split again, build a tree structure consisting of the detected nodes and their split leaf nodes, and store all scanned seed prefixes using the tree structure; expand the seed prefixes in all leaf nodes, and in the process of expanding the prefixes, allocate the expansion quantity according to the number of seed prefixes, and enumerate the variable positions to generate the expanded new prefix according to the possibility function; Add the new prefix to the list and trim it according to the budget; return a potential alias prefix in the form of a function, scan and detect the list of potential alias prefixes using Zmap software, and continue to add the parts that are found to be alias prefixes to the seed prefix set for the next round of generating potential alias prefixes and detecting them; use the above process to continuously divide the subspace through the space tree.

2. The method for detecting an IPv6 alias prefix based on a space tree according to claim 1, characterized in that: The extension is specifically performed through a variable position in the leaf node seed prefix.

3. The method for detecting an IPv6 alias prefix based on a space tree according to claim 1, characterized in that: Each leaf node stores the result determined by the previous splitting process.

4. The method for detecting an IPv6 alias prefix based on a space tree according to claim 1, characterized in that: The potential alias prefixes further include a list of expanded prefixes.

5. The method for detecting an IPv6 alias prefix based on a space tree according to claim 1 or 2, characterized in that: The variable position is an enumeration result of the possible node positions of the new prefix to be detected.

Citation Information

Cited By

  • IPv6 full response prefix detection method and device in Internet range and storage medium

    CN119420734A

  • IPv6 address prediction method and system based on double space trees

    CN119603043A

  • IPv6 alias prefix detection method and device based on passive analysis and active detection fusion and storage medium

    CN120110716A