A method and system for upgrading optical network unit equipment based on data transmission capability

By using data collection, network dependency and error recovery modules in optical network unit equipment, combined with breakpoint resume technology, the problems of interruption recovery and error handling in the upgrade of optical network unit equipment are solved, and the upgrade process is efficient, reliable and Resource conservation.

CN118555190BActive Publication Date: 2024-10-29SHENZHEN HS FIBER COMM EQUIP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410996563.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-29
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

During the optical network unit equipment upgrade process, how to effectively recover from interruptions and avoid repeated transmission of successfully upgraded parts, especially when the network scale expands and the number of devices increases, how to deal with the complexity and possible problems of transmitting data and historical upgrade information Conflicts and errors, ensuring system stability and data integrity.

Method used

Adopt an optical network unit equipment upgrade system based on resumable data transmission capabilities, including a data collection module, a network dependency module and an error recovery module. It dynamically adjusts block size and retry by monitoring network status in real time, identifying error types and automatically executing retry logic. Strategy, using breakpoint resumption technology to improve transmission reliability and efficiency.

Benefits of technology

Effectively resume the upgrade process, save time and resources, improve transmission reliability and efficiency, reduce network congestion caused by retransmissions, quickly identify transmission interruptions and recover from breakpoints, and reduce waiting times and unnecessary data resends.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555190B_ABST
    Figure CN118555190B_ABST
Patent Text Reader

Abstract

The present invention discloses an optical network unit device upgrade method and system based on the ability to resume data transmission, relates to the technical field of optical network unit devices, and comprises a data acquisition module, a network dependency module and an error recovery module; the data acquisition module is used to collect data information of the optical network unit device; the network dependency module is used to dynamically monitor the network status according to the data information obtained by the data acquisition module, and adjust the upgrade strategy according to the current network quality; the error recovery module comprises an error monitoring unit and a recovery unit; the block size is adaptively adjusted to improve the data transmission efficiency, especially in an unstable network environment, the block size and retry strategy are intelligently adjusted to reduce network congestion caused by retransmission, quickly identify transmission interruptions and recover from the breakpoints, reduce waiting time and unnecessary data resending, dynamically adjust transmission parameters according to real-time network conditions, and improve the adaptability and flexibility of the method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of optical network unit equipment, and more specifically, to an optical network unit equipment upgrading method and system based on the data transmission capability. Background Art

[0002] Optical network units are key devices for end users to access the network. The upgrade of their software and firmware is crucial to network performance and service quality. In the field of industrial automation, optical network unit devices are used to connect various sensors and controllers. When an interruption occurs during the optical network unit upgrade process, how to effectively restore the upgrade process and avoid repeated transmission of the successfully upgraded parts, thereby saving time and resources;

[0003] However, in actual use, if an error occurs again during the retransmission process, a robust error recovery mechanism is needed to handle it, otherwise it may cause system instability or data corruption; as the network scale expands and the number of devices increases, conflicts may also occur in actual use due to the complexity of transmitted data and historical upgrade information. Summary of the invention

[0004] In order to solve the above problems, the present invention provides an optical network unit equipment upgrading method and system based on the data retransmission capability.

[0005] On the one hand, the present invention proposes an optical network unit equipment upgrade system based on the data transmission capability, characterized in that it includes a data acquisition module, a network dependency module and an error recovery module;

[0006] The data acquisition module is used to collect data information of the optical network unit device;

[0007] The network dependency module is used to dynamically monitor the network status according to the data information obtained by the data acquisition module, and adjust the upgrade strategy according to the current network quality;

[0008] The error recovery module includes an error monitoring unit and a recovery unit. The error monitoring unit is used to monitor the errors in the upgrade process in real time according to the data information of the data acquisition module and identify the problem type, specifically:

[0009] Get the calibration indicator variable of the optical network unit device ;

[0010] Get the timeout monitoring variables of the optical network unit device ;

[0011] Get the data loss monitoring variables of the optical network unit device ;

[0012] Determine the indicator variable and timeout monitoring variables Is 1 or 0, if the check indicator variable If it is 1, it is judged that the checksum of the sending end and the checksum of the receiving end are inconsistent during the upgrade of the optical network unit equipment. If the timeout monitoring variable If the check indicator variable is 1, the judgment and upgrade transmission time exceeds the set timeout period. and timeout monitoring variables If both are 0, the optical network unit device is normal;

