IPv6-based intelligent power distribution communication test method and system
By allocating unique addresses to terminal nodes through the IPv6 protocol and combining the 6LoWPAN protocol with dynamic routing to optimize communication paths, the problems of tight address resources and poor network compatibility in traditional power distribution systems are resolved. This enables massive terminal access, enhanced security, and real-time monitoring of abnormal scenarios, improving the communication efficiency and security of the power distribution system.
Patent Information
- Application Number
- CN202510715698.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2025-09-16
AI Technical Summary
Traditional power distribution systems face problems such as low communication efficiency, limited address resources, and insufficient security in the IoT environment. They are unable to support massive terminal access, have poor network compatibility, and lack effective dynamic topology management and testing and verification of abnormal scenarios.
The communication architecture is constructed using the IPv6 protocol, a unique IPv6 address is assigned to each terminal node, and the 6LoWPAN adaptation layer protocol is used to compress data packets to achieve low-power wide area network communication. The data transmission efficiency and stability of MQTT, CoAP, and HTTP/2 are verified through multi-protocol compatibility testing. A virtual topology structure is constructed and the path is optimized through dynamic routing protocols. Abnormal power consumption scenarios are simulated to monitor the probability of communication interruption and node response time in real time. End-to-end encryption is implemented based on the IPsec protocol, and DDoS attacks are simulated to verify the system's stress resistance.
It achieves conflict-free access for massive terminals, improves network compatibility and optimization of communication paths, monitors abnormal scenarios in real time, enhances security, and forms a comprehensive test system for communication performance, reliability, and security.
Smart Images

