A Method and System for Detecting Intranet IPv6 Concentration Based on SNMP and Asset Detection

By combining SNMP and asset detection methods in intranet detection, traversing the MAC address forwarding table and IPv6 neighbor cache table of Layer 3 gateway devices, and parsing IPv6 interaction packets, the problem of low detection results and evaluation bias in existing technologies is solved, and accurate identification of the IPv6 readiness status of intranet terminals and optimization strategy formulation are achieved.

CN123123098APending Publication Date: 2026-11-17GUANGZHOU LEPENG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611278401.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-21
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing technologies for detecting IPv6 support on intranet terminals have issues such as SNMP service not being enabled, incorrect community name configuration, or firewall blocking of management traffic, resulting in low detection results. They cannot accurately identify terminals with IPv6 communication capabilities, nor can they distinguish terminals restricted by network policies or whose services are not running, leading to evaluation bias.

Method used

By traversing the MAC address forwarding table and IPv6 neighbor cache table of the Layer 3 gateway device based on SNMP commands, and combining the parsing of IPv6 router advertisements, neighbor advertisements and DHCPv6 interaction messages by the bypass mirror port, a global passive listening database is constructed. The database is then matched with the global online list to accurately distinguish between terminals with IPv6 communication capabilities and silent terminals.

Benefits of technology

It enables accurate detection of the true IPv6 readiness status of internal network terminals, improves detection accuracy, identifies terminals with IPv6 communication capabilities and potential blind spots, and supports the development of targeted network optimization strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123123098A_ABST
    Figure CN123123098A_ABST
Patent Text Reader

Abstract

This invention provides a method and system for detecting IPv6 concentration in an internal network based on SNMP and asset detection. The method includes: traversing the MAC address forwarding table and IPv6 neighbor cache table of Layer 3 gateway devices in the target network using SNMP commands to obtain a global online list and a global gateway awareness database; parsing packets collected by a bypass mirror port deployed at the gateway aggregation point to obtain a global passive listening database; matching the global online list with the global gateway awareness database and the global passive listening database to obtain the address status of each globally online physical address; and determining the internal network IPv6 verification coverage rate and the internal network IPv6 potential blind spot rate based on the number of first verified addresses and the number of second long-term silent addresses compared to the total number of online addresses. This invention improves the accuracy of detecting the true IPv6 readiness status of internal network terminals and enables the development of targeted network optimization strategies for the internal network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer network management technology, and in particular to a method and system for detecting the concentration of IPv6 in an intranet based on SNMP and asset detection. Background Technology

[0002] With the large-scale deployment of IPv6, the IPv6 support status of terminal devices in enterprise intranets has become a key focus of network operation and maintenance management. Current technologies for detecting intranet IPv6 coverage typically employ methods such as reading network device configuration information based on the SNMP protocol or capturing IPv6 packets based on bypass traffic analysis.

[0003] However, SNMP-based methods rely on the managed devices' proactive response and correct configuration. When there are terminals in the internal network with SNMP services disabled, community names misconfigured, or firewalls blocking management traffic, these devices, which actually have IPv6 communication capabilities, will not be included in the statistics, leading to underestimation of the detection results. Bypass traffic analysis methods can only identify terminals that have generated IPv6 communication traffic. For terminals that are connected to the network but are in a silent state and have not initiated IPv6 services, it is impossible to determine whether they have IPv6 communication capabilities, also causing statistical omissions. Furthermore, existing technologies typically use coverage values ​​to consider all online terminals without detected IPv6 addresses as lacking IPv6 capabilities, ignoring the fact that some terminals may not yet exhibit IPv6 readiness due to network policy restrictions, services not being started, or improper detection timing. This makes it difficult for operations and maintenance personnel to distinguish between terminals that are confirmed to be unsupported and those with unknown IPv6 readiness, resulting in biased assessments of the true IPv6 readiness status of internal network terminals and making it difficult to develop targeted network optimization strategies for the internal network. Summary of the Invention

[0004] This invention provides a method and system for detecting the IPv6 concentration in an intranet based on SNMP and asset detection, aiming to improve the accuracy of detecting the true IPv6 readiness status of intranet terminals and to enable the formulation of targeted network optimization strategies for the intranet.

[0005] In a first aspect, the present invention provides a method for detecting the concentration of IPv6 on an internal network based on SNMP and asset detection, including: Based on SNMP commands, the MAC address forwarding table and IPv6 neighbor cache table of the Layer 3 gateway devices in the target network are traversed to obtain the global online list and global gateway awareness library. The global passive listening library is obtained by parsing the IPv6 router advertisement messages, neighbor advertisement messages and DHCPv6 interaction messages collected by the bypass mirror port deployed at the gateway aggregation point. Based on the global online list, the address status of each global online physical address is obtained by matching it with the global gateway awareness database and the global passive listening database. The address status includes verified addresses and long-term silent addresses. The verified addresses are addresses with IPv6 communication capabilities. Based on the number of first confirmed addresses and the number of second long-term silent addresses, and compared with the total number of online addresses in the global online list after excluding the global online physical addresses corresponding to the network device's own interface, the internal network IPv6 confirmed coverage rate and the internal network IPv6 potential blind spot rate are determined.

[0006] Secondly, the present invention also provides a local system for detecting the concentration of IPv6 in an internal network based on SNMP and asset detection, for implementing the method for detecting the concentration of IPv6 in an internal network based on SNMP and asset detection as described in the first aspect; the local system for detecting the concentration of IPv6 in an internal network based on SNMP and asset detection includes: The SNMP traversal module is used to traverse the MAC address forwarding table and IPv6 neighbor cache table of Layer 3 gateway devices in the target network based on SNMP commands, and obtain the global online list and global gateway awareness library. The message parsing module is used to parse IPv6 router advertisement messages, neighbor advertisement messages and DHCPv6 interaction messages collected by the bypass mirror port deployed at the gateway aggregation point to obtain a global passive listening library; The physical address matching module is used to match the global gateway awareness database and the global passive listening database based on the global online list to obtain the address status of each global online physical address; the address status includes verified addresses and long-term silent addresses, and the verified addresses are addresses with IPv6 communication capabilities; The IPv6 concentration detection module is used to determine the internal network IPv6 confirmed coverage rate and the internal network IPv6 potential blind spot rate based on the first number of confirmed addresses and the second number of long-term silent addresses, respectively, and the total number of online addresses in the global online list after excluding the global online physical addresses corresponding to the network device's own interface.

[0007] Thirdly, the present invention also provides an electronic device, comprising: a memory for storing a computer program; and a processor for reading and executing the computer program, thereby realizing the intranet IPv6 concentration detection method based on SNMP and asset detection as described above.

[0008] Fourthly, the present invention also provides a non-transitory computer-readable storage medium storing a computer program, which, when executed by a processor, implements the intranet IPv6 concentration detection method based on SNMP and asset detection as described above.

[0009] Fifthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the intranet IPv6 concentration detection method based on SNMP and asset detection as described above.

[0010] The intranet IPv6 concentration detection method based on SNMP and asset detection provided in this invention obtains a comprehensive online list and a global gateway awareness library by traversing the MAC address forwarding table and IPv6 neighbor cache table of the Layer 3 gateway device. This overcomes the limitations of traditional single SNMP detection, which relies on terminal devices having the corresponding service enabled, normal configuration, and no firewall blocking. It can comprehensively capture the physical addresses of all online terminals on the intranet, avoiding the problem of compliant IPv6-capable terminals being missed due to device configuration and protection policy issues, resulting in low detection results. Furthermore, by relying on the bypass mirror port of the gateway aggregation point to parse various core IPv6 interaction packets and construct a global passive listening library, it overcomes the shortcomings of traditional bypass traffic analysis, which can only identify terminals generating IPv6 communication traffic and cannot identify silent terminals, thus achieving effective capture of terminal IPv6 communication behavior. The entire online list is bidirectionally matched with the global gateway awareness database and the global passive listening database. Based on the total number of online terminals, the status of all online physical addresses is accurately classified, clearly distinguishing between verified addresses with IPv6 communication capabilities and long-term silent addresses that do not generate IPv6 traffic. This breaks away from the existing technology's single judgment logic of uniformly judging all online terminals without detected IPv6 addresses as lacking IPv6 capability. It accurately identifies terminals that are confirmed to not support IPv6 and the group of terminals whose status is unknown due to network policies, services not being started, or improper detection timing. By calculating the number of these two types of addresses and the total number of valid online addresses, the internal network IPv6 verification coverage rate and potential blind spot rate are accurately obtained. This comprehensively corrects the statistical errors and evaluation biases of traditional detection methods, effectively improving the accuracy of detecting the true IPv6 readiness status of internal network terminals. This allows maintenance personnel to clearly understand the true IPv6 adaptation status of internal network terminals and potential problem areas, enabling the formulation of targeted network optimization strategies for the internal network. Attached Figure Description

[0011] Figure 1 This is a flowchart illustrating the intranet IPv6 concentration detection method based on SNMP and asset detection provided in this embodiment of the invention. Figure 2 This is a schematic diagram of the structure of a local intranet IPv6 concentration system based on SNMP and asset detection provided in an embodiment of the present invention; Figure 3 An embodiment diagram of the electronic device provided in this invention; Figure 4 An embodiment diagram of a computer-readable storage medium provided in accordance with the present invention. Detailed Implementation

[0012] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0013] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified. In the description of this invention, the term "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for illustrative purposes. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed herein.

[0014] Optionally, see Figure 1 , Figure 1 This is a flowchart illustrating the intranet IPv6 concentration detection method based on SNMP and asset detection provided by the present invention. In this embodiment, the execution entity of the intranet IPv6 concentration detection method based on SNMP and asset detection is a network detection system. Therefore, the intranet IPv6 concentration detection method based on SNMP and asset detection includes: Step 10: Based on SNMP commands, traverse the MAC address forwarding table and IPv6 neighbor cache table of the Layer 3 gateway devices in the target network to obtain the global online list and global gateway awareness database.