[0013] Then set a threshold value of the data loss monitoring variable and set the data loss monitoring variable The data loss monitoring variable is compared with the threshold value. If the value is greater than the threshold of the data loss monitoring variable, it is determined that the optical network unit device has a data packet loss problem. If not, it is determined that the optical network unit device is normal.

[0014] The recovery unit is used to automatically execute retry logic according to the identification result of the error monitoring unit.

[0015] Preferably, the optical network unit device verification indicator variable The specific way to obtain is as follows:

[0016] Mark the file as F;

[0017] Get the checksum of file F , get the checksum calculated by the sending end of the optical network unit device , get the checksum calculated by the receiving end of the optical network unit device , if the sender calculates the checksum Not equal to the checksum calculated by the receiver , then check the indicator variable The value of is 1, otherwise, the indicator variable is checked The value of is 0.

[0018] Preferably, the network dependency module includes a network detection unit, and the network detection unit is used to evaluate the network quality of the optical network unit device, specifically:

[0019] According to the formula: , calculate and obtain the network quality value Q of the optical network unit device, where n is the number of key indicators, represents the i-th key indicator, is the weight coefficient of the i-th key indicator;

[0020] A network quality value threshold of the optical network unit device is set in advance, and the network quality value Q is compared with the network quality value threshold. If the network quality value Q is greater than the network quality value threshold, it indicates that the network condition is normal and the optical network unit device upgrade process continues. Otherwise, it indicates that the network condition is abnormal and the optical network unit device upgrade process is suspended.

[0021] Preferably, the key indicator is bandwidth utilization ,Delay , Packet loss rate , Jitter , Error rate and network congestion value , where the specific acquisition method is:

[0022] Bandwidth Utilization ,in is the amount of bandwidth currently being used by the optical network unit device, The maximum bandwidth theoretically provided by the network;

[0023] Delay ,in is the average time it takes for a data packet to travel from the sender to the receiver in the optical network unit device. is the total number of packets sent;

[0024] Packet loss rate ,in is the number of data packets lost by the optical network unit device during transmission. is the total number of data packets sent during the upgrade process;

[0025] Jitter , where T is the total number of packets, is the actual arrival time of the yth data packet, is the time when the yth data packet should arrive, predicted based on the arrival time of previous data packets;

[0026] Error rate ,in The number of data packets with errors during transmission of the optical network unit device. is the total number of packets sent;

[0027] Network congestion value ,in is the number of data packets waiting to be processed by the optical network unit device, The maximum number of packets to store for the buffer.

[0028] Preferably, the network dependency module further includes a local cache unit, and the specific working mode of the local cache unit is as follows:

[0029] The local cache unit implements local cache on the optical network unit device to store a temporary copy of the upgrade file;

[0030] Obtaining the judgment result of the network detection unit, and if the network condition is normal, continuing the network upgrade;

[0031] If the network condition is abnormal, the local cache is used for upgrading.

[0032] Preferably, the specific working mode of the recovery unit is as follows:

[0033] The error type is obtained according to the error monitoring unit and marked as E;

[0034] Obtaining the current network status of the optical network unit device according to the network dependency module, if the network status is normal, no delayed retry is required, and if the network status is abnormal, a delayed retry is performed;

[0035] If E is a check indicator variable and data loss monitoring variables If there is an exception, first check the network congestion. If there is no congestion, perform a delayed retry. If there is congestion, consider changing the transmission path.

[0036] If E is a timeout monitoring variable If there is an exception, retry;

[0037] The error recovery module also includes a breakpoint resume unit, which sets a maximum retry threshold in advance. If the number of retries executed is greater than or equal to the maximum retry threshold, a signal is transmitted to the breakpoint resume unit to trigger breakpoint resume.

[0038] Preferably, the specific working mode of the breakpoint resume unit is as follows:

[0039] Split files into dynamically sized chunks;

[0040] After each data block is transmitted, the receiver immediately sends an acknowledgment (ACK) or a negative acknowledgement (NAK);

[0041] Record the sequence number of each successfully transmitted block. If the transmission is interrupted, resume the transmission from the last successfully confirmed block.

[0042] Preferably, the specific method of dividing the file into data blocks of dynamic size is as follows:

[0043] Set an initial block size M in advance;

