Network synchronization method and device, network equipment and storage medium

Through sliding segmentation and energy integration, the synchronization control signal is generated and the network equipment clock is adjusted, which solves the problem of increasing errors in complex network environments based on the timestamp synchronization method, and achieves more stable and reliable network synchronization.

CN118945800AActive Publication Date: 2024-11-12SHENZHEN XINTONG FEIYANG TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411236081.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-11-12
Estimated Expiration
2044-09-04

AI Technical Summary

Technical Problem

The time stamp synchronization method is easily affected by network delay and jitter in complex network environments, resulting in increased synchronization errors and it is difficult to ensure the stability and reliability of the communication system.

Method used

By acquiring the network system signal data collected by the sensor, the signal data is slidingly divided using a time window, the energy integral in each time window is calculated, the synchronization control signal is generated, and the clock of the network device is adjusted according to the signal to achieve network synchronization.

Benefits of technology

It reduces the impact of network delay and jitter on synchronization accuracy, generates more stable and reliable synchronization control signals, which can better cope with changes and fluctuations in network state and ensures stable synchronization in complex network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945800A_ABST
    Figure CN118945800A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of network communication, and provides a network synchronization method and device, network equipment and a storage medium. According to the invention, by acquiring the signal data of the network system acquired by the sensor, more real-time and accurate information is provided for synchronization. The time windows are utilized to perform sliding segmentation on the signal data, and the energy integral of the signal data in each time window is calculated, so that the change trend and intensity of the signal can be captured, and a more stable and reliable synchronous control signal is generated. And finally, the clock of the network equipment is adjusted according to the generated synchronization control signal, thereby realizing network synchronization. Compared with synchronization by directly using a timestamp, the method has the advantage that the influence of network delay and jitter on the synchronization precision is reduced. According to the invention, the synchronization control signal is generated based on the analysis of the whole signal data, so that the synchronization process is more robust, the change and fluctuation of the network state can be better coped with, and stable synchronization can be realized in a complex network environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a network synchronization method, apparatus, network device and storage medium. Background Art

[0002] With the widespread deployment and application of 4G and 5G networks, how to ensure the stability and reliability of communication systems has become a key issue that needs to be solved urgently. As the core of ensuring the efficient operation of communication systems, network synchronization technology is becoming increasingly important.

[0003] At present, network synchronization technology mainly relies on the method based on timestamp synchronization. The method based on timestamp synchronization can achieve relatively accurate synchronization in most scenarios, providing strong support for the stable operation of communication systems. However, due to factors such as network delay and jitter, the accuracy of timestamps is easily disturbed, resulting in increased synchronization errors. Summary of the invention

[0004] In view of this, the present application provides a network synchronization method, apparatus, network device and storage medium to solve the technical problem of network synchronization.

[0005] A first aspect of the present application provides a network synchronization method, the method comprising: Acquire signal data in the network system collected by sensors; Using a time window to perform sliding segmentation on the signal data; Calculating the energy integral of the signal data within each of the time windows; generating a synchronization control signal according to the energy integral; The clock of the network device is adjusted according to the synchronization control signal to achieve network synchronization.

[0006] Optionally, the adopting a time window to perform sliding segmentation on the signal data includes: Obtaining the data packet arrival rate of the network system within the current time window; Compare the data packet arrival rate with a preset first arrival rate threshold and a preset second arrival rate threshold respectively to obtain a comparison result; Adjust the size of the current time window according to the comparison result; The signal data is subjected to sliding segmentation using the adjusted time window.

[0007] Optionally, adjusting the size of the current time window according to the comparison result includes: When the comparison result is that the data packet arrival rate is less than the preset first arrival rate threshold, increasing the size of the current time window; When the comparison result is that the data packet arrival rate is greater than the preset second arrival rate threshold, reducing the size of the current time window; When the comparison result is that the data packet arrival rate is greater than the preset first arrival rate threshold and less than the preset second arrival rate threshold, the size of the current time window is kept unchanged.

[0008] Optionally, the adopting a time window to perform sliding segmentation on the signal data includes: Obtaining the data packet arrival rate and buffer occupancy rate of the network system within the current time window; Mapping the data packet arrival rate to a preset arrival rate score value function to obtain an arrival rate score value; Mapping the buffer zone occupancy rate to a preset occupancy rate score value function to obtain an occupancy rate score value; Adjusting the current time window based on the arrival rate score value and the occupancy rate score value; The signal data is subjected to sliding segmentation using the adjusted time window.

