Method and device for evaluating website function accessibility in IPv6 single-stack environment
By simulating the network and constructing a resource dependency graph in an IPv6 single-stack environment, the problem of misleading website accessibility assessment and single assessment dimension in the existing technology is solved, and a comprehensive and accurate assessment of website functions and rapid fault location are achieved.
Patent Information
- Application Number
- CN202511435685.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-09
- Publication Date
- 2026-02-17
AI Technical Summary
Existing technologies for assessing website accessibility in a single-stack IPv6 environment have resulted in misleading conclusions, limited assessment dimensions, inability to identify critical resource dependencies, and a lack of fine granularity, making it difficult for website developers to locate and fix functional anomalies.
By simulating a real IPv6 single-stack network environment and combining it with deep web page analysis technology, a resource dependency graph is dynamically constructed, browser network requests are captured in real time, and detailed reachability tests are conducted in an isolated environment to generate a quantitative evaluation report.
It enables a comprehensive and accurate assessment of website functionality, identifies specific unreachable resources and their dependencies, provides clear diagnostic guidance, significantly shortens troubleshooting time, and improves operational efficiency.
Smart Images

Figure CN121547340A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of network function detection, and is a method and device for evaluating website function accessibility in an IPv6 single-stack environment. BACKGROUND
[0002] In the field of IPv6 testing, there is a widely used tool whose core goal is to diagnose the end user's own network environment rather than the website to be tested. This type of IPv6 connectivity testing technology for client network environment aims to help users determine whether their computers, operating systems, browsers, and Internet service providers (ISPs) have IPv6 access capabilities. The working mechanism is usually to guide the user's browser to obtain resources from a series of specially configured, known test servers, which are deployed in IPv4 single-stack, IPv6 single-stack, and dual-stack (supporting both IPv4 and IPv6) network environments. By analyzing the success or failure of the browser accessing these resources, response delay, and other performance, the system can determine the IPv6 connection status of the user's current network. For example, when the user can successfully obtain resources deployed on an IPv6 single-stack server, it proves that the user's device and network path have effective IPv6 connection capabilities.
[0003] Web content accessibility technology mainly focuses on ensuring that people with disabilities can access web content without barriers, and it follows the standard Web Content Accessibility Guidelines (WCAG). This type of technology analyzes the Document Object Model (DOM) of a page statically or dynamically, checks whether images contain alternative text (alt text), whether pages support keyboard navigation, and whether the color contrast between text and background is sufficient. Essentially, this technology addresses accessibility issues at the human-computer interaction level, which is completely different from the network protocol level resource accessibility problem that the present application focuses on.
[0004] General dependency graph generation technology can be used to analyze the reference relationship between software packages, the association of digital assets in animation production processes, or the visualization of application program architecture. However, this type of technology is usually used for static code library analysis or predefined asset management and is not used for real-time, dynamic analysis of network resource dependency relationships of web pages during browser loading. It is even less used in combination with compatibility verification of specific network protocols such as IPv6.
[0005] Network path analysis (NBR) technology is primarily used to analyze the transmission paths, routing rules, and firewall policies of network data packets. It operates on IP packets or TCP / UDP segments at the network layer (Layer 3) and transport layer (Layer 4) of the OSI model, without delving into the specific content of the application layer (Layer 7). Therefore, this type of technology cannot understand the hundreds or thousands of HTTP requests dynamically initiated by a browser to render a webpage, and naturally, it cannot resolve reachability issues caused by application-layer resource dependencies.
[0006] The closest existing technology to this invention is the widely used online IPv6 website testing tools, such as ready.chair6.net and iplocation.io / ipv6-compatibility-checker. These tools aim to quickly determine whether a given website domain supports IPv6 access. Their implementation schemes are highly consistent, typically involving receiving a single domain name input, initiating a DNS query targeting the AAAA record, making a preliminary determination based on the returned IPv6 address, and in some tools, further attempting to verify the server response via a TCP connection. These tools often run via client-side JavaScript, using technologies such as AJAX to send requests to test servers with different network configurations, thereby inferring the IPv6 readiness status of the target domain.
[0007] Analysis of existing technologies reveals significant shortcomings in assessing website accessibility in a single-stack IPv6 environment. First, the "pass" or "ready" conclusions provided by these tools are misleading and do not guarantee a complete functional experience for users on a single-stack IPv6 network, potentially creating a false sense of security for website operators. Second, existing technologies fail to analyze resource dependency chains, resulting in a limited evaluation dimension. The complete rendering and functionality of modern websites heavily rely on critical resources such as external CSS stylesheets, JavaScript, images, font files, and asynchronous API requests. If any of these resources only support IPv4, single-stack IPv6 users will experience functional limitations, but existing technologies cannot detect such issues. Furthermore, existing tools cannot detect "partially corrupted" states. In a single-stack IPv6 network, a user might successfully load the main HTML document, but the browser might fail to load critical JavaScript libraries hosted on an IPv4 server, leading to uninterrupted page interaction, abnormal layout, or missing functionality. Finally, these tools lack fine-grained assessment and actionable feedback, typically providing only binary or percentage results. They fail to identify specific failed resources or quantify their impact on user experience, making it difficult for website developers to directly pinpoint problems and take targeted remedial measures. Summary of the Invention
[0008] The purpose of this invention is to propose a method and apparatus for evaluating the accessibility of website functions in an IPv6 single-stack environment. By simulating a real IPv6 single-stack network environment and combining it with deep web page analysis technology, this invention solves the problem that existing technologies cannot accurately evaluate the real functional accessibility of websites in an IPv6 single-stack environment. It achieves the effect of comprehensively identifying the accessibility of websites and their core dependent resources, quantitatively evaluating access capabilities, and providing an actionable diagnostic report.
[0009] To achieve the above objectives, the technical solution adopted by the present invention is as follows: A method for evaluating website functionality reachability in an IPv6 single-stack environment includes the following steps: 1) Receive the complete URL of the target website to be evaluated; 2) Create a temporarily isolated IPv6 network environment dynamically for each evaluation task, and configure a unique IPv6 address and default route in this environment; 3) Start a browser instance in the isolated IPv6 network environment, so that the browser can initiate network requests in the IPv6 single-stack network stack; 4) Before the browser navigates to the URL, enable the network request interception function and capture every network request initiated by the browser; 5) During page loading, a resource dependency graph is constructed based on the captured network requests. Each node in the graph corresponds to a unique resource URL, each edge represents the dependency relationship between resources, and the resource type and initiator information are recorded. 6) Perform network reachability tests on the resource URL corresponding to each node in the resource dependency graph within the isolated IPv6 network environment, including DNS resolution and corresponding protocol connection attempts, and record the test results as node attributes to mark the nodes in the resource dependency graph; 8) Traverse the labeled resource dependency graph, calculate the total accessibility score of website functions according to the preset weights, and generate a visual dependency graph report.
[0010] Furthermore, the isolated IPv6 network environment described in step 2) is achieved by creating a network namespace and configuring a virtual Ethernet device.
[0011] Furthermore, the browser instance mentioned in step 3) is a headless browser instance, ensuring that web page loading and network requests can be performed in the IPv6 network environment without a graphical interface.
[0012] Furthermore, the network requests captured in step 4) include HTML documents, CSS stylesheets, JavaScript scripts, images, font files, and API requests initiated through the XHR or Fetch interface.
[0013] Furthermore, the attributes of each node in the resource dependency graph described in step 5) also include the domain name to which it belongs and the unique identifier of the resource.
[0014] Furthermore, the network reachability test described in step 6) includes initiating HTTP or HTTPS connection attempts to the IPv6 address corresponding to each resource URL.
[0015] Furthermore, in step 8), the method for calculating the total website accessibility score based on preset weights is as follows: points are deducted for unreachable nodes based on the importance of the resource type, including deducting 50 points for unreachable blocking JavaScript or CSS files, deducting 40 points for unreachable core API requests, deducting 10 points for unreachable main images or font files, and deducting 1 point for unreachable third-party tracking or advertising scripts.
[0016] Furthermore, the visualization dependency graph report generated in step 8) highlights unreachable resources and their position in the resource dependency chain by color or markers.
[0017] Further, after step 8) the evaluation is completed, the isolated IPv6 network environment is destroyed, including deleting the network namespace and its associated virtual Ethernet devices.
[0018] An apparatus for evaluating website accessibility in an IPv6 single-stack environment, comprising: The control module is used to receive the complete URL of the target website to be evaluated and manage the execution process of the evaluation task, including initializing the task, coordinating the collaboration of various modules, and summarizing the evaluation results. The network environment simulation module is used to dynamically and temporarily create an isolated IPv6 network environment for each evaluation task, and configure a unique IPv6 address and default route in this environment; The browser instance module is used to start a browser instance in the isolated IPv6 network environment, enabling the browser to initiate all network requests through the IPv6 network stack. The request interception module is used to enable network request interception before the browser navigates to the target URL and captures every network request initiated by the browser. The dependency graph construction module is used to dynamically build a resource dependency graph based on captured network requests during page loading. Each node in the graph corresponds to a unique resource URL, each edge represents the dependency relationship between resources, and records the resource type and initiator information. The reachability analysis module is used to perform network reachability tests on the resource URL corresponding to each node in the resource dependency graph within the isolated IPv6 network environment, including DNS resolution and protocol connection attempts, and record the test results as node attributes to mark the nodes in the resource dependency graph. The scoring and reporting module is used to traverse nodes based on the labeled resource dependency graph, calculate the total accessibility score according to preset weights, and generate a visual dependency graph report.
[0019] The beneficial effects achieved by this invention are as follows: 1. This invention achieves strict control over the testing process by dynamically creating an isolated IPv6 single-stack test environment, effectively eliminating interference from the IPv4 protocol stack and conversion mechanisms such as NAT64 / DNS64, thereby accurately reproducing the real access scenarios of IPv6 single-stack users.
[0020] 2. This invention achieves comprehensive analysis of the dependencies between website functions and content components by dynamically constructing a complete web resource dependency graph of the target URL in an isolated environment and capturing all network requests during browser loading in real time, including resources such as HTML, CSS, JavaScript, images, fonts, and XHR.
[0021] 3. This invention performs systematic reachability verification on each resource node in the dependency graph. By independently testing the access capability of each resource URL in an IPv6 single-stack environment, it can accurately identify specific resources that are functionally abnormal or unreachable, thereby locating potential fault points.
[0022] 4. This invention generates a quantitative website functionality reachability score through a weighted algorithm, and combines it with a visual dependency graph to display faulty resources and their positions in the website dependency chain, providing website developers with clear and actionable repair guidance.
[0023] 5. This invention achieves comprehensiveness and depth in the evaluation, not only detecting the main domain name protocol connectivity, but also simulating a real user experience to ensure that all functions of the website can be accessed normally in an IPv6 single-stack environment.
[0024] 6. This invention ensures the accuracy and authenticity of the results. By using an isolated IPv6 single-stack environment, it avoids misjudgments caused by the dual-stack "Happy Eyeba" mechanism, making the evaluation results highly forward-looking and reliable.
[0025] 7. This invention provides accurate and operable diagnostic capabilities, which can clearly identify the specific resources and their dependencies that cause website malfunctions, significantly shortening troubleshooting and repair time and improving operational efficiency.
[0026] 8. This invention is highly efficient and scalable. It uses a lightweight Linux network namespace to build the test environment, which has low resource consumption, fast startup, and can support large-scale parallel evaluation. It is suitable for periodic automated inspection of enterprise-level websites.
[0027] 9. The core technology of this invention lies in evaluating website accessibility from the perspective of user experience, rather than simply detecting protocol connectivity, thus realizing a new paradigm for measuring the accessibility of IPv6 websites. Attached Figure Description
[0028] Figure 1 This is an architectural diagram of a device for evaluating the reachability of website functions in an IPv6 single-stack environment, as described in this embodiment. Detailed Implementation
[0029] To make the various technical features, advantages, or effects of the present invention more apparent and understandable, detailed descriptions are provided below through embodiments.
[0030] This invention provides an apparatus for evaluating the reachability of website functions in an IPv6 single-stack environment, such as... Figure 1 As shown, the device mainly includes a control module, a network environment simulation module, a web analysis module, a dependency graph construction module, a reachability analysis module, and a scoring and reporting module. These modules work together to achieve a comprehensive evaluation of the target website and all its dependent resources.
[0031] 1. Control Module The control module is responsible for receiving the target URL to be evaluated from external input, managing the entire lifecycle of the evaluation task, and coordinating the work of other modules. This module initializes the evaluation process, summarizes the results after the evaluation is completed, and passes the relevant information to downstream modules.
[0032] 2. Network Environment Simulation Module The network environment simulation module dynamically creates and destroys a completely isolated, clean IPv6 single-stack network environment for each evaluation task. Linux network namespaces technology is preferred for implementation. For each evaluation task, this module creates a temporary and unique network namespace, configures virtual network interfaces, and assigns IPv6 addresses and default IPv6 routes. No IPv4 addresses are configured within this environment, no IPv4 routes are set, and any form of IPv4-to-IPv6 translation service (such as NAT64 / DNS64) is strictly excluded, ensuring that all subsequent network activities occur within the IPv6 single-stack environment, thus realistically simulating the target user's network stack.
[0033] 3. Web Analytics Module The web analytics module employs a headless browser automation framework, such as Puppeteer or Playwright, to launch a browser instance within the isolated network namespace and enable network request interception. As the browser navigates to the target URL and loads the page, this module captures all outbound requests initiated by the browser kernel, including initial requests for the HTML document and requests for all resource types such as CSS, JavaScript, images, fonts, and API interfaces (XHR / Fetch), thus comprehensively recording page loading behavior.
[0034] 4. Dependency Graph Construction Module The dependency graph construction module works closely with the web analytics module. When a new network request is captured, the dependency graph construction module generates a directed graph in memory in real time, representing the website's resource dependencies. Each node in the graph corresponds to a unique resource URL, and each edge represents a dependency relationship between resources, pointing from the parent node referencing the resource to the referenced child node. Node attributes record the resource URL, resource type (HTML, CSS, JS, XHR, Image, Font, etc.), domain name, and related metadata.
[0035] 5. Reachability Analysis Module After the dependency graph is built, the reachability analysis module performs IPv6 reachability verification on each resource node. All tests are conducted within an isolated network namespace. The specific process includes: performing a DNS query on each resource URL to obtain the AAAA record (IPv6 address); if the resolution is successful, attempting to initiate a connection to the IPv6 address via the corresponding protocol (such as HTTP / HTTPS). The test result (reachable / unreachable) for each node is recorded as a new attribute for that node, used for subsequent evaluation.
[0036] 6. Scoring and Reporting Module The scoring and reporting module receives the dependency graph with accessibility results annotated and generates a quantitative assessment score and a visual report. This module uses a weighted scoring algorithm, deducting points from unreachable nodes based on the importance of the resource type. For example, unreachable blocking JavaScript or CSS files deduct 50 points (serious functional failure), unreachable core API calls (XHR / Fetch) deduct 40 points, unreachable major images or fonts deduct 10 points, and unreachable third-party tracking or advertising scripts deduct 1 point. The final assessment report includes an overall accessibility score (e.g., 95 / 100) and a visual dependency graph. Unreachable resource nodes and their dependency paths are clearly marked (e.g., highlighted in red), providing website developers with intuitive, clear, and actionable diagnostic information.
[0037] This invention also provides a method for evaluating the reachability of website functionality in an IPv6 single-stack environment, executed by the aforementioned device, and its specific steps are as follows: Step S1: Device initialization, receiving the complete URL of the target website to be evaluated from the user or upper layer application, such as https: / / www.example.com, and preparing the necessary context information for subsequent evaluation tasks.
[0038] Step S2: The network environment simulation module creates an isolated environment. Specifically, it generates a unique and temporary network namespace (e.g., test_ns_123) by executing commands such as `ip netns add`, and creates a pair of virtual Ethernet devices (veth pairs). One end is placed within this namespace, and the other end is connected to the host's physical network. Crucially, only the virtual interfaces within the namespace are configured with IPv6 addresses and default routes; no IPv4 addresses or routes are configured. This ensures the network stack is IPv6, thus providing a completely isolated execution environment for testing.
[0039] Step S3: Instantiate the browser. After the isolation environment is created, the Web analytics module starts a headless browser instance in the namespace test_ns_123, so that all network requests initiated by the browser are made through the IPv6 network stack.
[0040] Step S4: Activate the request interception mechanism. Before the browser navigates to the target URL, enable request interception by calling the API provided by the automation framework (such as Puppeteer's page.setRequestInterception(true)) and bind a listener callback function to the "request" event to capture all outbound network requests.
[0041] Step S5: Navigate to the target URL and build the dependency graph. After the browser navigates to the target URL received in Step S1, during page loading, whenever the browser makes a resource request (such as HTML, CSS, JS, images, fonts, or XHR / Fetch interfaces), the listener callback function captures the request object. The dependency graph building module parses the request information, dynamically creates or updates nodes and edges in the dependency graph in memory, and records information such as the resource's URL, type, and initiator.
[0042] Step S6: Perform a comprehensive reachability test. After waiting for the page to complete loading (e.g., triggered by the load event) or for a preset timeout to be reached, traverse all unique URL nodes in the dependency graph. Within the test_ns_123 namespace, the reachability analysis module initiates an independent IPv6 network connectivity test for each resource URL, including DNS resolution of AAAA records and corresponding protocol (HTTP / HTTPS) connection attempts, and records the test results.
[0043] Step S7: Annotate and analyze the data. The test result (success or failure) for each resource URL is attached as an attribute to the corresponding node for subsequent scoring and report generation.
[0044] Step S8: Scoring and Visualization. The scoring and reporting module traverses the annotated dependency graph, calculates the total score according to a preset weighted algorithm, and generates a final evaluation report. The report includes an overall accessibility score and a visualized dependency graph, where unreachable resources and their dependency paths are highlighted, providing developers with intuitive and actionable diagnostic information.
[0045] Step S9: Clean up the environment. After the evaluation task is completed, the network environment simulation module executes commands such as ip netns delete to completely destroy the test_ns_123 network namespace and its associated virtual devices, ensuring that each evaluation is conducted in a brand new, stateless, isolated environment to avoid mutual interference between tests.
[0046] Although the present invention has been disclosed above with reference to embodiments, it is not intended to limit the present invention. Appropriate modifications or equivalent substitutions made by those skilled in the art to the technical solutions of the present invention should be covered within the protection scope of the present invention, which is defined by the claims.
Claims
1. A method for evaluating the reachability of website functions in an IPv6 single stack environment, characterized in that, The method comprises the following steps: 1) receiving a complete URL of a target website to be evaluated; 2) dynamically and temporarily creating an isolated IPv6 network environment for each evaluation task, and configuring a unique IPv6 address and a default route in the environment; 3) starting a browser instance in the isolated IPv6 network environment, so that the browser initiates a network request in an IPv6 single-stack network stack; 4) starting a network request interception function before the browser navigates to the URL, and capturing each network request initiated by the browser; 5) constructing a resource dependency graph during page loading according to the captured network requests, wherein each node in the graph corresponds to a unique resource URL, each edge represents a dependency relationship between resources, and resource type and initiator information are recorded; 6) performing network reachability testing on each node in the resource dependency graph, including DNS resolution and corresponding protocol connection attempts, and recording the test results as node attributes to mark the nodes in the resource dependency graph; 8) traversing the marked resource dependency graph, calculating the total score of website function reachability according to a preset weight, and generating a visual dependency graph report.
2. The method of claim 1, wherein, The isolated IPv6 network environment in step 2) is realized by creating a network namespace and configuring a virtual Ethernet device.
3. The method of claim 1, wherein, The browser instance in step 3) is a headless browser instance, which ensures that the webpage loading and network request can be performed in the IPv6 network environment without a graphical interface.
4. The method of claim 1, wherein, The captured network requests in step 4) include HTML documents, CSS style sheets, JavaScript scripts, pictures, font files, and API requests initiated through XHR or Fetch interfaces.
5. The method of claim 1, wherein, The attributes of each node in the resource dependency graph in step 5) also include domain name and resource unique identification information.
6. The method of claim 1, wherein, The network reachability test in step 6) includes initiating HTTP or HTTPS connection attempts to the IPv6 address corresponding to each resource URL.
7. The method of claim 1, wherein, In step 8), the method for calculating the total score of website function reachability according to the preset weight is: deducting points for unreachable nodes according to the importance of resource type, including deducting 50 points for unreachable blocking JavaScript or CSS files, 40 points for unreachable core API requests, 10 points for unreachable main pictures or font files, and 1 point for unreachable third-party tracking or advertising scripts.
8. The method of claim 1, wherein, The visual dependency graph report generated in step 8) highlights the unreachable resources and their positions in the resource dependency chain through color or markers.
9. The method of claim 1, wherein, After the evaluation is completed, the isolated IPv6 network environment is destroyed, including deleting the network namespace and its associated virtual Ethernet device.
10. An apparatus for evaluating website reachability in IPv6 single stack environment, the apparatus is characterized in that, The method comprises: a control module for receiving a complete URL of a target website to be evaluated, and managing the execution process of the evaluation task, including initializing the task, coordinating the cooperation of each module, and summarizing the evaluation results; a network environment simulation module for dynamically and temporarily creating an isolated IPv6 network environment for each evaluation task, and configuring a unique IPv6 address and a default route in the environment; A browser instance module is configured to start a browser instance in the isolated IPv6 network environment, so that the browser initiates all network requests through an IPv6 network stack; A request interception module is configured to start a network request interception function before the browser navigates to a target URL, and capture each network request initiated by the browser; A dependency graph construction module is configured to dynamically construct a resource dependency graph according to the captured network requests during page loading, wherein each node in the graph corresponds to a unique resource URL, each edge represents a dependency relationship between resources, and resource types and initiator information are recorded; An accessibility analysis module is configured to perform network accessibility testing on each node in the resource dependency graph, including DNS resolution and protocol connection attempts, and record the test results as node attributes, marking the nodes in the resource dependency graph; A scoring and reporting module is configured to traverse the nodes according to the marked resource dependency graph, calculate the total score of accessibility according to the preset weight, and generate a visual dependency graph report.