A dual-mode cooperative time synchronization method based on network load and node state dynamic adjustment
By monitoring the load and node status of the power line communication network and dynamically adjusting the PLC mode and synchronization cycle, the problems of unstable synchronization accuracy and low resource utilization were solved, achieving high-precision and efficient time synchronization.
Patent Information
- Application Number
- CN202510646702.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2026-11-20
AI Technical Summary
In existing power line communication, the advantages and disadvantages of broadband PLC and narrowband PLC have not been effectively combined, resulting in unstable synchronization accuracy and low resource utilization, and an inability to adapt to dynamic changes in network status and environment.
By monitoring the network load and node status of the power line communication network, a comprehensive score is calculated, and the PLC mode and synchronization signal cycle are dynamically switched. Broadband PLCs are given priority to extend the cycle under high load, while narrowband PLCs are given priority to shorten the cycle under low load, in order to improve time synchronization accuracy and resource utilization.
It achieves high-precision time synchronization under different network conditions, reduces network resource consumption, improves synchronization accuracy and resource utilization, and enhances the network's adaptability and resilience.
Smart Images

Figure CN123145196A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of power distribution and communication technology, and in particular to a dual-mode collaborative time synchronization method based on dynamic adjustment of network load and node status. Background Technology
[0002] With the continuous development of smart grids and the Industrial Internet of Things (IIoT), power line communication (PLC) technology has been widely applied in various scenarios such as smart metering, automated power distribution monitoring, home collaborative control, and microgrids due to its advantages such as reusability of existing power distribution lines, convenient wiring, and wide coverage. However, PLC technology includes two main types: broadband PLC (30MHz-300MHz) and narrowband PLC (3kHz-500kHz), each with its own advantages and disadvantages.
[0003] Broadband PLC: It has a fast transmission rate, but its anti-interference ability is relatively weak, its communication distance is limited, and it is easily affected when the network load is high.
[0004] Narrowband PLC: It has a low transmission rate but stronger anti-interference ability, better adaptability to environmental changes, and is suitable for the precise transmission of critical data.
[0005] In scenarios involving device time synchronization, factors such as communication latency, packet loss, signal attenuation, and environmental changes will significantly affect time calibration accuracy. Currently, conventional synchronization methods are mostly based on fixed communication modes and synchronization cycles, which cannot adapt to dynamic changes in network conditions and the actual environment, resulting in problems such as unstable synchronization accuracy and low utilization of communication resources.
[0006] To address the aforementioned technical bottlenecks, the industry urgently needs a high-precision time synchronization method that can intelligently select the optimal PLC communication mode by combining network load, node status, and environmental parameters, and optimize the synchronization signal cycle in real time, in order to improve the overall network operating efficiency and synchronization accuracy. Summary of the Invention
[0007] Therefore, it is necessary to provide a dual-mode collaborative time synchronization method based on dynamic adjustment of network load and node status, which can sense and evaluate the current load status of the power line communication link and the operating status of each node in real time, and automatically switch between broadband / narrowband PLC synchronous transmission mode based on the comprehensive score of the evaluation results.
[0008] In a first aspect, this application provides a dual-mode collaborative time synchronization method based on dynamic adjustment of network load and node status. The method includes the following steps: monitoring the network load and node status of the power line communication network, and obtaining load scores and node status scores; calculating a comprehensive score based on the load scores and node status scores; and dynamically switching the PLC mode and dynamically adjusting the transmission cycle of the synchronization signal based on the comprehensive score.
[0009] Specifically, when the overall score is high, a broadband PLC is preferred for transmitting the synchronization signal and the synchronization period is extended; when the overall score is low, a narrowband PLC is preferred for transmitting the synchronization signal and the synchronization period is shortened, in order to improve the time synchronization accuracy.
[0010] Secondly, this application provides a time synchronization device for a power line communication network. The method includes: a monitoring unit for monitoring the network load and node status of the power line communication network to obtain a load score and a node status score; a calculation unit for calculating a comprehensive score based on the load score and the node status score; and a control unit for dynamically switching the power line communication (PLC) mode based on the comprehensive score and dynamically adjusting the transmission period of the synchronization signal. Specifically, when the comprehensive score is high, the control unit prioritizes using a broadband PLC to transmit the synchronization signal and extends the synchronization period; when the comprehensive score is low, the control unit prioritizes using a narrowband PLC to transmit the synchronization signal and shortens the synchronization period to improve time synchronization accuracy.
[0011] The aforementioned time synchronization method and device dynamically select the most suitable PLC mode (wideband PLC or narrowband PLC) for the current network conditions by monitoring the network load and node status of the power line communication network and calculating a comprehensive score based on these parameters. When the network load is low and the node status is good, narrowband PLC is prioritized to improve time synchronization accuracy; when the network load is high or the node status is poor, wideband PLC is prioritized to ensure the transmission of the synchronization signal. This dynamic adjustment mechanism ensures high-precision time synchronization under different network conditions. Furthermore, by dynamically adjusting the transmission period of the synchronization signal, network resource consumption can be reduced while maintaining time synchronization accuracy. Extending the synchronization period when the network load is high reduces the bandwidth occupied by the synchronization signal, thus freeing up more resources for other data transmissions; shortening the synchronization period when the network load is low increases the frequency of time synchronization to meet the application requirements for high time accuracy. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a schematic flowchart of the time synchronization method in some embodiments of this application;
[0014] Figure 2 This is a schematic flowchart of the time synchronization method in some other embodiments of this application;
[0015] Figure 3 This is a schematic flowchart of the time synchronization method in some embodiments of this application;
[0016] Figure 4 This is a schematic diagram of the time synchronization device structure in some embodiments of this application. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0018] Please see Figure 1 This application provides a dual-mode collaborative time synchronization method based on dynamic adjustment of network load and node status, which includes steps 102, 104 and 106.
[0019] Step 102: Monitor the network load and node status of the power line communication network, and obtain load scores and node status scores.
[0020] First, key parameters for evaluating network load and node status need to be defined. Network load parameters include, but are not limited to, bandwidth utilization (U), latency (D), and packet loss rate (P); node status parameters include, but are not limited to, clock drift rate (C), signal strength (S), and temperature change rate (T). The definitions and explanations of these parameters are as follows:
[0021] Bandwidth utilization (U): The ratio of bandwidth currently in use to total bandwidth in a network.
[0022] Delay time (D): The time required for a data packet to go from being sent to being received.
[0023] Packet loss rate (P): The ratio of the number of data packets lost during transmission to the total number of data packets sent.
[0024] Clock drift rate (C): The deviation rate between the node clock and the reference clock.
[0025] Signal strength (S): The level of power of the received signal.
[0026] Temperature change rate (T): The rate at which the temperature of the environment where the node is located changes.
[0027] Secondly, monitoring equipment should be deployed at key nodes of the power line communication network. This equipment can collect the parameters defined above in real time. The monitoring equipment can be dedicated hardware or software modules integrated into existing network equipment.
[0028] Next, the monitoring equipment collects network load and node status data in real time. This data can be transmitted via network protocols (such as SNMP) or a custom data collection mechanism.
[0029] Finally, the collected data undergoes preprocessing to ensure its accuracy and usability. Preprocessing may include data cleaning (removing erroneous or incomplete data), data transformation (converting data into a format suitable for analysis), and data normalization (scaling the data to a specific range).
[0030] Step 104: Calculate the comprehensive score based on the load score and node status score.
[0031] Based on the collected data, weighted statistical and / or machine learning algorithms are used to calculate network load score and node status score respectively, and then a comprehensive score is obtained based on pre-set weight parameters.
[0032] Specifically, the formula for calculating the network load score L is:
[0033]
[0034] Where U is the bandwidth utilization, D is the latency, P is the packet loss rate, and w1, w2, w3 are weighting coefficients, satisfying w1+w2+w3=1.
[0035] The formula for calculating the node status score N is:
[0036]
[0037] Where C is the clock drift rate, S is the signal strength, T is the temperature change rate, and v1, v2, and v3 are weighting coefficients that satisfy v1 + v2 + v3 = 1.
[0038] Calculate the overall score: The network load score (L) and node status score (N) are weighted and summed to obtain the overall score (S). The following formula is used:
[0039] S=α×L+β×N
[0040] Here, α and β are weighting coefficients used to balance the impact of network load and node state, satisfying α+β=1.
[0041] Step 106: Dynamically switch the PLC mode and dynamically adjust the transmission cycle of the synchronization signal based on the comprehensive score.
[0042] Based on the comprehensive score, the current operating environment of the network is determined, and synchronization strategy parameters such as broadband / narrowband PLC communication mode and synchronization signal transmission cycle are automatically switched to improve network resource utilization while ensuring synchronization accuracy.
[0043] Specifically, a high overall score indicates a heavy network load and poor node condition. In this case, a wideband PLC (BPLC) should be prioritized for transmitting synchronization signals because BPLCs can still provide high data transmission rates under high load and can better handle network load. Simultaneously, the transmission cycle of the synchronization signal should be extended, for example, from once per second to once every 5 seconds. Conversely, a low overall score indicates a light network load and good node condition. In this case, a narrowband PLC (NPLC) should be prioritized for transmitting synchronization signals because NPLCs can provide more stable time synchronization signals under low load and good node condition. Simultaneously, the transmission cycle of the synchronization signal should be shortened, for example, from once every 5 seconds to once per second.
[0044] The aforementioned time synchronization method monitors the network load and node status of the power line communication network and calculates a comprehensive score based on these parameters, thereby dynamically selecting the PLC mode (wideband PLC or narrowband PLC) best suited to the current network conditions. When the network load is low and the node status is good, narrowband PLC is prioritized to improve time synchronization accuracy; when the network load is high or the node status is poor, wideband PLC is prioritized to ensure the transmission of synchronization signals. This dynamic adjustment mechanism ensures high-precision time synchronization under different network conditions. Furthermore, by dynamically adjusting the transmission period of the synchronization signal, network resource consumption can be reduced while maintaining time synchronization accuracy. Extending the synchronization period when the network load is high reduces the bandwidth occupied by the synchronization signal, thus freeing up more resources for other data transmissions; shortening the synchronization period when the network load is low increases the frequency of time synchronization to meet the application requirements for high time accuracy.
[0045] In one embodiment, step 104 includes steps 201 to 205.
[0046] In power line communication (PLC) networks, the accuracy of time synchronization is crucial for many applications. However, dynamic changes in network load and node states pose challenges to the accuracy and stability of time synchronization. To address these challenges, this embodiment proposes a dual-mode cooperative time synchronization method based on predicted comprehensive scoring trends.
[0047] like Figure 2 As shown, this embodiment relates to a method for predicting and calculating the future trend of a comprehensive score. The specific steps are as follows:
[0048] Step 201: Collect historical data of comprehensive scores over a period of time.
[0049] Specifically, historical comprehensive score data is collected over a past period. This data includes comprehensive score values calculated at different points in time, reflecting changes in network load and node status. It is essential to ensure that the collected data covers different network conditions and time periods to more accurately predict future trends.
[0050] Step 202, data preprocessing.
[0051] Specifically, the collected historical data undergoes preprocessing, including data cleaning (removing outliers and missing values), data transformation (such as logarithmic transformation to reduce data skewness), and data normalization (scaling the data to a specific range). The purpose of preprocessing is to improve data quality, enabling predictive models to more accurately capture patterns and trends in the data.
[0052] Step 203: Select a prediction model.
[0053] Specifically, the appropriate time series analysis method should be selected based on the data characteristics and forecasting needs.
[0054] The optional methods include:
[0055] Linear regression: suitable for situations where the data trend is relatively stable.
[0056] Exponential smoothing: Suitable for data that has a certain trend.
[0057] ARIMA model: suitable for data with obvious seasonality and trends.
[0058] Machine learning algorithms, such as support vector machines (SVM), random forests, or neural networks, are suitable for situations where the data is complex and has non-linear characteristics.
[0059] When selecting a model, you can consider its prediction accuracy, computational complexity, and interpretability.
[0060] Step 204: Train and validate the model.
[0061] Specifically, the selected prediction model is trained using historical data and then validated. Validation methods can include cross-validation or using an independent validation set. Model parameters are then tuned to optimize prediction performance, and the model's prediction accuracy is evaluated.
[0062] Step 205: Predict and calculate the trend of changes in the overall score over a future period of time.
[0063] Use a trained model to predict the trend of changes in the overall score over a future period. The prediction result can be a specific numerical value of the future score, or the direction of the score change (upward or downward).
[0064] Specifically, the comprehensive future rating trend (S_trend) is a weighted average based on the current rating and the predicted future rating, calculated using the following formula:
[0065] S trend =γ×S current +(1-γ)×S future
[0066] Here, γ is a weighting coefficient used to balance the influence of current ratings and future ratings.
[0067] In one embodiment, step 106 includes step 206.
[0068] The method for predicting and calculating the future trend of the comprehensive score proposed in this embodiment is based on a series of steps including collecting historical comprehensive score data of the PLC network, data preprocessing, model selection, model training and verification, and trend prediction. This method not only reflects the current network operating status in real time but also anticipates the future impact of network load and node status changes on the comprehensive score. By predicting the future trend of the comprehensive score, it enables early detection of potential network anomalies and bottlenecks, allowing the PLC network to dynamically plan and adjust synchronization strategies before problems occur. For example, when it is predicted that the comprehensive score is about to drop below a threshold, the system can proactively shorten the synchronization cycle and switch communication modes to avoid a decrease in synchronization accuracy, thus gaining valuable buffer time for network self-healing, resource allocation, and load balancing. Furthermore, this trend prediction mechanism ensures that the synchronization mechanism not only relies on the current score but also comprehensively considers upcoming changes, giving the synchronization strategy better robustness and fault tolerance. When the network operating environment fluctuates significantly, it effectively reduces problems such as synchronization failures and excessive latency caused by temporary state imbalances, greatly improving the adaptability of the PLC network to complex operating conditions. This method employs a weighted average-based comprehensive trend score (S_trend), integrating the current score with the predicted future score. This effectively balances historical inertia with future changes, avoiding overly impulsive decisions based on momentary score fluctuations, thus making the network synchronization strategy more rational and controllable. Parameters can be flexibly adjusted according to actual needs to achieve optimal performance. Finally, this time synchronization method flexibly selects linear regression, exponential smoothing, ARIMA, and complex machine learning models based on different network data characteristics. It can ensure efficient prediction in stable scenarios and achieve high-precision trend prediction in environments with complex data characteristics (such as nonlinearity and seasonal fluctuations), enhancing the method's universality and scalability.
[0069] Step 206: Dynamically switch the PLC mode and dynamically adjust the transmission cycle of the synchronization signal based on the comprehensive future scoring trend; wherein, when the comprehensive future scoring trend is predicted to rise, switch to narrowband PLC mode in advance and shorten the synchronization cycle; when the comprehensive future scoring trend is predicted to fall, switch to wideband PLC mode in advance and extend the synchronization cycle.
[0070] Specifically, if the power grid load gradually increases during a certain period of day, leading to increased network latency and packet loss rate, monitoring equipment collects this data in real time and calculates the current overall score. Simultaneously, a predictive model, based on historical data and current trends, predicts that the overall score will rise in the near future. Based on the predicted future overall score trend, the control system decides to switch to narrowband PLC mode in advance and shorten the synchronization cycle to cope with the upcoming high load. This maintains high time synchronization accuracy even under deteriorating network conditions.
[0071] Conversely, at another time of day, the predictive model anticipates a decrease in network load. Based on this prediction, the control system switches to broadband PLC mode in advance and extends the synchronization cycle to optimize network resource utilization.
[0072] This embodiment achieves advance adjustment of PLC mode and synchronization cycle by predicting future comprehensive scoring trends. Through trend prediction, it no longer passively responds to changes in the network environment but can proactively identify potential deterioration or improvement in network load or node status. When a network score is expected to rise (e.g., due to high load), the system preemptively selects a narrowband PLC and shortens the synchronization cycle, effectively ensuring that time synchronization signals accurately reach each node, thereby improving overall synchronization accuracy and avoiding synchronization anomalies caused by sudden increases in load pressure. When a decrease in network load or interference is predicted, the system preemptively switches to wideband PLC mode and appropriately extends the synchronization cycle. This not only frees up bandwidth resources, reduces synchronization overhead and signal collisions, and improves network bandwidth utilization, but also reduces communication energy consumption and the probability of duplicate data transmission, maximizing energy saving and efficiency. Preemptively adjusting the synchronization strategy based on scoring trends allows the system to proactively match the upcoming network operating state. This adaptive mechanism ensures that the PLC network can flexibly cope with intraday load cycle fluctuations and sudden large-scale access scenarios without relying on manual intervention, greatly improving the intelligence and automation level of network management. Furthermore, by predicting and prioritizing protective measures (such as shortening the synchronization cycle and using more interference-resistant communication modes), the system can respond in the early stages of network deterioration, avoiding synchronization accidents or large-scale communication failures, and improving the risk resistance and self-healing capabilities of the entire power line communication network.
[0073] In one embodiment, the time synchronization method further includes integrating an environment sensing module into the power line communication network to dynamically adjust the load score.
[0074] In power line communication networks, an integrated environmental sensing module is used to monitor environmental parameters around power lines in real time, including temperature, humidity, and electromagnetic interference intensity. The environmental sensing module collects these parameters through sensors and uses them as a correction factor K for load scoring to reflect the impact of the environment on communication quality. When changes in environmental parameters lead to a decline in communication quality, the weight of the load score is increased to proactively trigger the switching of narrowband PLC mode and shorten the synchronization cycle, ensuring the stability of time synchronization.
[0075] Specifically, an environmental sensing module is integrated into a power line communication network to monitor temperature, humidity, and electromagnetic interference intensity in real time. The load score L′ is dynamically adjusted using a correction factor K to optimize the stability of time synchronization.
[0076] Specifically, three detailed embodiments will be used as examples below.
[0077] Example 1, the specific implementation steps include:
[0078] Step 1: Environmental parameter monitoring:
[0079] The environmental sensing module collects environmental parameters in real time: current temperature t = 45 degrees Celsius, current humidity h = 85%, and current electromagnetic interference intensity i = 60 dB.
[0080] Step 2: Calculation of correction factor:
[0081] According to the formula:
[0082] K = 1 + γ × (E1 × t + E2 × h + E3 × i)
[0083] Assume the correction coefficients and weighting coefficients are as follows:
[0084] E1 = 0.01 (temperature correction factor),
[0085] E2 = 0.005 (humidity correction factor),
[0086] E3 = 0.02 (electromagnetic interference correction factor),
[0087] γ = 0.1 (weighting coefficient),
[0088] Substitute the environmental parameters into the formula:
[0089] K=1+0.1×(0.01×45+0.005×85+0.02×60)K=1+0.1×(0.45+0.425+1.2)=1+0.1×2.075=1.2075
[0090] Step 3: Calculation of the revised load score:
[0091] Assuming the original load score L = 50, the corrected load score L′ is:
[0092] L′=L×K=50×1.2075=60.375
[0093] Step 4: Dynamically adjust the synchronization mode and period:
[0094] Based on the corrected load score L′ = 60.375, the system determines that the load score exceeds the threshold (e.g., 60), triggers the narrowband PLC mode switch, and shortens the synchronization cycle, such as reducing the original synchronization cycle from 10 seconds to 5 seconds. In this way, the system can ensure the stability of time synchronization in environments with high temperature, high humidity, and strong electromagnetic interference.
[0095] Example 2, the specific implementation steps include:
[0096] Step 1: Environmental parameter monitoring:
[0097] The environmental sensing module collects environmental parameters in real time: current temperature t = -5 degrees Celsius, current humidity h = 30%, and current electromagnetic interference intensity i = 20dB.
[0098] Step 2: Calculation of correction factor:
[0099] According to the formula: K=1+γ×(E1×t+E2×h+E3×i)K
[0100] Assume the correction coefficients and weighting coefficients are as follows:
[0101] E1 = 0.01
[0102] E2 = 0.005
[0103] E3 = 0.02
[0104] γ = 0.1,
[0105] Substitute the environmental parameters into the formula:
[0106] K=1+0.1×(0.01×(-5)+0.005×30+0.02×20)K=1+0.1×(-0.05+0.15+0.4)=1+0.1×0.5=1.05
[0107] Step 3: Calculation of the revised load score:
[0108] Assuming the original load score L = 40, the corrected load score L′ is:
[0109] L′=L×K=40×1.05=42
[0110] Step 4: Dynamically adjust the synchronization mode and period:
[0111] Based on the corrected load score L′ = 42, the system determines that the load score has not exceeded the threshold (e.g., 60), and continues to use the broadband PLC mode, extending the synchronization cycle (e.g., from 10 seconds to 20 seconds). In this way, the system reduces resource consumption and improves communication efficiency in low-temperature, low-humidity, and low-interference environments.
[0112] Example 3, the specific implementation steps include:
[0113] Step 1: Environmental parameter monitoring:
[0114] The environmental sensing module collects environmental parameters in real time: current temperature t = 30 degrees Celsius, current humidity h = 95%, and current electromagnetic interference intensity i = 70 dB.
[0115] Step 2: Calculation of correction factor:
[0116] According to the formula: K=1+γ×(E1×t+E2×h+E3×i)K
[0117] Assume the correction coefficients and weighting coefficients are as follows:
[0118] E1 = 0.01
[0119] E2 = 0.005
[0120] E3 = 0.02
[0121] γ = 0.2 (a relatively high weighting coefficient, reflecting a significant environmental impact),
[0122] Substitute the environmental parameters into the formula:
[0123] K=1+0.2×(0.01×30)+0.005×95+0.02×70)=1+0.2×(0.3+0.475+1.4)=1+0.2×2.175=1.435
[0124] Step 3: Calculation of the revised load score:
[0125] Assuming the original load score L = 50, the corrected load score L′ is:
[0126] L′=L×K=50×1.435=71.75
[0127] Step 4: Dynamically adjust the synchronization mode and period:
[0128] Specifically, based on the corrected load score L′ = 71.75, the system determines that the load score far exceeds the threshold (e.g., 60), immediately switches to narrowband PLC mode, and significantly shortens the synchronization cycle, such as reducing the original synchronization cycle from 10 seconds to 3 seconds. In this way, the system can ensure the accuracy and stability of time synchronization in high humidity and high interference environments.
[0129] This embodiment achieves high-precision time synchronization scheduling with environmental adaptability by introducing an environmental perception module and a dynamic load score correction mechanism. Previously, PLC network load scores only focused on the inherent characteristics of communication data (such as flow, packet loss, and latency), making it difficult to respond promptly to link performance fluctuations caused by external environmental factors (such as drastic temperature changes and electromagnetic interference). In this solution, the load score intelligently improves as the environment deteriorates, adjusting the synchronization mode (such as switching to narrowband or shortening the cycle) before abnormal events or extreme weather occur, effectively avoiding synchronization loss or large-scale timing errors, and significantly enhancing the system's robustness in complex real-world environments. It also proactively suppresses clock drift risks under environmental disturbances. When parameters such as temperature, humidity, and electromagnetic interference increase, the load score, after being weighted by the K-factor, rises rapidly. Even if the link load itself does not fluctuate significantly, it can proactively increase synchronization protection, effectively improving the ability to respond to occasional environmental threats. Especially in environments with high temperature, high humidity, and high electromagnetic noise, such as factories, substations, and transmission corridors, the system can ensure that synchronization errors are controlled within the optimal range. When environmental conditions are favorable (such as low temperature, low humidity, and low interference), the correction factor K is closer to 1, having little impact on load scoring. The system automatically lowers the synchronization priority and appropriately extends the synchronization cycle, allowing the broadband PLC mode to continue, maximizing the saving of communication resources and reducing system energy consumption. This on-demand allocation mechanism balances time synchronization accuracy and overall efficiency, dynamically adapting to various usage scenarios such as production, operation and maintenance, and repair.
[0130] In one embodiment, the PLC mode is dynamically switched and the transmission cycle of the synchronization signal is dynamically adjusted based on the comprehensive score. The distinction judgment of the comprehensive score S includes: when S>0.7, the comprehensive score is determined to be high, and when S≤0.7, the comprehensive score is determined to be low.
[0131] Specifically, if S>0.7 (high score): the system switches to broadband PLC mode and extends the synchronization signal transmission cycle from 5 seconds to 10 seconds to reduce communication load and improve resource utilization efficiency.
[0132] If S≤0.7 (low score): Switch to narrowband PLC mode, shorten the synchronization signal period to 2 seconds, enhance node synchronization accuracy, and adapt to poor network or node environments.
[0133] This embodiment achieves automatic switching of PLC communication modes based on the comprehensive score S by setting a dynamic differentiation threshold. When the comprehensive score S is greater than 0.7, it indicates that the current network load is low and the node status is good. The system can actively switch to broadband PLC mode and appropriately extend the synchronization signal transmission cycle (e.g., from 5 seconds to 10 seconds). This adjustment significantly reduces the transmission frequency of the synchronization signal in the network, effectively reducing the PLC network bandwidth occupation and improving the transmission efficiency of other data information. At the same time, since the network environment is excellent at this time, extending the synchronization cycle will not have a substantial impact on the time synchronization accuracy, thus meeting the dual requirements of resource conservation and business stability. When the comprehensive score S is less than or equal to 0.7, it indicates that the network load is rising or the status of some nodes is deteriorating. At this time, the system will automatically switch to narrowband PLC mode and shorten the synchronization cycle from 5 seconds to 2 seconds. The advantage of this is that, under the condition of deteriorating communication environment and decreased reliability, the time synchronization signal can be updated and calibrated more frequently, greatly reducing the risk of clock drift and synchronization errors, ensuring the time consistency of key nodes and services, and improving the system's adaptability and overall robustness to sudden interference or node fluctuations. By setting clear thresholds for high and low synchronization, the system can achieve a dynamic balance between synchronization accuracy and network load. It prioritizes saving bandwidth and energy when the network is good, and maximizes synchronization accuracy under adverse conditions, effectively preventing waste or performance bottlenecks caused by static configuration and achieving true on-demand scheduling.
[0134] In one embodiment, monitoring of the rate of change ΔS of the overall score (S) can be introduced to enable more forward-looking intelligent switching of synchronization strategies, such as... Figure 3 Step 106 further includes steps 301 and 302:
[0135] Step 301: Monitor the rate of change of the comprehensive score and calculate the amount of change of the comprehensive score per unit time.
[0136] Specifically, the system sets a calculation window and compares the current score S every T minutes (e.g., 5 minutes). t And the previous rating S t-1 The change ΔS = S is obtained. t -S t-1 It also records several consecutive ΔS values to support trend judgment.
[0137] Step 302: If the overall score rises rapidly, switch to narrowband PLC mode in advance and shorten the synchronization cycle; if the overall score drops rapidly, switch to wideband PLC mode in advance and extend the synchronization cycle to optimize communication resource utilization and improve time synchronization accuracy.
[0138] Specifically, if ΔS increases significantly (e.g., ΔS>0.15), it indicates that the network or node status is deteriorating rapidly. The system enters a defensive state in advance, actively switches to narrowband PLC mode and sets the synchronization signal period to 1 second, thereby enhancing network robustness and preventing large-scale synchronization failure due to deterioration.
[0139] If ΔS decreases significantly (e.g., ΔS < -0.15), it indicates that the network is rapidly improving. The system will prioritize switching to broadband PLC mode and adjust the synchronization transmission cycle to 15 seconds to optimize network resource utilization and reduce message conflicts and energy consumption.
[0140] If no drastic change is detected in ΔS, the basic score is adjusted in segments (as described in the above embodiments); a minimum interval time lock is set for frequent continuous switching to avoid multiple invalid switching when the network is jittery.
[0141] Traditional synchronization strategies rely primarily on static judgments based on current scores. This embodiment, however, monitors the rate of change of the score (ΔS) in real time, enabling timely detection of rapid changes in network or node status. When the overall score rises sharply (e.g., ΔS > 0.15), the system proactively switches to narrowband PLC mode, significantly shortening the synchronization signal cycle, rather than waiting for an actual sudden deterioration. For example, the synchronization cycle is shortened to 1 second, ensuring that clock synchronization accuracy and reliability remain even when the network faces high pressure or poor node conditions. This significantly reduces the risk of synchronization failures and communication breakdowns. When ΔS decreases significantly (e.g., ΔS < -0.15), indicating a rapid improvement in network or node status, the system can flexibly and preferentially switch to wideband PLC mode, extending the synchronization cycle (e.g., to 15 seconds). This reduces unnecessary synchronization signal overhead when network conditions are good, lowers system energy consumption, frees up PLC bandwidth resources, and improves overall network transmission efficiency. It also reduces communication conflicts and data congestion, which is particularly beneficial for large-scale power line communication networks. The trend judgment of the scoring rate ΔS can effectively predict the deterioration or recovery of the network status, providing decision support for the network to "deploy" or "relax" in advance, thereby improving the robustness of the system in the face of sudden factors and drastic environmental changes. Especially in the case of drastic fluctuations in the communication environment or drastic changes in the health status of nodes, it can maximize the time synchronization continuity and stability of the entire network and prevent large-scale clock out-of-sync due to adjustment delays.
[0142] In one embodiment, in a smart grid PLC communication system, each node uses an embedded status assessment module to periodically perform self-checks on its own health status and calculates a node status score based on self-sensing data (such as power supply voltage, clock stability, and communication signal strength). The node status score can be represented by the node status level and the score range.
[0143] Specifically, the node status levels are divided as follows:
[0144] Excellent status: Score between 90-100. For example, minimal node clock drift, excellent signal strength, and no packet loss.
[0145] Good condition: Score between 70-90. Communication performance is relatively stable even with occasional minor clock drift or temperature fluctuations at the node.
[0146] Normal condition: Score between 50-70. There may be some clock drift and occasional packet loss, but it is not serious.
[0147] Poor condition: Score between 30-50. Examples include frequent communication interruptions and drastic temperature fluctuations at the node.
[0148] Fault status: Score between 0 and 30. This includes situations such as node hardware self-test failure or complete loss of communication with the master station.
[0149] The system has a preset state transition step size of 10 points. For example, if a node transitions from a "good state" to a "normal state" due to a continuously weakening signal, the node's score decreases by 10 points (e.g., from 80 points to 70 points). Conversely, if, after maintenance or environmental improvements, the state recovers from "normal state" to "good state," the node's score increases from 65 to 75 points.
[0150] In one embodiment, the node state level can be linked to a dynamic synchronization strategy. For example, in a distributed clock synchronization application in a PLC network, the node state level directly affects the node's synchronization participation strategy:
[0151] If a node is rated as "excellent" (90 points or above), it is assigned as the synchronization time parent node, responsible for broadcasting the master clock information to surrounding nodes, thereby improving the synchronization quality of the entire network.
[0152] If a node degrades to a "poor state" or "fault state" (≤50 points), the node will automatically exit the main synchronization ring, be assigned the minimum synchronization priority, and be marked as requiring manual inspection.
[0153] When a node's status switches between levels, the system adjusts its score by 10 points for each level based on detected changes in health parameters. For example, if a node transitions from a "good" state to a "normal" state due to hardware aging, abnormal temperature, or other factors, its score drops from 75 to 65, and it loses synchronization parent node privileges. After maintenance and re-entry, it recovers through self-checks, its score gradually increases to 72, and it returns to a "good" state, regaining synchronization allocation rights. This level-based and step-size-adjustment-based status management significantly improves the self-healing and robustness of the PLC network, while providing a data foundation for operational decisions and automatic synchronization strategy switching.
[0154] This embodiment introduces an embedded node status assessment module into the smart grid PLC communication system. Based on self-sensing data, it periodically generates numerical node status scores for each node and manages node health status using a tiered approach (excellent, good, average, poor, faulty) and a fixed-step adjustment method. Furthermore, the node status level is linked to the clock synchronization strategy. The node status score uses tiered intervals and quantitative indicators (such as power supply voltage, clock stability, and communication signal strength) to accurately and objectively reflect the actual working status of the node and identify potential software / hardware vulnerabilities. Through the tiered criteria, "faulty nodes," "poor nodes," or "excellent nodes" can be quickly located, greatly improving the visualization capability of network health status. Node status is linked to the synchronization participation strategy, assigning nodes with high health status the role of clock master nodes, improving the stability and propagation quality of synchronization signals; nodes with poor health status or faulty nodes are automatically removed from the master synchronization link, preventing asynchronous and drift problems from spreading throughout the network and ensuring the overall reliability and consistency of the distributed clock system.
[0155] Based on the same inventive concept, this application also provides a time synchronization device for a power line communication network. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more time synchronization device embodiments for power line communication networks provided below can be found in the limitations of the time synchronization method described above, and will not be repeated here.
[0156] In one embodiment, such as Figure 4 As shown, a time synchronization device is provided, including a monitoring unit 401, a computing unit 402, and a control unit 403, wherein:
[0157] Monitoring unit 401 is used to monitor the network load and node status of the power line communication network in order to obtain load scores and node status scores.
[0158] Calculation unit 402 is used to calculate a comprehensive score based on the load score and node status score;
[0159] Control unit 403 is used to dynamically switch the power line communication (PLC) mode based on the comprehensive score and dynamically adjust the transmission cycle of the synchronization signal;
[0160] In the case of a high overall score, the control unit 403 prioritizes the use of a broadband PLC to transmit the synchronization signal and extends the synchronization period.
[0161] If the overall score is low, the control unit 403 prioritizes using a narrowband PLC to transmit the synchronization signal and shortens the synchronization cycle to improve the time synchronization accuracy.
[0162] This embodiment integrates a monitoring unit, a computing unit, and a control unit into a time synchronization device. Based on intelligent sensing and processing of power line communication network load and node status, it achieves intelligent dynamic adjustment of PLC mode and synchronization cycle driven by a comprehensive score. The monitoring unit collects multi-dimensional status information such as network load and node health in real time, while the computing unit analyzes and generates a comprehensive score that reflects the current communication environment and node health status. Compared with traditional passive, single-parameter evaluation methods, this system has multi-factor analysis and decision-making capabilities, and is more sensitive and accurate in responding to changes in the status of complex power communication networks. The control unit automatically switches the PLC communication mode and adjusts the synchronization signal transmission cycle based on the comprehensive score, realizing adaptive optimization of the network synchronization mechanism. When the comprehensive score is high, the system can actively select a broadband PLC and extend the synchronization cycle, thereby reducing the communication load and improving resource utilization efficiency. Conversely, when the score is low, i.e., the network or node status is poor, it prioritizes switching to a narrowband PLC and shortens the synchronization cycle to enhance synchronization robustness and timeliness, achieving a dynamic optimal balance between synchronization accuracy and network resource utilization. Dynamically configuring the PLC mode and synchronization cycle allows the network to allocate limited communication resources more rationally. When the network environment is good, reducing the bandwidth occupied by synchronization signals allows for more space for data services, improving the overall system throughput. When the network environment is poor or node health declines, high-frequency synchronization ensures clock accuracy and network synchronization consistency, effectively preventing widespread failures caused by timing discrepancies. In summary, this embodiment significantly enhances the power distribution device's intelligent sensing, discrimination, and adaptive management capabilities of the power line communication network, effectively ensuring the efficient, safe, and stable operation of the power system.
[0163] In one embodiment, the comprehensive score also includes a comprehensive future score trend. The control unit 403 is used to dynamically switch the PLC mode and dynamically adjust the transmission cycle of the synchronization signal based on the comprehensive future score trend. Specifically, when the comprehensive future score trend is predicted to rise, the PLC is switched to narrowband mode in advance and the synchronization cycle is shortened; when the comprehensive future score trend is predicted to fall, the PLC is switched to wideband mode in advance and the synchronization cycle is extended.
[0164] In one embodiment, the control unit 403 is used to determine the overall future score trend, specifically by the following steps: collecting historical data of the overall score over a past period; using time series analysis methods (such as linear regression, exponential smoothing, ARIMA model, or machine learning algorithm) to predict the overall score change trend over a future period; and determining the overall future score trend based on the prediction results.
[0165] In one embodiment, the calculation unit 402 is used to calculate the comprehensive score S, the network load score L, and the node status score N. The calculation formulas for the comprehensive score S, the network load score L, and the node status score N are the same as those mentioned in the above time synchronization method, and therefore will not be elaborated further.
[0166] In one embodiment, the monitoring unit 401 is used to monitor environmental parameters around the power line in real time, including temperature, humidity and electromagnetic interference intensity.
[0167] In one embodiment, the calculation unit 402 is used to use environmental parameters as a correction factor K for load scoring, wherein the correction factor K is used to reflect the impact of the environment on communication quality.
[0168] In one embodiment, the control unit 403 is used to increase the weight of the load score when the change of the environmental parameters causes the communication quality to degrade, so as to trigger the switching of the narrowband PLC mode and the shortening of the synchronization cycle in advance, and ensure the stability of time synchronization.
[0169] In one embodiment, the control unit 403 is configured to prioritize the use of a wideband PLC to transmit the synchronization signal and extend the synchronization period when the overall score is high; and to prioritize the use of a narrowband PLC to transmit the synchronization signal and shorten the synchronization period when the overall score is low, in order to improve the time synchronization accuracy. A high overall score includes cases where S > 0.7, and a low overall score includes cases where S ≤ 0.7.
[0170] In one embodiment, the control unit 403 is used to dynamically switch the PLC mode and dynamically adjust the transmission cycle of the synchronization signal based on the comprehensive score. Specifically, the control unit 401 monitors the rate of change of the comprehensive score, and the calculation unit 402 calculates the change of the comprehensive score per unit time. When the comprehensive score rises rapidly, the control unit 403 switches to the narrowband PLC mode in advance and shortens the synchronization cycle. When the comprehensive score falls rapidly, the control unit 403 switches to the wideband PLC mode in advance and extends the synchronization cycle to optimize the utilization of communication resources and improve the time synchronization accuracy.
[0171] In one embodiment, the monitoring unit 401 is used to monitor the node status, and the calculation unit 202 is used to calculate the node status score. The node status includes excellent status, good status, average status, poor status and fault status. The node score for excellent status is 90-100 points, the node score for good status is 70-90 points, the node score for average status is 50-70 points, the node score for poor status is 30-50 points, and the node score for fault status is 0-30 points.
[0172] In one embodiment, the control unit 403 is configured to decrease the node score by a fixed value when the node status changes from excellent to poor, and vice versa.
[0173] The above embodiments, by introducing comprehensive future scoring trend prediction, enable the system to proactively judge future network trends not only based on the current state but also on historical scores and time series analysis models. This allows for advance and dynamic switching of PLC modes and synchronization cycles, effectively mitigating risks and preventing synchronization failures caused by network anomalies and node degradation. Through integrated monitoring of environmental parameters (temperature, humidity, electromagnetic interference, etc.), the load score is dynamically corrected, sensitively reflecting the impact of external environmental changes on link communication quality. When adverse environmental factors are collected, they are automatically weighted, improving the system's real-time assurance capability for synchronization accuracy and security under harsh conditions. Simultaneously, node health status scores (e.g., excellent, good, average, poor, fault level) are closely linked to the synchronization strategy. Nodes with good health prioritize assuming the role of synchronization parent nodes, while nodes with deteriorating status automatically exit the main synchronization loop or have their synchronization priority reduced, effectively preventing the propagation of single-point failures and improving system robustness and self-recovery capabilities. Furthermore, by monitoring and thresholding the rate of change ΔS, the system can identify sudden network deterioration or rapid recovery within seconds and make synchronization control decisions in advance, ensuring stable and efficient operation of the entire network even under significant fluctuations. In summary, the above embodiments effectively ensure network stability, time synchronization accuracy, and optimal utilization of communication resources under complex environments and variable loads. Based on the distinction between high and low comprehensive scores, they automatically switch between broadband / narrowband PLCs and extend / shorten the synchronization cycle: when the network and node status is good and the load is light, they automatically save bandwidth and energy consumption; when the status deteriorates, they intelligently improve the synchronization frequency and reliability, achieving a dynamic balance between efficient resource allocation and high-precision synchronization.
[0174] This disclosure also provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system described in the above embodiments; or it may be a standalone computer-readable storage medium not assembled into a device. The computer-readable storage medium stores one or more programs, which are used by one or more processors to execute the time synchronization method described in this disclosure.
[0175] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements any of the time synchronization methods described in this disclosure.
[0176] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0177] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0178] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A dual-mode cooperative time synchronization method based on dynamic adjustment of network load and node status, characterized in that, Includes the following steps: Monitor the network load and node status of the power line communication network, and obtain load scores and node status scores; Calculate the comprehensive score based on the load score and node status score; The PLC mode is dynamically switched and the transmission cycle of the synchronization signal is dynamically adjusted based on the comprehensive score. Specifically, when the overall score is high, a broadband PLC is preferred for transmitting the synchronization signal and the synchronization period is extended; when the overall score is low, a narrowband PLC is preferred for transmitting the synchronization signal and the synchronization period is shortened, in order to improve the time synchronization accuracy.
2. The method according to claim 1, characterized in that, The comprehensive score also includes a comprehensive future score trend, based on which the PLC mode is dynamically switched and the transmission cycle of the synchronization signal is dynamically adjusted. Specifically, when the overall future score trend is predicted to rise, the system switches to narrowband PLC mode in advance and shortens the synchronization cycle; when the overall future score trend is predicted to fall, the system switches to wideband PLC mode in advance and extends the synchronization cycle.
3. The method according to claim 2, characterized in that, The comprehensive future scoring trend is obtained through the following steps: Collect historical comprehensive score data over a past period; Use time series analysis methods (such as linear regression, exponential smoothing, ARIMA models, or machine learning algorithms) to predict the trend of changes in the overall score over a future period; The overall future scoring trend is determined based on the prediction results.
4. The method according to claim 1, characterized in that, The formula for calculating the comprehensive score S is: The formula for calculating the overall score S is as follows: S = α × L + β × N, Where L is the network load score, representing the impact of network load on time synchronization; N is the node status score, representing the impact of node status on time synchronization; α and β are weighting coefficients used to balance the impact of network load and node status, satisfying α+β=1.
5. The method according to claim 4, characterized in that, The formula for calculating the network load score L is: Where U is the bandwidth utilization, D is the latency, P is the packet loss rate, and w1, w2, w3 are weighting coefficients, satisfying w1+w2+w3=1.
6. The method according to claim 4, characterized in that, The formula for calculating the node status score N is: Where C is the clock drift rate, S is the signal strength, T is the temperature change rate, and v1, v2, v3 are weighting coefficients that satisfy v1 + v2 + v3 = 1.
7. The method according to any one of claims 4-6, characterized in that, An environmental sensing module is integrated into the power line communication network, and load scoring is dynamically adjusted through the environmental sensing module, including: Real-time monitoring of environmental parameters around the power line, including temperature, humidity, and electromagnetic interference intensity; Environmental parameters are used as a correction factor K for load scoring, wherein the correction factor K is used to reflect the impact of the environment on communication quality. When changes in environmental parameters cause a decrease in communication quality, the weight of the load score is increased to trigger the switching of the narrowband PLC mode and the shortening of the synchronization cycle in advance, ensuring the stability of time synchronization.
8. The method according to claim 7, characterized in that, The formula for calculating the correction factor K is as follows: K = 1 + γ × (E1 × t + E2 × h + E3 × i) The revised formula for calculating the load score L′ is: L′=L×K Where E1 is the temperature correction factor, E2 is the humidity correction factor, E3 is the electromagnetic interference intensity correction factor, t is the current temperature, h is the current humidity, i is the current electromagnetic interference intensity, γ is the weighting factor used to balance the influence of environmental parameters, and L is the original load score.
9. The method according to any one of claims 4-7, characterized in that, The cases where the overall score is high include S>0.7, and the cases where the overall score is low include S≤0.
7.
10. The method according to any one of claims 1-3, characterized in that, The dynamic switching of PLC modes based on the comprehensive score and the dynamic adjustment of the synchronization signal transmission cycle include: Monitor the rate of change of the comprehensive score and calculate the amount of change of the comprehensive score per unit time; If the overall score rises rapidly, switch to narrowband PLC mode in advance and shorten the synchronization cycle; If the overall score drops rapidly, switch to broadband PLC mode in advance and extend the synchronization cycle to optimize communication resource utilization and improve time synchronization accuracy.
11. The method according to any one of claims 1 to 3, characterized in that, The node status includes excellent status, good status, average status, poor status and fault status. The node score for excellent status is 90-100 points, the node score for good status is 70-90 points, the node score for average status is 50-70 points, the node score for poor status is 30-50 points, and the node score for fault status is 0-30 points. Specifically, when the node status changes from the excellent state to the poor state, the node score decreases by a fixed value accordingly; conversely, the node score increases by the fixed value accordingly.
12. A time synchronization device for a power line communication network, characterized in that, include: The monitoring unit is used to monitor the network load and node status of the power line communication network in order to obtain load scores and node status scores. The calculation unit is used to calculate a comprehensive score based on the load score and the node status score; The control unit is used to dynamically switch the power line communication (PLC) mode based on the comprehensive score and dynamically adjust the transmission cycle of the synchronization signal. Specifically, when the overall score is high, the control unit prioritizes using a broadband PLC to transmit the synchronization signal and extends the synchronization period; when the overall score is low, the control unit prioritizes using a narrowband PLC to transmit the synchronization signal and shortens the synchronization period to improve time synchronization accuracy.