[0015] Optionally, the network detection system uses SNMP (Simple Network Management Protocol) commands to traverse and query all Layer 3 gateway devices in the target network. According to a pre-configured list of Layer 3 gateway device management addresses, it sends SNMP read requests to each Layer 3 gateway device to obtain the forwarding table entries maintained by that device. Layer 3 gateway devices refer to network devices in the target network that perform cross-segment data forwarding functions and have routing addressing capabilities, specifically including Layer 3 switches and routers. Simultaneously, the network detection system uses SNMP commands to read the MAC (Media Access Control) address forwarding table from each Layer 3 gateway device.

[0016] The MAC address forwarding table is a mapping table maintained by Layer 3 gateway devices when forwarding frames at the data link layer. Each record in this table contains a learned MAC address and the corresponding physical port number. When a terminal device accesses the target network and generates a data frame at any level, the Layer 3 gateway device writes the terminal device's MAC address into the MAC address forwarding table through a source MAC address learning mechanism. Therefore, the set of MAC addresses recorded in the MAC address forwarding table can reflect all devices currently connected on the physical link.

[0017] The network monitoring system reads the IPv6 neighbor cache table in each Layer 3 gateway device via SNMP commands. The IPv6 neighbor cache table is a mapping table maintained by the Layer 3 gateway device at the network layer using the Neighbor Discovery Protocol (NDP). Each record in this table contains the IPv6 address of a discovered neighbor node and its corresponding MAC address. When a terminal device completes IPv6 address configuration and interacts with the Layer 3 gateway device for neighbor discovery, the Layer 3 gateway device writes the mapping between the terminal device's IPv6 address and MAC address into the IPv6 neighbor cache table.

[0018] The network detection system aggregates the MAC addresses in the MAC address forwarding tables of all Layer 3 gateway devices, removes duplicate MAC addresses, and forms a global online list. Each MAC address in the global online list is defined as a global online physical address, and each global online physical address corresponds to one device in the target network that is currently connected on the physical link.

[0019] The network detection system aggregates records from the IPv6 neighbor cache tables of all Layer 3 gateway devices to form a global gateway awareness database. Each record in the global gateway awareness database contains a mapping relationship between an IPv6 address and its corresponding MAC address, indicating that the device identified by the corresponding MAC address has been confirmed and assigned an IPv6 address by the Layer 3 gateway device through the IPv6 neighbor discovery protocol.

[0020] In one embodiment, assume the target network contains two Layer 3 gateway devices, namely Layer 3 gateway device 1 and Layer 3 gateway device 2. The MAC address forwarding table of Layer 3 gateway device 1 is read using SNMP commands, obtaining 28 MAC address-to-physical port mapping records; the MAC address forwarding table of Layer 3 gateway device 2 is read using SNMP commands, obtaining 22 MAC address-to-physical port mapping records. The MAC addresses in the MAC address forwarding tables of the two Layer 3 gateway devices are aggregated, and duplicates are removed, resulting in 50 unique MAC addresses, forming a global online list containing 50 globally online physical addresses.

[0021] The IPv6 neighbor cache table of Layer 3 gateway device 1 was read using SNMP commands, retrieving 18 mapping records between IPv6 addresses and MAC addresses. Similarly, the IPv6 neighbor cache table of Layer 3 gateway device 2 was read using SNMP commands, retrieving 14 mapping records between IPv6 addresses and MAC addresses. The records from the IPv6 neighbor cache tables of the two Layer 3 gateway devices were then aggregated to form a global gateway awareness database. Assuming the global gateway awareness database contains 32 mapping records between IPv6 addresses and MAC addresses...

[0022] Step 20: Based on the IPv6 router advertisement messages, neighbor advertisement messages, and DHCPv6 interaction messages collected by the bypass mirror port deployed at the gateway aggregation point, the global passive listening library is obtained by parsing.

[0023] Optionally, a bypass mirroring port is deployed at the gateway aggregation point of the target network. The gateway aggregation point refers to the physical network node where uplink or downlink traffic from multiple Layer 3 gateway devices in the target network converges; that is, the interconnection and switching node between multiple Layer 3 gateway devices and the upper-layer network or lower-layer access network. The bypass mirroring port uses port mirroring technology to completely copy the network traffic flowing through the gateway aggregation point to a single independent collection port. This collection port obtains a copy of the traffic, enabling network traffic collection without affecting the normal forwarding of the original data. Therefore, the network detection system continuously collects network traffic passing through the gateway aggregation point through the bypass mirroring port within a preset collection period, and filters out the following three types of IPv6-related packets from the collected network traffic for parsing: The first type is the IPv6 Router Advertisement (RA) message. An IPv6 Router Advertisement message is an Internet Control Message Protocol version 6 (ICMPv6) type 134 message sent periodically by routers or in response to router requests within the IPv6 Neighbor Discovery Protocol. It carries the sending router's link-local IPv6 address, network prefix information, and address configuration flags. The network detection system extracts the source MAC address from each IPv6 Router Advertisement message and records the IPv6 prefix information associated with that source MAC address.

[0024] The second type is the Neighbor Advertisement (NA) message. A Neighbor Advertisement (NA) message is an ICMPv6 type 136 message used by nodes in the IPv6 Neighbor Discovery Protocol (NNIP) to respond to neighbor requests or actively advertise their own IPv6 addresses. This message carries the sending node's IPv6 address and MAC address. The network detection system extracts the source MAC address and source IPv6 address from each NA message, forming a mapping record between the source MAC address and the source IPv6 address.

[0025] The third category consists of Dynamic Host Configuration Protocol version 6 (DHCPv6) interaction messages. DHCPv6 interaction messages are used between terminal devices and DHCPv6 servers to exchange IPv6 address information, including Solicit, Advertise, Request, and Reply messages. The network detection system extracts the terminal device's MAC address and the associated IPv6 address from each DHCPv6 interaction message. The terminal device's MAC address is obtained through the Client Identifier option or Link Layer Address option carried in the DHCPv6 message, while the associated IPv6 address is obtained through the Identity Association option or Non-Temporary Address option in the DHCPv6 message.

[0026] The network monitoring system summarizes all MAC address and IPv6 address mappings obtained from the three types of packets mentioned above during the collection period, removes duplicates, and forms a global passive listening database. Each record in the global passive listening database contains a mapping relationship between a passively monitored MAC address and its associated IPv6 address. This mapping relationship indicates that the device identified by the corresponding MAC address has generated IPv6 layer packet interactions during the collection period.

[0027] In one embodiment, at the gateway aggregation point where the uplinks of Layer 3 gateway device 1 and Layer 3 gateway device 2 converge, network traffic flowing through this node is copied to a bypass mirror port using port mirroring technology. During the collection period, from the network traffic collected from the bypass mirror port, IPv6 router advertisement messages involving 5 source MAC addresses and their corresponding IPv6 prefix information are parsed out; neighbor advertisement messages involving 15 source MAC addresses and their corresponding source IPv6 addresses are parsed out; and DHCPv6 interaction messages involving 12 terminal MAC addresses and their corresponding IPv6 addresses are parsed out. After summarizing the MAC address-IPv6 address mapping relationships extracted from the above three types of messages, duplicates are removed to form a global passive listening database. Assume that the global passive listening database contains 25 MAC address-IPv6 address mapping records.

[0028] Step 30: Based on the global online list, match it with the global gateway awareness database and the global passive listening database to obtain the address status of each global online physical address. The address status includes verified addresses and long-term silent addresses. Verified addresses are those with IPv6 communication capabilities.

[0029] Optionally, the network detection system matches each globally online physical address in the globally online list with the global gateway awareness database and the global passive eavesdropping database, respectively. The matching is based on the consistency between the globally online physical address and the MAC address field recorded in the global gateway awareness database and the global passive eavesdropping database. If a globally online physical address has a corresponding mapping record in at least one of the global gateway awareness database or the global passive eavesdropping database, then the address status of the globally online physical address is marked as a verified address. A verified address refers to the physical address corresponding to a terminal device in the target network that has been confirmed and allocated an IPv6 address by at least one of the active query method or passive eavesdropping method and has IPv6 communication capabilities. If a globally online physical address does not have a corresponding mapping record in either the global gateway awareness database or the global passive eavesdropping database, then the address status of the globally online physical address is marked as a long-term silent address, as described in steps 301 to 304. Long-term silent addresses refer to the physical addresses of terminal devices that, during the collection period, are physically connected but do not exhibit any IPv6 address information in IPv6 packets in the IPv6 neighbor discovery protocol or bypass traffic. These terminal devices may not be IPv6 ready due to network policy restrictions, lack of IPv6 service activation, or inappropriate detection timing, and their IPv6 communication capabilities are unknown.

[0030] Step 40: Based on the number of first addresses with confirmed addresses and the number of second addresses with long-term silent addresses, and compared with the total number of online addresses in the global online list after excluding the global online physical addresses corresponding to the network devices' own interfaces, determine the internal network IPv6 confirmed coverage rate and the internal network IPv6 potential blind spot rate.

[0031] Optionally, the network detection system excludes globally online physical addresses belonging to the network device's own interface from the global online list. The network device's own interface refers to the MAC address corresponding to the physical interface used for device management or inter-device interconnection by network infrastructure devices such as Layer 3 gateways and Layer 2 switches. This MAC address identifies the network infrastructure device itself, not the terminal device accessing the network, and should not be included in the IPv6 readiness status statistics of the terminal device. The exclusion is based on a pre-maintained list of network device interface MAC addresses, which records the MAC addresses of all network infrastructure devices' own interfaces in the target network. After removing globally online physical addresses from the global online list that match the list of network device interface MAC addresses, the total number of remaining globally online physical addresses is recorded as the total number of online addresses. Similarly, globally online physical addresses matching the list of network device interface MAC addresses in the first address count are also removed, and the remaining number is still recorded as the first address count; globally online physical addresses matching the list of network device interface MAC addresses in the second address count are also removed, and the remaining number is still recorded as the second address count.

[0032] The internal network IPv6 verification coverage rate is determined by dividing the number of primary addresses by the total number of online addresses; the quotient is the internal network IPv6 verification coverage rate. The internal network IPv6 verification coverage rate reflects the proportion of terminal devices in the target network that have been verified to have IPv6 communication capabilities out of all online terminal devices.

