Data transmission method, device, equipment, medium and product of cloud storage
By automatically identifying and switching networks during cloud storage data transmission, the problem of transmission interruption caused by poor network quality is solved, thus improving data transmission efficiency.
Patent Information
- Application Number
- CN202410474241.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2044-04-18
AI Technical Summary
During data transmission in cloud storage, due to the large amount of data and long transmission time, poor network quality can cause transmission interruptions. Existing technologies require manual judgment and manual operation to reconnect the network, resulting in low efficiency.
By obtaining network parameters between the client and the cloud server, the system automatically determines the network quality and switches to a second network within a preset range to optimize the data transmission environment and improve efficiency.
It enables automatic network switching during cloud storage data transmission, improving data transmission efficiency and reducing labor costs.
Smart Images

Figure CN118802930B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of data processing, and particularly relates to a data transmission method, device, equipment, medium and product of cloud storage. BACKGROUND
[0002] A client can perform data transmission with a server, and the data transmission includes data backup and data recovery. Since the data transmission amount is large and the transmission time is long in the process of data backup or data recovery, a high requirement is imposed on network quality.
[0003] In the prior art, the network quality in the data transmission process is often judged manually, and the network quality is analyzed manually. When the network quality is poor, manual operation is required to reconnect the network, which may result in interruption of data transmission or loss of data, and the efficiency of data transmission is low. SUMMARY
[0004] The embodiments of the present application provide a data transmission method, device, equipment, medium and product of cloud storage, which can improve the efficiency of data transmission of cloud storage.
[0005] In a first aspect, the embodiments of the present application provide a data transmission method of cloud storage, comprising:
[0006] In the process of transmitting data by the client and the first cloud server through the first network, the network parameter of the first network is acquired;
[0007] Based on the network parameter, the network quality parameter is determined;
[0008] When the network quality parameter is within the preset range, the first network is switched to the second network, so that the second network provides network service for the first cloud server, and the client and the first cloud server perform cloud storage data transmission based on the second network.
[0009] In a second aspect, the embodiments of the present application provide a data transmission device of cloud storage, comprising:
[0010] The acquisition module is configured to acquire the network parameter of the first network in the process of transmitting data by the client and the first cloud server through the first network;
[0011] The determination module is configured to determine the network quality parameter based on the network parameter;
[0012] The switching module is configured to switch the first network to the second network when the network quality parameter is within the preset range, so that the second network provides network service for the first cloud server, and the client and the first cloud server perform cloud storage data transmission based on the second network.
[0013] In a third aspect, the embodiments of the present application provide a cloud storage data transmission system, which is connected with a client and at least one cloud server, and comprises:
[0014] a transmission unit configured to transmit data between the client and the first cloud server;
[0015] a switching unit configured to perform the steps of the cloud storage data transmission method shown in the first aspect.
[0016] In a fourth aspect, the embodiments of the present application provide an electronic device, which comprises:
[0017] a processor and a memory storing computer program instructions;
[0018] the processor is configured to execute the cloud storage data transmission method shown in the first aspect when executing the computer program instructions.
[0019] In a fifth aspect, the embodiments of the present application provide a computer storage medium, which stores computer program instructions, and the computer program instructions are executed by a processor to implement the cloud storage data transmission method shown in the first aspect.
[0020] In a sixth aspect, the embodiments of the present application provide a computer program product, which comprises a computer program, and the computer program is processed by a processor to implement the cloud storage data transmission method shown in the first aspect.
[0021] The cloud storage data transmission method, device, equipment, medium and product provided by the embodiments of the present application can obtain network parameters of a first network within a preset time period during the process of transmitting data between a client and a first cloud server through the first network, determine a network quality parameter based on the network parameters, switch the first network to a second network in the case that the network quality parameter is within a preset range, and make the client and the first cloud server transmit data based on the second network, so as to optimize the network environment of cloud storage data transmission and improve the efficiency of cloud storage data transmission. BRIEF DESCRIPTION OF DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the embodiments of the present application will be briefly introduced. For those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0023] Figure 1 FIG. 1 is a structural schematic diagram of a cloud storage data transmission system according to an embodiment of the present application.
[0024] Figure 2 FIG. 1 is a structural schematic diagram of a cloud storage data transmission system according to an embodiment of the present application.
[0025] Figure 3 Another schematic diagram of a cloud storage data transmission system is provided for an embodiment of the present application.
[0026] Figure 4 Another schematic diagram of a cloud storage data transmission system is provided for an embodiment of the present application
[0027] Figure 5 A flowchart of a cloud storage data transmission method is provided for an embodiment of the present application.
[0028] Figure 6 An exemplary schematic diagram of network speed changing over time is provided for an embodiment of the present application.
[0029] Figure 7 A flowchart of another cloud storage data transmission method is provided for an embodiment of the present application.
[0030] Figure 8 A schematic diagram of a cloud storage data transmission device is provided for an embodiment of the present application.
[0031] Figure 9 A hardware structure schematic diagram of an electronic device is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0032] The features and exemplary embodiments of various aspects of the present application will be described in detail below with reference to the drawings. To make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, but not to limit the present application. The present application can be implemented without some of the specific details by those skilled in the art. The following description of the embodiments is only to provide a better understanding of the present application by showing examples of the present application.
[0033] It should be noted that, in this document, relational terms such as first and second, and the like, are used solely to distinguish one entity or action from another entity or action, without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without limitation, an element preceded by "comprises... a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0034] Currently, clients can transmit data to cloud servers for cloud storage. For example, clients can perform data backup and recovery based on cloud servers. Data backup refers to the client transmitting data from cloud storage to the cloud server so that the data is backed up and saved on the cloud server. Data recovery refers to the cloud server transmitting data from cloud storage to the client to recover data that the client may have lost. Therefore, both data backup and recovery involve the data transmission process.
[0035] Currently, during data transmission between clients and cloud servers for cloud storage, issues arise due to the large volume of data being transmitted during backup or recovery processes, resulting in long transmission times and potential interruptions caused by poor network quality. This necessitates manual analysis of network quality and manual reconnection when network quality is poor to maintain data transmission. Consequently, this leads to high labor costs and low efficiency in cloud storage data transmission.
[0036] Based on this, embodiments of this application provide a cloud storage data transmission method, apparatus, device, medium, and product that can solve the above-mentioned problems.
[0037] like Figure 1 As shown, Figure 1 This is a schematic diagram of the structure of a cloud storage data transmission system provided in an embodiment of this application, as shown below. Figure 1 The client, acting as a transmission device, connects to the cloud server via the same network switch to achieve data transmission for cloud storage. Multiple clients and multiple cloud servers can be involved. Furthermore, if a cloud server fails during data transmission, the client can switch to another cloud server for data transmission. Data transmission between the client and cloud server can be based on cloud storage data transmission protocols, such as the Secure Copy Protocol (SCP).
[0038] At the same time, such as Figure 1 As shown, network monitoring devices can be configured to access the switch to monitor network quality during data transmission between the client and the cloud server in cloud storage.
[0039] like Figure 2 As shown, Figure 2 This is a schematic diagram of a cloud storage data transmission system provided in an embodiment of this application. The cloud storage data transmission system is connected to a client and at least one cloud server, and includes:
[0040] The transmission unit 201 is configured to transmit data between the client and the first cloud server.
[0041] The switching unit 202 is configured to acquire a network parameter of the first network during transmission of data between the client and the second cloud server via the first network, determine a network quality parameter based on the network parameter, and switch the first network to the second network when the network quality parameter is within a preset range, so that the second network provides network service for the first cloud server and the client performs cloud storage data transmission with the first cloud server.
[0042] It should be noted that the switching unit 202 provided by the embodiments of the present application is configured to perform the cloud storage data transmission method as shown in the following Figures 5-7 The specific method steps are shown as follows.
[0043] As shown in the following Figure 2 , the cloud storage data transmission system can include a transmission unit and a switching unit. The transmission unit is configured to transmit data between the client and the first cloud server. The switching unit is configured to acquire a network parameter of the first network within a preset time period during transmission of data between the client and the second cloud server via the first network, determine a network quality parameter based on the network parameter, and switch the first network to the second network when the network quality parameter is within a preset range, so that the second network provides network service for the first cloud server.
[0044] The embodiments of the present application can realize automatic network switching during cloud storage data transmission between the client and the cloud server by setting the transmission unit and the switching unit in the cloud storage data transmission system. When the network quality parameter of the first network is determined to be within a preset range by the switching unit, the first network is switched to the second network, so that the client performs cloud storage data transmission with the first cloud server based on the second network. The network quality during cloud storage data transmission is improved, and the cloud storage data transmission efficiency is improved.
[0045] In some embodiments, as shown in the following Figure 3 , the transmission unit includes a data backup unit 301, a data recovery unit 302, a data synchronization unit 302, and a data management unit 304.
[0046] The data backup unit is configured to backup data of the client to the first cloud server during cloud storage data transmission between the client and the first cloud server.
[0047] The data recovery unit is configured to recover data stored by the client based on data of the first cloud server during cloud storage data transmission between the client and the first cloud server.
[0048] The data synchronization unit is configured to perform data transmission of cloud storage between the first client and the second client to realize data synchronization between different clients, or perform data transmission of cloud storage between the first cloud server and the second cloud server to realize data synchronization between different cloud servers.
[0049] The data management unit is configured to schedule the data backup unit, the data recovery unit and the data synchronization unit to realize data backup, recovery and synchronization in response to a user operation.
[0050] In some embodiments, the data backup unit is further configured to encrypt data of the client and upload the encrypted data to the first cloud server in the process of data transmission of cloud storage between the client and the first cloud server.
[0051] The data backup unit is further configured to record the time and frequency of data backup.
[0052] Encrypting the uploaded data through the data backup unit can improve data security, and recording the time and frequency of data backup by the data backup unit can facilitate the user to view the record of data backup.
[0053] In some embodiments, the data synchronization unit is further configured to realize stopping of data synchronization in response to a user operation, so that the user can manually control timely stopping of data synchronization.
[0054] In some embodiments, the data recovery unit is further configured to check consistency of data downloaded from the cloud server and data stored in the client based on the checksum, and delete data from the cloud server in the client in which the checksum is the same as that in the data stored in the client.
[0055] In some embodiments, the data recovery unit is further configured to decrypt data downloaded from the cloud server.
[0056] In some embodiments, the data management unit is further configured to record a user operation and system running to generate a log. Generating the log through the data management unit can facilitate the user to view different operations and system running.
[0057] The embodiments of the present application realize data backup, recovery and synchronization by setting the data backup unit, the data recovery unit and the data synchronization unit, can realize different functions such as data backup, recovery and synchronization, and can improve the efficiency of data backup, recovery and synchronization by setting the data management unit to schedule the above data backup unit, data recovery unit and data synchronization unit in response to a user operation.
[0058] In some embodiments, as shown in FIG. 4, Figure 4 The switching unit 202 includes a collection unit 401 and a processing unit 402.
[0059] The acquisition unit is configured to acquire network parameters of the first network within a preset time period during data transmission between the client and the second cloud server via the first network.
[0060] The processing unit is configured to determine a network quality parameter based on the network parameters, and switch the first network to the second network in a case where the network quality parameter is within a preset range, so that the second network provides network service for the first cloud server.
[0061] The acquisition unit is further configured to acquire hardware parameters and environment parameters of the first cloud server, the hardware parameters including a remaining use duration and an error number of the first cloud server, and the environment parameters including an ambient temperature of the first cloud server.
[0062] The processing unit is further configured to determine a hardware performance value based on the remaining use duration and the error number, the hardware performance value representing a performance of the first cloud server, calculate a product of the ambient temperature and the hardware performance value to obtain a target security parameter, the target security parameter representing a security quality of the first cloud server, determine a first security level corresponding to the target security parameter based on a preset correspondence between security parameters and security levels, and replace the first cloud server with the second cloud server for data transmission of cloud storage between the client and the first cloud server in a case where the first security level includes the target security level.
[0063] The acquisition unit is further configured to acquire hardware parameters and environment parameters of the first cloud server, the hardware parameters including a remaining use duration and an error number of the first cloud server, and the environment parameters including an ambient temperature of the first cloud server.
[0064] In some embodiments, as shown in Figure 5 The present application provides a data transmission method of cloud storage, applied to a data transmission system, the data transmission method comprising:
[0065] S510: Acquire network parameters of the first network during data transmission between the client and the first cloud server via the first network.
[0066] The network parameters of the first network within a preset time period can be acquired during data transmission between the client and the first cloud server via the first network, where the network parameters are parameters representing network characteristics, and the network parameters can include network speed, bandwidth, throughput, and time delay.
[0067] S520: Determine a network quality parameter based on the network parameters, the network quality parameter representing a quality of the first network.
[0068] The network quality parameter can be determined based on the network parameter, and the network quality parameter can represent the quality of the first network. For example, based on the network parameter including the network speed, the difference between the maximum value and the minimum value of the network in the preset time period can be determined, the network fluctuation in the preset time period is determined as the network quality parameter, and the difference between the network speed at the start time and the network speed at the end time can also be obtained, the network fluctuation is determined as the network quality parameter.
[0069] S530: When the network quality parameter is in the preset range, switching the first network to the second network to enable the second network to provide network service for the first cloud server, and enabling the client to perform data transmission based on the second network for cloud storage of the first cloud server.
[0070] The value range of the network parameter can be preset, and when it is determined that the network parameter is in the preset range, the first network can be switched to the second network. The preset range can be the range of (0, A) and (B, +∞), where A and B can be artificially set, and B is greater than A. By switching the first network to the second network, the second network provides network service for the first cloud server, and the client performs data transmission based on the second network for cloud storage of the first cloud server.
[0071] The embodiment of the application can obtain the network parameter of the first network in the preset time period during the data transmission between the client and the first cloud server through the first network, determine the network quality parameter based on the network parameter, and switch the first network to the second network when it is determined that the network quality parameter is in the preset range, so that the client and the first cloud server can transmit data based on the second network. The network switching during the data transmission between the client and the first cloud server is realized, the network environment of the data transmission of cloud storage is optimized, and the data transmission efficiency of cloud storage is improved.
[0072] In some embodiments, the network parameter includes the duration of the network, the first network speed, the second network speed, and the number of fluctuations, the number of fluctuations being the number of times the second network speed switches to the first network speed, the duration of the network including the first duration of the first network speed, the first network speed being a network speed less than a standard value, and the second network speed being a network speed greater than or equal to the standard value.
[0073] Step S520: determining a network quality parameter based on the network parameter, comprising:
[0074] The difference between the second network speed and the first network speed is calculated to obtain a network difference, and the network difference represents the network fluctuation of the first network; and the network quality parameter of the first network is determined based on the network difference, the first duration and the number of fluctuations.
[0075] AsFigure 6 , Figure 6 As an example of the schematic diagram of network speed changing over time, based on the above schematic diagram, the network parameters in the preset time period t1-t2 can be determined, the first network speed less than the standard value, the second network speed greater than the standard value, the fluctuation frequency of the second network speed switching to the first network speed, and the duration of the first network speed can be obtained. Here, the first network speed can take the average of multiple speeds less than the standard value in the above t1-t2 time period, and for the same reason, the second network speed can take the average of multiple speeds greater than or equal to the standard value in the above t1-t2 time period, and the fluctuation frequency can include the sum of the first fluctuation frequency of the second network speed switching to the first network speed and the second fluctuation frequency of the first network speed switching to the second network speed, that is, the number of points where the network fluctuation curve intersects the standard network speed line, such as Figure 6 , the fluctuation frequency can be 3. The first duration is the duration of all network speeds less than the standard value in the t1-t2 time period.
[0076] For example, as Figure 6 , the average v1 of multiple speeds less than the standard value is calculated and the average v2 of multiple speeds greater than or equal to the standard value is calculated, the network difference is determined based on the difference between v2 and v1, and the network difference can represent the fluctuation of the network. Based on the network difference, the first duration and the fluctuation frequency, the network quality parameter of the first network can be determined, for example, the ratio of the network difference to the first duration and the fluctuation frequency is calculated to determine the network quality parameter of the first network.
[0077] The embodiments of the present application can obtain the network parameters of the first duration, the first network speed, the second network speed and the fluctuation frequency of the network, calculate the difference between the second network speed and the first network speed to obtain the network difference, and determine the network quality parameter of the first network based on the network difference, the first duration and the fluctuation frequency. Based on multiple network parameters, the network quality parameter can be determined to improve the accuracy of the determined network quality parameter.
[0078] In some embodiments, the first network speed includes a first upload speed and a first download speed, and the second network speed includes a second upload speed and a second download speed.
[0079] Calculating the difference between the second network speed and the first network speed to obtain the network difference includes: calculating the first network difference between the second upload speed and the first upload speed, and calculating the second network difference between the second download speed and the first download speed.
[0080] The first network speed can include a first upload speed and a first download speed, such as Figure 6As shown, the first upload speed is an average of a plurality of upload speeds calculated to be less than a standard value, the first download speed is an average of a plurality of download speeds calculated to be less than a standard value, the second speed can include a second upload speed and a second download speed, the second upload speed is an average of a plurality of upload speeds calculated to be greater than or equal to a standard value, and the second download speed is an average of a plurality of download speeds calculated to be greater than or equal to a standard value. A first network difference value of the second upload speed and the first upload speed can be calculated, and a second network difference value of the second download speed and the first download speed can be calculated.
[0081] Based on the network difference value, the first duration and the fluctuation number, the network quality parameter of the first network is determined, including: based on the first network difference value, the second network difference value, the first duration and the fluctuation number, the network quality parameter of the first network is determined.
[0082] Here, the network quality parameter of the first network can be determined based on the first network difference value, the second network difference value, the first duration and the fluctuation number, for example, the ratio of the sum of the first network difference value and the second network difference value to the first duration and the fluctuation number is calculated to determine the network quality parameter.
[0083] The embodiments of the present application calculate the first network difference value of the second upload speed and the first upload speed, and the second network difference value of the second download speed and the first download speed based on the first upload speed and the first download speed included in the first network speed, and the second upload speed and the second download speed included in the second network speed, determine the network quality parameter of the first network based on the first network difference value, the second network difference value, the first duration and the fluctuation number, and realize determining the network quality parameter of the first network through multiple different parameters, and improve the accuracy of the determined network quality parameter.
[0084] In some embodiments, determining the network quality parameter of the first network based on the first network difference value, the second network difference value, the first duration and the fluctuation number includes:
[0085] The network quality parameter of the first network is determined according to the following expression (1):
[0086]
[0087] H is the network quality parameter, H1 is the first network difference value, H2 is the second network difference value, n is the first duration, h is the first duration, a1, a2, a3, a4 are weight coefficients.
[0088] Here, the weight coefficients can be set artificially and are all greater than 0.
[0089] The embodiments of the present application determine the network quality parameter by setting the above expression, which can improve the accuracy of the determined network quality parameter.
[0090] In some embodiments, as shown in Figure 7 The cloud-stored data transmission method further includes:
[0091] S710: Obtain hardware parameters and environment parameters of the first cloud server, the hardware parameters including a remaining use duration and an error number of the first cloud server, and the environment parameters including an ambient temperature where the first cloud server is located.
[0092] The hardware parameters of the first cloud server can be obtained, the hardware parameters being parameters representing hardware configuration of the first cloud server, and the hardware parameters can include the remaining use duration and the error number, and the error number can be obtained based on logs of the first cloud server. Meanwhile, the environment parameters of the first cloud server can be obtained, the environment parameters being parameters representing an environment where the first cloud server is located, and the environment parameters can include the ambient temperature, and a temperature sensor can be arranged to obtain the ambient temperature.
[0093] In some examples, the environment parameters can further include an ambient humidity.
[0094] S720: Determine a hardware performance value based on the ambient temperature, the remaining use duration and the error number, the hardware performance value representing performance of the first cloud server.
[0095] The hardware performance value can be determined based on the ambient temperature, the remaining use duration and the error number, for example, a ratio of the ambient temperature to the remaining use duration and the error number can be calculated to determine the hardware performance value.
[0096] In some examples, the hardware performance value can be determined based on the ambient humidity, the remaining use duration and the error number.
[0097] S730: Calculate a product of the ambient temperature and the hardware performance value to obtain a target security parameter, the target security parameter representing a security quality of the first cloud server.
[0098] The target security parameter can be determined by calculating the product of the ambient temperature and the hardware performance value.
[0099] In some examples, the target security parameter can also be determined based on a product of the ambient humidity and the hardware performance value.
[0100] S740: Determine a first security level corresponding to the target security parameter based on a preset correspondence between security parameters and security levels.
[0101] The correspondence between the security parameter and the security level can be pre-set, the security level corresponding to different value ranges of the security parameter is determined based on the different value ranges, and the first security level corresponding to the target security parameter is determined based on the calculated target security parameter. For example, three security levels are determined based on different value ranges, which are low, medium and high, and in the case of higher security level, the security stability of the first cloud server is better.
[0102] S750: In the case where the first security level includes the target security level, the second cloud server is used to replace the first cloud server to perform data transmission for cloud storage with the client.
[0103] In the case where the first security level includes the target security level, the second cloud server can be used to replace the first cloud server to perform data transmission for cloud storage with the client. Taking the above security levels as low, medium and high as an example, in the case where the first security level is determined to be low, the second cloud server can be used to replace the first cloud server to perform data transmission for cloud storage with the client.
[0104] The embodiment of the present application determines the hardware performance value based on the remaining use time and the error number included in the hardware parameter and the environmental temperature included in the environmental parameter, quantifies the hardware performance of the first cloud server, determines the target security parameter by calculating the product of the environmental temperature and the hardware performance value, determines the first security level corresponding to the target security parameter through the correspondence between the security parameter and the security level, and uses the second cloud server to replace the first cloud server in the case where the first security level includes the target security level, so as to switch the first cloud server based on the security level of the first cloud server in the process of data transmission for cloud storage between the client and the first cloud server, maintain the data transmission for cloud storage, and improve the data transmission efficiency for cloud storage.
[0105] In some embodiments, the hardware performance value is determined based on the environmental humidity, the remaining use time and the error number, and includes:
[0106] The hardware performance value is determined according to the following expression (2):
[0107]
[0108] Y is the hardware performance value, T is the remaining use time, D1 is the environmental temperature, D2 is the standard temperature, F is the error number, and b1, b2 and b3 are proportional coefficients.
[0109] The embodiment of the present application determines the hardware performance value through the above expression, realizes the quantification of the hardware performance of the cloud server, determines the hardware performance based on the hardware performance value, and can improve the accuracy of the determined hardware performance.
[0110] In some embodiments, the step S730 of calculating the product of the environmental temperature and the hardware performance value to obtain the target security parameter comprises:
[0111] In the case that the environmental temperature is greater than the preset standard temperature, the product of the environmental temperature and the hardware performance value is calculated to obtain the target security parameter; or
[0112] In the case that the environmental temperature is less than the preset standard temperature, the product of the standard temperature and the hardware performance value is calculated to obtain the target security parameter.
[0113] The environmental temperature and the standard temperature can be compared, and in the case that the environmental temperature is greater than the standard temperature, the target security parameter is obtained based on the product of the environmental temperature and the hardware performance value, or in the case that the environmental temperature is less than the standard temperature, the target security parameter is obtained based on the product of the standard temperature and the hardware performance value.
[0114] In some examples, in the case that the target security parameter is obtained based on the product of the environmental humidity and the hardware performance value, the environmental humidity and the standard humidity can also be compared, and in the case that the environmental humidity is greater than the standard humidity, the product of the environmental humidity and the hardware performance value is calculated to determine the target security parameter, or in the case that the environmental humidity is less than the standard humidity, the product of the standard humidity and the hardware performance value is calculated to determine the target security parameter.
[0115] The embodiments of the present application compare the environmental temperature and the standard temperature, and in different cases, the target security parameter is determined based on the environmental temperature and the hardware performance value, or the target security parameter is determined based on the standard temperature and the hardware performance value, which can improve the accuracy of the determined target security parameter.
[0116] In some embodiments, as Figure 8 The embodiments of the present application provide a data transmission device of cloud storage, comprising:
[0117] The acquisition module 801 is configured to acquire a network parameter of a first network in a process of transmitting data by the first network between a client and a first cloud server.
[0118] The determination module 802 is configured to determine a network quality parameter based on the network parameter.
[0119] The switching module 803 is configured to switch the first network to a second network when the network quality parameter is within a preset range, so that the second network provides network service for the first cloud server, and the client and the first cloud server perform data transmission of cloud storage based on the second network.
[0120] In some embodiments, the network parameters include a duration of the network, a first network speed, a second network speed, and a fluctuation number, the fluctuation number being a number of times that the second network speed switches to the first network speed, the duration of the network including a first duration of the first network speed, the first network speed being a network speed less than a standard value, and the second network speed being a network speed greater than or equal to the standard value.
[0121] The determining module can be specifically configured to:
[0122] calculate a difference between the second network speed and the first network speed to obtain a network difference, the network difference representing network fluctuation of the first network;
[0123] determine a network quality parameter of the first network based on the network difference, the first duration, and the fluctuation number.
[0124] In some embodiments, the first network speed includes a first upload speed and a first download speed, and the second network speed includes a second upload speed and a second download speed.
[0125] The determining module can be specifically configured to:
[0126] calculate a first network difference between the second upload speed and the first upload speed, and calculate a second network difference between the second download speed and the first download speed;
[0127] The determining module can be specifically configured to:
[0128] determine a network quality parameter of the first network based on the first network difference, the second network difference, the first duration, and the fluctuation number.
[0129] In some embodiments, the determining module can be specifically configured to:
[0130] determine the network quality parameter of the first network according to the following expression:
[0131]
[0132] H is the network quality parameter, H1 is the first network difference, H2 is the second network difference, n is the first duration, h is the first duration, and a1, a2, a3, and a4 are weight coefficients.
[0133] In some embodiments, the apparatus further includes:
[0134] The obtaining module is further configured to obtain hardware parameters and environment parameters of the first cloud server, the hardware parameters including a remaining use duration and an error number of the first cloud server, and the environment parameters including an ambient temperature of the first cloud server.
[0135] The determining module is further configured to determine a hardware performance value based on the ambient temperature, the remaining use duration and the error reporting times, the hardware performance value representing the performance of the first cloud server.
[0136] The calculating module is configured to calculate a product of the ambient temperature and the hardware performance value to obtain a target security parameter, the target security parameter representing the security quality of the first cloud server.
[0137] The determining module is further configured to determine a first security level corresponding to the target security parameter based on a preset correspondence between security parameters and security levels.
[0138] The switching module is further configured to replace the first cloud server with the second cloud server for data transmission of cloud storage with the client if the first security level includes the target security level.
[0139] In some embodiments, the determining module can be specifically configured to:
[0140] The hardware performance value is determined according to the following expression:
[0141]
[0142] Y is the hardware performance value, T is the remaining use duration, D1 is the ambient temperature, D2 is the standard temperature, F is the error reporting times, and b1, b2 and b3 are proportional coefficients.
[0143] In some embodiments, the calculating module can be specifically configured to:
[0144] The product of the ambient temperature and the hardware performance value is calculated to obtain the target security parameter if the ambient temperature is greater than a preset standard temperature; or
[0145] The product of the standard temperature and the hardware performance value is calculated to obtain the target security parameter if the ambient temperature is less than the preset standard temperature.
[0146] The device of the above embodiments is used to implement the corresponding cloud storage data transmission method in any of the preceding embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described here.
[0147] Figure 9 The application embodiments provide a hardware structure schematic diagram of an electronic device.
[0148] The electronic device 900 can include a processor 901 and a memory 902 having computer program instructions stored therein.
[0149] Specifically, the processor 901 can include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or can be configured to implement one or more integrated circuits that embody the embodiments of the present application.
[0150] The memory 902 can include mass storage for data or instructions. By way of example, and not limitation, the memory 902 can include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc (e.g., a CD or DVD), a tape drive, a USB drive, or a combination of two or more of these. The memory 902 can be removable and / or non-removable (or fixed) as appropriate. The memory 902 can be internal or external as appropriate. In certain embodiments, the memory 902 is non-volatile solid-state memory.
[0151] In certain embodiments, the memory 902 includes read-only memory (ROM). Where appropriate, this ROM can be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory or a combination of two or more of these.
[0152] The memory can include read-only memory (ROM), random-access memory (RAM), magnetic disk storage mediums, optical storage mediums, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software that, when executed (by one or more processors), is operable to perform operations described with reference to the methods according to the first aspect of the present application.
[0153] The processor 901 implements the cloud storage data transmission method of any one of the above embodiments by reading and executing computer program instructions stored in the memory 902.
[0154] In one example, the electronic device can further include a communication interface 903 and a bus 904. Wherein, as Figure 9 The processor 901, the memory 902, and the communication interface 903 are connected through the bus 904 and complete communication between each other.
[0155] The communication interface 903 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the present application.
[0156] Bus 904 includes hardware, software, or both, coupling components of the online data traffic billing device to each other in a known manner. While the application is not limited to particular bus architectures, examples of bus architectures include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), HyperTransport (HT) interconnect, Industry Standard Architecture (ISA) bus, InfiniBand™ interconnect, Low Pin Count (LPC) bus, Memory Bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association local (VLB) bus, or other suitable bus or interconnect, or a combination of two or more of these. Where suitable, bus 904 can include one or more buses. Although particular bus architectures are described and shown in the embodiments of the application, the application contemplates any suitable bus or interconnect.
[0157] The electronic device of the above embodiments is used to implement the corresponding cloud storage data transmission method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described here again.
[0158] In addition, in combination with the cloud storage data transmission method in the above embodiments, the embodiments of the application can provide a computer storage medium to implement. The computer storage medium has computer program instructions stored thereon; the computer program instructions are executed by the processor to implement any of the cloud storage data transmission methods in the above embodiments.
[0159] In addition, in combination with the cloud storage data transmission method in the above embodiments, the embodiments of the application can provide a computer program product to implement. The computer program product instructions are executed by the processor of the electronic device to implement any of the cloud storage data transmission methods in the above embodiments.
[0160] Those skilled in the art will understand that the discussion of any of the above embodiments is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; under the teachings of the application, the above embodiments or technical features between different embodiments can also be combined, and the steps can be implemented in any order, and there are many other changes to the aspects of the embodiments of the application as described above. In order to be brief, they are not provided in detail.
[0161] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0162] It should also be noted that the exemplary embodiments mentioned in this application describe methods or apparatuses based on a series of steps or devices. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0163] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, 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, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0164] The above describes only a specific implementation of the present application, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device, module and unit can refer to the corresponding process in the foregoing method embodiments, which will not be described here. It should be understood that the protection scope of the present application is not limited to this, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed in the present application, and these modifications or replacements should be covered within the protection scope of the present application.
Claims
1. A data transmission method for cloud storage, characterized in that, include: During the process of data transmission between the client and the first cloud server through the first network, the network parameters of the first network are obtained; Based on the network parameters, determine the network quality parameters; When the network quality parameters are within a preset range, the first network is switched to the second network so that the second network provides network services to the first cloud server and enables the client and the first cloud server to perform cloud storage data transmission based on the second network; The network parameters include network duration, first network speed, second network speed, and number of fluctuations. The number of fluctuations is the number of times the second network speed switches to the first network speed. The network duration includes the first duration of the first network speed. The first network speed is a network speed that is less than a standard value, and the second network speed is a network speed that is greater than or equal to the standard value. The process of determining network quality parameters based on the network parameters includes: The difference between the second network speed and the first network speed is calculated to obtain the network difference, which represents the network fluctuation of the first network; Based on the network difference, the first duration, and the number of fluctuations, the network quality parameters of the first network are determined.
2. The cloud storage data transmission method according to claim 1, characterized in that, The first network speed includes a first upload speed and a first download speed, and the second network speed includes a second upload speed and a second download speed; The calculation of the difference between the second network speed and the first network speed, to obtain the network difference, includes: Calculate the first network difference between the second upload speed and the first upload speed, and calculate the second network difference between the second download speed and the first download speed; The determination of network quality parameters of the first network based on the network difference, the first duration, and the number of fluctuations includes: Based on the first network difference, the second network difference, the first duration, and the number of fluctuations, the network quality parameters of the first network are determined.
3. The cloud storage data transmission method according to claim 1, characterized in that, Also includes: Obtain the hardware parameters and environmental parameters of the first cloud server. The hardware parameters include the remaining usage time and number of errors of the first cloud server. The environmental parameters include the ambient temperature of the first cloud server. Based on the ambient temperature, the remaining usage time, and the number of errors, a hardware performance value is determined, which characterizes the performance of the first cloud server. The target security parameter is obtained by calculating the product of the ambient temperature and the hardware performance value, and the target security parameter characterizes the security quality of the first cloud server. Based on the preset correspondence between security parameters and security levels, the first security level corresponding to the target security parameter is determined; When the first security level includes the target security level, a second cloud server is used to replace the first cloud server in transmitting data for cloud storage to the client.
4. The cloud storage data transmission method according to claim 3, characterized in that, The calculation of the product of the ambient temperature and the hardware performance value yields the target safety parameters, including: When the ambient temperature is higher than a preset standard temperature, the target safety parameter is obtained by multiplying the ambient temperature and the hardware performance value; or When the ambient temperature is lower than the preset standard temperature, the product of the standard temperature and the hardware performance value is calculated to obtain the target safety parameter.
5. A cloud storage data transmission system, characterized in that, The cloud storage data transmission system is connected to a client and at least one cloud server, and the system includes: a transmission unit for transmitting data between the client and the first cloud server; A switching unit is used to perform the steps of the cloud storage data transmission method as described in any one of claims 1 to 4.
6. A data transmission device for cloud storage, characterized in that, include: The acquisition module is used to acquire network parameters of the first network during the process of data transmission between the client and the first cloud server through the first network; The determination module is used to determine network quality parameters based on the network parameters; The switching module is used to switch the first network to the second network when the network quality parameters are within a preset range, so that the second network provides network services to the first cloud server, and enables the client and the first cloud server to perform cloud storage data transmission based on the second network; The network parameters include network duration, first network speed, second network speed, and number of fluctuations. The number of fluctuations is the number of times the second network speed switches to the first network speed. The network duration includes the first duration of the first network speed. The first network speed is a network speed that is less than a standard value, and the second network speed is a network speed that is greater than or equal to the standard value. The process of determining network quality parameters based on the network parameters includes: The difference between the second network speed and the first network speed is calculated to obtain the network difference, which represents the network fluctuation of the first network; Based on the network difference, the first duration, and the number of fluctuations, the network quality parameters of the first network are determined.
7. An electronic device, characterized in that, The device includes: a processor, and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the cloud storage data transmission method as described in any one of claims 1 to 4.
8. A readable storage medium, characterized in that, The readable storage medium stores computer program instructions, which, when executed by a processor, implement the cloud storage data transmission method as described in any one of claims 1 to 4.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is processed by a processor, it implements the cloud storage data transmission method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Data transmission method and device, electronic equipment and storage medium
CN115022730A
Data transmission method and apparatus
WO2023071184A1