[0044] According to the formula , calculate and obtain the size K of the data block after segmentation, where is the adjustment factor for historical data, is the historical average packet loss rate.

[0045] Preferably, the breakpoint resuming unit is further used to guide the adjustment of the block size according to the network status of the network detection unit in real time, specifically:

[0046] According to the formula , calculate and obtain the real-time evaluation value H, where , and is the preset proportional coefficient;

[0047] A threshold range of the real-time evaluation value is set in advance. If H is smaller than the threshold range, the size of the block is reduced; if H is larger than the threshold range, the size of the block is increased.

[0048] On the other hand, the present invention also proposes a method for upgrading an optical network unit device based on the ability to continue transmitting data, comprising the following steps:

[0049] Step 1: Collect data information of optical network unit equipment, dynamically monitor network status based on the data information, and adjust the upgrade strategy according to the current network quality;

[0050] Step 2: Monitor the errors in the upgrade process in real time based on the data information from the data acquisition module and identify the problem type;

[0051] Step 3: Automatically execute the retry logic according to the identification result of the error monitoring unit.

[0052] Beneficial effects: When an interruption occurs during the optical network unit upgrade process, the upgrade process is effectively restored to avoid repeated transmission of the successfully upgraded part, thereby saving time and resources; intelligently decide whether to retry, how long to delay the retry, whether to change the path, or from which point to start breakpoint transmission based on the error type and network conditions, thereby improving the reliability and efficiency of transmission;

[0053] By adaptively adjusting the block size, the data transmission efficiency is improved, especially in an unstable network environment, the block size and retry strategy are intelligently adjusted to reduce network congestion caused by retransmission, quickly identify transmission interruptions and recover from breakpoints, reduce waiting time and unnecessary data resending, and dynamically adjust transmission parameters according to real-time network conditions to improve the adaptability and flexibility of the method. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 is a flow chart of the present invention;

[0055] Figure 2 It is a flow chart of the upgrading method of the present invention. DETAILED DESCRIPTION

[0056] like Figure 1 As shown, an optical network unit device upgrade system based on data retransmission capability includes a data acquisition module, a network dependency module and an error recovery module; it should be noted that the optical network unit is a key device for terminal users to access the network, and the upgrade of its software and firmware is crucial to network performance and service quality. In the field of industrial automation, the optical network unit device is used to connect various sensors and controllers. When an interruption occurs during the optical network unit upgrade process, how to effectively restore the upgrade process to avoid repeated transmission of the successfully upgraded part, thereby saving time and resources; however, in actual use, if an error occurs again during the retransmission process, a robust error recovery mechanism is required to handle it, otherwise it may cause system instability or data damage; with the expansion of the network scale and the increase in the number of devices, conflicts may also occur in actual use due to the complexity of transmitted data and historical upgrade information;

[0057] The data acquisition module is used to collect data information of the optical network unit device; it should be noted that, in this embodiment, the data information includes: device information collection: automatically collect the hardware and software status information of the optical network unit device, including version number, configuration parameters, etc.; upgrade history record: record detailed information of each upgrade, including successful and failed attempts, and interruption point data; network status monitoring: real-time monitoring of network quality, including bandwidth, delay, packet loss rate and other indicators; user feedback collection: collect user feedback on the upgrade process for improving the upgrade strategy;

[0058] It should also be noted that comprehensive data support is provided to help the system better understand the device status and network environment. Through historical data analysis, it is conducive to subsequent optimization and upgrade strategies and reduces the risk of upgrade failures;

[0059] The network dependency module is used to dynamically monitor the network status according to the data information obtained by the data acquisition module, and adjust the upgrade strategy according to the current network quality; it should be noted that the dependence on real-time network connection is reduced, and the flexibility and reliability of the upgrade are improved;

[0060] The error recovery module includes an error monitoring unit and a recovery unit. The error monitoring unit is used to monitor the errors in the upgrade process in real time according to the data information of the data acquisition module and identify the problem type, specifically:

[0061] Get the calibration indicator variable of the optical network unit device It should be noted that, in this embodiment, the check indicator variable Used to indicate whether the checksum at the sending end and the checksum at the receiving end are consistent during the optical network unit equipment upgrade process;

[0062] Get the timeout monitoring variables of the optical network unit device ; It should be noted that a timeout threshold is set in advance, and the start time and expected end time of the transmission are obtained. If the transmission time exceeds the set timeout threshold, the timeout monitoring variable The value of is 1, otherwise, the timeout monitoring variable The value of is 0;