[0009] Optionally, the adjusting the current time window based on the arrival rate score value and the occupancy rate score value includes: Calculate based on the preset arrival rate weight, the preset occupancy rate weight, the arrival rate score value and the occupancy rate score value to obtain a weighted sum value; Determining whether the weighted sum value is within a preset sum value range; When the weighted sum value is within the preset sum value range, increasing the size of the current time window based on the value of the weighted sum value; When the weighted sum value is not within the preset sum value range, the size of the current time window is reduced based on the value of the weighted sum value.

[0010] Optionally, generating a synchronization control signal according to the energy integral includes: Identifying a changing trend of the energy integral based on a preset baseline; identifying the deviation type of the synchronization state according to the change trend; Calculating the degree of deviation of the synchronization state according to the preset baseline and the capability score; A synchronization control signal is generated according to the deviation type and the deviation degree.

[0011] Optionally, adjusting the clock of the network device according to the synchronization control signal to achieve network synchronization includes: Monitoring key parameters in the network equipment; Identify the network status of the network device according to the key parameter pair; Determining a network synchronization frequency according to the network status; Based on the network synchronization frequency, the clock of the network device is adjusted according to the synchronization control signal to achieve network synchronization.

[0012] A second aspect of the present application provides a network synchronization device, the device comprising: An acquisition module, used to acquire signal data in a network system collected by sensors; A sliding module, used for performing sliding segmentation on the signal data by using a time window; A calculation module, used for calculating the energy integral of the signal data within each of the time windows; A generating module, used for generating a synchronization control signal according to the energy integral; The synchronization module is used to adjust the clock of the network device according to the synchronization control signal to achieve network synchronization.

[0013] A third aspect of the present application provides a network device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the network synchronization method when executing the computer program.

[0014] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the network synchronization method when executed by a processor.

[0015] The network synchronization method, device, network equipment and storage medium provided in the embodiments of the present application can more directly reflect the actual state of the network by acquiring the network system signal data collected by the sensor, and provide more real-time and accurate information for synchronization. By using the time window to slide the signal data and calculate the energy integral of the signal data in each time window, the changing trend and intensity of the signal can be captured, thereby generating a more stable and reliable synchronization control signal. Finally, the clock of the network device is adjusted according to the generated synchronization control signal to achieve network synchronization. Compared with the prior art that directly uses timestamps for synchronization, the present application reduces the impact of network delay and jitter on synchronization accuracy. The present application generates a synchronization control signal based on the analysis of the entire signal data, making the synchronization process more robust, and can better cope with changes and fluctuations in network status, ensuring stable synchronization in complex network environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a flow chart of a network synchronization method shown in an embodiment of the present application; Figure 2 is a functional module diagram of a network synchronization device shown in an embodiment of the present application; Figure 3It is a structural diagram of a network device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.

[0018] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0019] The network synchronization method provided by the embodiment of the present invention is executed by a network device, and correspondingly, the network synchronization device runs in the network device.

[0020] Figure 1 The flowchart of the network synchronization method provided by the first embodiment of the present invention is as follows. The network synchronization method specifically includes the following steps.

[0021] S11, obtaining signal data in the network system collected by sensors.

[0022] A network system is a system composed of multiple nodes (including sensor nodes, data processing centers, etc.) connected to each other through wired or wireless means. These nodes can work together to achieve functions such as data collection, transmission, processing and analysis.

[0023] A sensor is a device that can detect physical quantities and convert them into measurable signals. In a network system, sensors are used to collect signal data related to communication synchronization in the network system, such as clock signals, timestamp signals, etc. These signals reflect the current state of network synchronization, including time deviation, jitter, etc., and are transmitted to the data processing center through the network.

[0024] S12, performing sliding segmentation on the signal data using a time window.

[0025] A time window is a fixed length of time used to extract a specific piece of data from continuous signal data. The window size (i.e., time length) and step size (i.e., the distance the window moves each time) are two key parameters for defining a time window. The window size determines the amount of data contained in each time window. Larger time windows can capture more contextual information, but may reduce the ability to respond to rapid changes; smaller time windows capture less contextual information, but improve the ability to respond to rapid changes. The step size determines the speed at which the window moves on the signal data. When the step size is equal to the window size, the windows do not overlap; when the step size is less than the window size, the windows overlap.

[0026] Initialize and determine the size and step length of the time window, as well as the starting position of the signal data. Starting from the starting position of the signal data, extract the first segment of data as the first time window according to the window size. Move the window along the signal data by the specified step length, and extract the second segment of data as the second time window. Continue sliding the time window and extracting data until the entire signal data is covered or the predetermined termination condition is reached.