[0033] The potential IPv6 blind spot rate of the internal network is determined by dividing the number of second addresses by the total number of online addresses. The quotient is the potential IPv6 blind spot rate of the internal network. The potential IPv6 blind spot rate reflects the proportion of terminal devices in the target network that are online but did not exhibit IPv6 address information or whose IPv6 readiness status is uncertain during the collection period. These terminal devices constitute potential IPv6 coverage blind spots in the target network, providing maintenance personnel with a range of terminal groups that need to be investigated and optimized.

[0034] In one embodiment, assuming that among the 50 globally online physical addresses in the global online list, two globally online physical addresses match the network device interface MAC address list, namely the management interface MAC address of Layer 3 gateway device 1 and the management interface MAC address of Layer 3 gateway device 2. After excluding these two globally online physical addresses, the total number of online addresses is 48. These two globally online physical addresses are both marked as verified addresses in the matching process of step 30.

[0035] After matching in step 30, assuming there are 38 confirmed addresses, including the fully online physical addresses of the interfaces of the two network devices mentioned above, the number of first addresses after removal is 36; there are 12 long-term silent addresses, which do not include the fully online physical addresses of the interfaces of the network devices themselves, and the number of second addresses is 12.

[0036] The confirmed IPv6 coverage rate of the internal network is 75% (36 for the first number of addresses, 48 ​​for the total number of online addresses). The potential IPv6 blind spot rate of the internal network is 25% (12 for the second number of addresses, 48 ​​for the total number of online addresses).

[0037] This invention, through traversing the MAC address forwarding table and IPv6 neighbor cache table of a Layer 3 gateway device, obtains a comprehensive online list and a global gateway awareness library. This overcomes the limitations of traditional single SNMP detection, which relies on terminal devices having the corresponding service enabled, normal configuration, and no firewall blocking. It can comprehensively capture the physical addresses of all online terminals on the intranet, avoiding the problem of compliant IPv6-capable terminals being missed due to device configuration and protection policy issues, resulting in low detection results. Furthermore, by relying on the bypass mirror port of the gateway aggregation point to parse various core IPv6 interaction packets, a global passive listening library is constructed. This overcomes the shortcomings of traditional bypass traffic analysis, which can only identify terminals generating IPv6 communication traffic and cannot identify silent terminals, thus achieving effective capture of terminal IPv6 communication behavior. The entire online list is bidirectionally matched with the global gateway awareness database and the global passive listening database. Based on the total number of online terminals, the status of all online physical addresses is accurately classified, clearly distinguishing between verified addresses with IPv6 communication capabilities and long-term silent addresses that do not generate IPv6 traffic. This breaks away from the existing technology's single judgment logic of uniformly judging all online terminals without detected IPv6 addresses as lacking IPv6 capability. It accurately identifies terminals that are confirmed to not support IPv6 and the group of terminals whose status is unknown due to network policies, services not being started, or improper detection timing. By calculating the number of these two types of addresses and the total number of valid online addresses, the internal network IPv6 verification coverage rate and potential blind spot rate are accurately obtained. This comprehensively corrects the statistical errors and evaluation biases of traditional detection methods, effectively improving the accuracy of detecting the true IPv6 readiness status of internal network terminals. This allows maintenance personnel to clearly understand the true IPv6 adaptation status of internal network terminals and potential problem areas, enabling the formulation of targeted network optimization strategies for the internal network.

[0038] Optionally, the processes of steps 301 to 304 include: Step 301: For each globally online physical address in the global online list, if the globally online physical address has a corresponding global unicast IPv6 address in the global gateway awareness database or the global passive listening database, then the globally online physical address is determined as a verified address.

[0039] Optionally, the network detection system performs a global unicast IPv6 address existence determination for each globally online physical address in the global online list. Specifically, using the currently processed globally online physical address as the search key, it searches the global gateway awareness database and the global passive listening database to see if a global unicast IPv6 address corresponding to that globally online physical address exists. A global unicast IPv6 address refers to an IPv6 address with the address prefix 2000:: / 3, meaning the highest 3 bits of the address are 001. It is unique and can be routed and forwarded across the Internet, unlike link-local IPv6 addresses which are only valid within the link-local scope. The method for determining a global unicast IPv6 address is as follows: extract the IPv6 addresses associated with the globally online physical address from the global gateway awareness database or the global passive listening database, and determine if the first 3 bits of the IPv6 address are 001. If they are 001, then the IPv6 address is a global unicast IPv6 address.

[0040] If the current global online physical address has a corresponding global unicast IPv6 address in the global gateway awareness database or in the global passive listening database, that is, at least one of the two databases has a corresponding global unicast IPv6 address, then the address status of the global online physical address is determined as a verified address, and subsequent processing of the global online physical address is stopped, and the process moves to the next global online physical address in the global online list.

[0041] In one embodiment, it is assumed that the global online list contains 50 global online physical addresses. The existence of a global unicast IPv6 address is determined for each of the 50 global online physical addresses. Assuming that 33 of these global online physical addresses have corresponding global unicast IPv6 addresses in the global gateway awareness database, and 4 global online physical addresses do not have corresponding global unicast IPv6 addresses in the global gateway awareness database but do have corresponding global unicast IPv6 addresses in the global passive listening database, then these 33 global online physical addresses and the 4 global online physical addresses, totaling 37 global online physical addresses, are determined to be verified addresses. The remaining 13 global online physical addresses do not have corresponding global unicast IPv6 addresses in either the global gateway awareness database or the global passive listening database.

[0042] Step 302: If the global unicast IPv6 address corresponding to the global online physical address does not exist in the global gateway awareness database and the global passive listening database, then the VLAN identifier of the global online physical address is compared with the VLAN identifier of the local system to obtain the VLAN comparison result.

[0043] Optionally, for globally online physical addresses whose corresponding global unicast IPv6 addresses do not exist in either the global gateway awareness database or the global passive listening database, the network detection system compares the virtual LAN identifier of the globally online physical address with the virtual LAN identifier of the local system to obtain the virtual LAN comparison result. The virtual LAN identifier is a field associated with each globally online physical address in the globally online list. This field records the number of the virtual LAN accessed by the device corresponding to the globally online physical address. This number originates from the virtual LAN information recorded in the MAC address forwarding table of the Layer 3 gateway device in step 10. The virtual LAN identifier of the local system is the number of the virtual LAN it accesses, which is pre-configured during the deployment of the network detection system.

[0044] The network detection system performs the comparison as follows: it compares the value of the virtual local area network (VLAN) identifier of the current online physical address with the value of the VLAN identifier of the local system. If the two values ​​are equal, the VLAN comparison result indicates that the VLAN identifiers are consistent; if the two values ​​are not equal, the VLAN comparison result indicates that the VLAN identifiers are inconsistent.

[0045] In one embodiment, assume the virtual local area network (VLAN) identifier of the local system is 100. For the remaining 13 globally online physical addresses from step 301, their respective VLAN identifiers are compared with 100. Assume that 8 of these globally online physical addresses belong to VLANs with identifiers of 100, indicating a match; and that 5 of these globally online physical addresses belong to VLANs with identifiers of 200, indicating a mismatch.

[0046] Step 303: If the VLAN comparison result indicates that the VLAN identifiers are consistent, then the online physical address across the entire domain is determined as the address to be tested within the same domain. If the VLAN comparison result indicates that the VLAN identifiers are inconsistent, then the online physical address across the entire domain is determined as the address to be suspended across domains.

[0047] Optionally, the network detection system classifies each global online physical address that was not identified as a verified address in step 301 based on the virtual local area network comparison results.

[0048] If the virtual LAN comparison result indicates that the virtual LAN identifiers are consistent, then the online physical address of the entire domain is determined as the address to be tested in the same domain.

[0049] The same domain address to be tested refers to the physical address of a terminal device that is in the same virtual local area network as the local system, has not yet been confirmed to have a global unicast IPv6 address at the current detection time, but whose IPv6 ready status can be determined through active probing within the local link range.

[0050] If the VLAN comparison result indicates a mismatch in VLAN identifiers, then the globally online physical address is determined to be a cross-domain pending address. A cross-domain pending address refers to the physical address of a terminal device that is located in a different VLAN from the local system, has not yet been confirmed to have a global unicast IPv6 address at the current detection time, and whose IPv6 readiness status needs to be determined through cross-VLAN transport layer probing.

[0051] In one embodiment, eight virtual LAN identifiers with a global online physical address of 100 are identified as intra-domain test addresses, and five virtual LAN identifiers with a global online physical address of 200 are identified as cross-domain suspended addresses.

[0052] Step 304: Perform address status detection on the same-domain test address and the cross-domain pending address to obtain the address status corresponding to the same-domain test address and the cross-domain pending address.

[0053] Optionally, the network detection system performs address status probing on intra-domain test addresses and cross-domain pending addresses, as detailed in steps 3041 to 3044. For example, for intra-domain test addresses, active probing is performed through link-local IPv6 neighbor discovery protocol interaction and Internet Control Message Protocol version 6 echo request mechanism to obtain the address status of each intra-domain test address. This address status includes confirmed addresses and intra-domain silent addresses. A intra-domain silent address refers to the physical address corresponding to a terminal device that is in the same virtual LAN as the local system and has not yet exhibited a global unicast IPv6 address after active probing. For cross-domain pending addresses, active probing across virtual LANs is performed through Transmission Control Protocol synchronization message mechanism to obtain the address status of each cross-domain pending address. This address status includes confirmed addresses and cross-domain pending addresses. Cross-domain pending address refers to the physical address of a terminal device that is located in a different virtual local area network from the local system, has not yet shown a global unicast IPv6 address after synchronous detection by the transmission control protocol, and whose IPv6 readiness status is pending confirmation by passive listening results in subsequent status update cycles.

[0054] This invention combines passive matching with active probing, distinguishing between intra-domain and cross-domain probing paths based on virtual LAN affiliation. For each terminal device that fails to confirm IPv6 capability during the passive observation phase, active probing methods adapted to its network location are applied. This avoids misjudging terminals with actual IPv6 communication capabilities as lacking them due to omissions caused by a single detection method, improving the accuracy of detecting the true IPv6 readiness status of intranet terminals and enabling the development of targeted network optimization strategies for intranets.