[0063] Get the data loss monitoring variables of the optical network unit device ; It should be noted that the data loss monitoring variable Indicates the difference between the data packets sent by the sender and the data packets received by the receiver. This value directly reflects the total number of data packets lost during the transmission process. If the data loss monitoring variable The value of 0 indicates that all packets have been successfully received and no packets have been lost. If it is greater than 0, it indicates that a corresponding number of packets have been lost.

[0064] Determine the indicator variable and timeout monitoring variables Is 1 or 0, if the check indicator variable If it is 1, it is judged that the checksum of the sending end and the checksum of the receiving end are inconsistent during the upgrade of the optical network unit equipment. If the timeout monitoring variable If the check indicator variable is 1, the judgment and upgrade transmission time exceeds the set timeout period. and timeout monitoring variables If both are 0, the optical network unit device is normal;

[0065] Then set a threshold value of the data loss monitoring variable and set the data loss monitoring variable The data loss monitoring variable is compared with the threshold value. If the value is greater than the threshold of the data loss monitoring variable, it is judged that the optical network unit device has a data packet loss problem. If not, it is judged that the optical network unit device is normal. It should be noted that the errors in the upgrade process are quantified and provide a basis for error handling and decision-making;

[0066] The recovery unit is used to automatically execute the retry logic according to the identification result of the error monitoring unit. It should be noted that the upgrade failure caused by errors is reduced and the success rate of the upgrade is improved; through intelligent retry and breakpoint resumption, the upgrade time is reduced and the user experience is improved.

[0067] As an optional embodiment: the optical network unit device verification indicator variable The specific way to obtain is as follows:

[0068] The file is marked as F; it should be noted that, in this embodiment, the file F refers to the software or firmware file that needs to be transmitted during the optical network unit device upgrade process;

[0069] Get the checksum of file F , get the checksum calculated by the sending end of the optical network unit device , get the checksum calculated by the receiving end of the optical network unit device , if the sender calculates the checksum Not equal to the checksum calculated by the receiver , then check the indicator variable The value of is 1, otherwise, the indicator variable is checked The value of is 0. It should be noted that, in this embodiment, the checksum of file F Usually refers to a short fixed-size value calculated for file F. This value is calculated based on the file content through an algorithm (such as CRC32, MD5, SHA-256, etc.). The checksum is used to detect whether the file has changed during transmission or storage.

[0070] It should also be noted that the checksum calculated by the sender and the checksum calculated by the receiving end , respectively represent the checksum calculated based on the file content before the file is sent from the sending end (such as OLT) and the checksum calculated by the receiving end based on the received file content after the file is transmitted to the receiving end (such as optical network unit).

[0071] As an optional embodiment: the network dependency module includes a network detection unit, and the network detection unit is used to evaluate the network quality of the optical network unit device, specifically: It should be noted that the retransmission function depends on the stability and reliability of the network. If the network condition is abnormal and the upgrade is still in progress, time and resources will be wasted;

[0072] According to the formula: , calculate and obtain the network quality value Q of the optical network unit device, where n is the number of key indicators, represents the i-th key indicator, is the weight coefficient of the i-th key indicator;

[0073] A network quality value threshold of the optical network unit device is set in advance, and the network quality value Q is compared with the network quality value threshold. If the network quality value Q is greater than the network quality value threshold, it indicates that the network condition is normal and the optical network unit device upgrade process continues. Otherwise, it indicates that the network condition is abnormal and the optical network unit device upgrade process is suspended. It should be noted that by comprehensively analyzing various key indicators, the network condition of the optical network unit device can be quickly judged, which is conducive to subsequent processing.

[0074] As an optional embodiment: the key indicator is bandwidth utilization ,Delay , Packet loss rate , Jitter , Error rate and network congestion value , where the specific acquisition method is:

[0075] Bandwidth Utilization ,in is the amount of bandwidth currently being used by the optical network unit device, The maximum bandwidth theoretically provided by the network. It should be noted that the higher the bandwidth utilization, the busier the network is, which may affect the data transmission rate and quality.

[0076] Delay ,in is the average time it takes for a data packet to travel from the sender to the receiver in the optical network unit device. The total number of packets sent. It should be noted that this indicator reflects the delay of data transmission, usually in milliseconds. The lower the delay, the faster the data transmission speed.