[0027] Through sliding segmentation, continuous signal data can be converted into data segments within a series of time windows, thereby reducing the dimension of the data to a certain extent and facilitating subsequent processing. In addition, by segmenting the signal data into multiple time windows, the data within each time window can be processed in parallel, thereby improving the processing efficiency of the entire network system.

[0028] In order to flexibly respond to dynamic changes in network traffic and ensure the accuracy and efficiency of signal data processing, the size of the time window can be dynamically adjusted based on the packet arrival rate of the network system.

[0029] In an optional implementation, the adopting a time window to perform sliding segmentation on the signal data includes: Obtaining the data packet arrival rate of the network system within the current time window; Compare the data packet arrival rate with a preset first arrival rate threshold and a preset second arrival rate threshold respectively to obtain a comparison result; Adjust the size of the current time window according to the comparison result; The signal data is subjected to sliding segmentation using the adjusted time window.

[0030] The preset first arrival rate threshold is less than the preset second arrival rate threshold. The preset first arrival rate threshold and the preset second arrival rate threshold can be set according to factors such as performance requirements, processing capabilities, and historical traffic data of the network system.

[0031] The packet arrival rate refers to the number of packets arriving at the network system per unit time, reflecting the density of network traffic. Within the time window, if the packet arrival rate is high, it means that more packets need to be processed within the time window. If the time window is set too small, it may lead to frequent data processing operations, increase the processing burden and delay of the system; if the time window is set too large, the processing time may be extended due to the excessive amount of data being processed, thus affecting the real-time performance of the system.

[0032] The obtained data packet arrival rate is compared with two preset thresholds (a first arrival rate threshold and a second arrival rate threshold) to obtain a comparison result. According to different comparison results, different adjustment strategies are adopted to adjust the size of the current time window. The comparison result may include: the data packet arrival rate is less than the preset first arrival rate threshold, or the data packet arrival rate is greater than the preset second arrival rate threshold, or the data packet arrival rate is greater than the preset first arrival rate threshold but greater than the preset second arrival rate threshold.

[0033] The adjusted time window is used to continue sliding segmentation of the signal data. In this process, the new time window will move on the signal data according to the adjusted step size (which can be fixed or dynamically calculated based on the new window size), and extract segments of signal data for subsequent processing. The above optional implementation method enables the system to better adapt to the dynamic changes of network traffic and balance the processing efficiency and load of the network system by flexibly adjusting the size of the time window according to the actual situation of the network load, rather than fixedly using the preset window size. For example, when the data packet arrival rate increases, the time window size can be appropriately reduced to reduce the amount of data processed at a single time and reduce processing delays; conversely, when the data packet arrival rate decreases, the time window size can be appropriately increased to improve processing efficiency.

[0034] In an optional implementation, adjusting the size of the current time window according to the comparison result includes: When the comparison result is that the data packet arrival rate is less than the preset first arrival rate threshold, increasing the size of the current time window; When the comparison result is that the data packet arrival rate is greater than the preset second arrival rate threshold, reducing the size of the current time window; When the comparison result is that the data packet arrival rate is greater than the preset first arrival rate threshold and less than the preset second arrival rate threshold, the size of the current time window is kept unchanged.

[0035] The preset first arrival rate threshold indicates a threshold at which network traffic is at a relatively low level. If the packet arrival rate is lower than the preset first arrival rate threshold, it may mean that the current network load is relatively light, and the size of the time window can be appropriately increased to capture more context information. The preset second arrival rate threshold indicates a threshold at which network traffic is close to or exceeds the upper limit of processing capacity. If the packet arrival rate is higher than the preset second arrival rate threshold, it may mean that the current network load is relatively heavy, and the size of the time window needs to be reduced to reduce processing delays and improve response speed. If the packet arrival rate is between the preset first arrival rate threshold and the preset second arrival rate threshold, you can choose to keep the current time window size unchanged or make fine adjustments based on actual conditions.

[0036] Exemplarily, first use the initialized time window W0, starting from the starting position of the signal data, and extract the first segment of data as the first time window according to the initialized time window size. Then obtain the data packet arrival rate of the network system in the first time window, and compare the data packet arrival rate with the preset first arrival rate threshold and the preset second arrival rate threshold respectively. If the data packet arrival rate is less than the preset first arrival rate threshold, increase the size of the time window W0 to obtain the time window W1. If the data packet arrival rate is greater than the preset first arrival rate threshold, reduce the size of the time window W0 to obtain the time window W1. Move the time window W1 along the signal data by a specified step size, and extract the second segment of data as the second time window.