[0055] Optionally, the processes of steps 3041 to 3044 include: Step 3041: Send a neighbor request message to each address under test in the same domain. If a neighbor advertisement message is received from the address under test in response to the neighbor request message, send an ICMPv6 echo request message to the link-local IPv6 address corresponding to the address under test in the same domain. Perform ICMPv6 echo request verification on the address under test in the same domain based on the ICMPv6 echo request message to obtain the address status of each address under test in the same domain.

[0056] Optionally, the network detection system sends a neighbor request message to each address under test within the same domain. The neighbor request message is a Type 135 message from Internet Control Message Protocol version 6 (ICP 6) used in the IPv6 Neighbor Discovery Protocol to request a response from a target node regarding its link-layer address. Since the address under test is within the same virtual LAN as the local system, the neighbor request message can reach the target device directly within the link-local scope without requiring Layer 3 routing. If no neighbor advertisement message is received from the address under test in response to the neighbor request message within a preset response waiting time, the address under test is designated as a silent address within the same domain. The neighbor advertisement message is a Type 136 message from ICP 6 used in the IPv6 Neighbor Discovery Protocol to respond to neighbor requests or actively advertise its own address information.

[0057] If a neighbor advertisement message is received from the target address in the same domain in response to a neighbor request message within the preset response waiting time, an Internet Control Message Protocol version 6 (ICP-6) echo request message is sent to the link-local IPv6 address corresponding to the target address. Based on the ICP-6 echo request message, ICP-6 echo request verification is performed on the target address to obtain its address status, as detailed in steps 30411 to 30414. The link-local IPv6 address is an address automatically configured by a node within the link-local scope in the IPv6 neighbor discovery protocol. Its prefix is ​​fe80:: / 10. This address is only valid within the local link scope and cannot be forwarded across routers. The ICP-6 echo request message is an ICP-6 type 128 message used to request the target node to return an ICP-6 echo response message to confirm network layer connectivity. Address status includes confirmed addresses and silent addresses within the same domain.

[0058] Step 3042: Send a TCP synchronization message to the link-local IPv6 address corresponding to each cross-domain suspended address. Perform TCP synchronization verification on each cross-domain suspended address based on the TCP synchronization message to obtain the address status of each cross-domain suspended address. The address status includes verified addresses and cross-domain pending trigger addresses.

[0059] Optionally, the network detection system sends a Transmission Control Protocol (TCP) synchronization message to the link-local IPv6 address corresponding to each cross-domain suspended address. Based on the TCP synchronization message, the system performs TCP synchronization verification on each cross-domain suspended address to obtain the address status of each cross-domain suspended address, as detailed in steps 30421 to 30424. The TCP synchronization message is a message used in the TCP to initiate connection establishment, and its synchronization flag is set to 1. Since the cross-domain suspended address and the local system are in different virtual LANs, the network detection system probes through the link-local IPv6 address. The link-local IPv6 address is reachable on the same physical link and is not restricted by routing policies between virtual LANs. The address status includes verified addresses and cross-domain pending trigger addresses.

[0060] Step 3043: Within each preset state update cycle, read the newly added global unicast IPv6 addresses from the global gateway awareness library and the global passive listening library.

[0061] Optionally, the network detection system reads newly added global unicast IPv6 addresses from the global gateway awareness database and the global passive listening database within each preset state update cycle. The preset state update cycle is a pre-configured time interval. Upon the arrival of each preset state update cycle, steps 10 and 20 are re-executed to update the contents of the global gateway awareness database and the global passive listening database. Newly added global unicast IPv6 addresses refer to global unicast IPv6 addresses that appear in the updated global gateway awareness database or the global passive listening database but were not present in the previously updated global gateway awareness database or the global passive listening database.

[0062] The network detection system compares the updated global gateway awareness database and global passive eavesdropping database with the database updated in the last update to extract the newly added global unicast IPv6 addresses and their corresponding media access control addresses.

[0063] In one embodiment, it is assumed that the preset state update cycle is 30 minutes. When the first preset state update cycle arrives, steps 10 and 20 are re-executed to update the global gateway awareness database and the global passive eavesdropping database. Assuming that the updated global gateway awareness database contains 2 new mapping records between global unicast IPv6 addresses and media access control addresses, and the updated global passive eavesdropping database contains 1 new mapping record between global unicast IPv6 addresses and media access control addresses, then a total of 3 new global unicast IPv6 addresses are read in this update.

[0064] Step 3044: For cross-domain pending-trigger addresses and same-domain silent addresses, if a corresponding newly added global unicast IPv6 address exists in the global gateway awareness database or the global passive listening database, then the cross-domain pending-trigger address and same-domain silent address are updated to confirmed addresses. If, within a consecutive preset number of status update cycles, no corresponding newly added global unicast IPv6 address exists in either the global gateway awareness database or the global passive listening database, then the cross-domain pending-trigger address and same-domain silent address are updated to long-term silent addresses.

[0065] Optionally, for each cross-domain trigger address and each intra-domain silent address, the network detection system determines whether a new global unicast IPv6 address corresponding to that cross-domain trigger address or intra-domain silent address exists in the global gateway awareness database or global passive monitoring database. The determination method is as follows: using the media access control address of the current cross-domain trigger address or the current intra-domain silent address as the search key, the system searches among the read new global unicast IPv6 addresses for a global unicast IPv6 address corresponding to that media access control address.

[0066] If a corresponding newly added global unicast IPv6 address exists in the global gateway awareness database or the global passive listening database, that is, if at least one of the two databases has a record corresponding to the media access control address in the newly added global unicast IPv6 address, then the cross-domain pending trigger address or the same-domain silent address will be updated to the confirmed address.

[0067] If, within a consecutive preset quantity status update cycle, no corresponding new global unicast IPv6 address is found in either the global gateway awareness database or the global passive listening database (meaning there is no record corresponding to the media access control address in either database), then the cross-domain pending address or the same-domain silent address is updated to a long-term silent address. The preset quantity status update cycle is a pre-configured continuous periodic counting threshold. When a cross-domain pending address or same-domain silent address has not been observed to have a new global unicast IPv6 address for a consecutive preset quantity status update cycle, it indicates that the terminal device has not exhibited an IPv6 ready state for an extended period.

[0068] In one embodiment, it is assumed that the preset state update cycle is 3. During the first preset state update cycle, among the 3 newly added global unicast IPv6 addresses read in step 3043, if the media access control address corresponding to one of the newly added global unicast IPv6 addresses is equal to a certain silent address within the same domain, then that silent address within the same domain is updated to a confirmed address. The remaining 2 silent addresses within the same domain and the 3 cross-domain pending trigger addresses do not have corresponding newly added global unicast IPv6 addresses observed during the first preset state update cycle. During the second preset state update cycle, if the media access control address corresponding to one of the 3 cross-domain pending trigger addresses appears among the newly added global unicast IPv6 addresses, then that cross-domain pending trigger address is updated to a confirmed address. Within the third preset state update cycle, the remaining two intra-domain silent addresses and two cross-domain pending addresses have not yet observed the corresponding newly added global unicast IPv6 addresses. At this point, three preset state update cycles have passed, and the two intra-domain silent addresses and the two cross-domain pending addresses are updated to long-term silent addresses.

[0069] This invention employs a combination of link-layer neighbor discovery protocol interaction and network-layer ICMPv6 echo request to probe addresses within the same domain, and a transport-layer TCP synchronous probe to probe suspended addresses across domains. These two paths are adapted to the network topology characteristics of the same broadcast domain and cross-broadcast domain, respectively. For addresses that are still not confirmed after active probing, a continuous passive observation mechanism with a preset state update cycle is used to avoid misjudgment, thereby improving the accuracy of detecting the true IPv6 readiness status of internal network terminals and enabling the formulation of targeted network optimization strategies for the internal network.

[0070] Optionally, the processes of steps 30411 to 30414 include: Step 30411: Based on the IPv6 neighbor discovery protocol, the same-domain address to be tested is converted into the corresponding multicast IPv6 address, and a neighbor request message instance is constructed with the first link local IPv6 address corresponding to the first virtual network interface instance bound to the VLAN identifier of the same-domain address to be tested in the local system as the source address, the multicast IPv6 address as the destination address, and the physical address of the local system as the source link layer address.

[0071] Optionally, the network detection system converts the currently processed intra-domain test addresses into corresponding multicast IPv6 addresses based on the IPv6 neighbor discovery protocol. A multicast IPv6 address refers to an IPv6 address whose destination address is the requesting node's multicast address. The requesting node's multicast address is formed by concatenating the prefix ff02::1:ff00:0 / 104 with the lower 24 bits of the target IPv6 address. It is used to send neighbor requests to a specific target node within the local scope of the link, avoiding interference from broadcasts to all nodes on the same link.

[0072] The network detection system uses the first link local IPv6 address corresponding to the first virtual network interface instance bound to the virtual LAN identifier of the address to be tested in the same domain as the source address, the multicast IPv6 address as the destination address, and the physical address of the local system as the source link layer address to construct a neighbor request message instance.

[0073] The first virtual network interface instance is a virtual network interface created in the local system for the virtual LAN identifier of the address under test in the same domain. This virtual network interface is bound to the same virtual LAN identifier as the address under test in the same domain, enabling the network detection system to send and receive packets within this virtual LAN. The first link-local IPv6 address is the link-local IPv6 address configured in the first virtual network interface instance. The physical address of the local system is the media access control address of the device. In the neighbor request message instance, the Internet Control Message Protocol version 6 type field value is 135, the destination address field is filled with the global unicast IPv6 address or link-local IPv6 address corresponding to the address under test in the same domain, and the source link layer address option field is filled with the physical address of the local system.

[0074] Taking the first of eight intra-domain test addresses as an example, its virtual LAN identifier is 100. In the local system, a first virtual network interface instance is bound to this virtual LAN identifier 100. The first link-local IPv6 address corresponding to this first virtual network interface instance is assumed to be fe80::1. Based on the IPv6 neighbor discovery protocol, this intra-domain test address is converted into a corresponding multicast IPv6 address, assumed to be ff02::1:ff00:1. Using fe80::1 as the source address, ff02::1:ff00:1 as the destination address, and the local system's physical address as the source link-layer address, a neighbor request message instance is constructed.