[0077] Packet loss rate ,in is the number of data packets lost by the optical network unit device during transmission. It is the total number of data packets sent during the upgrade process. It should be noted that the higher the packet loss rate, the worse the network reliability, which may cause incomplete data or require retransmission.

[0078] Jitter , where T is the total number of packets, is the actual arrival time of the yth data packet, is the time when the yth data packet should arrive, predicted based on the arrival time of the previous data packets; it should be noted that large jitter may affect applications with high real-time requirements, such as VoIP or video calls;

[0079] Error rate ,in The number of data packets with errors during transmission of the optical network unit device. is the total number of packets sent; it should be noted that a high error rate may mean a physical link problem or signal interference, which requires further diagnosis and repair;

[0080] Network congestion value ,in is the number of data packets waiting to be processed by the optical network unit device, The maximum number of packets stored for the buffer. It should be noted that the higher the congestion level, the closer the network is to the limit of its processing capacity, which may cause packet delay or loss;

[0081] It should also be noted that in this embodiment, the bandwidth utilization ,Delay , Packet loss rate , Jitter , Error rate and network congestion value The corresponding weight coefficient , , , , and The value of , , , , and .

[0082] As an optional embodiment: the network dependency module further includes a local cache unit, and the specific working mode of the local cache unit is as follows: It should be noted that during the upgrade process of the optical network unit device, interruptions are often caused by network problems. The technical solution adds a local cache unit to perform an upgrade when the network is abnormal;

[0083] The local cache unit implements local cache on the optical network unit device to store a temporary copy of the upgrade file;

[0084] Obtaining the judgment result of the network detection unit, and if the network condition is normal, continuing the network upgrade;

[0085] If the network condition is abnormal, the local cache is used for upgrading.

[0086] As an optional embodiment: the specific working mode of the recovery unit is as follows: It should be noted that the existing technical solution may repeatedly transmit the upgraded part after the upgrade is interrupted, resulting in a waste of resources. When an interruption occurs during the upgrade of the optical network unit, this data solution effectively recovers the upgrade process and avoids repeated transmission of the successfully upgraded part, thereby saving time and resources;

[0087] The error type is obtained according to the error monitoring unit and marked as E;

[0088] Obtaining the current network status of the optical network unit device according to the network dependency module, if the network status is normal, no delayed retry is required, and if the network status is abnormal, a delayed retry is performed;

[0089] If E is a check indicator variable and data loss monitoring variables If there is an exception, first check the network congestion. If there is no congestion, perform a delayed retry. If there is congestion, consider changing the transmission path.

[0090] If E is a timeout monitoring variable If there is an exception, retry;

[0091] The error recovery module also includes a breakpoint resume transmission unit, which sets a maximum retry threshold in advance. If the number of retries executed is greater than or equal to the maximum retry threshold, a signal is transmitted to the breakpoint resume transmission unit to trigger breakpoint resume transmission. It should be noted that in this way, the system intelligently decides whether to retry, how long to delay the retry, whether to change the path or from which point to start breakpoint resume transmission according to the error type and network conditions, thereby improving the reliability and efficiency of transmission.

[0092] As an optional embodiment: the specific working mode of the breakpoint resume unit is as follows:

[0093] Divide the file into data blocks of dynamic size; it should be noted that, in this embodiment, the size of the block is designed according to historical data;

[0094] After each data block is transmitted, the receiver immediately sends an acknowledgment (ACK) or a negative acknowledgement (NAK). It should be noted that if several consecutive blocks are successfully transmitted, the block size is gradually reduced to reduce the amount of data transmitted each time and improve the transmission efficiency.

[0095] It should be noted that when packet loss occurs, the block size is increased to reduce the ACK / NAK overhead and allow more data to be transmitted before retransmission;

[0096] Record the sequence number of each successfully transmitted block. If the transmission is interrupted, resume the transmission from the last successfully confirmed block.

[0097] It should also be noted that the efficiency of data transmission can be improved by adaptively adjusting the block size, especially in an unstable network environment, intelligently adjusting the block size and retry strategy, reducing network congestion caused by retransmission, quickly identifying transmission interruptions and recovering from breakpoints, reducing waiting time and unnecessary data resending, and dynamically adjusting transmission parameters according to real-time network conditions to improve the adaptability and flexibility of the method.