[0037] Next, the packet arrival rate of the network system in the second time window is obtained, and the packet arrival rate is compared with the preset first arrival rate threshold and the preset second arrival rate threshold. The size of the time window W1 is adjusted according to the comparison result to obtain the time window W2. The time window W2 is moved along the signal data by a specified step length, and the third segment of data is extracted as the third time window.

[0038] Obtain the data packet arrival rate of the network system in the third time window, and compare the data packet arrival rate with the preset first arrival rate threshold and the preset second arrival rate threshold respectively. Adjust the size of the time window W2 according to the comparison result to obtain the time window W3. Move the time window W3 along the signal data by a specified step length, and extract the fourth segment of data as the fourth time window.

[0039] And so on, until the entire signal data is covered.

[0040] The above optional implementation method dynamically adjusts the size of the time window based on the comparison result of the data packet arrival rate and the preset threshold value, which can ensure that the system can maintain high processing efficiency and accuracy under different network traffic conditions.

[0041] In order to be able to more flexibly respond to dynamic changes in network traffic and further ensure the accuracy and efficiency of signal data processing, the size of the time window can be comprehensively adjusted based on the packet arrival rate and buffer occupancy rate, making the adjustment of the time window more dynamic and flexible.

[0042] In an optional implementation, the adopting a time window to perform sliding segmentation on the signal data includes: Obtaining the data packet arrival rate and buffer occupancy rate of the network system within the current time window; Mapping the data packet arrival rate to a preset arrival rate score value function to obtain an arrival rate score value; Mapping the buffer zone occupancy rate to a preset occupancy rate score value function to obtain an occupancy rate score value; Adjusting the current time window based on the arrival rate score value and the occupancy rate score value; The signal data is subjected to sliding segmentation using the adjusted time window.

[0043] The buffer occupancy rate refers to the proportion of space occupied in the current buffer, reflecting the current processing capacity of the system. When the buffer occupancy rate exceeds the high threshold, it indicates that the system is under great processing pressure and may face congestion. At this time, you should give priority to reducing the time window size to reduce the amount of data processed each time and relieve system pressure. When the buffer occupancy rate is lower than the low threshold, it indicates that the system processing capacity is relatively sufficient. At this time, you can consider increasing the time window size appropriately to improve processing efficiency.

[0044] In order to quantify the impact of packet arrival rate and buffer occupancy on network performance, the arrival rate scoring function and occupancy scoring function are preset. The preset arrival rate scoring function gives a corresponding scoring value according to the arrival rate. The preset occupancy scoring function gives a corresponding scoring value according to the occupancy. The higher the scoring value, the greater the impact of the parameter on the time window adjustment.

[0045] Exemplarily, assuming that the packet arrival rate is less than the preset first arrival rate threshold, the packet arrival rate is mapped to the preset arrival rate scoring function, and the obtained arrival rate scoring value is -1. Assuming that the packet arrival rate is greater than the preset second arrival rate threshold, the packet arrival rate is mapped to the preset arrival rate scoring function, and the obtained arrival rate scoring value is +1. Assuming that the packet arrival rate is greater than the preset first arrival rate threshold and less than the preset second arrival rate threshold, the packet arrival rate is mapped to the preset arrival rate scoring function, and the obtained arrival rate scoring value is 0.

[0046] Exemplarily, assuming that the buffer occupancy is less than the preset first occupancy threshold, the buffer occupancy is mapped to the preset occupancy score value function, and the obtained occupancy score value is -1. Assuming that the buffer occupancy is greater than the preset second occupancy threshold, the buffer occupancy is mapped to the preset occupancy score value function, and the obtained occupancy score value is +1. Assuming that the buffer occupancy is greater than the preset first occupancy threshold and less than the preset second occupancy threshold, the buffer occupancy is mapped to the preset occupancy score value function, and the obtained occupancy score value is 0.

[0047] The arrival rate score and occupancy score provide direct feedback on the current network status and performance. The system can adjust the size or frequency of the time window based on these scores. For example, if the arrival rate score and occupancy score are both low, it means that the current network load is light. The time window can be appropriately increased to reduce the number of segmentations and improve processing efficiency. On the contrary, if the arrival rate score and occupancy score are high, it means that the network load is heavy or the system is close to saturation. At this time, the time window should be reduced to respond to network changes more promptly.

[0048] In some cases, the system may also perform a weighted summation of the arrival rate score and the occupancy rate score to obtain a comprehensive score.