[0075] Step 30412: Using the outgoing interface as the second virtual network interface instance, send a neighbor request message instance to the destination address, parse the first inbound data stream monitored by the first virtual network interface instance to obtain the first data packet, and determine whether there is a first response message in the first data packet that is of ICMPv6 type neighbor advertisement and has a same domain address to be tested in the target link layer address.

[0076] Optionally, the network detection system uses the outgoing interface as the second virtual network interface instance to send a neighbor request message instance to the destination address. The second virtual network interface instance is a virtual network interface used in the local system to send probe messages. This virtual network interface is associated with the same physical network interface as the first virtual network interface instance, but it performs the message sending function. After being sent from the second virtual network interface instance, the neighbor request message instance reaches the terminal device corresponding to the target address in the same domain via the physical network.

[0077] The network detection system parses the first inbound data stream monitored by the first virtual network interface instance to obtain the first data packet. The first inbound data stream is the collection of all inbound packets received by the first virtual network interface instance within a preset response waiting time after the neighbor request message instance is sent.

[0078] The network detection system checks each message in the first data packet one by one to determine whether there is a first response message in the first data packet with Internet Control Message Protocol version 6 (ICP-6) type "Neighbor Advertisement" and a target link layer address containing a peer address under test. The first response message is a Neighbor Advertisement message returned by the terminal device corresponding to the peer address under test after receiving a Neighbor Request message instance. The ICP-6 type field value of this message is 136, and the Media Access Control address carried in the target link layer address option field is equal to the current peer address under test.

[0079] In one embodiment, using the outgoing interface as the second virtual network interface instance, a neighbor request message instance is sent to ff02::1:ff00:1. Within a preset response waiting time, the first virtual network interface instance receives the first inbound data stream and parses it to obtain the first data packet. Assuming that the first data packet contains a message of type Neighbor Advertisement (IAV) 6 and the target link layer address contains the same domain address to be tested, then it is determined that a first response message exists.

[0080] Step 30413: For cases where no first response message exists, the address to be tested in the same domain is determined as a silent address in the same domain.

[0081] Optionally, for a peer address under test that does not have a first response message, the network detection system determines the peer address under test as a silent peer address. The absence of a first response message indicates that the terminal device corresponding to the peer address under test has not responded to the neighbor request message instance within the preset response waiting time. The IPv6 protocol stack of the terminal device may not be enabled or may be disabled, and its IPv6 ready status cannot be confirmed through the neighbor discovery protocol interaction within the link local range at the current detection time.

[0082] In one embodiment, assuming that among the eight same-domain addresses to be tested, three of them do not have a first response message in the first data packet, these three same-domain addresses to be tested are determined to be same-domain silent addresses.

[0083] Step 30414: For a first response message, if the target IPv6 address of the first response message is a global unicast address, the address to be tested in the same domain is determined to be in a confirmed state; if it is a link-local address, the address status of the address to be tested in the same domain is determined based on the address to be tested in the same domain and the source MAC address in the global passive listening database.

[0084] Optionally, for a co-domain address to be tested that has a first response message, the network detection system reads the target IPv6 address field in the first response message. If the target IPv6 address in the first response message is a global unicast IPv6 address, i.e., the first 3 bits of the target IPv6 address are 001, then the co-domain address to be tested is determined to be a verified address. A target IPv6 address being a global unicast IPv6 address indicates that the terminal device has been configured with a global unicast IPv6 address and has IPv6 communication capabilities.

[0085] If the target IPv6 address of the first response message is a link-local IPv6 address, i.e., the prefix of the target IPv6 address is fe80:: / 10, the network detection system determines the address status of the target address based on the same-domain address under test and the source media access control address in the global passive listening database. The fact that the target IPv6 address is a link-local IPv6 address indicates that the terminal device only responded with a link-local IPv6 address and has not yet confirmed whether it has configured a global unicast IPv6 address through this response message. It needs to be cross-determined through the Internet Control Message Protocol version 6 echo request mechanism and the global passive listening database, as detailed in steps 304141 to 304144.

[0086] This invention, through constructing a neighbor request message instance conforming to the IPv6 neighbor discovery protocol specification and sending it to the multicast address of the requested node, can accurately reach target terminal devices within the same virtual LAN without prior knowledge of their link-layer addresses. By performing dual-condition filtering on the type field and target link-layer address option of the neighbor advertisement message in the first inbound data stream, interference from irrelevant messages is eliminated. By distinguishing between two cases in the first response message—a global unicast address and a link-local address—terminals that explicitly possess a global unicast IPv6 address are directly verified, while terminals that only declare a link-local address undergo in-depth verification. This improves the accuracy of detecting the true IPv6 readiness status of intranet terminals and enables the development of targeted network optimization strategies for the intranet.

[0087] Optionally, the process of steps 304141 to 304144 includes: Step 304141: Construct an ICMPv6 echo request message instance with the first link local IPv6 address as the source address and the destination IPv6 address as the destination address. Use the outgoing interface as the virtual network interface instance and send the ICMPv6 echo request message instance to the destination IPv6 address. Parse the second inbound data stream monitored by the second virtual network interface instance to obtain the second data packet.

[0088] Optionally, the network detection system constructs an Internet Control Message Protocol version 6 echo request message instance with the first link-local IPv6 address as the source address and the destination IPv6 address as the destination address. The destination IPv6 address is the destination IPv6 address of the first response message in step 30414, that is, the link-local IPv6 address of the terminal device corresponding to the same domain address to be tested. The Internet Control Message Protocol version 6 echo request message instance has an Internet Control Message Protocol version 6 type field value of 128 and a code field value of 0.

[0089] The network detection system uses the outgoing interface as the second virtual network interface instance and sends an Internet Control Message Protocol version 6 echo request message instance to the target IPv6 address. After sending, the network detection system parses the second inbound data stream monitored by the second virtual network interface instance to obtain the second data packet.

[0090] The second inbound data stream is the collection of all inbound messages received by the second virtual network interface instance within a preset response waiting time after the Internet Control Message Protocol version 6 echo request message instance is sent.

[0091] In one embodiment, the first of two first response messages whose destination IPv6 address is a link-local IPv6 address within the same domain is taken as an example. Assume the destination IPv6 address corresponding to this same domain address is fe80::a. An Internet Control Message Protocol version 6 echo request message instance is constructed with fe80::1 as the source address and fe80::a as the destination address, and sent to fe80::a via the second virtual network interface instance as the outgoing interface. Within a preset response waiting time, the second virtual network interface instance receives the second inbound data stream and parses it to obtain the second data packet.

[0092] Step 304142: Determine whether there is a second response message in the second data packet with ICMPv6 type echo reply and source IPv6 address equal to destination IPv6 address.

[0093] Optionally, the network detection system determines whether the second data packet contains a second response message of type Echo Reply with the source IPv6 address equal to the destination IPv6 address. Echo Reply with the Internet Control Message Protocol (ICP-6) type means the ICP-6 type field value of the message is 129. The source IPv6 address equal to the destination IPv6 address means the source IPv6 address field of the message is the same as the destination address of the ICP-6 Echo Request message instance in step 304141. The second response message is an ICP-6 Echo Reply message returned by the target terminal device after receiving the ICP-6 Echo Request message instance, indicating that the terminal device's IPv6 protocol stack is active and capable of processing ICP-6 Echo Requests.

[0094] In one embodiment, a message of type 129 with a source IPv6 address equal to fe80::a is retrieved from the second data packet. If one matching message exists in the second data packet, then a second response message is determined to exist.

[0095] Step 304143: If there is no second response message, then the address to be tested in the same domain is determined as a silent address in the same domain.

[0096] Optionally, if no second response message exists, the same-domain address under test is determined as a silent address within the same domain. The absence of a second response message indicates that although the terminal device corresponding to the same-domain address under test can respond to neighbor requests via neighbor advertisement messages, its IPv6 protocol stack has not responded to the Internet Control Message Protocol version 6 echo request. The IPv6 network layer connectivity of the terminal device is incomplete, and it cannot be confirmed that it has complete IPv6 communication capabilities at the current testing time.

[0097] If, among the two same-domain addresses to be tested entering step 304141, one of the same-domain addresses to be tested does not contain a second response message in its second data packet, then that same-domain address to be tested is determined to be a silent address within the same domain.

[0098] Step 304144: If a second response message exists, search the global passive listening database for a first target record of a global unicast IPv6 address whose source MAC address is equal to the address under test in the same domain and whose source IPv6 address is equal to the target IPv6 address. If a first target record exists, the address under test in the same domain is determined as a verified address; if no first target record exists, the address under test in the same domain is determined as a silent address in the same domain.

[0099] Optionally, if a second response message exists, the global passive listening database is searched for a first target record with a source media access control address equal to the same domain address to be tested and a source IPv6 address equal to the target IPv6 address.

[0100] The first target record is a record in the global passive listening library that simultaneously meets the following two conditions: the source media access control address field of the record is equal to the current address to be tested in the same domain, and the source IPv6 address field of the record is equal to the target IPv6 address, and the source IPv6 address is a global unicast IPv6 address.

[0101] If a first target record exists, the address under test within the same domain is determined to be a verified address. The existence of a first target record indicates that although the terminal device only used a link-local IPv6 address in its neighbor advertisement response, it has been observed in the global passive listening database to have used a global unicast IPv6 address for message exchange. Based on this, it is determined that the terminal device has IPv6 communication capabilities.

[0102] If no first target record is found, the same-domain address to be tested is determined as a silent address within the same domain. The absence of a first target record indicates that although the terminal device can respond to Internet Control Message Protocol version 6 echo requests, it has not been observed in the global passive listening database to have engaged in message exchange using a global unicast IPv6 address, and its global unicast IPv6 communication capability cannot be confirmed at the current detection time.