[0098] As an optional embodiment: the specific method of dividing the file into data blocks of dynamic size is as follows:

[0099] An initial block size M is set in advance; it should be noted that in this embodiment, it is 1 mb;

[0100] According to the formula , calculate and obtain the size K of the data block after segmentation, where is the adjustment factor for historical data, is the historical average packet loss rate. It should be noted that in this embodiment The value of is 0.594.

[0101] As an optional embodiment: the breakpoint resuming unit is further used to guide the adjustment of the block size according to the network status of the network detection unit in real time, specifically:

[0102] According to the formula , calculate and obtain the real-time evaluation value H, where , and is a preset proportionality coefficient; it should be noted that, in this embodiment, , and The values ​​of are 0.293, 0.384 and 0.323;

[0103] A threshold range of a real-time evaluation value is set in advance. If H is less than the threshold range, the block size is reduced. If H is greater than the threshold range, the block size is increased. It should be noted that the block size adjustment value is also based on To obtain.

[0104] On the other hand, the present invention also proposes a method for upgrading an optical network unit device based on the ability to continue transmitting data, comprising the following steps:

[0105] Step 1: Collect data information of optical network unit equipment, dynamically monitor network status based on the data information, and adjust the upgrade strategy according to the current network quality;

[0106] Step 2: Monitor the errors in the upgrade process in real time based on the data information from the data acquisition module and identify the problem type;

[0107] Step 3: Automatically execute the retry logic according to the identification result of the error monitoring unit.

[0108] How it works

[0109] When an interruption occurs during the optical network unit upgrade process, the upgrade process is effectively restored to avoid repeated transmission of the successfully upgraded part, thereby saving time and resources; intelligently decide whether to retry, how long to delay the retry, whether to change the path, or from which point to start breakpoint transmission based on the error type and network conditions, thereby improving transmission reliability and efficiency;

[0110] By adaptively adjusting the block size, the data transmission efficiency is improved, especially in an unstable network environment, the block size and retry strategy are intelligently adjusted to reduce network congestion caused by retransmission, quickly identify transmission interruptions and recover from breakpoints, reduce waiting time and unnecessary data resending, and dynamically adjust transmission parameters according to real-time network conditions to improve the adaptability and flexibility of the method.

[0111] The above are only preferred implementations of the present invention. The protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technical staff in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of this template.

Claims