[0049] Different weights may be assigned to the packet arrival rate and the buffer occupancy rate, or the same weight may be assigned to the packet arrival rate and the buffer occupancy rate. The current time window is adjusted based on the assigned weights, the arrival rate score value, and the occupancy score value.

[0050] In the actual adjustment process, the changing trends of the packet arrival rate and the buffer occupancy rate can be comprehensively considered. For example, if the packet arrival rate is rising rapidly and the buffer occupancy rate is gradually approaching the high threshold, then even if the current buffer occupancy rate has not reached the high threshold, the time window size can be reduced in advance to prevent congestion.

[0051] Adjust the time window size according to the above strategy and monitor the adjusted network status and system performance. If the effect after adjustment is not ideal (such as the buffer occupancy rate is still too high or the packet loss rate increases), you need to re-evaluate the adjustment strategy and make further adjustments.

[0052] In an optional implementation, the adjusting the current time window based on the arrival rate score value and the occupancy rate score value includes: Calculate based on the preset arrival rate weight, the preset occupancy rate weight, the arrival rate score value and the occupancy rate score value to obtain a weighted sum value; Determining whether the weighted sum value is within a preset sum value range; When the weighted sum value is within the preset sum value range, increasing the size of the current time window based on the value of the weighted sum value; When the weighted sum value is not within the preset sum value range, the size of the current time window is reduced based on the value of the weighted sum value.

[0053] The preset arrival rate weight (W_AR) and the preset occupancy weight (W_OR) represent the importance the system places on the packet arrival rate and buffer occupancy. The value range is (0, 1), and the sum of the preset arrival rate weight (W_AR) and the preset occupancy weight (W_OR) is 1.

[0054] The weighted sum value Weighted_Sum=W_AR*Score_AR+W_OR*Score_OR is calculated according to the preset arrival rate weight, the preset occupancy rate weight, the arrival rate score value (Score_AR) and the occupancy rate score value (Score_OR).

[0055] The preset sum value range is a predefined numerical interval used to determine whether the weighted sum value is within an "ideal" or "acceptable" range.

[0056] The calculated weighted sum value is compared with the preset sum value range (such as -0.5 to 0.5) to determine whether the system state is in the ideal range. If the weighted sum value is within the preset sum value range, it means that the arrival rate and occupancy rate of the system are in a relatively balanced and ideal state. At this time, the system has sufficient capacity to handle more user requests or data traffic without causing obvious performance degradation or insufficient resources. Therefore, by increasing the size of the current time window, the processing capacity of the system can be further expanded to cope with the possible increase in load, thereby improving the overall efficiency and response speed of the system. When the weighted sum value is not within the preset sum value range, the size of the current time window should be reduced based on the value of the weighted sum value. Because the arrival rate and occupancy rate of the system may be unbalanced at this time, the system may face the risk of overload or insufficient resources. If the size of the time window is continued to increase, the burden on the system will be further increased, which may cause performance degradation, service delays, or even system crashes. Therefore, by reducing the size of the time window, the system load can be reduced, the processing efficiency can be improved, and the stable operation of the system can be guaranteed.

[0057] For example, assuming that the preset arrival rate weight is 0.3, the preset occupancy rate weight is 0.7, the arrival rate score value is -1, the occupancy rate score value is 0, and the weighted sum value is -0.3, within the preset sum value range, the current time window is increased by 30% to obtain a new time window.

[0058] Assume that the preset arrival rate weight is 0.4, the preset occupancy weight is 0.6, the arrival rate score is 0, the occupancy score is 1, and the weighted sum is 0.6, which is not within the preset sum range. Then reduce the current time window by 60% to obtain a new time window.

[0059] It should be noted that when increasing or decreasing the time window, when the weighted sum value is -1 or 1, the adjusted time window is 0 due to the reduction of 100% of the time window. For this extreme case, the packet arrival rate and buffer occupancy rate can be re-obtained to recalculate the weighted sum value.

[0060] The above optional implementation mode adjusts the event window based on the weighted sum value, which can comprehensively consider the influence of the data packet arrival rate and the buffer occupancy rate, making the adjustment of the time window more reasonable and effective.

[0061] S13, calculating the energy integral of the signal data in each of the time windows.

[0062] Energy integration can be achieved by calculating the sum of squares or absolute values ​​of the signal data amplitudes, depending on the characteristics and requirements of the signal. Energy integration is an effective indicator for measuring signal strength or activity. The integration operation can reflect the overall energy level of the signal within the time window.