[0103] In one embodiment, it is assumed that there is one same-domain address to be tested for the second response message. A record is retrieved from the global passive listening database containing a global unicast IPv6 address whose source media access control address is equal to the same-domain address to be tested and whose source IPv6 address is equal to fe80::a. Since fe80::a is a link-local IPv6 address with the prefix fe80:: / 10, it is not a global unicast IPv6 address. Therefore, there is no first target record in the global passive listening database containing a global unicast IPv6 address with a source IPv6 address equal to fe80::a, and the same-domain address to be tested is determined to be a silent address within the same domain.

[0104] In this embodiment of the invention, for test addresses within the same domain that only declare a link-local address in the neighbor advertisement, the ICMPv6 echo request verifies that the terminal device possesses complete IPv6 packet transmission and reception capabilities at the network layer, eliminating false positives caused by inactive protocol stacks. The invention also retrieves historical records of the terminal device using a global passive listening database to distinguish between terminals with network layer communication capabilities but never using a global unicast IPv6 address and terminals that do indeed possess a global unicast IPv6 address, thus improving the accuracy of detecting the true IPv6 readiness status of internal network terminals.

[0105] Optionally, the process of steps 30421 to 30421 includes: Step 30421: Using the second link local IPv6 address corresponding to the second virtual network interface instance bound to the VLAN identifier of the cross-domain suspended address in the local system as the source address, the third link local IPv6 address corresponding to the cross-domain suspended address as the destination address, the first port number in the preset service port number table as the destination port, the source port as a random high-order port, and the sequence number as a preset random initial value, construct a TCP synchronization packet.

[0106] Optionally, the network detection system uses the second link-local IPv6 address corresponding to the second virtual network interface instance bound to the virtual LAN identifier of the cross-domain suspended address in the local system as the source address, the third link-local IPv6 address corresponding to the cross-domain suspended address as the destination address, the first port number in the preset service port number table as the destination port, a random high-order port as the source port, and a preset random initial value as the sequence number to construct a Transmission Control Protocol (TCP) synchronization message. The second link-local IPv6 address is the link-local IPv6 address configured for the second virtual network interface instance. The third link-local IPv6 address is the link-local IPv6 address of the terminal device corresponding to the cross-domain suspended address. This address is obtained through the rules in the IPv6 neighbor discovery protocol that automatically generate link-local IPv6 addresses based on the Media Access Control (MAC) address; that is, it is constructed by concatenating the prefix fe80:: / 64 with the interface identifier obtained by converting the MAC address of the terminal device using the modified UEMA 64-bit extended identifier format. The preset service port number table is a pre-configured ordered list of common service port numbers, arranged from high to low detection priority. The random high-order port is a port number randomly selected from the range of 49152 to 65535. The synchronization flag in the Transmission Control Protocol (TCP) synchronization message is set to 1, and the acknowledgment flag is set to 0.

[0107] Taking the first of five cross-domain pending addresses as an example. The virtual LAN identifier of this pending address is 200. In the local system, a second virtual network interface instance is bound to virtual LAN identifier 200. The second link local IPv6 address corresponding to this second virtual network interface instance is assumed to be fe80::2. The third link local IPv6 address corresponding to this pending address is assumed to be fe80::b. The first port number in the preset service port number table is assumed to be 80. The random high-order port is assumed to be 52341. The preset initial random value is assumed to be 1000. A Transmission Control Protocol (TCP) synchronization message is constructed with fe80::2 as the source address, fe80::b as the destination address, 80 as the destination port, 52341 as the source port, and 1000 as the sequence number. The synchronization flag of this TCP synchronization message is set to 1, and the acknowledgment flag is set to 0.

[0108] Step 30422: Using the outgoing interface as the second virtual network interface instance, send a TCP synchronization message to the destination address, parse the monitored third inbound data stream to obtain the third data packet, and determine whether there is a third response message in the third data packet whose source IPv6 address is equal to the destination address, and whose transport layer header reset flag is set to 1 or whose acknowledgment flag is set to 1, and whose acknowledgment number is equal to the sequence number plus 1.

[0109] Optionally, the network detection system uses the outgoing interface as a second virtual network interface instance and sends a Transmission Control Protocol (TCP) synchronization message to the destination address.

[0110] After transmission, the network detection system parses the third inbound data stream monitored by the second virtual network interface instance to obtain the third data packet. The third inbound data stream is the collection of all inbound packets received by the second virtual network interface instance within a preset response waiting time after the transmission control protocol synchronization message is sent.

[0111] The network detection system determines whether a third response message exists in the third data packet. A third response message must simultaneously meet the following three conditions: the source IPv6 address equals the destination address, meaning the source IPv6 address field of the message equals the destination address of the Transmission Control Protocol (TCP) synchronization message in step 30421; the reset flag or acknowledgment flag in the transport layer header is set to 1, meaning the reset flag or acknowledgment flag in the TCP header of the message is set to 1; and the acknowledgment number equals the sequence number plus 1, meaning the acknowledgment number field in the TCP header of the message equals the sequence number field in the TCP synchronization message in step 30421 plus 1. A message that simultaneously meets these three conditions indicates that the target terminal device's TCP stack is active and can effectively respond to the TCP synchronization message.

[0112] In one embodiment, the outgoing interface is used as the second virtual network interface instance, and a Transmission Control Protocol (TCP) synchronization message is sent to fe80::b. Within a preset response waiting time, the second virtual network interface instance receives the third inbound data stream and parses it to obtain a third data packet. The third data packet is then searched for packets with a source IPv6 address equal to fe80::b and a transport layer header reset flag set to 1, or an acknowledgment flag set to 1 and an acknowledgment number equal to 1001. If the third data packet contains a packet with a TCP header acknowledgment flag set to 1, an acknowledgment number of 1001, and a source IPv6 address of fe80::b, then a third response message is determined to exist.

[0113] Step 30423: If a third response message flag exists, the TCP connectivity flag of the cross-domain suspended address is determined to be the first flag. If no third response message flag exists, the TCP connectivity flag of the cross-domain suspended address is determined to be the original flag. The currently used destination port number is removed from the preset service port number table. It is then determined whether the preset service port number table is empty or whether the number of probed ports has reached the maximum probe threshold.

[0114] Optionally, if a third response message exists, the Transmission Control Protocol connectivity flag of the cross-domain pending address is determined as the first flag.

[0115] The first flag indicates that the Transmission Control Protocol (TCP) stack of the terminal device corresponding to the cross-domain pending address has been confirmed to be active, and the terminal device has complete communication capabilities at the IPv6 network layer and transport layer.

[0116] If no third response message is found, the Transmission Control Protocol connectivity flag of the cross-domain pending address is determined to be the original flag, and the currently used destination port number is removed from the preset service port number table.

[0117] The original flag is the initial state value of the Transmission Control Protocol (TCP) connectivity flag, indicating that the TCP stack of the terminal device corresponding to the cross-domain pending address is not active on the current destination port.

[0118] After removing the currently used destination port number, the network detection system checks whether the preset service port number table is empty or whether the number of probed ports has reached the maximum probe threshold. The number of probed ports is the cumulative number of port numbers removed from the preset service port number table. The maximum probe threshold is the pre-configured maximum number of ports allowed to be probed by a single cross-domain pending address.

[0119] In one embodiment, assuming that two out of five cross-domain pending addresses contain a third response message in their third data packets, the Transmission Control Protocol (TCP) connectivity flags of these two pending addresses are determined as the first flag. The remaining three pending addresses do not contain a third response message in their third data packets, so their TCP connectivity flags are determined as the original flags, and port number 80 is removed from the preset service port number table. Assuming the maximum probe threshold is 3, and the number of probed ports is 1, the maximum probe threshold has not been reached.

[0120] Step 30424: If the preset service port number table is not empty and the number of probed ports has not reached the maximum probe threshold, then the next port number in the preset service port number table is used as the new destination port to probe the next port. If the preset service port number table is empty or the number of probed ports has reached the maximum probe threshold, and the TCP connectivity flag is the second flag, then the cross-domain suspended address is determined as the cross-domain pending address; otherwise, the address status of the cross-domain suspended address is determined based on the cross-domain suspended address and the source MAC address in the global passive listening library.

[0121] Optionally, if the preset service port number table is not empty and the number of detected ports has not reached the maximum detection threshold, then the next port number in the preset service port number table is used as the new destination port, and the process returns to step 30421 to reconstruct and send the transmission control protocol synchronization message, and then probes the next port.

[0122] If the preset service port number table is empty or the number of probed ports reaches the maximum probe threshold, and the Transmission Control Protocol (TCP) connectivity flag is set to the first flag, then the cross-domain pending address is determined as a verified address. A TCP connectivity flag of the first flag indicates that a third response message has been received on at least one of the probed ports, and the TCP stack of the terminal device is active.

[0123] If the preset service port number table is empty or the number of probed ports has reached the maximum probe threshold, and the Transmission Control Protocol (TCP) connectivity flag is the original flag, then the address status of the cross-domain suspended address is determined based on the cross-domain suspended address and the source Media Access Control (MAC) address in the global passive listening library. The original TCP connectivity flag indicates that no third-party response message has been received on any of the probed ports, requiring cross-judgment through the global passive listening library, as detailed in steps 304241 to 304244.

[0124] This invention overcomes the limitation of not being able to use link-layer neighbor discovery protocols in cross-VLAN scenarios by sequentially sending TCP synchronization messages to multiple preset service ports for cross-domain suspended addresses and determining the validity of the responses according to TCP protocol specifications. The authenticity and relevance of the response messages are ensured through dual judgment conditions of reset and acknowledgment flags, as well as verification of the correspondence between acknowledgment numbers and sequence numbers. By using a polling mechanism of a preset service port number table and constraints on the maximum probe threshold, the probability of probe hits is increased while controlling the impact of probe traffic on target terminal devices, thereby improving the accuracy of detecting the true IPv6 readiness status of internal network terminals and enabling the development of targeted network optimization strategies for internal networks.

[0125] Optionally, the process of steps 304241 to 304244 includes: Step 304241: Search the global passive listening database for target records whose source MAC address is equal to the cross-domain pending address, and determine whether there are router advertisement messages or neighbor advertisement messages in the target records.

