Cloud storage method, device, equipment and medium based on intelligent deployment of network equipment
By obtaining and analyzing information from network devices and automatically pushing and provisioning cloud storage services, the problem that existing cloud storage methods cannot implement functions such as one-click cloud access and monitoring and viewing are solved, and the reliability and user experience of cloud storage are improved.
Patent Information
- Application Number
- CN202411472274.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-10-22
AI Technical Summary
The existing cloud storage method based on intelligent provisioning of network devices does not have cloud storage devices in use, and cannot realize functions such as one-click data cloud access, monitoring and re-viewing, alarm clip interception and recording, limiting application efficiency in security monitoring, remote supervision and other fields, and reducing the reliability of cloud storage.
By obtaining the network environment information, hardware information and software information of the target network device, determine whether the device is suitable for cloud storage services, and automatically push the most compatible cloud storage services. Based on the configuration instructions of cloud storage services, cloud storage resources and policies are allocated to realize automatic storage and management of data.
Improve the reliability of cloud storage, reduce the user's need for manual configuration and technical evaluation, and make cloud storage processes more convenient and user-friendly. By automatically allocating resources and strategies, effectively utilizing cloud resources, ensuring low latency and high speed of data transmission, optimizing costs and improving service quality.
Smart Images

Figure CN119011609B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud network technology, and in particular to a cloud storage method, device, equipment and medium based on intelligent deployment of network devices. Background Art
[0002] With the rapid growth of the Internet of Things (IoT) and smart devices, the demand for intelligent and automated cloud storage solutions is increasing.
[0003] Cloud storage refers to a method of storing data on remote servers over the Internet. These servers are usually owned and maintained by third-party service providers. Cloud storage uses cluster applications, network technology or distributed file systems to bring together a large number of different types of storage devices in the network through application software to work together and provide data storage and business access functions.
[0004] The existing cloud storage method based on intelligent deployment of network devices does not have a cloud storage device during use, and after binding the app (Application), it is impossible to choose to match the cloud storage function, and it is impossible to realize functions such as one-click data cloud storage, monitoring playback, and alarm clip capture and recording. It does not have the ability to push messages to jump to playback, which limits the application efficiency in security monitoring, remote supervision and other fields. In the event of network device failure or physical damage, it also limits the portability and accessibility of data. At the same time, the lack of the function of message push jump playback makes it impossible for users to obtain notifications of important events and video playback in time at critical moments, affecting users' timely response to possible emergencies and reducing the reliability of cloud storage.
[0005] Therefore, how to improve the reliability of cloud storage is an urgent problem that needs to be solved. Summary of the invention
[0006] The present invention intends to provide a cloud storage method, apparatus, device and medium based on intelligent deployment of network devices to solve the problem of how to improve the reliability of cloud storage existing in the prior art. The technical problem to be solved by the present invention is achieved through the following technical solution.
[0007] The embodiment of the present application provides a cloud storage method based on intelligent deployment of network devices, the method comprising:
[0008] Obtain the network environment information, hardware information and software information of the target network device;
[0009] When it is determined that the target network device is adapted to the cloud storage service based on the network environment information, the hardware information, and the software information, pushing the corresponding cloud storage service to the target network device;
[0010] Based on the configuration instructions for the cloud storage service, deploy cloud storage resources and cloud storage policies;
[0011] When a trigger instruction corresponding to the cloud storage is received, the data to be stored is acquired and recorded according to the cloud storage strategy, and the data to be stored is stored in the cloud storage resource.
[0012] In one embodiment of the present application, after obtaining the network environment information, hardware information and software information of the target network device, the method further includes:
[0013] Obtaining a cloud storage protocol of the target network device;
[0014] Comparing the network environment information with the cloud storage protocol to obtain compatibility between the network environment information and the cloud storage protocol;
[0015] When the compatibility between the network environment information and the cloud storage protocol meets the preset compatibility requirement, it is determined whether the target network device is adapted to the cloud storage service according to the hardware information and the software information.
[0016] In one embodiment of the present application, judging whether the target network device is adapted to the cloud storage service according to the hardware information and the software information includes:
[0017] According to the hardware information and software information, obtain the current network bandwidth, current system version and network protocol startup status of the target network device;
[0018] Determining the connection status of the target network device according to the current network bandwidth and the startup status of the network protocol;
[0019] When the connection state of the target network device satisfies a preset connection state and the current system version is greater than or equal to a preset system version, it is determined that the target network device is adapted to the cloud storage service.
[0020] In one embodiment of the present application, obtaining the current network bandwidth of the target network device according to the hardware information and the software information includes:
[0021] Obtaining the round-trip time corresponding to the round-trip of multiple detection data packets from the cloud server, and obtaining the average delay according to the round-trip time;
[0022] The current network bandwidth of the target network device is obtained according to the file sizes of the multiple detection data packets and the average delay.
[0023] In one embodiment of the present application, the step of obtaining the round trip times corresponding to the round trips of multiple detection data packets from the cloud server and obtaining the average delay according to the round trip times includes:
[0024] Setting the length of the test message in each of the detection data packets, recording the start timestamp before sending the test message, and sending each of the detection data packets to the cloud server;
[0025] Receive the end timestamp corresponding to each data packet when it is returned from the cloud server, and obtain the round-trip time according to the start timestamp and the end timestamp;
[0026] The average delay is obtained according to the round-trip time and the number of the detected data packets.
[0027] In one embodiment of the present application, the pushing the corresponding cloud storage service to the target network device further includes:
[0028] Acquire multiple cloud storage strategies corresponding to the network environment information, and an optimal cloud storage service configuration that is compatible with the target network device;
[0029] Obtaining a cloud storage deployment solution according to the multiple cloud storage strategies and the cloud storage service configuration;
[0030] A cloud storage operation interface corresponding to the cloud storage deployment solution is generated, and the cloud storage operation interface is used to receive a user's configuration instruction for the cloud storage service.
[0031] In one embodiment of the present application, the deploying of cloud storage resources and cloud storage policies based on the configuration instructions for the cloud storage service includes:
[0032] Parsing the configuration instructions for the cloud storage service to obtain service setting information of the user for the cloud storage service;
[0033] Identifying available cloud nodes and bandwidth resources, and allocating the available cloud nodes and bandwidth resources according to the service setting information;
[0034] Constructing a storage hierarchical structure according to the service setting information;
[0035] Configure encryption levels and permission control policies based on security requirements and data classification in the service setting information.
[0036] The embodiment of the present application also provides a cloud storage device based on intelligent deployment of network devices, the device comprising:
[0037] An information acquisition unit, used to acquire network environment information, hardware information and software information of a target network device;
[0038] A push unit, configured to push the corresponding cloud storage service to the target network device when it is determined that the target network device is adapted to the cloud storage service based on the network environment information, the hardware information and the software information;
[0039] A deployment unit, configured to deploy cloud storage resources and cloud storage policies based on configuration instructions for the cloud storage service;
[0040] The storage unit is used to obtain and record the data to be stored according to the cloud storage strategy when receiving the trigger instruction corresponding to the cloud storage, and store the data to be stored in the cloud storage resource.
[0041] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is run, the cloud storage method based on intelligent deployment of network devices as described in any one of the above items is executed.
[0042] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the cloud storage method based on intelligent deployment of network devices as described in any one of the above items through the computer program.
[0043] The embodiments of the present invention include the following advantages:
[0044] The cloud storage method, device, equipment and medium based on intelligent deployment of network devices provided by the embodiment of the present invention first obtain the network environment information, hardware information and software information of the target network device; then, when it is determined that the target network device is adapted to the cloud storage service based on the network environment information, hardware information and software information, the corresponding cloud storage service is pushed to the target network device; then, based on the configuration instructions for the cloud storage service, cloud storage resources and cloud storage strategies are deployed; finally, when the trigger instruction corresponding to the cloud storage is received, the data to be stored is acquired and recorded according to the cloud storage strategy, and the data to be stored is stored in the cloud storage resource. In the present invention, it is possible to intelligently determine whether the device is adapted to the cloud storage service according to the network environment information, hardware information and software information of the target network device, and automatically push the cloud storage service that is most compatible with the device, reducing the need for users to manually configure or conduct technical evaluation, making the cloud storage process more convenient and user-friendly; by automatically deploying cloud storage resources and cloud storage strategies, cloud resources can be effectively utilized, and by allocating appropriate cloud nodes and bandwidth resources, low latency and high speed of data transmission can be ensured, costs can be optimized and service quality can be improved, thereby improving the reliability of cloud storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0046] Figure 1It is a schematic diagram of an application environment of a cloud storage method based on intelligent deployment of network devices shown in an exemplary embodiment of the present application;
[0047] Figure 2 It is a flow chart of a cloud storage method based on intelligent deployment of network devices shown in an exemplary embodiment of the present application;
[0048] Figure 3 is a schematic diagram of a cloud storage device based on intelligent deployment of network devices, shown in an exemplary embodiment of the present application;
[0049] Figure 4 It is a schematic diagram of the structure of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0051] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should also be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.
[0053] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or inherent to these processes, methods, products, or apparatuses.
[0054] In one embodiment of the present application, a cloud storage method based on intelligent deployment of network devices is provided. Optionally, as an optional implementation, the cloud storage method based on intelligent deployment of network devices can be applied to, but is not limited to, Figure 1 in the environment shown. Figure 1 is a schematic diagram of an application environment of a cloud storage method based on intelligent deployment of network devices, shown in an exemplary embodiment of the present application. Figure 1 The cloud storage deployment terminal 101 may be, but is not limited to, a host computer, a desktop computer, a laptop computer, etc. with local computing capabilities. The cloud storage deployment terminal 101 may be, but is not limited to, communicating with the server 102 and the server 103 through the network. The server 102 and the server 103 may be, but are not limited to, performing operations on the database, such as writing data operations or reading data operations. The above-mentioned cloud storage deployment terminal 101 may be, but is not limited to, including a human-computer interaction screen, a processor, and a memory. The above-mentioned human-computer interaction screen may be, but is not limited to, used to display the process of cloud storage based on intelligent deployment of network devices. The above-mentioned processor may be, but is not limited to, used to respond to the above-mentioned human-computer interaction operations, perform corresponding operations, or generate corresponding instructions, and send the generated instructions to the server 103. The above-mentioned memory is used to store relevant storage data, such as network environment information, hardware information, and software information of the target network device.
[0055] As an optional method, the following steps in the cloud storage method based on intelligent deployment of network devices may be performed on the cloud storage deployment terminal 101:
[0056] Obtain the network environment information, hardware information and software information of the target network device;
[0057] When it is determined that the target network device is adapted to the cloud storage service based on the network environment information, the hardware information, and the software information, pushing the corresponding cloud storage service to the target network device;
[0058] Based on the configuration instructions for the cloud storage service, deploy cloud storage resources and cloud storage policies;
[0059] When a trigger instruction corresponding to the cloud storage is received, the data to be stored is acquired and recorded according to the cloud storage strategy, and the data to be stored is stored in the cloud storage resource.
[0060] As an optional method, the server 103 may obtain the data to be stored transmitted by the cloud storage deployment terminal 101 and then perform subsequent processing.
[0061] The above method can intelligently determine whether the device is suitable for cloud storage services based on the network environment information, hardware information and software information of the target network device, and automatically push the cloud storage service that is most compatible with the device, reducing the need for users to manually configure or conduct technical evaluations, making the cloud storage process more convenient and user-friendly; by automatically allocating cloud storage resources and cloud storage strategies, cloud resources can be effectively utilized, and by allocating appropriate cloud nodes and bandwidth resources, low latency and high speed of data transmission can be ensured, costs can be optimized, and service quality can be improved, thereby improving the reliability of cloud storage.
[0062] Optionally, in this embodiment, the cloud storage deployment terminal 101 may be a terminal device configured with a target client, which may include but is not limited to at least one of the following: a laptop, a tablet computer, a PDA, a desktop computer, etc. The target client may be a client that supports providing cloud storage applications based on intelligent deployment of network devices, such as a video client, an instant messaging client, a browser client, an education client, etc. The above network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network, and a wide area network, and the wireless network includes: Bluetooth, WIFI (wireless network communication technology) and other networks that implement wireless communication. The above server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and this embodiment does not impose any limitation on this.
[0063] As an optional example, this embodiment does not limit the execution subject of the above-mentioned cloud storage method based on intelligent deployment of network devices. Some or all of the steps of the above-mentioned cloud storage method based on intelligent deployment of network devices can be executed on the cloud storage deployment terminal 101. For example, when the cloud storage deployment terminal 101 is a desktop computer, some or all of the steps of the above-mentioned cloud storage method based on intelligent deployment of network devices can be executed on the desktop computer.
[0064] In one embodiment of the present application, a cloud storage method based on intelligent deployment of network devices is provided. Figure 2 is a flowchart of a cloud storage method based on intelligent deployment of network devices, shown in an exemplary embodiment of the present application. Figure 2 The cloud storage method based on intelligent deployment of network devices includes the following steps S210 to S240:
[0065] In step S210, the network environment information, hardware information and software information of the target network device are obtained.
[0066] Among them, network monitoring tools can be used to obtain the network environment information of the target network device, which may include IP address (Internet Protocol Address), DNS (Domain Name System), gateway, network bandwidth and other network environment information. Software information may be the operating system version. Hardware information may be the CPU (Central Processing Unit) model, memory, processor speed and storage space.
[0067] Exemplarily, by integrating network environment information, hardware information, and software information, it can be evaluated whether the target network device requires additional configuration to support the minimum requirements of the cloud storage service; if the target network device does not meet the minimum requirements, a hardware upgrade or software upgrade is performed, which not only takes into account the capacity limitations of the device, but also the network conditions, thereby avoiding service unavailability or poor performance due to device incompatibility.
[0068] In step S220, when it is determined that the target network device is adapted to the cloud storage service based on the network environment information, the hardware information, and the software information, the corresponding cloud storage service is pushed to the target network device.
[0069] For example, pushing an adapted cloud storage service based on the specific information of the device can provide a more personalized service experience and meet the needs of different devices and users.
[0070] In step S230, cloud storage resources and cloud storage policies are deployed based on the configuration instructions for the cloud storage service.
[0071] For example, allocating cloud storage resources according to the actual capabilities of the devices can avoid wasting resources. For example, for devices with stronger computing capabilities, more storage space or faster data processing speed can be allocated, while for devices with weaker computing capabilities, resource allocation can be appropriately reduced to ensure the stability and efficiency of the service.
[0072] For example, by dynamically configuring cloud storage strategies, the storage solution can be flexibly adjusted according to the actual needs of users. For example, when the network environment is good, a real-time synchronization storage strategy can be selected, while when the network environment is poor, a batch upload or offline storage strategy can be selected. This flexibility enables the system to better adapt to different usage scenarios.
[0073] For example, by setting cloud storage policies, such as data encryption and regular backup, data security and reliability are effectively improved. Data encryption can prevent unauthorized access to data during transmission and storage, while regular backup can quickly restore data when it is lost or damaged.
[0074] In step S240, when a trigger instruction corresponding to the cloud storage is received, the data to be stored is acquired and recorded according to the cloud storage strategy, and the data to be stored is stored in the cloud storage resource.
[0075] For example, specific events can be predefined to trigger the acquisition of data to be stored, such as reaching a certain data threshold or user request. Users manage cloud storage resources through simple trigger instructions, which reduces the user's learning cost and operational difficulty. Users only need to focus on the goals they want to achieve (such as storage capacity, access speed, etc.), while the specific resource configuration and implementation details are automatically completed by the system. Through automated resource allocation and intelligent storage strategies, the user experience can be significantly improved. For example, users do not need to worry about whether the data is stored safely, nor do they need to worry about data loss or inaccessibility, because the system has selected the optimal storage solution based on the device situation. Acquiring and recording the data to be stored according to the cloud storage strategy can ensure the consistency and compliance of data management, while improving the level of automation of data storage.
[0076] For example, monitoring tools can be deployed to detect cloud storage performance and data security status in real time; an alarm mechanism can also be set to immediately notify users when an abnormality is detected. The interaction between devices and cloud platforms is not limited to basic storage services, but also includes real-time monitoring and reporting of service execution, so that users can instantly obtain service status and quickly respond to possible problems, ensuring data security and immediacy, and improving system reliability and user trust.
[0077] By adopting the above-mentioned embodiments provided by the present application, it is possible to intelligently determine whether the device is adapted to the cloud storage service based on the network environment information, hardware information and software information of the target network device, and automatically push the cloud storage service that is most compatible with the device, thereby reducing the need for users to manually configure or conduct technical evaluations, making the cloud storage process more convenient and user-friendly; by automatically allocating cloud storage resources and cloud storage strategies, cloud resources can be effectively utilized, and by allocating appropriate cloud nodes and bandwidth resources, low latency and high speed of data transmission can be ensured, costs can be optimized, and service quality can be improved, thereby improving the reliability of cloud storage.
[0078] In one embodiment of the present application, after obtaining the network environment information, hardware information and software information of the target network device, the method further includes:
[0079] Obtaining a cloud storage protocol of the target network device;
[0080] Comparing the network environment information with the cloud storage protocol to obtain compatibility between the network environment information and the cloud storage protocol;
[0081] When the compatibility between the network environment information and the cloud storage protocol meets the preset compatibility requirement, it is determined whether the target network device is adapted to the cloud storage service according to the hardware information and the software information.
[0082] The cloud storage protocol may be, for example, TCP / IP, HTTP / HTTPS, and scripts may be used to automatically detect and record these cloud storage protocols.
[0083] Among them, cloud storage protocols can also include NFS (Network File System), which is used to share files in the network; SMB (Server Message Block) / CIFS (Common Internet File System), which is used to share files between Windows systems; FTP (File Transfer Protocol) / SFTP (SSH File Transfer Protocol), which is used for file transfer; RESTful API: an interface for interacting with cloud storage services; iSCSI (Internet Small Computer System Interface), which is used to create and manage storage area networks (SANs).
[0084] Exemplarily, when comparing the network environment information with the cloud storage protocol, it is possible to check whether the target network device supports the required cloud storage protocol; it is possible to evaluate whether the network bandwidth is sufficient to support the needs of the cloud storage service; it is also possible to ensure that the network delay is within an acceptable range and will not affect the speed and quality of data transmission; and it is also possible to check the network packet loss rate to ensure the reliability of data transmission.
[0085] For example, after determining that the compatibility of the network environment information and the cloud storage protocol meets the preset compatibility requirements, it is necessary to further determine whether the target network device is adapted to the cloud storage service based on the hardware information and software information. It is possible to check whether the processor performance is sufficient to support the computing requirements of the cloud storage service; it is possible to ensure that the memory size is sufficient to support the data caching requirements of the cloud storage service; it is possible to check whether the local storage capacity is sufficient to store the necessary cache data or metadata; it is also possible to ensure that the operating system supports the required cloud storage service software; it is also possible to check whether the device driver supports the hardware functions required by the cloud storage service.
[0086] In this embodiment, a comprehensive assessment is made as to whether the target network device is compatible with the cloud storage service. Only when the network environment information, hardware information, and software information all meet the preset compatibility requirements can the target network device be considered compatible with the cloud storage service. This can ensure the stability and efficiency of the cloud storage service and avoid problems caused by device incompatibility.
[0087] In one embodiment of the present application, judging whether the target network device is adapted to the cloud storage service according to the hardware information and the software information includes:
[0088] According to the hardware information and software information, obtain the current network bandwidth, current system version and network protocol startup status of the target network device;
[0089] Determining the connection status of the target network device according to the current network bandwidth and the startup status of the network protocol;
[0090] When the connection state of the target network device satisfies a preset connection state and the current system version is greater than or equal to a preset system version, it is determined that the target network device is adapted to the cloud storage service.
[0091] Among them, the preset connection status is that the network device is connected and the network protocol is enabled. If the network protocol is not enabled, a reminder instruction to enable it is issued. Network bandwidth is a key factor affecting the performance of cloud storage services. It is necessary to ensure that the device has sufficient bandwidth to support data upload and download. The current network bandwidth can ensure that the operating system version supports the functions required by the cloud storage service. The normal connection status can ensure that the network bandwidth is sufficient to support the data transmission requirements of the cloud storage service. If the current system version is not lower than the preset system version required by the cloud storage service, the device can be considered compatible in terms of software. If the device passes all the above checks, that is, the connection status is good and the system version meets the requirements, it can be determined that the target network device is adapted to the cloud storage service, and good performance and user experience can be obtained on the device.
[0092] For example, machine learning algorithms can also be used to analyze the logs and performance data of user devices to intelligently identify whether the hardware and software configurations of the device support cloud storage services, and can provide more accurate compatibility judgments and resource allocation recommendations based on historical data and pattern recognition.
[0093] In one embodiment of the present application, obtaining the current network bandwidth of the target network device according to the hardware information and the software information includes:
[0094] Obtaining the round-trip time corresponding to the round-trip of multiple detection data packets from the cloud server, and obtaining the average delay according to the round-trip time;
[0095] The current network bandwidth of the target network device is obtained according to the file sizes of the multiple detection data packets and the average delay.
[0096] When the current network bandwidth meets the minimum bandwidth requirement of cloud storage, the connection status of the target network device is normal.
[0097] In one embodiment of the present application, the step of obtaining the round trip times corresponding to the round trips of multiple detection data packets from the cloud server and obtaining the average delay according to the round trip times includes:
[0098] Setting the length of the test message in each of the detection data packets, recording the start timestamp before sending the test message, and sending each of the detection data packets to the cloud server;
[0099] Receive the end timestamp corresponding to each data packet when it is returned from the cloud server, and obtain the round-trip time according to the start timestamp and the end timestamp;
[0100] The average delay is obtained according to the round-trip time and the number of the detected data packets.
[0101] Exemplarily, a method for obtaining the average delay may include the following steps:
[0102] Initialize counter C=0 and accumulated round trip time Dtotal=0;
[0103] Send N detection data packets in a loop. The round-trip time after each detection data packet is sent and waits for a response is recorded as D[n];
[0104] Calculate D[n] for each detection packet and accumulate the total round trip time of all detection packets, and update the counter value C=N;
[0105] The average delay is obtained based on the round-trip time and the number of detected packets.
[0106] Exemplarily, cyclically sending N detection data packets, where the round trip time after each detection data packet is sent and waits for a response is recorded as D[n], may include the following steps:
[0107] Initialize N to the preset number of transmissions and set the round trip time Dtotal=0 and the counter C=0;
[0108] For each loop, mark the start timestamp timestamp1 and send a test packet testpacket of a known size;
[0109] When the received data packet is returned from the cloud server, the end timestamp timestamp2 is obtained again, and the time difference D[n]=timestamp2-timestamp1 is used to represent the round-trip time of the detection data packet sent for the nth time;
[0110] Update the count C++, Dtotal+=D[n] until N round trips are completed, completing the effective statistics of the round trip time Dtotal and the counter C.
[0111] Exemplarily, for each cycle, marking the start timestamp timestamp1 and sending a detection data packet testpacket of a predetermined size may include the following steps:
[0112] Set the length of the test message sizeofpacket to construct a test data packet with a fixed size;
[0113] Record the system start timestamp1 before the test message is officially sent;
[0114] Use the sendpacket(testpacket) method to send the test data packet to the cloud server;
[0115] Call recordtimestamp() immediately to get the start timestamp as timestamp1 for subsequent calculations.
[0116] In this embodiment, through the above steps, the current network bandwidth of the target network device can be accurately measured, and whether the device is adapted to the requirements of the cloud storage service can be determined based on the measurement results.
[0117] In one embodiment of the present application, the pushing of the corresponding cloud storage service to the target network device further includes:
[0118] Acquire multiple cloud storage strategies corresponding to the network environment information, and an optimal cloud storage service configuration that is compatible with the target network device;
[0119] Obtaining a cloud storage deployment solution according to the multiple cloud storage strategies and the cloud storage service configuration;
[0120] A cloud storage operation interface corresponding to the cloud storage deployment solution is generated, and the cloud storage operation interface is used to receive a user's configuration instruction for the cloud storage service.
[0121] Among them, multiple suitable cloud storage strategies are selected according to the network environment information, which may include but are not limited to data synchronization strategy, backup strategy, redundancy strategy, etc.
[0122] Among them, when obtaining a cloud storage deployment plan based on multiple cloud storage strategies and cloud storage service configurations, you can first combine the network environment information, hardware information, and software information with multiple cloud storage strategies; then, based on the integrated information, formulate a detailed cloud storage deployment plan, which should include storage capacity allocation, synchronization cycle, backup frequency, etc.
[0123] When generating the cloud storage operation interface corresponding to the cloud storage deployment plan, a user-friendly cloud storage operation interface should be designed. The interface should clearly display the various configuration options of the cloud storage service and enable users to configure the functions through the interface, such as selecting synchronization strategies, setting backup frequencies, etc., to ensure that users can enter configuration instructions through the interface and pass the instructions to the cloud storage service.
[0124] Exemplarily, using Web (World Wide Web) technology or native application development methods, the cloud storage operation interface is integrated into the user device or accessed through a web page, and the expected effect and service overview after the user's configuration instructions for the cloud storage service can also be displayed.
[0125] In this embodiment, the accuracy of network environment information, hardware information and software information can be ensured so that correct decisions can be made; the user experience should be considered when designing the operation interface so that the interface is concise and easy to operate; the data input by the user is ensured to be secure to prevent unauthorized access or malicious operations; and the selected cloud storage service configuration is ensured to be compatible with the target network device and to be able to operate stably.
[0126] In one embodiment of the present application, the deploying of cloud storage resources and cloud storage policies based on the configuration instructions for the cloud storage service includes:
[0127] Parsing the configuration instructions for the cloud storage service to obtain service setting information of the user for the cloud storage service;
[0128] Identifying available cloud nodes and bandwidth resources, and allocating the available cloud nodes and bandwidth resources according to the service setting information;
[0129] Constructing a storage hierarchical structure according to the service setting information;
[0130] Configure encryption levels and permission control policies based on security requirements and data classification in the service setting information.
[0131] The service setting information may include storage capacity, performance requirements, availability requirements, data backup and recovery strategies, etc. Based on the data access patterns and importance of users in the service setting information, a storage hierarchy is constructed, such as the stratification of hot data, warm data, and cold data. This helps optimize storage costs and improve data access efficiency. Based on the security requirements in the service setting information, the encryption level of the data is configured to ensure the security of the data in transmission and at rest. At the same time, according to the classification and sensitivity of the data, a fine-grained permission control strategy is set to ensure that only authorized users can access sensitive data.
[0132] Exemplarily, the service setting information includes user preference settings; identifying available cloud nodes and bandwidth resources, and allocating available cloud nodes and bandwidth resources according to the service setting information, can ensure low latency and high-speed transmission; building a storage hierarchy structure, can support hot and cold grading and different cost-effective backup methods;
[0133] Corresponding monitoring and reporting mechanisms can also be enabled.
[0134] For example, the dynamic learning and adaptation process of machine learning algorithms can also be applied. Over time, by continuously learning the interaction data between devices and network environments, the accuracy of self-optimization of device identification and cloud storage configuration can be improved to provide more personalized service deployment for different users. In addition, blockchain technology can also be used to achieve distributed management and configuration of cloud resources. Each node can automatically adjust resource allocation and data flow strategies according to the status of the entire network, improving the elasticity and reliability of the system.
[0135] For example, the deployment of cloud storage services can also be automatically completed through smart contracts, including the implementation of encryption, bandwidth allocation and data backup strategies, so as to ensure that users always receive the most optimized cloud storage services in different network environments.
[0136] For example, the network environment can be dynamically adjusted to adapt to different storage requirements through virtualized network functions (NFV), such as using virtual routing and switching technologies to adjust data paths and processing strategies according to real-time network status. In addition, a hardware abstraction layer (HAL) can be implemented in the user device, which is responsible for covering up specific hardware details so that the upper-layer cloud storage service does not directly depend on the specific hardware configuration of the device, providing a wider range of compatibility support.
[0137] It can be seen from the above embodiments that through the method in this embodiment, it is possible to intelligently determine whether the device is suitable for the cloud storage service based on the network environment information, hardware information and software information of the target network device, and automatically push the cloud storage service that is most compatible with the device, reducing the need for users to manually configure or conduct technical evaluations, making the cloud storage process more convenient and user-friendly; by automatically allocating cloud storage resources and cloud storage strategies, cloud resources can be effectively utilized, and by allocating appropriate cloud nodes and bandwidth resources, low latency and high speed of data transmission can be ensured, costs can be optimized, and service quality can be improved, thereby improving the reliability of cloud storage.
[0138] In one embodiment of the present application, a cloud storage device based on intelligent deployment of network devices is also provided. Figure 3 is a schematic diagram of a cloud storage device based on intelligent deployment of network devices, shown in an exemplary embodiment of the present application. Figure 3 , the device comprises:
[0139] The information acquisition unit 301 is used to acquire the network environment information, hardware information and software information of the target network device;
[0140] A push unit 302 is configured to push the corresponding cloud storage service to the target network device when it is determined that the target network device is adapted to the cloud storage service based on the network environment information, hardware information, and software information;
[0141] A deployment unit 303, configured to deploy cloud storage resources and cloud storage policies based on configuration instructions for the cloud storage service;
[0142] The storage unit 304 is used to obtain and record the data to be stored according to the cloud storage strategy when receiving a trigger instruction corresponding to the cloud storage, and store the data to be stored in the cloud storage resource.
[0143] The cloud storage device based on intelligent allocation of network devices in the embodiments of the present application can intelligently determine whether the device is suitable for cloud storage services based on the network environment information, hardware information and software information of the target network device, and automatically push the cloud storage service that is most compatible with the device, reducing the need for users to manually configure or conduct technical evaluations, making the cloud storage process more convenient and user-friendly; by automatically allocating cloud storage resources and cloud storage strategies, cloud resources can be effectively utilized, and by allocating appropriate cloud nodes and bandwidth resources, low latency and high speed data transmission can be ensured, thereby optimizing costs and improving service quality, thereby improving the reliability of cloud storage.
[0144] The specific embodiments of the cloud storage device based on intelligent deployment of network devices in the present application can refer to the examples shown in the above-mentioned cloud storage method based on intelligent deployment of network devices, which will not be repeated here.
[0145] In one embodiment of the present application, an electronic device for implementing the above-mentioned cloud storage method based on intelligent deployment of network devices is also provided. The electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to execute the above-mentioned cloud storage method based on intelligent deployment of network devices through the computer program.
[0146] See also Figure 4 , Figure 44 is a schematic diagram of the structure of an electronic device shown in an exemplary embodiment of the present application. The computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403, such as executing the method described in the above embodiment. In RAM 403, various programs and data required for system operation are also stored. CPU 401, ROM 402 and RAM 403 are connected to each other through bus 404. Input / output (I / O) interface 405 is also connected to bus 404.
[0147] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.
[0148] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 409, and / or installed from a removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, various functions defined in the system of the present application are executed.
[0149] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier, which carries a computer-readable computer program. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0150] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0151] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0152] Another aspect of the present application further provides a computer-readable storage medium, the computer-readable storage medium including a stored computer program, wherein the computer program executes the above-mentioned cloud storage method based on intelligent deployment of network devices when it is run. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0153] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the cloud storage method based on intelligent allocation of network devices provided in the above-mentioned various embodiments.
[0154] In the above detailed description, reference is made to the accompanying drawings, which form a part of this document. In the accompanying drawings, similar symbols typically identify similar components unless the context indicates otherwise. The illustrated embodiments described in the detailed description, drawings, and claims are not meant to be limiting. Other embodiments may be used, and other changes may be made, without departing from the spirit or scope of the subject matter presented herein.
[0155] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A cloud storage method based on intelligent deployment of network devices, characterized in that: The method comprises: Obtain the network environment information, hardware information and software information of the target network device; When it is determined that the target network device is adapted to the cloud storage service based on the network environment information, the hardware information, and the software information, pushing the corresponding cloud storage service to the target network device; Based on the configuration instructions for the cloud storage service, deploy cloud storage resources and cloud storage policies; Upon receiving a trigger instruction corresponding to the cloud storage, acquiring and recording the data to be stored according to the cloud storage strategy, and storing the data to be stored in the cloud storage resource; After obtaining the network environment information, hardware information and software information of the target network device, the method further includes: Obtaining a cloud storage protocol of the target network device; Comparing the network environment information with the cloud storage protocol to obtain compatibility between the network environment information and the cloud storage protocol; When the compatibility between the network environment information and the cloud storage protocol meets the preset compatibility requirement, judging whether the target network device is adapted to the cloud storage service according to the hardware information and the software information; The determining, based on the hardware information and the software information, whether the target network device is adapted to the cloud storage service includes: According to the hardware information and software information, obtain the current network bandwidth, current system version and network protocol startup status of the target network device; Determining the connection status of the target network device according to the current network bandwidth and the startup status of the network protocol; When the connection state of the target network device satisfies a preset connection state and the current system version is greater than or equal to a preset system version, determining that the target network device is adapted to the cloud storage service; Obtaining the current network bandwidth of the target network device according to the hardware information and the software information includes: Obtaining the round-trip time corresponding to the round-trip of multiple detection data packets from the cloud server, and obtaining the average delay according to the round-trip time; The current network bandwidth of the target network device is obtained according to the file sizes of the multiple detection data packets and the average delay.
2. The cloud storage method based on intelligent deployment of network devices according to claim 1, characterized in that: The obtaining of the round trip times corresponding to the round trips of the plurality of detection data packets from the cloud server and obtaining the average delay according to the round trip times includes: Setting the length of the test message in each of the detection data packets, recording the start timestamp before sending the test message, and sending each of the detection data packets to the cloud server; Receive the end timestamp corresponding to each data packet when it is returned from the cloud server, and obtain the round-trip time according to the start timestamp and the end timestamp; The average delay is obtained according to the round trip time and the number of the detected data packets.
3. The cloud storage method based on intelligent deployment of network devices according to claim 1, characterized in that: The pushing of the corresponding cloud storage service to the target network device also includes: Acquire multiple cloud storage strategies corresponding to the network environment information, and an optimal cloud storage service configuration that is compatible with the target network device; Obtaining a cloud storage deployment solution according to the multiple cloud storage strategies and the cloud storage service configuration; A cloud storage operation interface corresponding to the cloud storage deployment solution is generated, and the cloud storage operation interface is used to receive a user's configuration instruction for the cloud storage service.
4. The cloud storage method based on intelligent deployment of network devices according to claim 1, characterized in that: The deploying cloud storage resources and cloud storage strategies based on the configuration instructions for the cloud storage service includes: Parsing the configuration instructions for the cloud storage service to obtain service setting information of the user for the cloud storage service; Identifying available cloud nodes and bandwidth resources, and allocating the available cloud nodes and bandwidth resources according to the service setting information; Constructing a storage hierarchical structure according to the service setting information; Configure encryption levels and permission control policies based on security requirements and data classification in the service setting information.
5. A cloud storage device based on intelligent deployment of network devices, characterized in that: The device comprises: An information acquisition unit, used to acquire network environment information, hardware information and software information of a target network device; A push unit, configured to push the corresponding cloud storage service to the target network device when it is determined that the target network device is adapted to the cloud storage service based on the network environment information, the hardware information and the software information; A deployment unit, configured to deploy cloud storage resources and cloud storage policies based on configuration instructions for the cloud storage service; A storage unit, configured to obtain and record the data to be stored according to the cloud storage strategy upon receiving a trigger instruction corresponding to the cloud storage, and store the data to be stored in the cloud storage resource; After obtaining the network environment information, hardware information and software information of the target network device, the method further includes: Obtaining a cloud storage protocol of the target network device; Comparing the network environment information with the cloud storage protocol to obtain compatibility between the network environment information and the cloud storage protocol; When the compatibility between the network environment information and the cloud storage protocol meets the preset compatibility requirement, judging whether the target network device is adapted to the cloud storage service according to the hardware information and the software information; The determining, based on the hardware information and the software information, whether the target network device is adapted to the cloud storage service includes: According to the hardware information and software information, obtain the current network bandwidth, current system version and network protocol startup status of the target network device; Determining the connection status of the target network device according to the current network bandwidth and the startup status of the network protocol; When the connection state of the target network device satisfies a preset connection state and the current system version is greater than or equal to a preset system version, determining that the target network device is adapted to the cloud storage service; Obtaining the current network bandwidth of the target network device according to the hardware information and the software information includes: Obtaining the round-trip time corresponding to the round-trip of multiple detection data packets from the cloud server, and obtaining the average delay based on the round-trip time; The current network bandwidth of the target network device is obtained according to the file sizes of the multiple detection data packets and the average delay.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein the computer program executes the cloud storage method based on intelligent deployment of network devices according to any one of claims 1 to 4 when running.
7. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to execute the cloud storage method based on intelligent deployment of network devices according to any one of claims 1 to 4 through the computer program.
Citation Information
Patent Citations
Cross-protocol distribution-type cloud storage system based on operation control unit and data management method
CN105721543A
Data pushing method, device and system for cloud computing platform and medium
CN112328174A