[0063] The signal data in each time window can be pre-processed by filtering, denoising, etc. to reduce the influence of interference and noise on subsequent processing. Then the energy integral of the pre-processed signal data is calculated.

[0064] S14, generating a synchronization control signal according to the energy integration.

[0065] By analyzing the trend of energy integral over time, the synchronization state of the current network can be determined, and then the corresponding synchronization control signal can be generated according to the synchronization state. The synchronization control signal can include adjusting the clock, frequency, phase and other parameters of the network equipment, or directly interacting with the network management system to optimize or restore the network synchronization state.

[0066] In an optional implementation, generating a synchronization control signal according to the energy integral includes: Identifying a changing trend of the energy integral based on a preset baseline; identifying the deviation type of the synchronization state according to the change trend; Calculating the degree of deviation of the synchronization state according to the preset baseline and the capability score; A synchronization control signal is generated according to the deviation type and the deviation degree.

[0067] The preset baseline is the average energy integral value obtained through long-term observation and statistical analysis when the system operates stably and without significant deviation.

[0068] Compare the energy integral value corresponding to each time window with the preset baseline to identify whether the energy integral has a trend such as monotonically increasing, monotonically decreasing, or periodic fluctuation. Based on the changing trend of the energy integral, identify the deviation type of the synchronization state. If the energy integral gradually deviates from the preset baseline over time, and this deviation is monotonic (such as gradually increasing or decreasing), the deviation type is identified as time drift. If the energy integral fluctuates frequently around the preset baseline, and the fluctuation amplitude exceeds the preset threshold, the deviation type is identified as jitter.

[0069] After the deviation type is determined, the deviation degree needs to be further calculated to quantify the severity of the deviation. When the deviation type is time drift, the difference between the energy integral and the preset baseline is calculated to obtain the deviation degree. When the deviation type is jitter, the variance or standard deviation between the energy integral and the preset baseline is calculated to obtain the deviation degree.

[0070] According to the deviation type and degree, a corresponding synchronization control signal is generated to adjust the phase, frequency, amplitude or other related parameters of the synchronization signal. For example, for time drift, the phase or frequency of the synchronization signal may need to be adjusted to gradually pull the synchronization signal back to the correct phase position. For jitter, a feedback control loop may need to be introduced to stabilize the output.

[0071] The above optional implementation introduces a preset baseline as a reference, so that the system can evaluate the deviation between the current state and the ideal state in real time, and take timely measures to correct it. This dynamic adjustment mechanism helps to enhance the stability and robustness of the system and reduce system fluctuations or failures caused by synchronization deviations. By identifying the changing trend of the energy integral and judging the deviation type of the synchronization state accordingly, it is possible to accurately capture slight deviations in the synchronization process. According to the deviation type and the quantified degree of deviation, a synchronization control signal is generated, and the synchronization parameters can be adjusted in a targeted manner, thereby significantly improving the synchronization accuracy of the system.

[0072] S15, adjusting the clock of the network device according to the synchronization control signal to achieve network synchronization.

[0073] The synchronization control signal contains key information about time deviation, adjustment direction and adjustment amount, etc. The key information is parsed from the synchronization control signal to facilitate subsequent clock adjustment.

[0074] Based on the key information parsed from the synchronization control signal, the network device needs to calculate the time deviation between the current clock and the network reference clock (such as GPS time, NTP server time, etc.). This time deviation may be an absolute value or a relative value, depending on the format and convention of the synchronization control signal.

[0075] Once the time deviation is determined, the network device can begin to adjust its internal clock to eliminate the deviation. By adjusting the frequency of the clock (that is, the number of pulses per second), the clock's running speed is consistent with the network reference clock. When the time deviation needs to be corrected quickly, it can be achieved by directly adjusting the phase of the clock (that is, the offset of the current time).

[0076] After the clock adjustment is completed, the network device needs to verify the adjustment effect. The current clock is compared with the network reference clock again to confirm whether the time deviation has been eliminated or reduced to an acceptable range. If the adjustment effect is not ideal, it may be necessary to recalculate the time deviation and adjust it again. Network synchronization is an ongoing process that requires continuous monitoring and adjustment to ensure that the clocks are always synchronized.

[0077] Network devices can accurately adjust their internal clocks according to the synchronization control signal to achieve network synchronization, ensuring that devices in the network can work in a coordinated manner and improving network performance and reliability.

[0078] In an optional implementation, adjusting the clock of the network device according to the synchronization control signal to achieve network synchronization includes: Monitoring key parameters in the network equipment; Identify the network status of the network device according to the key parameter pair; Determining a network synchronization frequency according to the network status; Based on the network synchronization frequency, the clock of the network device is adjusted according to the synchronization control signal to achieve network synchronization.