[0126] Optionally, the network detection system retrieves target records from the global passive eavesdropping database whose source media access control address is equal to the cross-domain pending address. Target records are all records in the global passive eavesdropping database whose source media access control address field is equal to the current cross-domain pending address.

[0127] The network detection system determines whether router advertisement messages or neighbor advertisement messages exist in the target record. Router advertisement messages are Internet Control Message Protocol version 6 (IPv6) type 134 messages collected from the bypass mirror port in step 20, and neighbor advertisement messages are IPV6 type 136 messages collected from the bypass mirror port in step 20. The presence of router advertisement messages or neighbor advertisement messages in the target record indicates that the terminal device participated in IPv6 neighbor discovery protocol message exchanges during the collection period, and its IPv6 protocol stack may be active.

[0128] In one embodiment, for the two cross-domain suspended addresses that enter step 304241, a target record with a source media access control address equal to the cross-domain suspended address is retrieved from the global passive listening database. It is assumed that the target record for the first cross-domain suspended address contains a neighbor advertisement message, while the target record for the second cross-domain suspended address does not contain either a router advertisement message or a neighbor advertisement message.

[0129] Step 304242: If the target record does not contain a router advertisement message or a neighbor advertisement message, then the cross-domain pending address is determined as the cross-domain pending address.

[0130] Optionally, if the target record does not contain router advertisement messages or neighbor advertisement messages, the cross-domain pending address is determined as the cross-domain pending trigger address. The absence of router advertisement messages or neighbor advertisement messages in the target record indicates that the terminal device has not participated in any message interaction of the IPv6 neighbor discovery protocol during the collection period. Combined with the result that the transmission control protocol synchronous probe did not obtain a valid response, the IPv6 ready state of the terminal device at the current detection time cannot be confirmed and needs to be confirmed by the passive listening results in a subsequent state update period.

[0131] In one embodiment, if the target record of the second cross-domain suspended address does not contain a router advertisement message and a neighbor advertisement message, then the cross-domain suspended address is determined to be a cross-domain pending address.

[0132] Step 304243: If the target record contains a router advertisement message or a neighbor advertisement message, then construct an ICMPv6 echo request message with the second link local IPv6 address as the source address and the third link local IPv6 address as the destination address, and send the ICMPv6 echo request message through the second virtual network interface instance.

[0133] Optionally, if the target record contains a router advertisement message or a neighbor advertisement message, an Internet Control Message Protocol version 6 (ICP-6) echo request message is constructed using the second link-local IPv6 address as the source address and the third link-local IPv6 address as the destination address, and then sent through the second virtual network interface instance. The presence of a router advertisement message or a neighbor advertisement message in the target record indicates that the IPv6 protocol stack of the terminal device was active during the collection period. The network detection system confirms whether the IPv6 network layer connectivity of the terminal device is still valid at the current detection time by sending the ICP-6 echo request message.

[0134] In one embodiment, the target record of the first cross-domain suspended address contains a neighbor advertisement message. The system constructs an Internet Control Message Protocol version 6 echo request message using fe80::2 as the source address and fe80::c, the third link local IPv6 address corresponding to the cross-domain suspended address, as the destination address, and sends it through the second virtual network interface instance.

[0135] Step 304244: If an ICMPv6 echo reply message matching the source address is received within the preset waiting time, the cross-domain pending address is determined as a verified address. If no ICMPv6 echo reply message matching the source address is received within the preset waiting time, the cross-domain pending address is determined as a cross-domain address to be triggered.

[0136] Optionally, the network detection system listens for a preset waiting time to see if it receives an Internet Control Message Protocol version 6 (ICP-6) echo response message with a matching source address. A matching source address means that the source IPv6 address of the received ICP-6 echo response message is equal to the destination address of the ICP-6 echo request message in step 304243, i.e., the third-link local IPv6 address. The ICP-6 echo response message is an ICP-6 type 129 message. The preset waiting time is a pre-configured upper limit for waiting for a response.

[0137] If an Internet Control Message Protocol version 6 (ICP-6) echo reply message matching the source address is received within the preset waiting time, the cross-domain pending address is determined to be a verified address. Receiving an ICP-6 echo reply message matching the source address indicates that the terminal device has valid IPv6 network layer connectivity at the current detection time. Combined with records in the global passive listening database showing that the terminal device has participated in IPv6 neighbor discovery protocol message exchanges, it is comprehensively determined that the terminal device possesses IPv6 communication capabilities.

[0138] If no matching Internet Control Message Protocol version 6 (ICP-6) echo response message is received within the preset waiting time, the cross-domain pending address is determined as a cross-domain pending trigger address. The failure to receive a matching ICP-6 echo response message indicates that although the terminal device participated in IPv6 neighbor discovery protocol message exchanges during the collection period, its IPv6 network layer connectivity is unreachable at the current detection time. This may be due to reasons such as the terminal device being in sleep mode, network policy changes, or link interruption, and needs to be confirmed by passive listening results in a subsequent state update period.

[0139] In one embodiment, the network detection system listens for Internet Control Message Protocol version 6 echo response messages with a source IPv6 address equal to fe80::c within a preset waiting time. If one Internet Control Message Protocol version 6 echo response message with a source IPv6 address equal to fe80::c is received within the preset waiting time, then the cross-domain pending address is determined to be a verified address.

[0140] This invention addresses cross-domain suspended addresses that fail TCP synchronization verification by searching historical neighbor discovery records in a global passive listening database. This distinguishes between terminals that have never had IPv6 protocol stack activity and those that have had IPv6 protocol stack activity but are currently unreachable at the transport layer. For the latter, an ICMPv6 echo request is sent to confirm network layer reachability. This ensures the judgment is based on multiple layers of evidence, avoiding a final decision based solely on a single transport layer probe result. This improves the accuracy of address status determination in cross-domain scenarios, thereby enhancing the accuracy of detecting the true IPv6 readiness status of internal network terminals and enabling the development of targeted network optimization strategies for internal networks.

[0141] The following description of the local system for detecting internal network IPv6 concentration based on SNMP and asset detection can be referenced interchangeably with the above description of the method for detecting internal network IPv6 concentration based on SNMP and asset detection. Figure 2 , Figure 2 This is a schematic diagram of the structure of the local intranet IPv6 concentration system based on SNMP and asset detection provided by the present invention. The local intranet IPv6 concentration system based on SNMP and asset detection includes: The SNMP traversal module 210 is used to traverse the MAC address forwarding table and IPv6 neighbor cache table of the Layer 3 gateway devices in the target network based on SNMP commands, so as to obtain the global online list and the global gateway awareness library.

[0142] The message parsing module 220 is used to parse the IPv6 router advertisement messages, neighbor advertisement messages and DHCPv6 interaction messages collected by the bypass mirror port deployed at the gateway aggregation point to obtain a global passive listening library.

[0143] The physical address matching module 230 is used to match the global gateway awareness database and the global passive listening database based on the global online list to obtain the address status of each global online physical address. The address status includes verified addresses and long-term silent addresses. Verified addresses are addresses with IPv6 communication capabilities.

[0144] The IPv6 concentration detection module 240 is used to determine the internal network IPv6 confirmed coverage rate and the internal network IPv6 potential blind spot rate based on the number of first confirmed addresses and the number of second long-term silent addresses, respectively, compared with the total number of online addresses in the global online list after excluding the global online physical addresses corresponding to the network device's own interface.

[0145] This invention, through traversing the MAC address forwarding table and IPv6 neighbor cache table of a Layer 3 gateway device, obtains a comprehensive online list and a global gateway awareness library. This overcomes the limitations of traditional single SNMP detection, which relies on terminal devices having the corresponding service enabled, normal configuration, and no firewall blocking. It can comprehensively capture the physical addresses of all online terminals on the intranet, avoiding the problem of compliant IPv6-capable terminals being missed due to device configuration and protection policy issues, resulting in low detection results. Furthermore, by relying on the bypass mirror port of the gateway aggregation point to parse various core IPv6 interaction packets, a global passive listening library is constructed. This overcomes the shortcomings of traditional bypass traffic analysis, which can only identify terminals generating IPv6 communication traffic and cannot identify silent terminals, thus achieving effective capture of terminal IPv6 communication behavior. The entire online list is bidirectionally matched with the global gateway awareness database and the global passive listening database. Based on the total number of online terminals, the status of all online physical addresses is accurately classified, clearly distinguishing between verified addresses with IPv6 communication capabilities and long-term silent addresses that do not generate IPv6 traffic. This breaks away from the existing technology's single judgment logic of uniformly judging all online terminals without detected IPv6 addresses as lacking IPv6 capability. It accurately identifies terminals that are confirmed to not support IPv6 and the group of terminals whose status is unknown due to network policies, services not being started, or improper detection timing. By calculating the number of these two types of addresses and the total number of valid online addresses, the internal network IPv6 verification coverage rate and potential blind spot rate are accurately obtained. This comprehensively corrects the statistical errors and evaluation biases of traditional detection methods, effectively improving the accuracy of detecting the true IPv6 readiness status of internal network terminals. This allows maintenance personnel to clearly understand the true IPv6 adaptation status of internal network terminals and potential problem areas, enabling the formulation of targeted network optimization strategies for the internal network.

[0146] Please see Figure 3 , Figure 3 An embodiment diagram of an electronic device provided in accordance with the present invention. For example... Figure 3As shown, an embodiment of the present invention provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, it implements the processes of steps 10 to 40.

[0147] Please see Figure 4 , Figure 4 An embodiment diagram of a computer-readable storage medium provided in accordance with an embodiment of the present invention is shown. Figure 4 As shown, this embodiment provides a computer-readable storage medium 400 on which a computer program 311 is stored. When the computer program 311 is executed by a processor, it implements the processes of steps 10 to 40.

[0148] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium, and which, when executed by a processor, implements the processes of steps 10 to 40.