Figure CN120658660A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent power distribution communication technology, and in particular to a multifunctional testing system and method that integrates the IPv6 protocol and intelligent power distribution. Specifically, the present invention relates to an IPv6-based intelligent power distribution communication testing method and system, which are used to solve the problems of low communication efficiency, limited address resources and insufficient security of traditional power distribution systems in the Internet of Things environment. Background Art
[0002] Traditional power distribution systems rely heavily on the IPv4 protocol or local communication modules (such as RS485 and HPLC), which present challenges such as limited address resources and poor network compatibility. With the surge in IoT devices, existing systems struggle to support massive terminal access and dynamic topology management, and lack effective testing mechanisms to verify communication reliability and security. Due to its limited address space, the IPv4 protocol cannot meet the access needs of large-scale terminal devices, limiting network scalability. Furthermore, traditional communication modules such as RS485 and HPLC exhibit significant shortcomings in data transmission efficiency and compatibility, making them inadequate for the efficient and stable communication demands of modern intelligent power distribution systems. As distribution networks expand in size and complexity, dynamic topology management becomes a major challenge, and existing systems lack effective mechanisms for real-time network topology updates and optimization. Furthermore, distribution systems face increasing demands for communication reliability and security, but existing technologies lack comprehensive testing methods to verify system performance under various abnormal conditions. Addressing these issues, existing technologies urgently need improvement. Summary of the Invention
[0003] In view of the above problems, an embodiment of the present invention is proposed to provide an IPv6-based intelligent power distribution communication testing method and system that overcomes the above problems or at least partially solves the above problems. It is used to solve the problems of low communication efficiency, limited address resources and insufficient security of traditional power distribution systems in the Internet of Things environment. It has the advantages of supporting massive terminal access, improving network compatibility, optimizing communication paths, real-time monitoring of abnormal scenarios and enhancing security.
[0004] In order to solve the above problems, an embodiment of the present invention discloses an IPv6-based intelligent power distribution communication testing method, comprising the following steps: Build a communication architecture for the power distribution network using the IPv6 protocol, assign a unique IPv6 address to each terminal node, and bind the IPv6 address to the physical device identifier; Multi-protocol compatibility testing based on IPv6 verifies the data transmission efficiency and stability of MQTT, CoAP, and HTTP / 2 in power distribution scenarios within a unified communications framework; Based on the hierarchical relationship of IPv6 nodes, a virtual topology of the power distribution network is constructed, and communication paths are optimized through dynamic routing protocols; The dynamic load simulation module generates abnormal power consumption scenarios such as overvoltage, undervoltage, and harmonic interference, and monitors the probability of communication interruption and node response time in real time. The IPv6-based IPsec protocol implements end-to-end encryption on the communication link, and simulates DDoS attacks to verify the system's stress resistance.
[0005] Furthermore, a communication architecture of the power distribution network is constructed through the IPv6 protocol, a unique IPv6 address is assigned to each terminal node, and the IPv6 address is bound to the physical device identifier, including: when the IPv6 protocol is used to construct the power distribution network architecture, the 6LoWPAN adaptation layer protocol is used to compress IPv6 data packets, and the communication architecture of the power distribution network is constructed through the IPv6 protocol to make it compatible with the communication requirements of the low-power wide area network.
[0006] Furthermore, based on the IPv6 multi-protocol compatibility test, the data transmission efficiency and stability of MQTT, CoAP, and HTTP / 2 in the power distribution scenario are verified under the unified communication framework, including: data packet format conversion: converting MQTT messages into CoAP format through the protocol gateway to verify the compatibility and latency of cross-protocol communication; retransmission mechanism test: when the packet loss rate is 1%-20%, the number of data retransmissions and the success rate of each protocol are counted.
[0007] Furthermore, based on the hierarchical relationship of IPv6 nodes, a virtual topology structure of the distribution network is constructed, and the communication path is optimized through a dynamic routing protocol, including: node hierarchical division: with the distribution station as the core node, the sub-nodes are divided into three levels: branch switch cabinets, smart meters, and sensor terminals; topology dynamic update: when a node is detected to be offline or newly added, the network topology and routing table are updated through the NDP protocol.
[0008] Furthermore, the dynamic load simulation module generates abnormal power consumption scenarios such as overvoltage, undervoltage, and harmonic interference, and monitors the probability of communication interruption and node response time in real time, including: Harmonic interference simulation module: injecting harmonics with a frequency of 50Hz-2kHz and an amplitude of ±20% of the rated voltage into the distribution line; Communication interruption threshold determination: When the line temperature exceeds 90°C or the voltage distortion rate exceeds 15%, a network alarm is triggered and the faulty node is isolated.
[0009] Furthermore, the IPv6-based IPsec protocol implements end-to-end encryption of the communication link and simulates DDoS attacks to verify the system's stress resistance. It also includes: adopting a zero-trust architecture, implementing device identity authentication and behavioral baseline analysis for each IPv6 terminal, blocking data requests from non-trusted nodes; based on the flood attack defense strategy, deploying a current limiting algorithm at the edge computing node to limit the request frequency of the same source address to no more than 100 times / second.
[0010] Furthermore, a test benchmark for communication quality assessment is established with end-to-end delay ≤ 100ms, packet loss rate ≤ 0.5%, and bandwidth utilization ≥ 80% as target parameters; test data is recorded through a time series database, and interactive reports including topology changes and protocol performance comparisons are automatically generated to generate visual test reports.
[0011] Furthermore, a containerized test environment is deployed through IPv6-over-IPv4 tunnel technology and hybrid networking testing compatible with existing non-IPv6 terminals.
[0012] Furthermore, through IPv6-over-IPv4 tunnel technology and hybrid networking tests compatible with existing non-IPv6 terminals, a containerized test environment is deployed, including: CPU / memory quota restrictions: CPU and memory quota restrictions are imposed on single container resources, with the resource usage of no more than 30% of the total resources; network priority marking: DSCP differentiated service code points are assigned to key control instructions for network priority marking to ensure bandwidth reservation for high-priority communications.
[0013] This application also proposes an IPv6-based intelligent power distribution communication test system, comprising: The communication management module is used to build the communication architecture of the power distribution network through the IPv6 protocol, assign a unique IPv6 address to each terminal node, and bind the IPv6 address to the physical device identifier; The protocol verification module is used for multi-protocol compatibility testing based on IPv6, verifying the data transmission efficiency and stability of MQTT, CoAP, and HTTP / 2 in power distribution scenarios under a unified communication framework; A topology mapping module is used to construct a virtual topology structure of the power distribution network based on the hierarchical relationship of IPv6 nodes and optimize the communication path through a dynamic routing protocol; The load testing module is used to generate abnormal power consumption scenarios such as overvoltage, undervoltage, and harmonic interference through the dynamic load simulation module, and monitor the probability of communication interruption and node response time in real time; The security verification module is used to implement end-to-end encryption of communication links based on the IPv6 IPsec protocol and simulate DDoS attacks to verify the system's stress resistance.
[0014] The embodiments of the present invention include the following advantages: By building a communication architecture through the IPv6 protocol, massive terminal address allocation and binding can be achieved. Combined with multi-protocol compatibility testing, dynamic topology optimization, abnormal scenario simulation and safety verification technology, it solves the problems of tight address resources, poor network compatibility and insufficient security in traditional distribution systems. It has the advantages of supporting massive terminal access, improving network compatibility, optimizing communication paths, real-time monitoring of abnormal scenarios and enhancing security. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a flowchart of an embodiment of an IPv6-based intelligent power distribution communication testing method of the present invention; Figure 2 This is a module structure diagram of an embodiment of an IPv6-based intelligent power distribution communication test system of the present invention. DETAILED DESCRIPTION
[0016] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0017] Traditional power distribution systems primarily rely on the IPv4 protocol or local communication modules. With the surge in the number of IoT devices, insufficient address resources have become a significant bottleneck. Existing systems struggle to support large-scale terminal access, incompatibility issues between different protocols lead to low communication efficiency, dynamic network topology management capabilities are weak, and there is a lack of testing and verification mechanisms for abnormal scenarios and security threats. For example, in smart grid transformations, the power distribution network must connect tens of thousands of smart meters and sensors. Traditional architectures often cause device offline due to address allocation conflicts, and they are unable to effectively verify the reliability of multiple communication protocols under complex operating conditions.
[0018] One of the core concepts of the embodiments of the present invention is that, to address the aforementioned issues, it is first necessary to overcome address resource limitations and adopt the next-generation Internet Protocol as the underlying architecture. Secondly, to address the compatibility issues associated with the coexistence of multiple protocols, a unified testing and verification mechanism must be established. Furthermore, dynamically changing network topologies require real-time updates to management policies. Verifying communication stability under abnormal conditions requires precise simulation methods. Finally, security protection requires enhanced end-to-end encryption capabilities.
[0019] Reference Figure 1 , shows a flowchart of an embodiment of an IPv6-based intelligent power distribution communication testing method of the present invention, which may specifically include the following steps: Step S101: Build a communication architecture for the power distribution network using the IPv6 protocol, assign a unique IPv6 address to each terminal node, and bind the IPv6 address to a physical device identifier; Step S102: Performing a multi-protocol compatibility test based on IPv6 to verify the data transmission efficiency and stability of MQTT, CoAP, and HTTP / 2 in a power distribution scenario under a unified communication framework; Step S103, hierarchical topology relationship mapping: constructing a virtual topology structure of the power distribution network according to the hierarchical relationship of IPv6 nodes, and optimizing the communication path through a dynamic routing protocol (such as RPL); Step S104, simulate abnormal load test: Generate abnormal power usage scenarios such as overvoltage, undervoltage, and harmonic interference through the dynamic load simulation module, and monitor the communication interruption probability and node response time in real time; Step S105: Security vulnerability scanning and protection testing: Implement end-to-end encryption on the communication link based on the IPv6 IPsec protocol, and simulate DDoS attacks to verify the system's stress resistance.
[0020] The application proposes to build a communication architecture for the power distribution network through the IPv6 protocol, assign a unique IPv6 address to each terminal node, and bind the address to the physical device identifier; verify the transmission efficiency and stability of MQTT, CoAP, and HTTP / 2 in the power distribution scenario based on IPv6 multi-protocol compatibility testing; build a virtual topology structure based on the hierarchical relationship of IPv6 nodes, and optimize the communication path through dynamic routing protocols; generate abnormal power consumption scenarios through dynamic load simulation, and monitor the probability of communication interruption and response time in real time; implement end-to-end encryption based on the IPsec protocol, and simulate DDoS attacks to verify the system's stress resistance. Building a distribution network's communication architecture involves using the IPv6 protocol to establish a low-level communication framework, assigning each device a unique 128-bit address. This is achieved through data packet compression using the 6LoWPAN adaptation layer protocol, addressing address resource constraints. Multi-protocol compatibility testing involves running MQTT, CoAP, and HTTP / 2 protocols concurrently within the same network architecture, converting data formats through protocol gateways to verify the feasibility of cross-protocol communication and assess the adaptability of different protocols within distribution scenarios. Hierarchical topology mapping involves dividing the network structure based on the distribution equipment hierarchy, for example, designating the distribution station as the core node, with branch switchgear, smart meters, and sensors as child nodes. Dynamic routing protocols are then used to automatically optimize data transmission paths. Simulated abnormal load testing involves simulating abnormal operating conditions such as overvoltage and undervoltage using programmable modules, monitoring network outage probability and response latency, and verifying the robustness of the communication system under extreme conditions. Security vulnerability scanning and protection testing involves encrypting communication links using the IPsec protocol and verifying the effectiveness of the system's defense mechanisms by simulating large-scale attack traffic. Specifically, the IPv6 network architecture is first deployed, and globally unique addresses are assigned to the distribution terminals and bound to the physical identification of the equipment to form a traceable communication foundation. Subsequently, the MQTT, CoAP, and HTTP / 2 protocols are run in parallel in the same network environment. The cross-protocol interaction capabilities are verified through the protocol conversion gateway, and the retransmission success rate under different packet loss rates is calculated. A virtual topology is constructed based on the hierarchical relationship of the distribution equipment. When the node status changes, the routing table is automatically updated to ensure the optimal data transmission path. Abnormal signals such as harmonic interference are injected through a configurable load simulator, and the interruption threshold and response time of the communication link are simultaneously monitored. Finally, DDoS attack traffic is simulated in an encrypted communication channel to verify the edge node's current limiting defense capabilities and the effectiveness of the identity authentication mechanism. Compared with existing technologies, traditional systems are limited by the IPv4 address space and cannot meet the access needs of massive devices. This solution, on the other hand, achieves unique device identification through IPv6 address allocation, fundamentally solving the problem of address exhaustion. Existing technologies lack a unified multi-protocol verification framework. This solution significantly improves the collaborative working capabilities of heterogeneous devices through protocol compatibility testing. Traditional static topology management is difficult to adapt to dynamic device access. This solution uses dynamic routing protocols to achieve network self-optimization. Compared with testing methods that only focus on normal operating conditions, this solution comprehensively evaluates system reliability through abnormal scenario simulation, while strengthening the security protection level through end-to-end encryption and attack simulation. Through the above technical solutions, this application realizes conflict-free access of massive terminal devices in the power distribution network, ensures stable interaction of different communication protocols under complex working conditions, dynamically optimizes network topology to reduce transmission delay, accurately identifies communication failure thresholds under abnormal loads, and effectively resists external attacks through encryption and defense mechanisms, forming a complete testing system covering communication performance, reliability and security.
[0021] In this embodiment, in the above step S101, the communication architecture of the distribution network is constructed through the IPv6 protocol, a unique IPv6 address is assigned to each terminal node, and the IPv6 address is bound to the physical device identifier, including: when the IPv6 protocol is used to construct the distribution network architecture, the 6LoWPAN adaptation layer protocol is used to compress the IPv6 data packets, and the communication architecture of the distribution network is constructed through the IPv6 protocol to make it compatible with the communication requirements of the low-power wide area network.
[0022] The 6LoWPAN adaptation layer protocol is a low-power wireless personal area network protocol based on IPv6. It uses header compression and fragment reassembly to optimize IPv6 data packets, making it suitable for resource-constrained terminal devices. Low-power wide area network communication requirements require devices to communicate over long distances while consuming limited energy. This can be achieved using low-rate, low-power wireless transmission technologies, such as deploying NB-IoT or LoRa modules at power distribution terminals. Specifically, during the construction of the distribution network communication architecture, IPv6 data packet headers are compressed using the 6LoWPAN adaptation layer protocol, reducing the length of standard IPv6 messages to within the transmission capabilities of low-power devices. Furthermore, leveraging the global uniqueness of IPv6 addresses, each end node's physical device identifier (such as a MAC address or device serial number) is bound to the IPv6 address, creating a unique identifier for the device. During the deployment of the communication architecture, gateway devices are used to interconnect the 6LoWPAN network with the IPv6 core network, ensuring that data from end nodes can be transmitted using the standardized IPv6 protocol. Compared with existing technologies, traditional power distribution systems rely on the IPv4 protocol, resulting in insufficient address resources and difficulty supporting massive terminal access. Local communication modules (such as RS485) lack unified protocol compatibility. This solution compresses IPv6 packets using the 6LoWPAN adaptation layer protocol, preserving the adequacy of IPv6 addresses while adapting to the transmission limitations of low-power devices. It also enables unified access for heterogeneous devices through a standardized protocol. Through the above technical solution, this application solves the problem of tight address resources in traditional distribution systems, realizes unique identification management of massive terminal nodes, and improves the communication efficiency of low-power devices through protocol optimization, ensuring the stable operation of the distribution network in wide-area coverage scenarios.
[0023] In the above step S102, the multi-protocol compatibility test based on IPv6 verifies the data transmission efficiency and stability of MQTT, CoAP, and HTTP / 2 in the power distribution scenario under the unified communication framework, including: data packet format conversion: converting the MQTT message into CoAP format through the protocol gateway to verify the compatibility and delay of cross-protocol communication; retransmission mechanism test: when the packet loss rate is 1%-20%, the number of data retransmissions and the success rate of each protocol are counted.
[0024] A protocol gateway is a conversion device that enables data interoperability between different communication protocols. This can be achieved using an embedded hardware module with protocol parsing and encapsulation capabilities. By extracting the subject and payload of MQTT messages and encapsulating them in the CoAP protocol message format, different protocol terminals can interact with each other over an IPv6 network. Packet loss rate testing simulates data transmission anomalies in a real-world network environment. This can be achieved by configuring a network environment with a variable packet loss rate using a network damage meter or software-defined network controller. By counting the number of packet retransmissions under different packet loss conditions, the robustness of the communication protocol in the power distribution network can be evaluated.
[0025] Specifically, in scenarios where multiple heterogeneous devices in a power distribution network use different communication protocols, format differences between the MQTT and CoAP protocols can hinder data interoperability. By converting the message format through a protocol gateway, a monitoring platform using the MQTT protocol can communicate directly with sensor terminals using the CoAP protocol, thereby verifying the feasibility of cross-protocol communication in IPv6 networks. Furthermore, in a power distribution environment with unstable network quality, by actively injecting packet loss interference of varying intensities and observing the triggering frequency of the retransmission mechanism and the ultimate data delivery success rate of each protocol stack, the applicability boundaries of different protocols in power distribution scenarios can be quantitatively assessed.
[0026] Compared to existing technologies, traditional testing methods only verify the functionality of a single protocol, failing to simulate the interoperability requirements of multiple protocols in real-world scenarios and failing to account for potential link quality fluctuations in power distribution networks. This solution comprehensively evaluates the actual performance of communication systems in complex power distribution environments through cross-protocol conversion testing and performance testing in a dynamic packet loss environment.
[0027] Through the above technical solution, this application solves the data interoperability problem caused by protocol heterogeneity in the distribution system, and at the same time establishes a performance evaluation system for communication protocols under abnormal network conditions, providing a reliable testing and verification method for intelligent distribution systems with multi-protocol hybrid networking.
[0028] In the above step S103, the virtual topology structure of the distribution network is constructed according to the hierarchical relationship of the IPv6 nodes, and the communication path is optimized through the dynamic routing protocol, including: a node hierarchical division step: with the distribution station as the core node, the sub-nodes are divided into three levels: branch switch cabinets, smart meters, and sensor terminals; a topology dynamic update step: when it is detected that a node is offline or newly added, the network topology and routing table are updated through the NDP protocol (Neighbor Discovery Protocol).
[0029] Node hierarchical division refers to grouping and managing devices in the power distribution network according to their functional levels. This can be achieved by combining physical location with functional type, such as using distribution stations as core nodes, branch switch cabinets as secondary nodes, and smart meters and sensors as end nodes. Dynamic topology update refers to real-time adjustment of network connection relationships. Specifically, node status detection and routing table synchronization can be achieved through the NDP protocol, and the update process is automatically triggered when a node goes offline or is newly added. Dynamic routing protocol optimization refers to adjusting the data transmission path according to changes in the network topology. Specifically, the RPL routing protocol can be used to achieve path calculation and load balancing.
[0030] Specifically, during the deployment of the distribution network, the distribution station is first used as the core node according to the equipment level, and the branch switch cabinets are connected downward to form a secondary node layer, and then the smart meters and sensors are further connected to form the terminal node layer. The IPv6 address allocation of each layer corresponds to its physical layer, forming a tree topology. When a node goes offline or a new device is added to the network, a neighbor request message is broadcast through the NDP protocol to actively detect the node reachability. After detecting the topology change, the routing table is updated within seconds. For example, when a branch switch cabinet loses power, its subordinate smart meter nodes will be rerouted to the adjacent branch switch cabinet nodes to ensure the continuity of the communication path.
[0031] Compared with existing technologies, traditional power distribution systems rely on manually configured static routing tables, which are unable to detect device status changes in real time, resulting in delayed network topology updates. This solution, however, uses the NDP protocol to achieve automated topology discovery. Combined with the adaptive capabilities of dynamic routing protocols, it can quickly reconfigure communication paths when device status changes, effectively reducing communication interruptions caused by node failures.
[0032] Through the above technical solution, this application can achieve real-time dynamic management of the distribution network topology, automatically adjusting communication paths when devices go offline or are newly added, and avoiding network partitioning caused by node failures. At the same time, the hierarchical node structure simplifies the complexity of routing calculations, ensuring communication stability when large-scale IoT terminals are connected, and meeting the requirements for network self-healing capabilities in smart distribution scenarios.
[0033] In the above step S104, the generation of abnormal power consumption scenarios such as overvoltage, undervoltage, and harmonic interference through the dynamic load simulation module, and real-time monitoring of the communication interruption probability and node response time include: a harmonic interference simulation step, specifically, injecting harmonics with a frequency of 50Hz-2kHz and an amplitude of ±20% of the rated voltage into the distribution line; and communication interruption threshold determination, specifically, when the line temperature exceeds 90°C or the voltage distortion rate exceeds 15%, a network alarm is triggered and the faulty node is isolated.
[0034] Among them, the dynamic load simulation module refers to a test device that can simulate voltage fluctuations and waveform distortion in the power system. Specifically, it can be implemented by combining a programmable power supply and a harmonic generator to generate test signals covering typical abnormal operating conditions. The harmonic interference simulation module refers to the injection of high-order harmonic components of specific frequency and amplitude into the distribution line. Specifically, it can be achieved by superimposing the fundamental and harmonic components through a multi-channel signal synthesizer, and is used to reproduce the power quality problems caused by nonlinear loads in the actual power grid. The communication interruption threshold judgment module refers to a decision-making unit that triggers network actions based on physical quantity thresholds. Specifically, it can be implemented by using a temperature sensor and an FFT harmonic analyzer to link the control logic circuit to adjust the communication topology in real time according to the line status. Specifically, abnormal power usage scenarios are generated by adjusting the voltage amplitude using a programmable power supply to simulate overvoltage or undervoltage conditions. A harmonic generator simultaneously injects interference signals with a frequency range of 50Hz to 2kHz. Temperature sensors and voltage sampling devices monitor the physical status of the distribution lines in real time. If the line temperature exceeds a preset threshold or the voltage waveform distortion rate exceeds a specified value, the control unit triggers an alarm and isolates the corresponding node through routing protocol update instructions, thereby preventing the abnormal operating conditions from affecting the communication link. Compared with existing technologies, traditional testing methods typically only perform offline simulations for a single anomaly type, are unable to dynamically simulate multiple complex interference scenarios, and lack a real-time determination mechanism for communication interruption conditions. This solution, through programmable load simulation and threshold determination linked to physical quantities, can more realistically reflect the communication reliability of distribution networks under complex anomaly conditions. Through the above technical solution, this application realizes full dynamic testing of the distribution communication system under abnormal power consumption scenarios. Through the linkage control of physical status and network behavior, it effectively improves the timeliness of communication interruption judgment and the accuracy of fault isolation, and provides testing guarantee for the stable operation of the intelligent distribution system.
[0035] In the above step S105, end-to-end encryption of the communication link is implemented based on the IPv6 IPsec protocol, and DDoS attacks are simulated to verify the system's stress resistance. The method also includes: adopting a zero-trust architecture, implementing device identity authentication and behavioral baseline analysis for each IPv6 terminal, and blocking data requests from non-trusted nodes; based on the flood attack defense strategy, deploying a current limiting algorithm at the edge computing node to limit the request frequency of the same source address to no more than 100 times / second.
[0036] Among them, the zero-trust architecture refers to a security model in which no device inside or outside the network is trusted by default, and identity authentication is required for each communication. Specifically, it can be implemented by two-factor authentication of digital certificates and device fingerprints, and the risk of illegal access is eliminated by dynamically evaluating device behavior patterns. Device identity authentication and behavioral baseline analysis refers to the continuous verification of the unique identification and operating mode of terminal devices. Specifically, it can be implemented by behavioral modeling technology based on machine learning, and abnormal access behavior is identified by real-time comparison of historical data features. The flood attack defense strategy refers to a protection mechanism for responding to service paralysis caused by large-scale concurrent requests. Specifically, the token bucket algorithm can be used to implement traffic shaping, and abnormal data packets can be filtered by setting the request rate threshold. The current limiting algorithm refers to the technical means of controlling the number of requests allowed to pass per unit time. Specifically, it can be implemented by the leaky bucket algorithm or the sliding window counter, and resource overload is prevented by dynamically adjusting the traffic threshold. Specifically, during the smart power distribution communication testing process, the zero-trust architecture requires that each IPv6 terminal must submit a device certificate and operating status information before data transmission. The authentication server verifies its legitimacy according to the preset policy. For authenticated devices, their behavioral characteristics such as communication frequency, packet size, and protocol type are continuously monitored. When a deviation from the preset baseline exceeds a threshold, a blocking mechanism is immediately triggered. The current limiting algorithm deployed at the edge computing node counts the number of requests from each source address in real time, and implements packet drop processing for addresses that exceed the set frequency, while maintaining the bandwidth allocation of the normal communication link.
[0037] Compared to existing technologies, traditional power distribution systems typically rely on static firewall rules for access control, which cannot effectively identify DDoS attacks originating from spoofed addresses. This solution combines dynamic behavior analysis with real-time traffic limiting to identify abnormal traffic patterns in the early stages of an attack. Compared to traditional IP blacklist-based protection methods, it offers greater adaptability and defense accuracy. Through the above technical solution, this application can effectively prevent unauthorized devices from accessing the power distribution communication network, reduce the risk of node service interruption due to malicious attacks, and at the same time maintain the normal transmission of key control instructions when subjected to large-scale flooding attacks, ensuring the stable operation of the intelligent distribution system in a complex network environment.
[0038] Furthermore, this application also proposes to establish a test benchmark for communication quality assessment with end-to-end delay ≤ 100ms, packet loss rate ≤ 0.5%, and bandwidth utilization ≥ 80% as target parameters; record test data through a time series database, and automatically generate interactive reports containing topology changes and protocol performance comparisons to generate visual test reports.
[0039] Among them, end-to-end latency refers to the total transmission time of data from the sender to the receiver. It can be measured using network probes or timestamps and is used to evaluate real-time communication capabilities. Packet loss rate refers to the proportion of data packets lost during transmission. It can be calculated by counting the difference between the number of packets sent and received and is used to measure network reliability. Bandwidth utilization refers to the ratio of actual bandwidth used to the theoretical maximum bandwidth. It can be periodically sampled using traffic monitoring tools to optimize resource allocation. Time series databases are database systems that store data in chronological order. They can be implemented using InfluxDB or TimescaleDB and are used to efficiently store timestamped test data. Interactive reports are analytical documents that support dynamic filtering and charting. They can be generated using tools such as Grafana or Kibana and are used to visually present changes in network topology and differences in protocol performance.
[0040] Specifically, during the test benchmark establishment process, target thresholds for end-to-end latency, packet loss rate, and bandwidth utilization were pre-set to form standardized evaluation metrics. During testing, network probes collected real-time transmission delay data from each node, and the traffic monitoring module periodically recorded link load status. A time series database stored raw test data in a time series format, enabling rapid retrieval of historical records by time range. The data parsing module converted the raw data into visualization elements such as topology diagrams and protocol performance comparison curves, ultimately generating a test report with interactive charts and data filtering capabilities.
[0041] Compared with existing technologies, traditional power distribution communication testing lacks unified quantitative metrics, making it difficult to compare evaluation results. Existing report generation methods rely on static tables and are unable to dynamically display network topology trends. This solution achieves standardized evaluation by establishing multi-dimensional test benchmarks. Combined with the efficient query capabilities of time series databases, this solution can quickly locate performance anomalies within specific time periods. Dynamic charts in interactive reports directly correlate topology changes with protocol performance fluctuations, improving problem diagnosis efficiency.
[0042] Through the above technical solutions, this application solves the problems of inconsistent evaluation standards and low data analysis efficiency in power distribution communication testing. By setting quantitative test benchmarks, a clear basis is provided for communication quality assessment; the storage characteristics of time series databases are utilized to achieve efficient management and backtracking of test data; and the visualization function based on interactive reports can intuitively present the correlation between network dynamic changes and protocol performance, significantly improving the efficiency of test result analysis.
[0043] Furthermore, this application also proposes to deploy a containerized test environment through IPv6-over-IPv4 tunnel technology and hybrid networking tests compatible with existing non-IPv6 terminals, including CPU and memory quota restrictions for a single container resource occupying no more than 30% of the total resources, and allocating DSCP differentiated service code points for key control instructions, performing network priority marking, and ensuring bandwidth reservation for high-priority communications. Among them, IPv6-over-IPv4 tunneling technology refers to encapsulating IPv6 packets within the IPv4 network infrastructure to achieve communication compatibility. Specifically, dual-stack nodes can be used as tunnel endpoints to encapsulate IPv6 packets within IPv4 messages for transmission. Hybrid networking testing refers to enabling IPv6 terminals and non-IPv6 terminals to exchange data in a unified network environment through a protocol conversion gateway or proxy server. Specifically, NAT64 or application-layer proxy technology can be used to achieve cross-protocol communication. Containerized test environment deployment refers to the use of container technology to create an isolated virtualized test environment. Specifically, Docker or Kubernetes platforms can be used to achieve resource isolation and rapid deployment. CPU / memory quota limits refer to setting an upper limit on computing resource usage for a single container. Specifically, cgroups technology can be used to limit the CPU time slice allocation and memory usage of the container process. DSCP differentiated service code point refers to the service quality marking field based on the IP packet header. Specifically, bandwidth resources can be allocated to communication traffic of different priorities by configuring router queue scheduling policies. Specifically, when deploying a containerized test environment, IPv6-over-IPv4 tunneling technology was used to connect non-IPv6 terminal devices within the existing IPv4 network. Hybrid networking testing was also used to verify the interoperability of IPv6 with legacy devices. The resource isolation characteristics of containerization enabled the test environment to operate independently, and by setting a limit on the resource usage of a single container, system crashes caused by resource contention during testing were avoided. Furthermore, network traffic for critical control instructions was marked as high priority, for example, identified as EF (Expedited Forwarding) traffic using DSCP code points. This allowed routing devices to prioritize its transmission bandwidth when processing it, thereby ensuring the real-time performance of power distribution control instructions. Compared with existing technologies, traditional power distribution communication test systems typically only support a single protocol stack and cannot effectively integrate IPv6 and IPv4 devices, resulting in limited test coverage. This solution, however, achieves dual-protocol interoperability through tunneling technology and verifies the feasibility of cross-protocol communication through hybrid networking testing, addressing the compatibility issues inherent in existing systems due to protocol fragmentation. Furthermore, existing test environments often suffer from distorted test results due to uneven resource allocation. This solution significantly improves the stability of the test process and the reliability of critical business data through containerized resource restrictions and network priority tagging. Through the above technical solution, this application enables IPv6 communication testing without modifying existing IPv4 network equipment, while ensuring efficient isolation and resource controllability of the test environment. The bandwidth reservation mechanism for key control instructions effectively prevents the impact of network congestion on real-time control of the power distribution system, while hybrid networking testing provides reproducible testing conditions for evaluating communication quality in scenarios where new and legacy equipment coexist.
[0044] This application further proposes the deployment of a containerized test environment through IPv6-over-IPv4 tunneling technology and hybrid networking testing compatible with existing non-IPv6 terminals, including: CPU and memory quota restrictions for a single container resource usage not exceeding 30% of the total resources; allocation of DSCP differentiated service code points for key control instructions, network priority marking, and ensuring bandwidth reservation for high-priority communications.
[0045] Among them, IPv6-over-IPv4 tunneling technology refers to the encapsulation of IPv6 data packets in the IPv4 network infrastructure to achieve communication compatibility. Specifically, it can be implemented by a dual-stack protocol stack or a tunnel proxy server. It is used to solve the networking problem of traditional power distribution systems that cannot support both IPv6 and IPv4 devices. Hybrid networking testing refers to the interconnection and interoperability of IPv6 and non-IPv6 terminals through a protocol conversion gateway. Specifically, it can be implemented by NAT64 or application layer proxy technology. It is used to verify the interoperability of heterogeneous devices during the transition phase. Containerized test environment deployment refers to the use of lightweight virtualization technology to build independently running test instances. Specifically, it can be implemented by Docker or Kubernetes platforms to isolate resource usage in different test scenarios. CPU and memory quota limits refer to setting an upper limit on the computing resources of a single container through a resource scheduling algorithm, for example, not exceeding 30% of the total resources. Specifically, it can be implemented by Cgroups or Kubernetes resource quota controllers to prevent the test process from excessively consuming host resources and causing system instability. DSCP (Differentiated Service Code Point) refers to the division of communication priorities based on the service quality identification field in the IP packet header. Specifically, key control instructions can be marked at levels such as EF, AF, or BE to ensure low-latency transmission of real-time control data in power distribution scenarios.
[0046] Specifically, when deploying a containerized test environment, a communication link between the IPv6 terminal and the existing IPv4 device is first established through an IPv6-over-IPv4 tunnel, for example, using the 6to4 or ISATAP tunneling protocol to achieve address mapping. Subsequently, a protocol conversion module is configured in the hybrid network to enable non-IPv6 terminals to access the IPv6 network through a proxy mechanism. The resource configuration of the container instance is constrained by a dynamic scheduling strategy, such as limiting the number of CPU cores of a single container to 30% of the total available cores and the memory allocation to no more than 30% of the total capacity to avoid performance degradation caused by resource contention during the test. At the same time, a DSCP marking strategy is configured through the router on the communication link, such as assigning EF-class priority code points to relay protection instructions to ensure that they receive priority bandwidth allocation when the network is congested.
[0047] In some specific implementations, the containerized test environment can adopt a layered deployment architecture, with OpenvSwitch used at the bottom layer to build a virtual network, Calico used in the middle layer to implement inter-container communication policy management, and Prometheus used at the top layer to monitor resource usage. During hybrid networking testing, non-IPv6 terminals can access the IPv6 network through a dual-stack proxy server, which performs protocol conversion and address translation. Network priority marking can be dynamically adjusted in conjunction with the SDN controller, for example, automatically increasing the DSCP level of critical control instructions based on real-time traffic load.
[0048] Compared with existing technologies, traditional power distribution system test environments are typically built using physical equipment, which makes it difficult to flexibly simulate mixed IPv6 and IPv4 networking scenarios and lacks dynamic resource allocation constraints. This solution, however, leverages containerization technology to rapidly deploy and isolate test environments. Combined with tunneling technology and hybrid networking testing, it can verify the compatibility of multiple network protocols concurrently on the same infrastructure. Furthermore, resource quota limits and priority tagging mechanisms address the degradation of communication quality caused by resource competition in traditional testing.
[0049] Through the above technical solutions, this application achieves compatibility verification for mixed networking of IPv6 and non-IPv6 terminals during the transition phase, while also improving the repeatability and resource utilization of the test environment through containerized deployment. Resource quota restrictions prevent the test process from interfering with the performance of the host system, and the network priority marking mechanism ensures the transmission reliability of key power distribution control commands, providing effective testing support for the smooth upgrade of the intelligent power distribution communication system.
[0050] Based on the same concept, Figure 2 As shown, an embodiment of the present application further proposes an IPv6-based intelligent power distribution communication test system for implementing an IPv6-based intelligent power distribution communication test method, the system comprising: The communication management module 101 is used to build a communication architecture of the power distribution network through the IPv6 protocol, assign a unique IPv6 address to each terminal node, and bind the IPv6 address to a physical device identifier; The protocol verification module 102 is used for multi-protocol compatibility testing based on IPv6, verifying the data transmission efficiency and stability of MQTT, CoAP, and HTTP / 2 in the power distribution scenario under the unified communication framework; A topology mapping module 103 is used to construct a virtual topology structure of the power distribution network based on the hierarchical relationship of IPv6 nodes and optimize the communication path through a dynamic routing protocol (such as RPL); The load testing module 104 is used to generate abnormal power usage scenarios such as overvoltage, undervoltage, and harmonic interference through the dynamic load simulation module, and monitor the communication interruption probability and node response time in real time; The security verification module 105 is used to implement end-to-end encryption on the communication link based on the IPsec protocol of IPv6 and simulate DDoS attacks to verify the system's stress resistance.
[0051] Among them, the IPv6 protocol for constructing the communication architecture of the distribution network refers to the use of the IPv6 address allocation mechanism to replace the traditional IPv4 protocol. Specifically, the 6LoWPAN adaptation layer protocol can be used to compress data packets to solve the problem of insufficient address resources. Multi-protocol compatibility testing refers to the use of protocol gateways to implement data format conversion between different application layer protocols, such as converting MQTT messages into CoAP format to verify the feasibility of cross-protocol communication. Dynamic routing protocol optimization of communication paths refers to the use of the RPL routing protocol to automatically adjust the transmission path according to changes in network topology, such as updating the routing table through the neighbor discovery protocol when a node goes offline. The harmonic interference simulation module injects interference waveforms into the distribution line through a signal generator with adjustable frequency and amplitude to simulate abnormal operating conditions in the actual power grid. End-to-end encryption refers to the use of the IPsec protocol to encapsulate communication data, such as the use of the ESP protocol to achieve data integrity and confidentiality protection.
[0052] Specifically, the communication management module first completes the IPv6 address allocation and binding of terminal devices to form a scalable communication infrastructure. The protocol verification module simultaneously runs the MQTT, CoAP, and HTTP / 2 protocol stacks in a unified network environment, and evaluates the data transmission performance of each protocol by simulating different load conditions. The topology mapping module generates a virtual topology based on the three-level structure of distribution stations, branch switch cabinets, and smart meters, and triggers a dynamic routing update mechanism when a node status change is detected. The load testing module generates abnormal voltage waveforms such as overvoltage and undervoltage through a programmable power supply module, and at the same time uses a temperature sensor to monitor the impact of line status changes on communication quality. After the encrypted channel is established, the security verification module launches a distributed denial of service attack simulator to test the system's service continuity under the impact of abnormal traffic.
[0053] Compared with existing technologies, traditional power distribution systems are limited by IPv4 address capacity and cannot support large-scale terminal access, while this system uses an IPv6 address architecture to implement unique device identification management; existing technologies lack a unified multi-protocol testing framework, while this system implements cross-protocol communication verification through a protocol conversion gateway; traditional topology management relies on static configuration, while this system implements network self-healing through dynamic routing protocols; conventional testing methods have difficulty reproducing complex power grid interference, while this system accurately simulates a variety of abnormal operating conditions through programmable load modules; traditional security testing only focuses on encryption strength, while this system combines a zero-trust architecture to achieve dual verification of device identity and behavior.
[0054] Through the above technical solution, this application effectively solves the problem of insufficient address resources when massive IoT terminals access, realizes the dynamic management of distribution network topology, verifies the compatibility of different communication protocols in complex power grid environments, and builds a complete verification system including abnormal operating condition simulation and security attack testing, thereby improving the comprehensiveness and reliability of communication testing of intelligent distribution systems.
[0055] As for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0056] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0057] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, apparatus, or computer program products. Thus, embodiments of the present invention may take the form of a fully hardware embodiment, a fully software embodiment, or an embodiment combining software and hardware. Furthermore, embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0058] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0059] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0060] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0061] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they become aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0062] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.
[0063] The above is a detailed introduction to the IPv6-based intelligent power distribution communication testing method and system provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for testing intelligent power distribution communication based on IPv6, characterized in that: The following steps are involved: Build a communication architecture for the power distribution network using the IPv6 protocol, assign a unique IPv6 address to each terminal node, and bind the IPv6 address to the physical device identifier; Multi-protocol compatibility testing based on IPv6 verifies the data transmission efficiency and stability of MQTT, CoAP, and HTTP / 2 in power distribution scenarios within a unified communications framework; Hierarchical topology relationship mapping: Based on the hierarchical relationship of IPv6 nodes, a virtual topology structure of the power distribution network is constructed, and communication paths are optimized through dynamic routing protocols; The dynamic load simulation module generates abnormal power consumption scenarios such as overvoltage, undervoltage, and harmonic interference, and monitors the probability of communication interruption and node response time in real time. The IPv6-based IPsec protocol implements end-to-end encryption on the communication link, and simulates DDoS attacks to verify the system's stress resistance.
2. The method according to claim 1, characterized in that The communication architecture of the power distribution network is constructed using the IPv6 protocol, a unique IPv6 address is assigned to each terminal node, and the IPv6 address is bound to a physical device identifier, including: When the IPv6 protocol is used to construct the distribution network architecture, the 6LoWPAN adaptation layer protocol is used to compress IPv6 data packets, and the communication architecture of the distribution network is constructed through the IPv6 protocol (making it compatible with the communication requirements of the low-power wide area network).
3. The method according to claim 1, characterized in that The IPv6-based multi-protocol compatibility test verifies the data transmission efficiency and stability of MQTT, CoAP, and HTTP / 2 in the power distribution scenario under the unified communication framework, including: Convert MQTT messages to CoAP format through a protocol gateway to verify the compatibility and latency of cross-protocol communication; When the packet loss rate is 1%-20%, the number of data retransmissions and the success rate of each protocol are counted.
4. The method according to claim 1, wherein The method of constructing a virtual topology of a power distribution network based on the hierarchical relationship of IPv6 nodes and optimizing communication paths through a dynamic routing protocol includes: With the distribution station as the core node, the sub-nodes are divided into three levels: branch switch cabinets, smart meters, and sensor terminals; When a node is detected to be offline or newly added, the network topology and routing table are updated through the NDP protocol.
5. The method according to claim 1, wherein The method of generating abnormal power usage scenarios such as overvoltage, undervoltage, and harmonic interference through the dynamic load simulation module and monitoring the communication interruption probability and node response time in real time includes: Inject harmonics with a frequency of 50Hz-2kHz and an amplitude of ±20% of the rated voltage into the distribution line; When the line temperature exceeds 90°C or the voltage distortion rate exceeds 15%, a network alarm is triggered and the faulty node is isolated.
6. The method according to claim 1, wherein The IPv6-based IPsec protocol implements end-to-end encryption on the communication link and simulates DDoS attacks to verify the system's stress resistance, which also includes: Adopting a zero-trust architecture, we implement device identity authentication and behavioral baseline analysis for each IPv6 terminal, blocking data requests from untrusted nodes. Based on the flood attack defense strategy, a current limiting algorithm is deployed on the edge computing node to limit the request frequency of the same source address to no more than 100 times / second.
7. The method according to claim 1, characterized in that The method further comprises: Establish a test benchmark for communication quality assessment with target parameters of end-to-end delay ≤ 100ms, packet loss rate ≤ 0.5%, and bandwidth utilization ≥ 80%; The test data is recorded through the time series database, and interactive reports including topology changes and protocol performance comparisons are automatically generated to generate visual test reports.
8. The method according to claim 1, characterized in that The method further comprises: Containerized test environment deployment is carried out through IPv6-over-IPv4 tunnel technology and hybrid networking testing compatible with existing non-IPv6 terminals.
9. The method according to claim 8, characterized in that The containerized test environment deployment is carried out through IPv6-over-IPv4 tunneling technology and hybrid networking testing compatible with existing non-IPv6 terminals, including: CPU and memory quotas are limited to ensure that a single container's resource usage does not exceed 30% of the total resources. Assign DSCP differentiated service code points to key control instructions for network priority marking, ensuring bandwidth reservation for high-priority communications.
10. An IPv6-based intelligent power distribution communication test system, characterized in that: include: The communication management module is used to build the communication architecture of the power distribution network through the IPv6 protocol, assign a unique IPv6 address to each terminal node, and bind the IPv6 address to the physical device identifier; The protocol verification module is used for multi-protocol compatibility testing based on IPv6, verifying the data transmission efficiency and stability of MQTT, CoAP, and HTTP / 2 in power distribution scenarios under a unified communication framework; A topology mapping module is used to construct a virtual topology structure of the power distribution network based on the hierarchical relationship of IPv6 nodes and optimize the communication path through a dynamic routing protocol; The load testing module is used to generate abnormal power consumption scenarios such as overvoltage, undervoltage, and harmonic interference through the dynamic load simulation module, and monitor the probability of communication interruption and node response time in real time; The security verification module is used to implement end-to-end encryption of communication links based on the IPv6 IPsec protocol and simulate DDoS attacks to verify the system's stress resistance.