[0079] Key parameters refer to important indicators that can reflect the performance or status of network equipment during operation, such as network delay, packet loss rate, CPU usage, memory usage, etc.

[0080] Set a threshold for each key parameter and compare the key parameter with the corresponding threshold to identify the network status. Network status includes normal, high load, low latency, congestion, etc. For example, CPU usage exceeding 80% is considered a high load state, and network latency exceeding 100 milliseconds is considered a low performance state. Multiple key parameters can be comprehensively analyzed to obtain the most accurate network status assessment results.

[0081] Based on the identified network status, the network device will dynamically adjust its network synchronization frequency. The network synchronization frequency refers to the frequency of time synchronization between network devices, that is, how often the clock is adjusted to keep the time of devices in the network consistent. For example, when the network load is high or the network delay is large, the synchronization frequency may be increased to improve the real-time and accuracy of synchronization; when the network condition is relatively stable, the synchronization frequency can be appropriately reduced to reduce the occupation of network resources.

[0082] The above optional implementation method identifies the network status according to the key parameters, and determines a suitable network synchronization frequency based on the identified network status. Finally, the system will accurately adjust the clock of the network device according to the network synchronization frequency and the received synchronization control signal to ensure that each device in the network can maintain time synchronization.

[0083] By introducing an energy integration algorithm, this application can achieve accurate identification and effective control of the network synchronization state, thereby achieving high-precision synchronization and long-term maintenance.

[0084] Figure 2 It is a structural diagram of a network synchronization device provided in Embodiment 2 of the present invention.

[0085] In some embodiments, the network synchronization device 20 may include multiple functional modules composed of computer program segments. The computer programs of the various program segments in the network synchronization device 20 may be stored in a memory of a network device and executed by at least one processor to perform (see Figure 1 Description) Network synchronization function.

[0086] In this embodiment, the network synchronization device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: an acquisition module 201, a sliding module 202, a calculation module 203, a generation module 204 and a synchronization module 205. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0087] The acquisition module 201 is used to acquire signal data in the network system collected by sensors; The sliding module 202 is used to perform sliding segmentation on the signal data using a time window; The calculation module 203 is used to calculate the energy integral of the signal data in each of the time windows; The generating module 204 is used to generate a synchronization control signal according to the energy integral; The synchronization module 205 is used to adjust the clock of the network device according to the synchronization control signal to achieve network synchronization.

[0088] It should be understood that the various variations and specific embodiments of the network synchronization method provided in the above embodiments are also applicable to the network synchronization device in this embodiment. Through the detailed description of the aforementioned network synchronization method, technical personnel in this field can clearly understand the implementation process of the network synchronization device in this embodiment. For the sake of brevity of the specification, it will not be described in detail here.

[0089] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, all or part of the steps of the network synchronization method are implemented.

[0090] See also Figure 3 FIG. 2 is a schematic diagram of the structure of a network device provided in Embodiment 3 of the present application. In a preferred embodiment of the present application, the network device 3 includes a memory 31 , at least one processor 32 and at least one communication bus 33 .

[0091] Those skilled in the art should understand that Figure 3 The structure of the network device shown does not constitute a limitation of the embodiments of the present application, and can be either a bus structure or a star structure. The network device 3 can also include more or less other hardware or software than shown in the figure, or a different component arrangement.

[0092] In some embodiments, the network device 3 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The network device 3 may also include client devices, which include but are not limited to any electronic product that can interact with a client through a keyboard, mouse, remote control, touchpad, or voice-controlled device, such as a personal computer, tablet computer, smart phone, digital camera, etc.

[0093] It should be noted that the network device 3 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.

[0094] In some embodiments, the memory 31 stores a computer program, and when the computer program is executed by the at least one processor 32, all or part of the steps in the network synchronization method as described above are implemented. The memory 31 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data. Further, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, and the like.

[0095] In some embodiments, the at least one processor 32 is the control core (ControlUnit) of the network device 3, and uses various interfaces and lines to connect the various components of the entire network device 3, and executes various functions and processes data of the network device 3 by running or executing the program or module stored in the memory 31, and calling the data stored in the memory 31. For example, when the at least one processor 32 executes the computer program stored in the memory, it implements all or part of the steps of the network synchronization method described in the embodiment of the present application; or implements all or part of the functions of the network synchronization device. The at least one processor 32 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same function or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips.