[0149] The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0150] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting the concentration of IPv6 in an internal network based on SNMP and asset detection, characterized in that, include: Based on SNMP commands, the MAC address forwarding table and IPv6 neighbor cache table of the Layer 3 gateway devices in the target network are traversed to obtain the global online list and global gateway awareness library; The global passive listening library is obtained by parsing the IPv6 router advertisement messages, neighbor advertisement messages and DHCPv6 interaction messages collected by the bypass mirror port deployed at the gateway aggregation point. Based on the global online list, the address status of each global online physical address is obtained by matching it with the global gateway awareness database and the global passive listening database. The address status includes verified addresses and long-term silent addresses. The verified addresses are addresses with IPv6 communication capabilities. Based on the number of first confirmed addresses and the number of second long-term silent addresses, and compared with the total number of online addresses in the global online list after excluding the global online physical addresses corresponding to the network device's own interface, the internal network IPv6 confirmed coverage rate and the internal network IPv6 potential blind spot rate are determined.

2. The method for detecting intranet IPv6 concentration based on SNMP and asset detection according to claim 1, characterized in that, The global online list includes each global online physical address and its associated VLAN identifier; the process of matching the global online list with the global gateway awareness database and the global passive listening database to obtain the address status of each global online physical address includes: For each globally online physical address in the global online list, if the globally online physical address has a corresponding global unicast IPv6 address in the global gateway awareness database or the global passive listening database, then the globally online physical address is determined as a verified address. If the global online physical address does not have a corresponding global unicast IPv6 address in either the global gateway perception database or the global passive listening database, then the VLAN identifier of the global online physical address is compared with the VLAN identifier of the local system to obtain the VLAN comparison result. If the VLAN comparison result indicates that the VLAN identifiers are consistent, then the online physical address of the entire domain is determined as the address to be tested within the same domain; if the VLAN comparison result indicates that the VLAN identifiers are inconsistent, then the online physical address of the entire domain is determined as the address to be suspended across domains. Address status detection is performed on the same-domain address to be tested and the cross-domain pending address to obtain the address status corresponding to the same-domain address to be tested and the cross-domain pending address.

3. The intranet IPv6 concentration detection method based on SNMP and asset detection according to claim 2, characterized in that, The step of performing address state detection on the intra-domain address to be tested and the cross-domain suspended address to obtain the address state corresponding to the intra-domain address to be tested and the cross-domain suspended address includes: A neighbor request message is sent to each address under test in the same domain. If no neighbor advertisement message is received from the address under test in response to the neighbor request message, the address under test in the same domain is identified as a silent address in the same domain. If a neighbor advertisement message is received, an ICMPv6 echo request message is sent to the link-local IPv6 address corresponding to the address under test in the same domain to perform ICMPv6 echo request verification and obtain the address status of each address under test in the same domain. The address status includes confirmed addresses and silent addresses in the same domain. A TCP synchronization message is sent to the link-local IPv6 address corresponding to each cross-domain suspended address. Based on the TCP synchronization message, TCP synchronization verification is performed on each cross-domain suspended address to obtain the address status of each cross-domain suspended address. The address status includes confirmed addresses and cross-domain addresses to be triggered. Within each preset state update cycle, read the newly added global unicast IPv6 addresses from the global gateway awareness library and the global passive listening library; For cross-domain pending addresses and same-domain silent addresses, if a corresponding new global unicast IPv6 address exists in the global gateway awareness database or the global passive listening database, the cross-domain pending addresses and same-domain silent addresses will be updated to verified addresses; if no corresponding new global unicast IPv6 address exists in the global gateway awareness database or the global passive listening database within a consecutive preset number of status update cycles, the cross-domain pending addresses and same-domain silent addresses will be updated to long-term silent addresses.

4. The intranet IPv6 concentration detection method based on SNMP and asset detection according to claim 3, characterized in that, The ICMPv6 echo request verification of the address under test in the same domain based on the ICMPv6 echo request message, and the address status of each address under test in the same domain, include: Based on the IPv6 neighbor discovery protocol, the address to be tested in the same domain is converted into the corresponding multicast IPv6 address. The first link local IPv6 address corresponding to the first virtual network interface instance bound to the VLAN identifier of the address to be tested in the same domain in the local system is used as the source address, and the multicast IPv6 address is used as the destination address. The physical address of the local system is used as the source link layer address to construct a neighbor request message instance. Using the outgoing interface as the second virtual network interface instance, a neighbor request message instance is sent to the destination address. The first inbound data stream monitored by the first virtual network interface instance is parsed to obtain the first data packet. It is then determined whether there is a first response message in the first data packet that is of ICMPv6 type neighbor advertisement and has a target link layer address in the same domain. For addresses in the same domain that do not have a first response message, the address to be tested will be designated as a silent address in the same domain. For a first response message, if the destination IPv6 address of the first response message is a global unicast address, the address under test in the same domain is determined to be in a confirmed state. If it is a link-local address, the address status of the address under test in the same domain is determined based on the source MAC address in the global passive listening database.

5. The intranet IPv6 concentration detection method based on SNMP and asset detection according to claim 4, characterized in that, The process of determining the address status of the address under test based on the address in the same domain and the source MAC address in the global passive listening database includes: Construct an ICMPv6 echo request message instance with the first link local IPv6 address as the source address and the destination IPv6 address as the destination address. Use the outgoing interface as the virtual network interface instance and send the ICMPv6 echo request message instance to the destination IPv6 address. Parse the second inbound data stream monitored by the second virtual network interface instance to obtain the second data packet. Determine whether the second data packet contains a second response message of ICMPv6 type echo reply and whose source IPv6 address is equal to the destination IPv6 address; If no second response message is found, the address to be tested in the same domain will be determined as a silent address in the same domain. If a second response message exists, the global passive listening database is searched for a first target record of a global unicast IPv6 address whose source MAC address is equal to the address under test in the same domain and whose source IPv6 address is equal to the target IPv6 address. If a first target record exists, the address under test in the same domain is identified as a verified address. If no first target record exists, the address under test in the same domain is identified as a silent address in the same domain.

6. The method for detecting intranet IPv6 concentration based on SNMP and asset detection according to claim 3, characterized in that, The TCP synchronization verification of each cross-domain suspended address based on TCP synchronization messages, to obtain the address status of each cross-domain suspended address, includes: Using the second link local IPv6 address corresponding to the second virtual network interface instance bound to the cross-domain suspended address in the local system as the source address, the third link local IPv6 address corresponding to the cross-domain suspended address as the destination address, the first port number in the preset service port number table as the destination port, the source port as a random high-order port, and the sequence number as a preset random initial value, a TCP synchronization message is constructed; the synchronization flag position of the TCP synchronization message is 1, and the acknowledgment flag position is 0; Using the outgoing interface as the second virtual network interface instance, a TCP synchronization message is sent to the destination address. The third inbound data stream monitored by the second virtual network interface instance is parsed to obtain the third data packet. It is then determined whether there is a third response message in the third data packet whose source IPv6 address is equal to the destination address, and whose reset flag in the transport layer header is set to 1 or whose acknowledgment flag is set to 1 and whose acknowledgment number is equal to the sequence number plus 1. If a third response message flag exists, the TCP connectivity flag of the cross-domain suspended address is determined as the first flag. If no third response message flag exists, the TCP connectivity flag of the cross-domain suspended address is determined as the original flag, and the currently used destination port number is removed from the preset service port number table. It is then determined whether the preset service port number table is empty or whether the number of probed ports has reached the maximum probe threshold. If the preset service port number table is not empty and the number of probed ports has not reached the maximum probe threshold, then the next port number in the preset service port number table is used as the new destination port to probe the next port; if the preset service port number table is empty or the number of probed ports has reached the maximum probe threshold, and the TCP connectivity flag is the second flag, then the cross-domain suspended address is determined as the cross-domain pending address; otherwise, the address status of the cross-domain suspended address is determined based on the cross-domain suspended address and the source MAC address in the global passive listening library.

7. The intranet IPv6 concentration detection method based on SNMP and asset detection according to claim 6, characterized in that, The process of determining the address status of a cross-domain suspended address based on the source MAC address in the global passive listening library includes: Search the global passive listening database for target records whose source MAC address is equal to the cross-domain pending address, and determine whether there are router advertisement messages or neighbor advertisement messages in the target records; If the target record does not contain a router advertisement message or a neighbor advertisement message, then the cross-domain pending address is determined as the cross-domain pending address; If the target record contains a router advertisement message or a neighbor advertisement message, then an ICMPv6 echo request message is constructed with the second link local IPv6 address as the source address and the third link local IPv6 address as the destination address, and the ICMPv6 echo request message is sent through the second virtual network interface instance. If an ICMPv6 echo reply message matching the source address is received within the preset waiting time, the cross-domain pending address is determined as a verified address; if no ICMPv6 echo reply message matching the source address is received within the preset waiting time, the cross-domain pending address is determined as a cross-domain pending address.

8. A local intranet IPv6 concentration system based on SNMP and asset detection, characterized in that, Used to implement the intranet IPv6 concentration detection method based on SNMP and asset detection as described in any one of claims 1 to 7; The local intranet IPv6 concentration system based on SNMP and asset detection includes: The SNMP traversal module is used to traverse the MAC address forwarding table and IPv6 neighbor cache table of Layer 3 gateway devices in the target network based on SNMP commands, and obtain the global online list and global gateway awareness library. The message parsing module is used to parse IPv6 router advertisement messages, neighbor advertisement messages and DHCPv6 interaction messages collected by the bypass mirror port deployed at the gateway aggregation point to obtain a global passive listening library; The physical address matching module is used to match the global gateway awareness database and the global passive listening database based on the global online list to obtain the address status of each global online physical address; the address status includes verified addresses and long-term silent addresses, and the verified addresses are addresses with IPv6 communication capabilities; The IPv6 concentration detection module is used to determine the internal network IPv6 confirmed coverage rate and the internal network IPv6 potential blind spot rate based on the first number of confirmed addresses and the second number of long-term silent addresses, respectively, and the total number of online addresses in the global online list after excluding the global online physical addresses corresponding to the network device's own interface.

9. An electronic device, comprising: Memory, used to store computer programs; A processor for reading and executing the computer program, characterized in that, when the processor executes the computer program, it implements the intranet IPv6 concentration detection method based on SNMP and asset detection as described in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the intranet IPv6 concentration detection method based on SNMP and asset detection as described in any one of claims 1 to 7.