1. An optical network unit equipment upgrade system based on data retransmission capability, characterized in that: It includes data acquisition module, network dependency module and error recovery module; The data acquisition module is used to collect data information of the optical network unit device; The network dependency module is used to dynamically monitor the network status according to the data information obtained by the data acquisition module, and adjust the upgrade strategy according to the current network quality; The error recovery module includes an error monitoring unit and a recovery unit. The error monitoring unit is used to monitor the errors in the upgrade process in real time according to the data information of the data acquisition module and identify the problem type, specifically: Get the calibration indicator variable of the optical network unit device ; Get the timeout monitoring variables of the optical network unit device ; Get the data loss monitoring variables of the optical network unit device ; Determine the indicator variable and timeout monitoring variables Is 1 or 0, if the check indicator variable If it is 1, it is judged that the checksum of the sending end and the checksum of the receiving end are inconsistent during the upgrade of the optical network unit equipment. If the timeout monitoring variable If the check indicator variable is 1, it is judged that the upgrade transmission time exceeds the set timeout period. and timeout monitoring variables If both are 0, the optical network unit device is normal; Then set a threshold value of the data loss monitoring variable and set the data loss monitoring variable The data loss monitoring variable is compared with the threshold value. If the value is greater than the threshold of the data loss monitoring variable, it is determined that the optical network unit device has a data packet loss problem. If not, it is determined that the optical network unit device is normal. The recovery unit is used to automatically execute retry logic according to the identification result of the error monitoring unit; The network dependency module includes a network detection unit, which is used to evaluate the network quality of the optical network unit device, specifically: According to the formula: , calculate and obtain the network quality value Q of the optical network unit device, where n is the number of key indicators, represents the i-th key indicator, is the weight coefficient of the i-th key indicator; A network quality value threshold of the optical network unit device is set in advance, and the network quality value Q is compared with the network quality value threshold. If the network quality value Q is greater than the network quality value threshold, it indicates that the network condition is normal and the optical network unit device upgrade process continues. Otherwise, it indicates that the network condition is abnormal and the optical network unit device upgrade process is suspended. The key indicator is bandwidth utilization ,Delay , Packet loss rate , Jitter , Error rate and network congestion value , where the specific acquisition method is: Bandwidth Utilization ,in is the amount of bandwidth currently being used by the optical network unit device, The maximum bandwidth theoretically provided by the network; Delay ,in is the average time it takes for a data packet to travel from the sender to the receiver in the optical network unit device. is the total number of packets sent; Packet loss rate ,in is the number of data packets lost by the optical network unit device during transmission. is the total number of data packets sent during the upgrade process; Jitter , where T is the total number of packets, is the actual arrival time of the yth data packet, is the time when the yth data packet should arrive, predicted based on the arrival time of previous data packets; Error rate ,in The number of data packets with errors during transmission of the optical network unit device. is the total number of packets sent; Network congestion value ,in is the number of data packets waiting to be processed by the optical network unit device, The maximum number of packets to store for the buffer; The specific working mode of the recovery unit is as follows: The error type is obtained according to the error monitoring unit and marked as E; Obtaining the current network status of the optical network unit device according to the network dependency module, if the network status is normal, no delayed retry is required, and if the network status is abnormal, a delayed retry is performed; If E is a check indicator variable and data loss monitoring variables If there is an exception, first check the network congestion. If there is no congestion, perform a delayed retry. If there is congestion, consider changing the transmission path. If E is a timeout monitoring variable , then retry; The error recovery module also includes a breakpoint resume unit, which sets a maximum retry threshold in advance. If the number of retries executed is greater than or equal to the maximum retry threshold, a signal is transmitted to the breakpoint resume unit to trigger breakpoint resume; The specific working mode of the breakpoint resume unit is as follows: Split files into dynamically sized chunks; After each data block is transmitted, the receiver immediately sends an acknowledgment (ACK) or a negative acknowledgement (NAK); Record the sequence number of each successfully transmitted block. If the transmission is interrupted, resume the transmission from the last successfully confirmed block. The specific method of dividing the file into data blocks of dynamic size is as follows: Set an initial block size M in advance; According to the formula , calculate and obtain the size K of the data block after segmentation, where is the adjustment factor for historical data, is the historical average packet loss rate; The breakpoint resuming unit is also used to guide the adjustment of the block size according to the network status of the network detection unit in real time, specifically: According to the formula , calculate and obtain the real-time evaluation value H, where , and is the preset proportional coefficient; A threshold range of the real-time evaluation value is set in advance. If H is smaller than the threshold range, the size of the block is reduced; if H is larger than the threshold range, the size of the block is increased.

2. According to claim 1, an optical network unit device upgrade system based on data transmission capability is characterized in that: The optical network unit equipment verification indicator variable The specific way to obtain is as follows: Mark the file as F; Get the checksum of file F , get the checksum calculated by the sending end of the optical network unit device , get the checksum calculated by the receiving end of the optical network unit device , if the sender calculates the checksum Not equal to the checksum calculated by the receiver , then check the indicator variable The value of is 1, otherwise, the indicator variable is checked The value of is 0.

3. The optical network unit device upgrade system based on data transmission capability according to claim 1, characterized in that: The network dependency module further includes a local cache unit, and the specific working mode of the local cache unit is as follows: The local cache unit implements local cache on the optical network unit device to store a temporary copy of the upgrade file; Obtaining the judgment result of the network detection unit, and if the network condition is normal, continuing the network upgrade; If the network condition is abnormal, the local cache is used for upgrading.

4. A method for upgrading an optical network unit device based on the ability to continue transmitting data, characterized in that: The optical network unit device upgrade system based on the data retransmission capability as claimed in any one of claims 1 to 3 comprises the following steps: Step 1: Collect data information of optical network unit equipment, dynamically monitor network status based on the data information, and adjust the upgrade strategy according to the current network quality; Step 2: Monitor the errors in the upgrade process in real time based on the data information from the data acquisition module and identify the problem type; Step 3: Automatically execute the retry logic according to the identification result of the error monitoring unit.

Citation Information

Patent Citations

  • Data detection method, device and system

    CN107888455A

  • Monitoring information uploading method and system based on unstable network scene

    CN117880128A