Automatic backup USB flash disk implementation method based on 5G gateway
By obtaining the serial port transmission index and communication transmission performance score, determining whether to perform USB disk area division and backup operations, and monitoring the backup progress in real time, the problem of low accuracy in the evaluation of transmission timeliness of USB disks during the 5G gateway communication network backup process is solved, and a more efficient and reliable backup process is achieved.
Patent Information
- Application Number
- CN202510013122.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-04-18
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, the U disk transmission timeliness evaluation accuracy is low during the backup process of 5G gateway communication network, resulting in delay or unstable backup process.
By obtaining the interface parameters of the USB disk to be backed up, initializing the operation to obtain the serial port transmission index, determining whether to perform USB disk area division and backup operations, and monitoring the backup progress in real time to obtain the backup timeliness, ensuring that the backup timeliness score is within the threshold range.
It improves the accuracy and real-timeness of USB disk backup operations, enhances the accuracy of USB disk transmission timeliness evaluation during the backup process of 5G gateway communication network, and solves the problem of delay or instability during the backup process.
Smart Images

Figure CN119847825A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a method for realizing automatic backup of a USB flash drive based on a 5G gateway. Background Art
[0002] With the rapid development of information technology and the sharp increase in data volume, the importance of data backup has become increasingly prominent. As an important part of the new generation of communication technology, 5G gateway has the characteristics of high speed, low latency, and large connection, which provides strong support for the rapid transmission and efficient management of data. The traditional hardware USB backup method has many shortcomings, such as untimely backup and poor reliability, which can no longer meet the needs of modern data storage and management. In order to solve these problems, an automatic backup USB disk implementation method based on 5G gateway came into being. By leveraging the powerful functions of 5G gateway, combined with advanced storage technology and automated backup algorithms, real-time backup and efficient management of data can be achieved, thereby greatly improving the security and reliability of data.
[0003] The existing technology connects the USB flash drive to the 5G gateway through the USB interface and transmits data. At the same time, the transmitted data is stored and the data transmission efficiency of the 5G gateway is optimized. Then, the data changes in the specified folder are monitored in real time to identify the data that needs to be backed up. Finally, encryption processing and functional testing are performed during the data backup process, thereby realizing the automatic backup of the 5G gateway USB flash drive and the availability of the backup data.
[0004] For example, the invention patent announcement with announcement number: CN110806889B discloses a 5G-based ZYNQ program remote upgrade system and upgrade method, including: uploading the program upgrade firmware to the cloud for storage through the management end, and sending the upgrade instruction to the device end; downloading the program upgrade firmware and the current running system backup from the cloud to the update folder of the BLK3 partition through the 5G module, and setting the upgrade flag to valid; copying the valid upgrade flag to the BLK1 partition, and copying the file system and its related applications to the BLK2 partition, and changing the upgrade flag to a pending status; loading the system from the BLK1 partition through the boot program BOOT, if the system can start normally, setting the upgrade flag to success and ending the system upgrade, if the system cannot start, setting the upgrade flag to a failed state; restoring the current running system firmware and application in the backup folder to the BLK1 partition, and setting the upgrade flag to invalid and automatically restarting the system; loading the system from the BLK1 partition through the boot program BOOT and ending the system upgrade.
[0005] For example, the patent application with publication number: CN116662070A discloses an automatic backup USB flash drive implementation method based on 5G gateway and a simulated USB flash drive, including: the host directly creates a file in the 5G gateway and continuously writes it, and determines whether the file is written by time characteristics; when a connection is established with the server, it determines whether the file is written completely, and decides whether it is a complete transmission or a breakpoint resume. If the server finds a file transmission error, it deletes the error file; the 5G gateway re-uploads the file when scanning the local file again. When the 5G gateway is used as a USB slave device, the 5G gateway actively disconnects, obtains dynamic authentication information from the server, modifies the characteristic points of the simulated USB flash drive, and performs two-way authentication with the host, thereby avoiding illegal access to data from both the host and the simulated USB flash drive.
[0006] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present application found that the above technology has at least the following technical problems: In the prior art, when the 5G gateway and USB flash drive perform data backup, they usually compete with other network activities or system tasks for resources, such as CPU, memory, and bandwidth, resulting in delayed or unstable data transmission, which in turn causes interference to the backup process. There is a problem of low accuracy in the transmission timeliness assessment of the USB flash drive during the 5G gateway communication network backup process. Summary of the invention
[0007] The embodiment of the present application solves the problem of low accuracy in evaluating the transmission timeliness of the USB flash drive during the 5G gateway communication network backup process in the prior art by providing a method for automatically backing up the USB flash drive based on a 5G gateway, thereby improving the accuracy in evaluating the transmission timeliness of the USB flash drive during the 5G gateway communication network backup process.
[0008] The embodiment of the present application provides a method for realizing automatic backup of a USB flash drive based on a 5G gateway, comprising the following steps: S1, obtaining interface parameters of the USB flash drive to be backed up and performing an initialization operation to obtain a serial port transmission index, the USB flash drive to be backed up and the USB flash drive of the 5G gateway The interface parameters include USB version, interface rate, device ID and power supply requirement. The serial port transmission index is used to quantify the stability of the data transmission process between the USB flash drive to be backed up and the 5G gateway. S2: based on the obtained serial port transmission index, determine whether to perform USB flash drive area division. If so, obtain the data to be backed up and transmit it through the communication link to obtain a communication transmission performance score. The USB flash drive area includes a read-only area and a backup area. The communication transmission performance score is used to evaluate the communication efficiency of the data to be backed up during the communication link transmission process. S3: based on the obtained communication transmission performance score, determine whether to perform a USB flash drive backup operation, and monitor the backup progress of the USB flash drive to be backed up during the USB flash drive backup operation in real time to obtain a backup timeliness score. The backup progress includes the data backup speed and the amount of backed up data. The backup timeliness score is used to evaluate the time efficiency and accuracy of the USB flash drive to be backed up in completing the backup task during the USB flash drive backup operation. S4: determine whether the obtained backup timeliness score is within the backup timeliness threshold range. If so, complete the USB flash drive backup operation and generate a corresponding backup report.
[0009] Furthermore, the serial port transmission index is obtained by the following method: obtaining sample data to be backed up, and at the same time obtaining a baud rate score and a signal-to-noise ratio score based on the communication status of the sample data to be backed up within a preset communication time period, the baud rate score being the ratio of the actual baud rate to the reference baud rate obtained from the database, and the signal-to-noise ratio score being the ratio of the signal power to the noise power; obtaining a delay rate score and an error rate score of the sample data to be backed up within the preset communication time period, the delay rate score being the ratio of the average delay time of the sample data to be backed up from the sending end to the receiving end of the U disk to be backed up to the reference delay time obtained from the database, and the error rate score being the ratio of the number of erroneous data bits received by the receiving end of the U disk to be backed up to the total number of transmission data bits sent by the sending end; and processing the obtained baud rate score, signal-to-noise ratio score, delay rate score and error rate score respectively to obtain the serial port transmission index.
[0010] Furthermore, the communication transmission performance score is obtained by the following method: L1, obtaining the data transmission rate score and the actual data transmission duration of the data to be backed up during the transmission process of the communication link, the data transmission rate score is the ratio of the actual data transmission rate to the reference data transmission rate obtained from the database, and the actual data transmission rate is the ratio of the total number of data transmissions of the data to be backed up in the communication link to the total duration of the preset communication time period obtained from the database; L2, judging whether the actual data transmission duration is less than the reference data transmission duration obtained from the database, if so, executing L3, otherwise obtaining the data response duration score and combining the obtained data A communication transmission performance score is obtained based on the transmission rate score, wherein the data response duration score is the ratio of the actual data response duration to the reference data response duration obtained from the database, and the actual data response duration is the duration between reception and transmission at the communication port of the communication link within a preset communication time period; L3, obtaining the data transmission duration score and the data response duration score and combining them with the obtained data transmission rate score to obtain the communication transmission performance score, wherein the data transmission duration score represents the ratio of the difference between the reference data transmission duration obtained from the database and the actual data transmission duration of the data to be backed up in the communication link to the total duration of the preset communication time period obtained from the database.
[0011] Furthermore, the specific steps of executing the USB flash drive backup operation are: verifying the data to be backed up and transmitting the verified data to be backed up in encrypted and compressed form to the 5G gateway, and prompting the administrator to trigger the USB flash drive backup button; according to the backup strategy obtained from the database, the data to be backed up in the 5G gateway is transferred to the backup area of the USB flash drive to be backed up for automatic backup, and the data to be backed up that has completed the automatic backup is recorded as completed backup data, and the backup strategy includes a backup time interval, a backup data type, and a backup path.
[0012] Furthermore, the specific steps for obtaining the backup timeliness score include: N1, real-time monitoring of the amount of backed up data, average data backup speed and data backup duration of the data to be backed up within the backup time interval, and judging whether the average data backup speed is greater than the reference average data backup speed obtained from the database. If so, N2 is executed, otherwise the administrator is prompted to trigger the pause USB backup button; N2, judging whether the data backup duration is less than the reference data backup duration obtained from the database. If so, N3 is executed, otherwise the administrator is prompted to trigger the pause USB backup button; N3, obtaining the backup task completion score, the data backup time efficiency score and the data backup rate score and combining them with the obtained communication transmission performance score to obtain the backup timeliness score.
[0013] Furthermore, the specific limiting expression of the backup timeliness score is: ; ; ; ; In the formula, i is the number of the USB disk to be backed up, , Y is the total number of USB flash drives to be backed up, j is the number of the communication channel type of the communication link, , Indicates a one-way channel. represents a bidirectional channel, e is a natural constant, It represents the backup timeliness score of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval, It represents the completion score of the backup task of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval. It represents the amount of data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval. Indicates the total amount of data to be backed up. It represents the data backup time efficiency score of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive within the backup time interval, It indicates the data backup duration of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive within the backup time interval. Indicates the reference data backup duration. It represents the data backup rate score of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive within the backup time interval, It represents the average data backup speed of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval, Indicates the reference average data backup speed, It represents the communication transmission performance score of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive during the preset communication time period. Indicates the communication transmission performance threshold range.
[0014] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Determine whether to perform U disk area division through the obtained serial port transmission index, and determine whether to perform U disk backup operation based on the obtained communication transmission performance score. Obtain the backup timeliness score according to the backup progress of the U disk to be backed up and determine whether it is within the backup timeliness threshold range. If so, complete the U disk backup operation and generate a corresponding backup report, thereby improving the accuracy and real-time performance of the U disk backup operation, and further improving the accuracy of the transmission timeliness evaluation of the U disk during the 5G gateway communication network backup process, effectively solving the problem of low accuracy of the transmission timeliness evaluation of the U disk during the 5G gateway communication network backup process in the prior art.
[0015] 2. By obtaining the data transmission rate score and actual data transmission duration of the data to be backed up during the transmission process of the communication link, it is determined whether the actual data transmission duration is less than the reference data transmission duration obtained from the database. If so, the communication transmission performance score is obtained by combining the obtained data transmission duration score and the data response duration score. Otherwise, the communication transmission performance score is obtained by combining the obtained data response duration score, thereby improving the accuracy of obtaining the communication transmission performance score and achieving a more accurate evaluation of the communication efficiency of the USB flash drive to be backed up.
[0016] 3. By real-time monitoring the amount of backed up data, average data backup speed and data backup duration of the data to be backed up within the backup time interval, when the average data backup speed is greater than the reference average data backup speed and the data backup duration is less than the reference data backup duration, the backup task completion score, data backup time efficiency score and data backup rate score are obtained and combined with the obtained communication transmission performance score to obtain the backup timeliness score, thereby improving the accuracy of obtaining the backup timeliness score, and then achieving a more accurate evaluation of the timeliness of the USB flash drive to be backed up during the backup operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flowchart of a method for implementing automatic backup of a USB flash drive based on a 5G gateway provided in an embodiment of the present application; Figure 2 An analysis flow chart of the USB disk backup operation process provided in the embodiment of the present application; Figure 3 A schematic diagram of the structure of the host and server for writing the USB disk to be backed up provided in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The embodiment of the present application solves the problem of low accuracy of transmission timeliness assessment of U disk during 5G gateway communication network backup in the prior art by providing a method for realizing automatic backup of U disk based on 5G gateway. The method obtains the interface parameters of the U disk to be backed up and performs initialization operation to obtain the serial port transmission index. At the same time, it determines whether to perform U disk area division based on the obtained serial port transmission index. If so, the data to be backed up is obtained and transmitted through the communication link to obtain the communication transmission performance score. Then, it determines whether to perform the U disk backup operation based on the obtained communication transmission performance score. At the same time, the backup progress of the U disk to be backed up during the U disk backup operation is monitored in real time to obtain the backup timeliness score. Finally, it determines whether the obtained backup timeliness score is within the backup timeliness threshold range. If so, the U disk backup operation is completed and a corresponding backup report is generated, thereby improving the accuracy of transmission timeliness assessment of the U disk during the 5G gateway communication network backup.
[0019] The technical solution in the embodiment of the present application is to solve the problem of low accuracy of transmission timeliness evaluation of the above-mentioned USB flash drive during the 5G gateway communication network backup process. The overall idea is as follows: The serial port transmission index obtained is used to determine whether to execute the U disk area division. At the same time, based on the obtained communication transmission performance score, it is determined whether to execute the U disk backup operation. The backup timeliness score is obtained according to the backup progress of the U disk to be backed up and it is determined whether it is within the backup timeliness threshold. If so, the U disk backup operation is completed and the corresponding backup report is generated, thereby achieving the effect of improving the accuracy of the U disk transmission timeliness assessment during the 5G gateway communication network backup process.
[0020] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0021] like Figure 1As shown, it is a flowchart of a method for realizing automatic backup of a USB flash drive based on a 5G gateway provided by an embodiment of the present application, the method comprising the following steps: S1, obtaining interface parameters of the USB flash drive to be backed up and performing an initialization operation to obtain a serial port transmission index, the USB flash drive to be backed up is connected to the USB Host port of the 5G gateway, the interface parameters include USB version, interface rate, device ID and power supply requirements, the initialization operation is used to establish a communication link between the USB flash drive to be backed up and the 5G gateway, the communication link is composed of a unidirectional channel and a bidirectional channel, and the serial port transmission index is used to quantify the stability of the data transmission process between the USB flash drive to be backed up and the 5G gateway; S2, based on the obtained serial port transmission index, it is determined whether to perform USB flash drive area division, if so, the data to be backed up is obtained and transmitted through the communication link to obtain a communication transmission performance score, the USB flash drive area includes a read-only area and a backup area, the read-only area is used to store the unchangeable data to be backed up, the backup area is used to store the automatically backed up data to be backed up, and the communication transmission performance score is used to evaluate the communication efficiency of the data to be backed up during the transmission process of the communication link; S3, based on The U disk backup operation is determined based on the obtained communication transmission performance score, and the backup progress of the U disk to be backed up during the U disk backup operation is monitored in real time to obtain the backup timeliness score. The U disk backup operation is used to transfer the data to be backed up from the server to the 5G gateway and then write it to the backup area in the U disk area through the 5G gateway. The backup progress includes the data backup speed and the amount of backed up data. The backup timeliness score is used to evaluate the time efficiency and accuracy of the U disk to be backed up in completing the backup task during the U disk backup operation. S4, determine whether the obtained backup timeliness score is within the backup timeliness threshold range (including the maximum and minimum values of the historical backup timeliness scores). If so, complete the U disk backup operation and generate a corresponding backup report, otherwise trigger the error handling mechanism and prompt the administrator to perform maintenance.
[0022] In this embodiment, the initialization operation is implemented through the "Device Manager" in Windows: in the "Disk Management" window, click the disk area where the USB flash drive to be backed up is located, select "Initialize Disk", and follow the wizard to complete; USB (Universal Serial Bus) versions generally include USB 1.0, USB 1.1, USB 2.0, USB 3.0 (also known as USB 3.1 Gen 1), USB 3.1 (including Gen 1 and Gen 2), USB 3.2 (including Gen 1, Gen 1×2, Gen 2 and Gen 2×2) and the latest USB 4 and USB Type-C. Each version is different in data transmission rate, power management, and compatibility. Therefore, in actual applications, it is necessary to select the corresponding USB version according to specific application scenarios and requirements. For example, the maximum transmission rate of USB 1.1 is 12Mbps, while the maximum transmission rate of USB 3.2 Gen 2×2 can reach 20Gbps. When the transmission rate requirement in the actual application scenario is higher, USB 3.2 Gen 2×2 should be selected. 2×2, where the transmission rate is the interface rate, usually measured in bits per second (bps) or gigabits per second (Gbps).
[0023] A device ID is a unique identifier assigned to each device connected to a computer or network. In a USB interface, a device ID usually includes a vendor ID and a product ID. These IDs are assigned by the manufacturer when the device is produced and stored in the device's firmware. Power requirements refer to the amount of power a device obtains from a host or power source through a USB interface. For example, USB 2.0 and USB 3.0 interfaces usually provide a voltage of 5V, but the current limits may be different (e.g., USB 2.0 usually provides a maximum current of 500mA, while USB 3.0 may provide a current greater than 500mA).
[0024] Specifically, communication links usually include wired networks (such as Ethernet), wireless networks (such as Wi-Fi), and fiber optic networks.
[0025] The backup timeliness threshold range indicates the range corresponding to the maximum and minimum values of the historical backup timeliness scores of the backup USB disk in the preset database within the historical backup time period.
[0026] like Figure 2As shown, it is an analysis flow chart of the U disk backup operation process provided in an embodiment of the present application. Compared with the prior art, this example helps to timely discover and solve bottleneck problems in the communication link by obtaining the serial port transmission index and the communication transmission performance score, which helps to ensure the integrity and accuracy of the data during the transmission process and improve the efficiency of the backup operation. In addition, by real-time monitoring of the backup progress and obtaining the backup timeliness score, the time efficiency and accuracy of the U disk to be backed up in completing the backup task during the backup operation can be accurately evaluated, which helps to ensure the timeliness and reliability of the backup operation, reduce the risk of data loss due to backup delays or failures, and achieve the improvement of the accuracy of the transmission timeliness evaluation of the U disk in the 5G gateway communication network backup process.
[0027] Furthermore, the serial port transmission index is obtained by the following method: obtaining the sample data to be backed up, and obtaining the baud rate score (i.e., the baud rate score in the restriction expression of the serial port transmission index) according to the communication status of the sample data to be backed up within the preset communication time period. ) and the signal-to-noise ratio score (i.e., the limiting expression of the serial port transmission index ), the sample data to be backed up is used to simulate the data sending and receiving conditions of the USB flash drive to be backed up within the preset communication time period, the baud rate score is the ratio of the actual baud rate to the reference baud rate obtained from the database, and the signal-to-noise ratio score is the ratio of the signal power to the noise power; the delay rate score of the sample data to be backed up within the preset communication time period is obtained (that is, the delay rate score in the restriction expression of the serial port transmission index ) and the error rate score (i.e., the limit expression of the serial port transmission index ), the delay rate score is the ratio of the average delay time of the sample data to be backed up from the sending end to the receiving end of the USB flash drive to be backed up to the reference delay time obtained from the database, and the error rate score is the ratio of the number of error data bits received by the receiving end of the USB flash drive to be backed up to the total number of transmission data bits sent by the sending end; the obtained baud rate score, signal-to-noise ratio score, delay rate score and error rate score are processed separately to obtain the serial port transmission index.
[0028] In this embodiment, the database is a database established by a preset personnel before the automatic backup USB disk implementation method based on the 5G gateway provided in this embodiment is determined. The database includes but is not limited to the reference data involved in this embodiment (such as reference baud rate, reference delay time, reference data transmission rate, reference data response time, reference data backup time and reference average data backup speed). In actual applications, various values in the database can be set and fine-tuned by relevant technical personnel according to actual debugging results.
[0029] Specifically, the preset communication time period is the time period corresponding to the communication process of the U disk to be backed up, the sample data to be backed up is the historical data in the preset database used to simulate the historical communication time period of the U disk to be backed up, and the reference baud rate is represented by the sum and average of the historical baud rates of the sample data to be backed up in the preset database within the historical communication time period.
[0030] In the application scenario of the communication field, the actual baud rate is measured by a Rohde & Schwarz oscilloscope, the signal power is directly displayed by a power meter, and the noise power is measured by a spectrum analyzer. The Rohde & Schwarz oscilloscope, power meter and spectrum analyzer are deployed at the same position of the communication interface of the USB disk to be backed up.
[0031] The reference delay duration is represented by the sum and average of the historical delay durations of the data to be backed up in the preset database within the historical communication time period. The average delay duration is the average value of the delay durations (obtained by the time timer). The total number of transmitted data bits is obtained by the counter deployed at the communication interface of the sending end of the U disk to be backed up, and the number of erroneous data bits is obtained by the counter deployed at the communication interface of the receiving end of the U disk to be backed up.
[0032] Specifically, the specific restriction expression of the serial port transmission index is: ; ; ; ; ; In the formula, i is the number of the USB disk to be backed up, , Y is the total number of USB flash drives to be backed up, e is a natural constant, It represents the serial port transmission index of the sample data to be backed up in the i-th USB flash drive within the preset communication time period. represents the delay rate score of the sample data to be backed up in the i-th USB flash drive within the preset communication time period, represents the average delay time of the sample data to be backed up in the i-th USB flash drive during the preset communication time period, Indicates the reference delay time. represents the error rate score of the sample data to be backed up in the i-th USB flash drive within the preset communication time period, represents the number of error data bits of the sample data to be backed up at the receiving end of the i-th USB disk to be backed up within the preset communication time period, represents the total number of transmitted data bits of the sample data to be backed up at the sender of the i-th USB disk to be backed up within the preset communication time period, It represents the baud rate score of the sample data to be backed up in the i-th USB flash drive within the preset communication time period. represents the actual baud rate of the sample data to be backed up in the i-th USB flash drive during the preset communication time period, Indicates the reference baud rate, represents the signal-to-noise ratio score of the sample data to be backed up in the i-th USB flash drive within the preset communication time period, represents the signal power of the sample data to be backed up in the i-th USB flash drive during the preset communication time period, Represents the noise power.
[0033] Specifically, the change statistics of the serial port transmission index are shown in Table 1: Table 1 Statistics of changes in serial port transmission index As can be seen from Table 1, the serial port transmission index (the larger the better) increases with the increase of the baud rate score and the signal-to-noise ratio score, and decreases with the increase of the delay rate score and the error rate score. It should be understood that the delay rate score ranges from 0 to 1, and the error rate score ranges from 0 to 1. When the delay rate score and the error rate score increase, it indicates that the average delay time and the number of erroneous data bits of the sample data to be backed up in the preset communication time period have an increasing impact on the stability of the data transmission process. At this time, the corresponding product of the delay rate score and the error rate score ( ) also increases, which makes the corresponding delay rate score and error rate score corresponding to the complement ( , ) is reduced accordingly.
[0034] It should be noted that the delay rate score also indirectly affects the value of the baud rate score. When the delay rate score increases, it may be due to the increase in the length of the transmission medium. In this case, it will cause data backlog and data transmission delay, which will lead to a decrease in the baud rate score (while ensuring that the data transmission rate remains unchanged, the baud rate needs to be reduced to maintain the stability of the communication process). By considering the above-mentioned indirect impact mechanism, it is helpful to improve the accuracy of the serial port transmission efficiency evaluation, and achieve the improvement of the accuracy and reliability of the serial port transmission index acquisition, thereby achieving the improvement of the accuracy of the transmission timeliness evaluation of the USB flash drive during the 5G gateway communication network backup process, and effectively solve the problem of low accuracy of the transmission timeliness evaluation of the USB flash drive during the 5G gateway communication network backup process in the prior art.
[0035] Furthermore, the specific process of determining whether to perform U disk area division based on the obtained serial port transmission index is as follows: determining whether the obtained serial port transmission index is within the serial port transmission threshold range obtained from the database: if the obtained serial port transmission index is within the serial port transmission threshold range (including being equal to the maximum and minimum values of the historical serial port transmission index), it indicates that the data transmission stability of the communication link meets the requirements and U disk area division is performed; if the obtained serial port transmission index is not within the serial port transmission threshold range, it indicates that the data transmission stability of the communication link does not meet the requirements. At this time, U disk area division is not performed and the communication serial port parameters are verified. The communication serial port parameters include data bits, stop bits and check bits.
[0036] In this embodiment, the USB flash drive area is divided through the Windows built-in disk management tool (diskmgmt.msc); the serial port transmission threshold range represents the range corresponding to the maximum and minimum values of the historical serial port transmission index of the sample data to be backed up in the preset database within the historical communication time period; the data bit represents the number of data bytes received and sent, and the commonly used data bit number is 7 or 8 bits. When verifying the data bit, you can follow the following steps: In the serial port debugging assistant, select the serial port to be tested, and set the same data bit parameters as the device to be tested; send a string of known data (such as hexadecimal numbers 0x45, 0x4C, 0x32). If the data at the receiving end is correct, it means that the data bit setting is correct. Otherwise, adjust the data bit parameters and try again.
[0037] The stop bit is used to mark the end of data transmission. The commonly used stop bits are 1 or 2. To verify the stop bit, you can follow the steps below: In the serial port debugging assistant, set the same stop bit parameters as the device to be tested, send data, and observe whether the receiving end can receive the data correctly. If the data at the receiving end is correct (that is, there is no data loss or garbled characters), it means that the stop bit setting is correct; otherwise, adjust the stop bit parameters and try again.
[0038] The parity bit is used to ensure the accuracy of the data. Common verification methods include odd parity, even parity, and no parity. For example, when using even parity to verify the parity bit, you can follow the steps below: In the serial port debugging assistant, set the even parity parameter, send data, and observe whether the receiving end can receive the data correctly; the receiving end will also calculate the parity of the data and compare it with the parity bit of the sending end. If the two are consistent, it means that the data is correct. Otherwise, it means that the data may be wrong or the parity bit is set incorrectly.
[0039] Compared with the existing technology, this example can help quickly locate and troubleshoot faults by verifying the communication serial port parameters, thereby ensuring the normal operation of the communication link. Secondly, by verifying the communication serial port parameters, the settings of data bits, stop bits, and check bits can be optimized to improve the accuracy and reliability of data transmission. These advantages help to improve the efficiency and accuracy of data management and reduce the risks and costs caused by unstable data transmission.
[0040] Furthermore, the communication transmission performance score is obtained by the following method: L1, when the serial port transmission index is within the serial port transmission threshold range obtained from the database, the data transmission rate score of the data to be backed up during the communication link transmission process is obtained (that is, the communication transmission performance score in the restriction expression ) and the actual data transmission duration. The data transmission rate score is the ratio of the actual data transmission rate to the reference data transmission rate obtained from the database. The actual data transmission rate is the ratio of the total amount of data transmission of the data to be backed up in the communication link to the total duration of the preset communication time period obtained from the database. L2, determine whether the actual data transmission duration is less than the reference data transmission duration obtained from the database. If so, execute L3, otherwise obtain the data response duration score (that is, the value in the restriction expression of the communication transmission performance score). ) and combined with the obtained data transmission rate score to obtain the communication transmission performance score, the data response time score is the ratio of the actual data response time to the reference data response time obtained from the database, and the actual data response time is the time between the communication link communication port receiving and transmitting within the preset communication time period; L3, obtain the data transmission time score (that is, the communication transmission performance score in the restriction expression ) and the data response time score are combined with the obtained data transmission rate score to obtain the communication transmission performance score. The data transmission time score represents the ratio of the difference between the reference data transmission time obtained from the database and the actual data transmission time of the data to be backed up in the communication link to the total time of the preset communication time period obtained from the database.
[0041] Among them, the reference data transmission rate is represented by the sum and average of the historical data transmission rates of the data to be backed up in the preset database within the historical communication time period, the reference data transmission duration is represented by the sum and average of the historical data transmission durations of the data to be backed up in the preset database within the historical communication time period, and the reference data response duration is represented by the sum and average of the historical data response durations of the communication link communication interface in the preset database within the historical communication time period.
[0042] Specifically, the specific restriction expression of the communication transmission performance score is: ; In the formula, i is the number of the USB disk to be backed up, , Y is the total number of USB flash drives to be backed up, j is the number of the communication channel type of the communication link, , Indicates a one-way channel. represents a bidirectional channel, e is a natural constant, It represents the communication transmission performance score of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive during the preset communication time period. It represents the actual data transmission rate of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the preset communication time period. Indicates the reference data transmission rate, It indicates the actual data response time of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive within the preset communication time period. Indicates the reference data response time. Indicates the reference data transmission duration. It represents the actual data transmission duration of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the preset communication time period. Indicates the total duration of the preset communication time period. It represents the serial port transmission index of the sample data to be backed up in the i-th USB flash drive within the preset communication time period. Indicates the serial port transmission threshold range.
[0043] It is important to understand that when When , the communication transmission performance score increases with the increase of the actual data transmission rate and decreases with the increase of the actual data response time; when When , the communication transmission performance score (the larger the better) increases with the increase of the actual data transmission rate, and decreases with the increase of the actual data response time and the actual data transmission time. Among them, the actual data response time also indirectly affects the value of the actual data transmission time.
[0044] Assume that during the 5G gateway communication network backup process, there is a data backup task that requires transferring a large amount of data from a USB flash drive to a server. If the server's response time is shortened (for example, 2ms), the time to read data from the USB flash drive and send it to the server (that is, the actual data transmission time) will also be relatively reduced. However, if the server's response time is extended (for example, 2s), the time to read data from the USB flash drive and wait for the server's response will increase, thereby increasing the actual data transmission time.
[0045] By considering the impact of actual data response time on actual data transmission time, the transmission timeliness of the USB flash drive during the 5G gateway communication network backup process can be more accurately evaluated. Understanding this impact mechanism helps to consider how to reduce server response time and buffer waiting time in network design and optimization, thereby improving overall network performance, and further improving the accuracy of the transmission timeliness evaluation of the USB flash drive during the 5G gateway communication network backup process, effectively solving the problem of low accuracy of the transmission timeliness evaluation of the USB flash drive during the 5G gateway communication network backup process in the prior art.
[0046] Furthermore, the specific process of determining whether to execute the USB disk backup operation based on the acquired communication transmission performance score is as follows: determining whether the acquired communication transmission performance score is within the communication transmission performance threshold range acquired from the database (including the maximum and minimum values equal to the historical communication transmission performance scores): if the acquired communication transmission performance score is within the communication transmission performance threshold range, it indicates that the communication efficiency of the data to be backed up during the communication link transmission process meets the requirements and the USB disk backup operation is executed; if the acquired communication transmission performance score is not within the communication transmission performance threshold range, it indicates that the communication efficiency of the data to be backed up during the communication link transmission process does not meet the requirements, in which case the USB disk backup operation is not executed and the communication channel of the communication link is optimized.
[0047] In this embodiment, the communication transmission performance score indicates a range corresponding to a maximum value and a minimum value of historical communication transmission performance scores of the to-be-backed-up data in a preset database within a historical communication time period.
[0048] It should be added that the specific steps for performing the USB flash drive backup operation are: verifying the data to be backed up and transmitting the verified data to be backed up in encrypted and compressed form to the 5G gateway, and prompting the administrator to trigger the USB flash drive backup button; according to the backup strategy obtained from the database, the data to be backed up in the 5G gateway is transferred to the backup area of the USB flash drive to be backed up for automatic backup, and the data to be backed up that has completed the automatic backup is recorded as completed backup data. The backup strategy includes the backup time interval, the type of backup data, and the backup path.
[0049] Specifically, verification of backup data usually includes removing duplicate data and redundant data, which can be achieved through verification algorithms, such as hash functions (MD5, Message-Digest Algorithm 5). The backup strategy is set by technical personnel, where the backup time interval for each backup is the same. For example, automatic backup is performed from 2 to 3 a.m. every day. The backup data types usually include text data, image data, and table data. The backup paths usually include local backup, remote backup, and hybrid backup (including local backup and remote backup). This process combines the high-speed transmission characteristics of 5G networks, the portability of USB flash drives, and the security of encryption and compression technology, providing an efficient and reliable solution for data backup and recovery, and improving the accuracy and timeliness of USB flash drive backup operations.
[0050] Furthermore, the specific process of optimizing the communication channel of the communication link is as follows: adjusting the configuration parameters of the unidirectional channel and setting an automatic alarm mechanism. The configuration parameter adjustment includes increasing the bandwidth, replacing the router, and adjusting the backup path. The automatic alarm condition of the automatic alarm mechanism is that the acquired communication transmission performance score is not within the communication transmission performance threshold range; performing synchronous performance detection on the bidirectional channel to obtain the uplink speed and the downlink speed, and judging whether the uplink speed is equal to the downlink speed. If so, it indicates that there is no delay difference in the bidirectional channel. Otherwise, it indicates that there is a delay difference in the bidirectional channel and an automatic error handling mechanism is set. The automatic error handling condition of the automatic error handling mechanism is to quickly locate and automatically repair when there is a delay difference in the bidirectional channel.
[0051] In this embodiment, increasing bandwidth can be achieved by upgrading network bandwidth. For example, a company originally used a network bandwidth of 100Mbps, but with the development of business, network traffic demand continues to increase, resulting in network congestion and delays. To solve this problem, 100Mbps can be upgraded to 500Mbps; when replacing a router, it is necessary to prompt the administrator to suspend the transmission of data to be backed up, and the administrator will replace the router; for example, the backup path originally used by an enterprise is to upload the data to be backed up to a local server. However, with the continuous increase in data volume, the storage space of the local server may be crowded and there is a risk of data loss. At this time, it is necessary to prompt the administrator to suspend the transmission of data to be backed up, and the administrator will change the local server to a cloud storage server.
[0052] Specifically, the uplink speed is the data transmission speed of the uplink channel in the bidirectional channel, and the downlink speed is the data transmission speed of the downlink channel in the bidirectional channel. It should be noted that the bidirectional channel is a symmetrical channel, that is, the uplink channel and the downlink channel have the same bandwidth. Therefore, when the uplink speed and the downlink speed are equal, there is no delay difference in the corresponding bidirectional channels. The uplink speed and the downlink speed are obtained through the speed sensor at the bidirectional channel interface.
[0053] It should be added that communication network testing tools (such as Iperf) are usually used to perform synchronous performance tests on bidirectional channels. The specific steps are: configure test parameters: test time, buffer size and TCP / UDP protocol selection; start the test tool: start the test tool on the server and client respectively, and set the configured test parameters; start the test: send test data to the server through the client, and record the uplink speed and downlink speed; after the test, collect and save the test results.
[0054] This example can significantly improve communication efficiency, stability, and reliability by taking optimization measures for one-way and two-way channels, providing users with a better service experience. Secondly, through the automated monitoring and alarm mechanism, network faults can be discovered and handled in a timely manner, reducing manual intervention and operation and maintenance costs, and enhancing network scalability.
[0055] Furthermore, the specific steps for obtaining the backup timeliness score include: N1, when the communication transmission performance score is within the communication transmission performance threshold range obtained from the database, real-time monitoring of the amount of backed up data, average data backup speed and data backup duration of the data to be backed up within the backup time interval, and judging whether the average data backup speed is greater than the reference average data backup speed obtained from the database, if so, executing N2, otherwise, it indicates that the data to be backed up is congested within the backup time interval and prompts the administrator to trigger the pause USB backup button; N2, judging whether the data backup duration is less than the reference data backup duration obtained from the database, if so, executing N3, otherwise, it indicates that the data to be backed up is congested within the backup time interval and prompts the administrator to trigger the pause USB backup button; N3, obtaining the backup task completion score (i.e., the value in the restriction expression of the backup timeliness score). ), data backup time efficiency score (that is, the restriction expression of the backup time efficiency score ) and the data backup rate score (i.e., the backup timeliness score in the constraint expression ) and combines it with the acquired communication transmission performance score to obtain the backup timeliness score.
[0056] Among them, the backup task completion score is the ratio of the amount of backed up data to the total amount of data to be backed up; the data backup time efficiency score is the ratio of the difference between the reference data backup duration obtained from the database and the data backup duration to the reference data backup duration obtained from the database; the data backup rate score is the ratio of the difference between the average data backup speed and the reference average data backup speed obtained from the database to the reference average data backup speed obtained from the database.
[0057] In this embodiment, the backup time interval is the time period corresponding to the backup operation of the USB flash drive to be backed up. The reference data backup duration is represented by the sum and average of the historical data backup durations of the data to be backed up in the preset database within the historical backup time interval. The reference average data backup speed is represented by the sum and average of the historical average data backup speeds of the data to be backed up in the preset database within the historical backup time interval. The average data backup speed is the average value of the data backup speed within the backup time interval (obtained by the speed sensor deployed at the sending end interface of the USB flash drive to be backed up).
[0058] This example comprehensively considers the backup task completion score, data backup time efficiency score, data backup rate score, and communication transmission performance score to calculate the backup timeliness score. This comprehensive evaluation method can more comprehensively reflect the timeliness and efficiency of the backup process and improve the reliability and efficiency of data backup.
[0059] It should be added that the specific restriction expression of the backup timeliness score is: ; ; ; ; In the formula, i is the number of the USB disk to be backed up, , Y is the total number of USB flash drives to be backed up, j is the number of the communication channel type of the communication link, , Indicates a one-way channel. represents a bidirectional channel, e is a natural constant, It represents the backup timeliness score of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval, It represents the completion score of the backup task of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval. It represents the amount of data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval. Indicates the total amount of data to be backed up. It represents the data backup time efficiency score of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive within the backup time interval, It indicates the data backup duration of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive within the backup time interval. Indicates the reference data backup duration. It represents the data backup rate score of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive within the backup time interval, It represents the average data backup speed of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval, Indicates the reference average data backup speed, It represents the communication transmission performance score of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive during the preset communication time period. Indicates the communication transmission performance threshold range.
[0060] Assuming that the communication transmission performance threshold range is between 0.7 and 1.2, the reference average data backup speed is 12.5MB / S, and the reference data backup time is 10 minutes, the change statistics of the backup timeliness score are shown in Table 2: Table 2 Statistics of changes in backup timeliness scores It can be seen from Table 2 that the backup timeliness score increases with the increase of the communication transmission performance score, the backup task completion score, the data backup time efficiency score and the data backup rate score. Among them, the backup task completion score increases with the increase of the amount of backed up data, the data backup time efficiency score decreases with the increase of the data backup time, and the data backup rate score increases with the increase of the average data backup speed.
[0061] It should be noted that the communication transmission performance score also indirectly affects the value of the data backup rate score. When the communication transmission performance score increases, the corresponding data transmission speed increases (that is, the average data backup rate score increases), and the corresponding data backup time is short. Conversely, the data backup rate score decreases. In existing technologies, the problem of low accuracy in evaluating the transmission timeliness of USB flash drives during the 5G gateway communication network backup process is often due to the fact that only some directly related factors are considered, while indirect influencing factors such as communication transmission performance are ignored.
[0062] This example considers the indirect impact of the communication transmission performance score on the data backup rate score, and conducts a comprehensive evaluation based on multiple factors such as the backup task completion score and the data backup time efficiency score. It can more accurately evaluate the transmission timeliness of the USB flash drive during the 5G gateway communication network backup process, thereby improving the accuracy of the transmission timeliness evaluation of the USB flash drive during the 5G gateway communication network backup process, and effectively solves the problem of low accuracy of the transmission timeliness evaluation of the USB flash drive during the 5G gateway communication network backup process in the prior art.
[0063] Furthermore, the specific steps for generating a backup report are: counting the information data of the completed backup data and filling it into the backup report template obtained from the database, the information data including the start and end time of the backup task, the data transmission status of the data to be backed up, and the backup status of the USB flash drive to be backed up in the communication channel; verifying the filled information data to generate a backup report, and uploading the generated backup report to a preset location obtained from the database for archiving, the preset location being a designated folder in the cloud server.
[0064] In this embodiment, the backup report template generally includes the backup task name, backup task ID, backup time, backup type and data source of the data to be backed up; the data transmission status includes the data transmission rate and the amount of data transmitted of the data to be backed up during the backup operation, and the backup status includes the amount of data to be backed up that has been completed and the amount of data to be backed up that has not been completed within the backup time interval; the verification of the filled information data generally includes removing duplicate data and redundant data, which can be achieved through a verification algorithm (such as MD5).
[0065] like Figure 3 As shown, it is a structural diagram of writing the host and server to the USB flash drive to be backed up provided in an embodiment of the present application. The USB flash drive to be backed up in the host is uploaded to the cloud server through the 5G gateway, thereby completing the automatic backup of the USB flash drive, improving the efficiency and accuracy of backup report generation, and further realizing the improvement of the timeliness and accuracy of automatic backup of the USB flash drive to be backed up.
[0066] To summarize, the embodiment of the present application determines whether to perform U disk area division through the obtained serial port transmission index, and determines whether to perform U disk backup operation based on the obtained communication transmission performance score, and then obtains the backup timeliness score according to the backup progress of the U disk to be backed up and determines whether it is within the backup timeliness threshold range. If so, the U disk backup operation is completed and a corresponding backup report is generated, thereby achieving the improvement of the accuracy and real-time performance of the U disk backup operation, and then achieving the improvement of the accuracy of the transmission timeliness evaluation of the U disk during the 5G gateway communication network backup process, effectively solving the problem of low accuracy of the transmission timeliness evaluation of the U disk during the 5G gateway communication network backup process in the prior art.
[0067] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0068] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0069] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0070] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0071] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0072] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for realizing automatic backup of USB disk based on 5G gateway, characterized in that: The following steps are involved: S1, obtaining interface parameters of the USB flash drive to be backed up and performing initialization operations to obtain a serial port transmission index, wherein the USB flash drive to be backed up is connected to the USB Host port of the 5G gateway, and the interface parameters include USB version, interface rate, device ID and power supply requirements, and the serial port transmission index is used to quantify the stability of the data transmission process between the USB flash drive to be backed up and the 5G gateway; S2, judging whether to perform U disk area division based on the obtained serial port transmission index, if so, obtaining the data to be backed up and transmitting it through the communication link to obtain a communication transmission performance score, the U disk area includes a read-only area and a backup area, and the communication transmission performance score is used to evaluate the communication efficiency of the data to be backed up during the transmission of the communication link; S3, judging whether to execute the USB flash drive backup operation based on the acquired communication transmission performance score, and monitoring the backup progress of the USB flash drive to be backed up in real time during the USB flash drive backup operation to obtain a backup timeliness score, wherein the backup progress includes the data backup speed and the amount of backed up data, and the backup timeliness score is used to evaluate the time efficiency and accuracy of the USB flash drive to be backed up in completing the backup task during the USB flash drive backup operation; S4, judging whether the obtained backup timeliness score is within the backup timeliness threshold range, if so, completing the USB disk backup operation and generating a corresponding backup report.
2. A method for implementing automatic backup of a USB flash drive based on a 5G gateway as claimed in claim 1, characterized in that: The serial port transmission index is obtained by the following method: Acquire the sample data to be backed up, and at the same time acquire a baud rate score and a signal-to-noise ratio score according to the communication status of the sample data to be backed up within a preset communication time period, wherein the baud rate score is a ratio of an actual baud rate to a reference baud rate obtained from a database, and the signal-to-noise ratio score is a ratio of a signal power to a noise power; Obtain a delay rate score and an error rate score of the sample data to be backed up within a preset communication time period, wherein the delay rate score is a ratio of an average delay time of the sample data to be backed up from a sending end to a receiving end of the USB flash drive to be backed up to a reference delay time obtained from a database, and the error rate score is a ratio of the number of erroneous data bits received by the receiving end of the USB flash drive to be backed up to the total number of transmitted data bits sent by the sending end; The obtained baud rate score, signal-to-noise ratio score, delay rate score and error rate score are processed separately to obtain the serial port transmission index.
3. A method for realizing automatic backup of a USB disk based on a 5G gateway as claimed in claim 1, characterized in that: The specific process of determining whether to perform USB disk area division based on the acquired serial port transmission index is as follows: Determine whether the obtained serial port transmission index is within the serial port transmission threshold range obtained from the database: If the obtained serial port transmission index is within the serial port transmission threshold range, the U disk area division is performed; If the obtained serial port transmission index is not within the serial port transmission threshold range, the U disk area division is not performed and the communication serial port parameters are not verified.
4. A method for realizing automatic backup of a USB disk based on a 5G gateway as claimed in claim 1, characterized in that: The communication transmission performance score is obtained by the following method: L1, obtaining the data transmission rate score and actual data transmission duration of the data to be backed up during the transmission process of the communication link, wherein the data transmission rate score is the ratio of the actual data transmission rate to the reference data transmission rate obtained from the database, and the actual data transmission rate is the ratio of the total amount of data transmission of the data to be backed up in the communication link to the total duration of the preset communication time period obtained from the database; L2, determine whether the actual data transmission duration is less than the reference data transmission duration obtained from the database, if so, execute L3, otherwise obtain the data response duration score and combine it with the obtained data transmission rate score to obtain the communication transmission performance score, the data response duration score is the ratio of the actual data response duration to the reference data response duration obtained from the database, the actual data response duration is the duration between reception and transmission of the communication link communication port within the preset communication time period; L3, obtain the data transmission duration score and the data response duration score and combine them with the obtained data transmission rate score to obtain the communication transmission performance score, wherein the data transmission duration score represents the ratio of the difference between the reference data transmission duration obtained from the database and the actual data transmission duration of the data to be backed up in the communication link to the total duration of the preset communication time period obtained from the database.
5. A method for realizing automatic backup of a USB disk based on a 5G gateway as claimed in claim 1, characterized in that: The specific process of determining whether to perform the USB disk backup operation based on the acquired communication transmission performance score is as follows: Determine whether the obtained communication transmission performance score is within the communication transmission performance threshold range obtained from the database: If the acquired communication transmission performance score is within the communication transmission performance threshold range, the USB disk backup operation is performed; If the acquired communication transmission performance score is not within the communication transmission performance threshold range, the USB disk backup operation is not performed and the communication channel of the communication link is optimized.
6. A method for realizing automatic backup of a USB disk based on a 5G gateway as claimed in claim 5, characterized in that: The specific process of optimizing the communication channel of the communication link is as follows: Adjusting the configuration parameters of the one-way channel and setting an automatic alarm mechanism, wherein the configuration parameter adjustment includes increasing bandwidth, replacing routers, and adjusting backup paths; Perform synchronization performance detection on the bidirectional channel to obtain the uplink speed and the downlink speed, and determine whether the uplink speed is equal to the downlink speed. If so, it indicates that there is no delay difference in the bidirectional channel. Otherwise, it indicates that there is a delay difference in the bidirectional channel and an automatic error handling mechanism is set.
7. A method for realizing automatic backup of a USB disk based on a 5G gateway as claimed in claim 1, characterized in that: The specific steps of performing the USB disk backup operation are: Verify the data to be backed up and transmit the verified data to be backed up to the 5G gateway in encrypted and compressed form, and prompt the administrator to trigger the USB backup button; According to the backup strategy obtained from the database, the data to be backed up in the 5G gateway is transferred to the backup area of the USB flash drive to be backed up for automatic backup, and the data to be backed up that has completed automatic backup is recorded as completed backup data.
8. A method for implementing automatic backup of a USB disk based on a 5G gateway as claimed in claim 1, characterized in that: The specific steps of obtaining the backup timeliness score include: N1, real-time monitoring of the amount of backed up data, average data backup speed and data backup duration of the data to be backed up within the backup time interval, and judging whether the average data backup speed is greater than the reference average data backup speed obtained from the database, if so, executing N2, otherwise prompting the administrator to trigger the pause USB backup button; N2, determine whether the data backup duration is less than the reference data backup duration obtained from the database. If so, execute N3. Otherwise, prompt the administrator to trigger the pause USB backup button. N3, obtain the backup task completion score, data backup time efficiency score and data backup rate score and combine them with the obtained communication transmission performance score to obtain the backup timeliness score.
9. A method for realizing automatic backup of a USB disk based on a 5G gateway as claimed in claim 8, characterized in that: The specific limiting expression of the backup timeliness score is: ; ; ; ; In the formula, i is the number of the USB disk to be backed up, , Y is the total number of USB flash drives to be backed up, j is the number of the communication channel type of the communication link, , Indicates a one-way channel. represents a bidirectional channel, e is a natural constant, It represents the backup timeliness score of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval, It represents the completion score of the backup task of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval. It represents the amount of data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval. Indicates the total amount of data to be backed up. It represents the data backup time efficiency score of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive within the backup time interval, It indicates the data backup duration of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive within the backup time interval. Indicates the reference data backup duration. It represents the data backup rate score of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive within the backup time interval, It represents the average data backup speed of the data to be backed up in the i-th USB flash drive corresponding to the j-th communication channel within the backup time interval, Indicates the reference average data backup speed, It represents the communication transmission performance score of the jth communication channel corresponding to the data to be backed up in the i-th USB flash drive during the preset communication time period. Indicates the communication transmission performance threshold range.
10. A method for realizing automatic backup of a USB disk based on a 5G gateway as claimed in claim 1, characterized in that: The specific steps for generating the backup report are as follows: Collecting information data of completed backup data and filling it into the backup report template obtained from the database, the information data includes the start and end time of the backup task, the data transmission status of the data to be backed up, and the backup status of the USB disk to be backed up in the communication channel; The filled information data is verified to generate a backup report, and the generated backup report is uploaded to a preset location obtained from the database for archiving.
Citation Information
Patent Citations
A 5G-based ZYNQ remote program upgrade system and upgrade method
CN110806889B
Automatic backup USB flash disk implementation method based on 5G gateway and simulation USB flash disk
CN116662070A