[0096] In some embodiments, the at least one communication bus 33 is configured to realize the connection and communication between the memory 31 and the at least one processor 32, etc. Although not shown, the network device 3 may also include a power supply (such as a battery) for powering each component. Preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to realize the functions of managing charging, discharging, and power consumption management through the power management device. The power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The network device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0097] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a network device (which can be a personal computer, a network device, or a network device, etc.) or a processor to execute part of the method described in each embodiment of the present application.

[0098] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0099] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Claims

1. A network synchronization method, characterized in that: The method comprises: Acquire signal data in the network system collected by sensors; Using a time window to perform sliding segmentation on the signal data; Calculating the energy integral of the signal data within each of the time windows; generating a synchronization control signal according to the energy integral; The clock of the network device is adjusted according to the synchronization control signal to achieve network synchronization.

2. The network synchronization method according to claim 1, characterized in that: The adopting a time window to perform sliding segmentation on the signal data comprises: Obtaining the data packet arrival rate of the network system within the current time window; Compare the data packet arrival rate with a preset first arrival rate threshold and a preset second arrival rate threshold respectively to obtain a comparison result; Adjust the size of the current time window according to the comparison result; The signal data is subjected to sliding segmentation using the adjusted time window.

3. The network synchronization method according to claim 2, characterized in that: The adjusting the size of the current time window according to the comparison result comprises: When the comparison result is that the data packet arrival rate is less than the preset first arrival rate threshold, increasing the size of the current time window; When the comparison result is that the data packet arrival rate is greater than the preset second arrival rate threshold, reducing the size of the current time window; When the comparison result is that the data packet arrival rate is greater than the preset first arrival rate threshold and less than the preset second arrival rate threshold, the size of the current time window is kept unchanged.

4. The network synchronization method according to claim 1, characterized in that: The adopting a time window to perform sliding segmentation on the signal data comprises: Obtaining the data packet arrival rate and buffer occupancy rate of the network system within the current time window; Mapping the data packet arrival rate to a preset arrival rate score value function to obtain an arrival rate score value; Mapping the buffer zone occupancy rate to a preset occupancy rate score value function to obtain an occupancy rate score value; Adjusting the current time window based on the arrival rate score value and the occupancy rate score value; The signal data is subjected to sliding segmentation using the adjusted time window.

5. The network synchronization method according to claim 4, characterized in that: The adjusting the current time window based on the arrival rate score value and the occupancy rate score value includes: Calculate based on the preset arrival rate weight, the preset occupancy rate weight, the arrival rate score value and the occupancy rate score value to obtain a weighted sum value; Determining whether the weighted sum value is within a preset sum value range; When the weighted sum value is within the preset sum value range, increasing the size of the current time window based on the value of the weighted sum value; When the weighted sum value is not within the preset sum value range, the size of the current time window is reduced based on the value of the weighted sum value.

6. The network synchronization method according to any one of claims 1 to 5, characterized in that: Generating a synchronization control signal according to the energy integral comprises: Identifying a changing trend of the energy integral based on a preset baseline; identifying the deviation type of the synchronization state according to the change trend; Calculating the degree of deviation of the synchronization state according to the preset baseline and the capability score; A synchronization control signal is generated according to the deviation type and the deviation degree.

7. The network synchronization method according to any one of claims 1 to 5, characterized in that: The step of adjusting the clock of the network device according to the synchronization control signal to achieve network synchronization comprises: Monitoring key parameters in the network equipment; Identify the network status of the network device according to the key parameter pair; Determining a network synchronization frequency according to the network status; Based on the network synchronization frequency, the clock of the network device is adjusted according to the synchronization control signal to achieve network synchronization.

8. A network synchronization device, characterized in that: The device comprises: An acquisition module, used to acquire signal data in a network system collected by sensors; A sliding module, used for performing sliding segmentation on the signal data by using a time window; A calculation module, used for calculating the energy integral of the signal data within each of the time windows; A generating module, used for generating a synchronization control signal according to the energy integral; The synchronization module is used to adjust the clock of the network device according to the synchronization control signal to achieve network synchronization.

9. A network device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the network synchronization method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the network synchronization method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Synchronization method for ultra-broadband system based on energy detection

    CN101102164A

  • Congestion control method with duty ratio self-adaptive following network flow

    CN112423343A

  • Synchronization signal detection method and device, equipment and storage medium

    CN116232526A

  • Method for increasing processing efficiency of ultra-wideband short pulse signals at a receiving side

    RU2731207C1

  • Narrowband machine-to-machine cell search

    US20160218821A1