A storage method, apparatus, device, system, and storage medium
By building a virtual domain database in the FTTR environment to manage the storage information of multiple ONUs, the problem of unused ONU storage resources is solved, and storage space utilization and file sharing across ONUs are realized, providing a safe and economical storage solution.
Patent Information
- Application Number
- CN202211475635.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-23
- Publication Date
- 2026-03-06
- Estimated Expiration
- 2042-11-23
AI Technical Summary
In an FTTR environment, the Flash space resources of each ONU are idle but not utilized, and commercial public cloud storage requires payment or has limited bandwidth, resulting in inconvenience for users' storage.
By building a database within a virtual domain to manage the storage information of multiple ONUs, and determining the file storage location based on file information and the free storage space of the ONUs, storage space utilization across ONUs can be achieved.
It effectively utilizes the ONU's idle storage space to provide a private and secure file sharing and storage solution, avoiding the costs and bandwidth limitations of commercial public clouds.
Smart Images

Figure CN116149544B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optical network communication technology, and in particular to a storage method, apparatus, device, system and storage medium. Background Technology
[0002] Most existing Fiber to the Home (FTTH) users access the operator's Optical Line Terminal (OLT) through a single Optical Network Unit (ONU). Correspondingly, the existing Gigabit Passive Optical Network (G / EPON) management model primarily uses a point-to-point (P2P) approach for ONU and service configuration, managing each ONU individually and creating different management models based on different service scenarios and requirements. This conventional G / EPON management method involves detailed service planning and complex configuration management for ONUs. While most operators and manufacturers have attempted to automate and batch manage this through common methods like TR069, fundamentally, each ONU still serves as a terminal for user service management.
[0003] With the improvement of people's living standards, the concept of Fiber to the Room (FTTR) and its corresponding practical applications have emerged, which realizes fiber to every user's room and achieves unified management of each ONU within the FTTR domain through corresponding methods.
[0004] In an FTTR environment, the ONU Flash memory resources are largely unused, as people typically use commercial public cloud storage for storage and data exchange. However, these cloud storage services are usually paid, have limited bandwidth for uploading and downloading, and may experience service interruptions at any time. Currently, there is no effective solution to this problem. Summary of the Invention
[0005] To address the existing technical problems, the main objective of this invention is to provide a storage method, apparatus, device, system, and storage medium.
[0006] To achieve the above objectives, the technical solution of the present invention is implemented as follows:
[0007] In a first aspect, the present invention provides a storage method applied to a storage system, the system comprising at least one virtual domain, each virtual domain managing multiple optical network units (ONUs); the method comprising:
[0008] A first database is constructed in a first virtual domain; the first virtual domain is any one of the at least one virtual domains; the database includes first storage information of a first ONU and second storage information of each of at least one second ONU; the first ONU is any one of the plurality of ONUs; the second ONU is any one of the plurality of ONUs other than the first ONU;
[0009] Obtain the file information of the file to be stored, and determine whether to store the file to be stored in the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU based on the file information, the first storage information and at least one second storage information.
[0010] In the above scheme, the file information includes the file's storage space; the first storage information includes a first free storage space; the second storage information includes a second free storage space; the step of determining whether to store the file to be stored in the first storage space of the first ONU and / or at least one second storage space corresponding to the second ONU based on the file information, the first storage information, and at least one second storage information includes:
[0011] The size of the space to be stored is compared with the size of the first free storage space to obtain a first result;
[0012] Based on the first result, determine whether to store the file to be stored in the first storage space of the first ONU; and / or,
[0013] The size of the space to be stored is compared with the size of each of the at least one second free storage spaces to obtain a second result;
[0014] Based on the second result, determine whether to store the file to be stored in the second storage space corresponding to at least one of the second ONUs.
[0015] In the above scheme, determining whether to store the file to be stored in the first storage space of the first ONU based on the first result includes:
[0016] If the first result indicates that the size of the space to be stored is less than or equal to the size of the first free storage space, the file to be stored is stored in the first storage space of the first ONU;
[0017] If the first result indicates that the size of the space to be stored is greater than the size of the first free storage space, the file to be stored will not be stored in the first storage space of the first ONU.
[0018] In the above scheme, determining whether to store the file to be stored in the second storage space of the at least one second ONU based on the second result includes:
[0019] If the second result indicates that the size of the space to be stored is less than or equal to the size of the second free storage space, the file to be stored is stored in the second storage space of the second ONU;
[0020] If the second result indicates that the size of the space to be stored is greater than the size of the second free storage space, but less than the total free storage space corresponding to the multiple second ONUs, then the file to be stored is stored in the second storage space of the multiple second ONUs.
[0021] If the second result indicates that the size of the space to be stored is greater than the third free storage space corresponding to the plurality of second ONUs, the file to be stored will not be stored in the second storage space of the plurality of second ONUs.
[0022] In the above scheme, if the first result indicates that the file to be stored cannot be stored in the first storage space of the first ONU and the second result indicates that the file to be stored cannot be stored in the second storage space of the at least one second ONU, the method further includes:
[0023] Determine the fourth free storage space corresponding to the first ONU and the at least one second ONU;
[0024] The size of the space to be stored is compared with the size of the fourth free storage space to obtain a third result;
[0025] If the third result indicates that the size of the space to be stored is less than or equal to the size of the fourth free storage space corresponding to the first ONU and the at least one second ONU, the file to be stored is stored in the first storage space of the first ONU and the second storage space of the at least one second ONU.
[0026] If the third result indicates that the size of the space to be stored is greater than the size of the fourth free storage space corresponding to the first ONU and the at least one second ONU, the file to be stored will not be stored in the first storage space of the first ONU and the second storage space of the at least one second ONU.
[0027] In the above scheme, when the file to be stored is stored in the first storage space of the first ONU and / or the second storage space corresponding to at least one second ONU, the method further includes:
[0028] Update the first and / or second stored information in the database;
[0029] Configure the updated database to at least one of the second ONUs.
[0030] In the above scheme, the method further includes:
[0031] If the second ONU is offline, the status of the free storage space in the second storage information is determined to be unavailable.
[0032] In the above scheme, the method further includes:
[0033] Send the first identity information of the first ONU and the first storage information of the first network disk corresponding to the first ONU to the database;
[0034] Obtain the second identity information of the second ONU and the second storage information of the second network disk corresponding to the second ONU;
[0035] The first database is constructed based on the first identity information, the second identity information, the first storage information, and the second storage information.
[0036] In the above scheme, obtaining the second identity information of the second ONU and the second storage information of the second network disk corresponding to the second ONU includes:
[0037] Send a first query request to the second ONU; the first query request is used to query the second identity information and the second stored information;
[0038] Receive the first information sent by the second ONU based on the response to the first query request, and determine the second identity information and the second storage information based on the first information.
[0039] In the above scheme, obtaining the file information of the file to be stored includes:
[0040] Determine the user's network address;
[0041] The file information is obtained based on the network address.
[0042] In a second aspect, the present invention also provides a storage system, the system comprising an optical line terminal (OLT), an optical splitter, and optical network units (ONUs); the OLT includes at least one virtual domain, each virtual domain in which manages multiple optical network units (ONUs); the optical splitter is connected to the OLT and the multiple ONUs respectively.
[0043] A first ONU is used to construct a first database in a first virtual domain; the first virtual domain is any one of the at least one virtual domains; the database includes first storage information of the first ONU and second storage information of each of the at least one second ONU; the first ONU is any one of the plurality of ONUs; the second ONU is any one of the plurality of ONUs other than the first ONU; file information of a file to be stored is obtained, and based on the file information, the first storage information and at least one of the second storage information, it is determined whether to store the file to be stored in the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU.
[0044] Thirdly, the present invention also provides a storage device applied to a storage system, the system including at least one virtual domain, each virtual domain managing multiple optical network units (ONUs); the device includes: a construction unit and a judgment unit, wherein...
[0045] The construction unit is configured to construct a first database in a first virtual domain; the first virtual domain is any one of the at least one virtual domains; the database includes first storage information of a first ONU and second storage information of each of at least one second ONU; the first ONU is any one of the plurality of ONUs; the second ONU is any one of the plurality of ONUs other than the first ONU;
[0046] The judgment unit is used to obtain file information of the file to be stored, and based on the file information, the first storage information and at least one second storage information, to determine whether to store the file to be stored in the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU.
[0047] Fourthly, the present invention also provides a storage medium storing a computer program thereon; when the computer program is executed by a processor, it implements the steps of any of the methods described above.
[0048] Fifthly, the present invention also provides a storage device comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor, when running the computer program, performs the steps of any of the methods described above.
[0049] This invention provides a storage method, apparatus, device, system, and storage medium. The method is applied to a storage system, which includes at least one virtual domain, each of which manages multiple Optical Network Units (ONUs). The method includes: constructing a first database in a first virtual domain; the first virtual domain being any one of the at least one virtual domains; the database including first storage information of a first ONU and second storage information of each of at least one second ONU; the first ONU being any one of the multiple ONUs; and the second ONU being any ONU other than the first ONU; obtaining file information of a file to be stored; and determining, based on the file information, the first storage information, and at least one of the second storage information, whether to store the file to be stored in the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU. By constructing a database within a virtual domain and managing the storage space of the ONUs within that virtual domain, the technical solution of this invention fully utilizes the idle space resources within the ONUs. Attached Figure Description
[0050] Figure 1 A schematic flowchart of a storage method provided in an embodiment of the present invention;
[0051] Figure 2 A schematic diagram illustrating a storage method provided in an embodiment of the present invention, comprising a virtual domain of a first ONU and a plurality of second ONUs;
[0052] Figure 3 A schematic diagram of the structure of a storage system provided in an embodiment of the present invention;
[0053] Figure 4 This is a schematic diagram of the structure of a storage device provided in an embodiment of the present invention;
[0054] Figure 5 This is a schematic diagram of a hardware structure of a storage device according to an embodiment of the present invention. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the specific technical solutions of the invention will be further described in detail below with reference to the accompanying drawings of the embodiments of the present invention. The following embodiments are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0056] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.
[0057] Figure 1 A schematic flowchart of a storage method provided in an embodiment of the present invention; as shown Figure 1As shown, the method is applied to a storage system, the system including at least one virtual domain, each of the at least one virtual domain managing multiple optical network units (ONUs); the method includes:
[0058] S101: Construct a first database in a first virtual domain; the first virtual domain is any one of the at least one virtual domains; the database includes first storage information of a first ONU and second storage information of each of at least one second ONU; the first ONU is any one of the plurality of ONUs; the second ONU is any one of the plurality of ONUs other than the first ONU;
[0059] It should be noted that the storage system mentioned here can be an ONU storage system. As an example, this ONU storage system may include an ONU storage system within an FTTR domain. The at least one virtual domain can be understood as one or more virtual domains. This virtual domain can be a virtualized domain, created through an OLT. As an example, this virtual domain can be called an ONU domain. Each virtual domain in the at least one virtual domain manages multiple Optical Network Units (ONUs). This can be understood as each virtual domain in the at least one virtual domain being able to uniformly manage multiple ONUs belonging to that virtual domain. In practical applications, the multiple ONUs can be deployed in the same user's home. The specific number of ONUs can be determined according to the actual situation and is not limited here. As an example, the specific number of ONUs can be four, with one deployed in each room of the same user's home.
[0060] The first ONU is any one of the plurality of ONUs; the second ONU is any one of the plurality of ONUs other than the first ONU.
[0061] It should be noted that the first ONU can be determined according to the actual situation, and no limitation is made here. As an example, the first ONU can be the master ONU, and the second ONU can be the slave ONU.
[0062] A first database is constructed in a first virtual domain; the first virtual domain is any one of the at least one virtual domains; the database includes first storage information of a first ONU and second storage information of each of at least one second ONU; wherein, both the first storage information and the second storage information can be the disk space size, free disk space size, disk space directory, etc. of the ONU, for example, the ONU flash disk space size. As an example, the database includes the disk space size and free disk space size of the first ONU and the free disk size and free disk space size corresponding to at least one second ONU.
[0063] To facilitate understanding, here is an example of a practical application scenario: the OLT creates at least one ONU domain, which contains a first ONU and multiple second ONUs. The first ONU creates a first database within this ONU domain, which includes the disk information of the first ONU and the disk information corresponding to the multiple second ONUs.
[0064] S102: Obtain the file information of the file to be stored, and determine whether to store the file to be stored in the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU based on the file information, the first storage information and at least one second storage information.
[0065] It should be noted that the file information can be understood as any information related to a file, without limitation. As an example, file information may include filename, file length, etc. In specific applications, obtaining the file information of the file to be stored can be done by obtaining the storage space required for the file to be stored. Determining whether to store the file to be stored in the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU based on the file information, the first storage information, and at least one second storage information can be done by comparing the storage space required for the file to be stored with the first storage space of the first ONU and the second storage space corresponding to the at least one second ONU, and obtaining a comparison result. Based on the comparison result, determining whether to store the file to be stored in the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU can be made.
[0066] To facilitate understanding, here is an example of a practical application scenario: the first ONU obtains the storage space required for the file to be stored, compares it with the disk space of the first ONU and the disk space of at least one second ONU, and obtains the comparison result; based on the comparison result, it determines whether to store the file in the disk space of the first ONU and / or the disk space of at least one second ONU.
[0067] In an optional embodiment of the present invention, the file information includes a file's storage space; the first storage information includes a first free storage space; the second storage information includes a second free storage space; the step of determining whether to store the file to be stored in the first storage space of the first ONU and / or the second storage space corresponding to at least one second ONU based on the file information, the first storage information, and at least one second storage information includes: comparing the size of the storage space to be stored with the size of the first free storage space to obtain a first result; determining whether to store the file to be stored in the first storage space of the first ONU based on the first result; and / or, comparing the size of the storage space to be stored with the size of each of the at least one second free storage space to obtain a second result; determining whether to store the file to be stored in the second storage space corresponding to the at least one second ONU based on the second result.
[0068] It should be noted that comparing the size of the space to be stored with the size of the first free storage space to obtain a first result can also mean comparing the size of the space to be stored with the size of the free storage space of the main ONU, resulting in the first result that the size of the space to be stored is less than or equal to the size of the free storage space of the main ONU, or the size of the space to be stored is greater than the size of the free storage space of the main ONU. For ease of understanding, the size of the space to be stored can be the disk space required by the file to be stored, and the size of the first free storage space can be the free disk space of the main ONU.
[0069] Based on the first result, it can be determined whether to store the file to be stored in the first storage space of the first ONU; or it can be determined whether to store the file to be stored in the disk space of the main ONU based on the first result that the size of the storage space to be stored is less than or equal to the size of the free storage space of the main ONU, or the size of the storage space to be stored is greater than the size of the free storage space of the main ONU.
[0070] The size of the space to be stored is compared with the size of each of the at least one second free storage space to obtain a second result; alternatively, instead of comparing the size of the space to be stored with the free disk space of the master ONU, the size of the space to be stored is compared with the free disk space of at least one slave ONU to obtain a second result where the size of the space to be stored is less than or equal to the free disk space of at least one slave ONU, or the size of the space to be stored is greater than the free disk space of at least one slave ONU; alternatively, the size of the space to be stored is compared with the free disk space of the master ONU to obtain a first result where the size of the space to be stored is less than or equal to the free disk space of the master ONU, or the size of the space to be stored is greater than the free disk space of the master ONU, and then... The size of the space to be stored is compared with the free disk space size of at least one slave ONU to obtain a second result: the size of the space to be stored is less than or equal to the free disk space size of at least one slave ONU, or the size of the space to be stored is greater than the free disk space size of at least one slave ONU. Alternatively, the size of the space to be stored can be compared simultaneously with the free disk space size of the master ONU and the free disk space size of at least one slave ONU to obtain a first result: the size of the space to be stored is less than or equal to the free disk space size of the master ONU, or the size of the space to be stored is greater than the free disk space size of the master ONU, and a second result: the size of the space to be stored is less than or equal to the free disk space size of at least one slave ONU, or the size of the space to be stored is greater than the free disk space size of at least one slave ONU.
[0071] Based on the second result, it can be determined whether to store the file to be stored in the second storage space corresponding to the at least one second ONU; or it can be determined whether to store the file to be stored in the disk space of the at least one ONU based on the second result that the size of the storage space is less than or equal to the size of the free disk space of the at least one ONU, or the size of the storage space is greater than the size of the free disk space of the at least one ONU.
[0072] In an optional embodiment of the present invention, determining whether to store the file to be stored in the first storage space of the first ONU based on the first result includes: storing the file to be stored in the first storage space of the first ONU if the first result indicates that the size of the storage space is less than or equal to the size of the first free storage space; and not storing the file to be stored in the first storage space of the first ONU if the first result indicates that the size of the storage space is greater than the size of the first free storage space.
[0073] It should be noted that determining whether to store the file to be stored in the first storage space of the first ONU based on the first result can be understood as determining whether to store the file to be stored in the disk space of the main ONU based on the first result that the size of the storage space is less than or equal to the size of the free disk space of the main ONU, or the size of the storage space is greater than the size of the free disk space of the main ONU.
[0074] If the first result indicates that the size of the storage space to be stored is less than or equal to the size of the first free storage space, the file to be stored is stored in the first storage space of the first ONU; this can be understood as the file to be stored being stored in the disk space of the main ONU when the disk space required for the file to be stored is less than or equal to the free disk space of the main ONU.
[0075] If the first result indicates that the size of the storage space to be stored is greater than the size of the first free storage space, the file to be stored will not be stored in the first storage space of the first ONU; this can be understood as the file to be stored not being stored in the disk space of the main ONU when the disk space required by the file to be stored is greater than the free disk space of the main ONU.
[0076] In an optional embodiment of the present invention, determining whether to store the file to be stored in the second storage space of the at least one second ONU based on the second result includes: storing the file to be stored in the second storage space of the second ONU if the second result indicates that the size of the space to be stored is less than or equal to the size of the second free storage space; storing the file to be stored in the second storage space of the multiple second ONUs if the second result indicates that the size of the space to be stored is greater than the size of the second free storage space and less than the total free storage space corresponding to the multiple second ONUs; and not storing the file to be stored in the second storage space of the multiple second ONUs if the second result indicates that the size of the space to be stored is greater than the third free storage space corresponding to the multiple second ONUs.
[0077] It should be noted that determining whether to store the file to be stored in the second storage space of the at least one second ONU based on the second result can be understood as determining whether to store the file to be stored in the disk space of the at least one second ONU based on the second result that the size of the storage space is less than or equal to the size of the free disk space of the at least one second ONU, or the size of the storage space is greater than the size of the free disk space of the at least one second ONU.
[0078] If the second result indicates that the size of the space to be stored is less than or equal to the size of the second free storage space, the file to be stored is stored in the second storage space of the second ONU; this can be understood as the file to be stored being stored in the disk space of the slave ONU when the disk space required for the file to be stored is less than or equal to the free disk space of any slave ONU.
[0079] If the second result indicates that the size of the space to be stored is greater than the size of the second free storage space, but less than the total free storage space corresponding to the multiple second ONUs, then the file to be stored is stored in the second storage space of the multiple second ONUs. This can be understood as follows: when the disk space required by the file to be stored is greater than the free disk space of any slave ONU, but less than the total free disk space of the multiple slave ONUs, the file to be stored is segmented and stored in the disk space of the multiple slave ONUs. The segmentation method can be that all slave ONUs are arranged in ascending order of free disk space size. When the total free disk space of the minimum number of slave ONUs meets the storage space required by the file to be stored, the file to be stored is preferentially stored in the disk space of the corresponding number of slave ONUs.
[0080] If the second result indicates that the size of the storage space to be stored is greater than the third free storage space corresponding to the plurality of second ONUs, the file to be stored will not be stored in the second storage space of the plurality of second ONUs; this can be understood as the disk space required for the file to be stored being greater than the total free disk space of the plurality of slave ONUs, and the file to be stored will not be stored in the disk space of the plurality of slave ONUs.
[0081] In an optional embodiment of the present invention, if the first result indicates that the file to be stored cannot be stored in the first storage space of the first ONU and the second result indicates that the file to be stored cannot be stored in the second storage space of the at least one second ONU, the method further includes: determining a fourth free storage space corresponding to the first ONU and the at least one second ONU; comparing the size of the space to be stored with the size of the fourth free storage space to obtain a third result; if the third result indicates that the size of the space to be stored is less than or equal to the size of the fourth free storage space corresponding to the first ONU and the at least one second ONU, storing the file to be stored in the first storage space of the first ONU and the second storage space of the at least one second ONU; if the third result indicates that the size of the space to be stored is greater than the size of the fourth free storage space corresponding to the first ONU and the at least one second ONU, not storing the file to be stored in the first storage space of the first ONU and the second storage space of the at least one second ONU.
[0082] It should be noted that when the first result indicates that the file to be stored cannot be stored in the first storage space of the first ONU and the second result indicates that the file to be stored cannot be stored in the second storage space of the at least one second ONU, it can be understood that the disk space required for the file to be stored is greater than the free disk space of the master ONU and also greater than the total free disk space of the multiple slave ONUs.
[0083] If the third result indicates that the size of the storage space to be stored is less than or equal to the size of the fourth free storage space corresponding to the first ONU and the at least one second ONU, then the file to be stored is stored in the first storage space of the first ONU and the second storage space of the at least one second ONU. This can be understood as follows: when the disk space required by the file to be stored is less than or equal to the total free disk space of the master ONU and slave ONU, the file to be stored is stored in the disk spaces corresponding to the master ONU and slave ONU respectively. As an example, the file to be stored can be segmented and stored in the disk spaces corresponding to the master ONU and slave ONU. The segmentation method can be to sort the free disk spaces of all ONUs in the virtual domain in ascending order, divide the file to be stored according to the size of the free disk space of each ONU, and then store it in the corresponding ONU disk space. Here, there is no need to distinguish between the master ONU and slave ONU.
[0084] In an optional embodiment of the present invention, when the file to be stored is stored in the first storage space of the first ONU and / or the second storage space corresponding to at least one second ONU, the method further includes: updating the first storage information and / or the second storage information in the database; and configuring the updated database to at least one second ONU.
[0085] It should be noted that when the file to be stored is stored in the first storage space of the first ONU and / or the second storage space corresponding to at least one of the second ONUs, it can be understood that when the file is stored in the ONU disk space within the virtual domain, the ONU can be either the master ONU or the slave ONU.
[0086] Updating the first storage information and / or the second storage information in the database, and configuring the updated database to at least one of the second ONUs, can be understood as follows: when a file is stored in the disk space of the master ONU, the data in the disk space and disk space directory of the master ONU is updated; when a file is stored in the disk space of the slave ONU, the data in the disk space and disk space directory of the slave ONU is updated; when a file is stored in both the master ONU and the slave ONU, the data in the disk space and disk space directory of both the master ONU and the slave ONU are updated. After the data in the disk space and disk space directory of each ONU is updated, the master ONU copies the updated database to each slave ONU.
[0087] In an optional embodiment of the present invention, the method further includes: determining that the status of the free storage space in the second storage information is unavailable when the second ONU is offline.
[0088] It should be noted that when the second ONU is offline, determining the status of the free storage space in the second storage information as unavailable can be understood as marking the disk space corresponding to the slave ONU as unavailable when the slave ONU in the virtual domain does not respond. As an example, this can be understood as the master ONU periodically sending query messages to the slave ONU in the virtual domain. When the query message times out (this time can be 3 seconds), and the slave ONU does not respond, the master ONU marks the disk space of this slave ONU as unavailable.
[0089] In an optional embodiment of the present invention, the method further includes: sending the first identity information of the first ONU and the first storage information of the first cloud drive corresponding to the first ONU to the database; obtaining the second identity information of the second ONU and the second storage information of the second cloud drive corresponding to the second ONU; and constructing the first database based on the first identity information, the second identity information, the first storage information, and the second storage information.
[0090] It should be noted that sending the first identity information of the first ONU and the first storage information of the first network disk corresponding to the first ONU to the database can be understood as the first ONU sending the disk space, free disk space, and disk space directory corresponding to its own device identity to the database created by the first ONU.
[0091] The second identity information of the second ONU and the second storage information of the second network disk corresponding to the second ONU are obtained. This can be understood as the master ONU obtaining the disk space, free disk space, and disk space directory corresponding to the device identity of the slave ONU, and distinguishing slave ONU devices in the virtual domain based on the device identity.
[0092] The first database is constructed based on the first identity information, the second identity information, the first storage information, and the second storage information. This can be understood as the first ONU establishing a mapping relationship between the device identity identifiers of all ONUs in the virtual domain and their corresponding disk space, free disk space, and disk space directory, and constructing the database based on the mapping relationship.
[0093] In an optional embodiment of the present invention, obtaining the second identity information of the second ONU and the second storage information of the second network disk corresponding to the second ONU includes: sending a first query request to the second ONU; the first query request is used to query the second identity information and the second storage information; receiving first information sent by the second ONU based on the response of the first query request, and determining the second identity information and the second storage information according to the first information.
[0094] It should be noted that obtaining the second identity information of the second ONU and the second storage information of the second network disk corresponding to the second ONU can be understood as the master ONU obtaining the disk space, free disk space, and disk space directory corresponding to the device identity of the slave ONU.
[0095] Send a first query request to the second ONU; the first query request is used to query the second identity information and the second storage information; it can be understood that the master ONU sends a query request to the slave ONU to obtain the slave ONU's device identity identifier and device disk space, free disk space, and disk space directory.
[0096] The system receives first information from the second ONU in response to the first query request, and determines the second identity information and the second storage information based on the first information. This can be understood as the ONU responding to the query request and sending its own device identity identifier, device disk space, free disk space, and disk space directory to the master ONU. The master ONU receives the device identity identifier, device disk space, free disk space, and disk space directory sent by the ONU.
[0097] In an optional embodiment of the present invention, obtaining the file information of the file to be stored includes: determining the user's network address; and obtaining the file information based on the network address.
[0098] It should be noted that obtaining the file information of the file to be stored can be understood as obtaining the file name, file size, etc. of the file to be stored.
[0099] Determine the user's network address; this can be understood as determining the user's Internet Protocol address (IP), file storage network protocol port, etc.
[0100] Obtaining the file information based on the network address can be understood as the main ONU obtaining the file size of the file to be stored based on the user's IP address.
[0101] This invention provides a storage method that constructs a first database in a first virtual domain. The first virtual domain is any one of at least one virtual domains. The database includes first storage information of a first ONU and second storage information of each of at least one second ONU. The first ONU is any one of a plurality of ONUs, and the second ONU is any ONU other than the first ONU. The method involves obtaining file information of a file to be stored, and determining whether to store the file to be stored in the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU based on the file information, the first storage information, and at least one second storage information. This method can be used in FTTR (Flexible Transfer Transmission) scenarios with multiple ONUs. By virtualizing a controlled entity (virtual domain), it indirectly manages multiple physical ONUs scattered in different rooms. It utilizes the disks of the ONUs within the virtual domain to create a cloud disk for user use, enabling file sharing between different rooms. Since the cloud disk is physically located at the user's location, it offers greater privacy and security compared to commercial public cloud disks.
[0102] To understand the embodiments of the present invention, the example storage method here is specifically an implementation method of an ONU cloud disk under a virtual domain. It is assumed that the first virtual domain manages four ONUs, denoted as ONU1, ONU2, ONU3, and ONU4; wherein, ONU1 is the first ONU, which can also be called the master ONU; and ONU2, ONU3, and ONU4 are all second ONUs, which can also be called slave ONUs. The specific implementation scheme of this cloud disk may include four parts: establishing and maintaining a cloud disk file system management database, cloud disk file operations, cloud disk space expansion, and cloud disk recycling. The specific process is as follows:
[0103] I. Establishing and maintaining the cloud disk file system management database
[0104] The database should include information such as cloud disk size, used disk size, remaining space, free disk size for each ONU within the domain, used disk space directory, file directory / file name, file size, and save location / ONU, etc., with the main ONU maintaining the cloud disk file management database.
[0105] The maintenance of this database relies on the following implementation (for example, an FTTR domain consisting of one master ONU and three slave ONUs):
[0106] 1. Main ONU: Broadcasts a query for ID (Identity Document) information, total disk size, free disk size, used disk space directories, files, and other resource details;
[0107] 2.1 From ONU1: Based on the file management database content, unicast response report ID, total disk size, free disk size, used disk space directory, and specific file resource content;
[0108] 2.2 From ONU2: Based on the file management data content, unicast response report ID, total disk size, free disk size, used disk space directory, and file resource details;
[0109] 2.3 From ONU3: Based on the file management data content, unicast response report ID, total disk size, free disk size, used disk space directory, and specific file resource content;
[0110] 3. After receiving the response messages from each slave ONU, the master ONU updates the file management database according to the message content and copies the updated file management database to each slave ONU.
[0111] II. Cloud Drive File Operations
[0112] 1. File addition:
[0113] Get the user's IP address, the network protocol port for file storage, the file name, and the file length;
[0114] The master ONU writes the file to one or more slave ONU disks based on the file size and the remaining space reported by each ONU in the domain.
[0115] Compare the file length with the remaining space of each ONU in the FTTR field (from smallest to largest). If any ONU has a remaining space greater than or equal to the file length, select that ONU as the destination for this file write. If no ONU has a remaining space greater than or equal to the file length, select the ONUs that can hold the file as the destination for this file write.
[0116] The folder information record generated by writing files to multiple ONUs in segments is as follows: folder name / file name / total file length / ONU device identification information / number of ONUs stored / storage length / starting address of the ONU disk / offset address of the stored file.
[0117] Taking a user uploading a folder containing three files as an example, after size comparison and calculation, it is determined that two of the files need to be stored on the primary ONU's disk space, and the third folder needs to be stored in segments on two secondary ONUs. The folder information in the database will then include four records:
[0118] Record 1: Folder name / file name / total file length 5000 / ONU ID1 / number of ONUs stored is 1 / storage length 5000 / disk starting address of stored ONUs / offset address of stored file is 0;
[0119] Record 2: Folder name / file name / total file length 5000 / ONU ID1 / number of ONUs stored is 1 / storage length 5000 / disk starting address of stored ONUs / offset address of stored file is 0;
[0120] Record 3: Folder name / file name / total file length 4000 / ONU ID2 / number of ONUs stored is 2 / storage length is 1000 / disk starting address of stored ONUs / offset address of stored file is 0;
[0121] Record 4: Folder name / file name / total file length 4000 / ONU ID3 / number of ONUs stored is 2 / storage length is 3000 / disk starting address of stored ONUs / offset address of stored file is 1000;
[0122] If no suitable write destination is found, inform the user that no space is available.
[0123] otherwise:
[0124] According to the corresponding network file protocol, the user file is segmented and transferred from the user's IP address to the master ONU's memory, and then written to the corresponding destination ONU's memory before being stored in flash / disk; or the user file is directly segmented and written to the memory of each destination ONU before being stored in flash / disk. After writing, a successful write notification is sent to the user; the master ONU updates the cloud disk file system management database and replicates the updated file management database to each slave ONU.
[0125] 2. File update:
[0126] Similar to the file addition process, it prioritizes saving at the original address and can roll back to the state before the file was updated in the event of a write failure.
[0127] 3. File deletion
[0128] The system notifies the corresponding ONUs within the domain to delete file content; the master ONU updates the cloud disk file system management database and copies the updated file management database to each slave ONU.
[0129] III. Cloud Disk Space Expansion
[0130] When users need to expand the cloud disk space, they can connect the corresponding storage medium through an ONU with a USB interface.
[0131] IV. Cloud Disk Recycling
[0132] When an ONU in the domain goes offline, the primary ONU detects that the query message has timed out, updates the cloud disk file management system database with the relevant content of that ONU, and marks the corresponding file content as unavailable.
[0133] When a user confirms that a certain ONU has been permanently removed from service, they can choose to destroy the cloud disk content or transfer it to other ONUs.
[0134] In this embodiment of the invention, considering that in an FTTR scenario, user ONUs and other terminals are scattered across various rooms, with each ONU having varying amounts of wasted disk space, the virtual domain network of the FTTR and the disks within that virtual domain can be used to create a cloud disk for user use. For example, a user in room A can store shared files / data on this cloud disk, which can then be used in room B. This fully utilizes the physical resources of the FTTR domain and uses the ONU's cloud disk as the user's private cloud disk, providing better privacy.
[0135] Based on the same inventive concept as described above, Figure 2 This is a schematic diagram of a storage method provided in an embodiment of the present invention, which includes a virtual domain comprising a first ONU and a plurality of second ONUs. The first ONU is referred to as ONU1, which is the master ONU. There are three second ONUs, namely ONU2, ONU3, and ONU4, which are all slave ONUs.
[0136] Based on the same inventive concept as described above, Figure 3 This is a schematic diagram of a storage system provided in an embodiment of the present invention. The system includes an optical line terminal (OLT), an optical splitter, and optical network units (ONUs). The OLT includes at least one virtual domain, and each virtual domain manages multiple ONUs. The optical splitter is connected to the OLT and the multiple ONUs respectively.
[0137] The first ONU is used to construct a first database in a first virtual domain; the first virtual domain is any one of the at least one virtual domains; the database includes first storage information of the first ONU and second storage information of each of the at least one second ONU; the first ONU is any one of the plurality of ONUs; the second ONU is any one of the plurality of ONUs other than the first ONU; file information of the file to be stored is obtained, and based on the file information, the first storage information and at least one of the second storage information, it is determined whether to store the file to be stored in the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU.
[0138] It should be noted that, in Figure 3There are a total of n ONUs, namely ONU1, ..., ONUm, ..., ONUn shown. Among them, m (m < n) ONUs are deployed in a user's home, one in each room. The status of the m ONUs can be the same or different. m can be determined according to the actual situation and is not limited here. As an example, m can be 4. Of course, the number of ONUs can also be 10, etc., and can be set according to needs, and is not specifically limited here.
[0139] Based on the same inventive concept as described above, Figure 4 FIG. 5 is a schematic structural diagram of a storage device provided by an embodiment of the present invention. The device 400 is applied to a storage system. The system includes at least one virtual domain, and each virtual domain in the at least one virtual domain manages multiple optical network units ONUs. The device 400 includes: a construction unit 401 and a judgment unit 402, where,
[0140] The construction unit 401 is configured to construct a first database in a first virtual domain. The first virtual domain is any one of the at least one virtual domain. The database includes first storage information of a first ONU and second storage information of each of at least one second ONU. The first ONU is any one of the multiple ONUs. The second ONU is any one of the multiple ONUs other than the first ONU.
[0141] The judgment unit 402 is configured to obtain file information of a file to be stored, and determine whether to store the file to be stored in a first storage space of the first ONU and / or a second storage space corresponding to the at least one second ONU based on the file information, the first storage information, and at least one of the second storage information.
[0142] In some embodiments, the file information includes the storage space to be stored of the file. The first storage information includes a first free storage space. The second storage information includes a second free storage space. The judgment unit 402 is further configured to compare the size of the storage space to be stored with the size of the first free storage space to obtain a first result, and determine whether to store the file to be stored in the first storage space of the first ONU according to the first result; and / or, compare the size of the storage space to be stored with the size of each second storage space in the at least one second free storage space to obtain a second result, and determine whether to store the file to be stored in the second storage space corresponding to the at least one second ONU according to the second result.
[0143] In some embodiments, the storage device further includes a determining unit for determining whether to store the file to be stored in the first storage space of the first ONU based on the first result. The determining unit is configured to store the file to be stored in the first storage space of the first ONU if the first result indicates that the size of the storage space is less than or equal to the size of the first free storage space; and not store the file to be stored in the first storage space of the first ONU if the first result indicates that the size of the storage space is greater than the size of the first free storage space.
[0144] In some embodiments, the determining unit is further configured to: store the file to be stored in the second storage space of the at least one second ONU if the second result indicates that the size of the storage space is less than or equal to the size of the second free storage space; store the file to be stored in the second storage space of the multiple second ONUs if the second result indicates that the size of the storage space is greater than the size of the second free storage space and less than the total free storage space corresponding to the multiple second ONUs; and not store the file to be stored in the second storage space of the multiple second ONUs if the second result indicates that the size of the storage space is greater than the third free storage space corresponding to the multiple second ONUs.
[0145] In some embodiments, if the first result indicates that the file to be stored cannot be stored in the first storage space of the first ONU and the second result indicates that the file to be stored cannot be stored in the second storage space of the at least one second ONU, the determining unit is further configured to determine a fourth free storage space corresponding to the first ONU and the at least one second ONU; the judging unit 402 is further configured to compare the size of the space to be stored with the size of the fourth free storage space to obtain a third result; the determining unit is further configured to store the file to be stored in the first storage space of the first ONU and the second storage space of the at least one second ONU if the third result indicates that the size of the space to be stored is less than or equal to the size of the fourth free storage space corresponding to the first ONU and the at least one second ONU; and not store the file to be stored in the first storage space of the first ONU and the second storage space of the at least one second ONU if the third result indicates that the size of the space to be stored is greater than the size of the fourth free storage space corresponding to the first ONU and the at least one second ONU.
[0146] In some embodiments, when the file to be stored is stored in the first storage space of the first ONU and / or the second storage space corresponding to at least one second ONU, the storage device further includes an update unit and a configuration unit, wherein the update unit is used to update the first storage information and / or the second storage information in the database, and the configuration unit is used to configure the updated database to at least one second ONU.
[0147] In some embodiments, the storage device further includes a sending unit, which is configured to send the first identity information of the first ONU and the first storage information of the first network disk corresponding to the first ONU to the database; the construction unit 401 is further configured to obtain the second identity information of the second ONU and the second storage information of the second network disk corresponding to the second ONU; and construct the first database based on the first identity information, the second identity information, the first storage information, and the second storage information.
[0148] In some embodiments, when obtaining the second identity information of the second ONU and the second storage information of the second network disk corresponding to the second ONU, the sending unit is further configured to send a first query request to the second ONU; the first query request is used to query the second identity information and the second storage information; the storage device further includes a receiving unit, which is configured to receive first information sent by the second ONU based on the response to the first query request, and determine the second identity information and the second storage information according to the first information.
[0149] In some embodiments, the storage device further includes a determining unit for obtaining file information of the file to be stored, and the determining unit is further configured to determine the user's network address; the determining unit 402 is further configured to obtain the file information based on the network address.
[0150] It should be noted that the storage device provided in the embodiments of the present invention and the storage method provided in the aforementioned embodiments of the present invention belong to the same inventive concept. The meanings of the terms appearing here have been explained in detail above and will not be repeated here.
[0151] This invention also provides a storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0152] This invention also provides a storage device, the storage device comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein when the processor runs the computer program, it executes the steps of the method embodiments described above stored in the memory.
[0153] Figure 5 This is a schematic diagram of a hardware structure of a storage device according to an embodiment of the present invention. The storage device 50 includes at least one processor 501 and a memory 502. Optionally, the storage device 50 may further include at least one communication interface 503. The various components in the storage device 50 are coupled together through a bus system 504. It is understood that the bus system 504 is used to realize the connection and communication between these components. In addition to a data bus, the bus system 504 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 5 The general designated all buses as Bus System 504.
[0154] It is understood that memory 502 can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Sync Link Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memory 502 described in this embodiment of the invention is intended to include, but is not limited to, these and any other suitable types of memory.
[0155] The memory 502 in this embodiment of the invention is used to store various types of data to support the operation of the storage device 50. Examples of such data include any computer program for operation on the storage device 50, and programs implementing the methods of this embodiment of the invention may be contained in the memory 502.
[0156] The methods disclosed in the above embodiments of the present invention can be applied to or implemented by processor 501. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of the present invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory. The processor reads information from the memory and, in conjunction with its hardware, completes the steps of the aforementioned method.
[0157] In an exemplary embodiment, the storage device 50 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the methods described above.
[0158] In the several embodiments provided by this invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms. The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units; some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs. In addition, all functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0159] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention.
Claims
1. A storage method characterized by comprising: The application is applied to a storage system, the system comprising at least one virtual domain, each of the at least one virtual domain managing a plurality of optical network units (ONUs); the method comprising: constructing a first database in a first virtual domain; the first virtual domain being any of the at least one virtual domain; the database comprising first storage information of a first ONU and second storage information of each of at least one second ONU; the first ONU being any of the plurality of ONUs; the second ONU being any of the plurality of ONUs except the first ONU; obtaining file information of a to-be-stored file, and determining whether to store the to-be-stored file to a first storage space of the first ONU and / or a second storage space corresponding to the at least one second ONU based on the file information, the first storage information and the at least one second storage information.
2. The method of claim 1, wherein, The file information comprises a to-be-stored space of the file; the first storage information comprises a first idle storage space; the second storage information comprises a second idle storage space; the determination of whether to store the to-be-stored file to the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU based on the file information, the first storage information and the at least one second storage information comprises: comparing a size of the to-be-stored space with a size of the first idle storage space to obtain a first result; determining whether to store the to-be-stored file to the first storage space of the first ONU according to the first result; and / or comparing the size of the to-be-stored space with a size of each of the at least one second idle storage space to obtain a second result; determining whether to store the to-be-stored file to the second storage space corresponding to the at least one second ONU according to the second result.
3. The method of claim 2, wherein, The determination of whether to store the to-be-stored file to the first storage space of the first ONU according to the first result comprises: in a case where the first result indicates that the size of the to-be-stored space is less than or equal to the size of the first idle storage space, storing the to-be-stored file to the first storage space of the first ONU; in a case where the first result indicates that the size of the to-be-stored space is greater than the size of the first idle storage space, not storing the to-be-stored file to the first storage space of the first ONU.
4. The method of claim 2, wherein, The determination of whether to store the to-be-stored file to the second storage space of the at least one second ONU according to the second result comprises: in a case where the second result indicates that the size of the to-be-stored space is less than or equal to the size of the second idle storage space, storing the to-be-stored file to the second storage space of the second ONU; in a case where the second result indicates that the size of the to-be-stored space is greater than the size of the second idle storage space and less than a total idle storage space corresponding to the plurality of second ONUs, storing the to-be-stored file to the second storage space of the plurality of second ONUs. In a case that the second result indicates that the size of the to-be-stored space is greater than the size of the third free storage space corresponding to the plurality of second ONUs, the to-be-stored file is not stored in the second storage space of the plurality of second ONUs.
5. The method of claim 2, wherein, In a case that the first result indicates that the to-be-stored file cannot be stored in the first storage space of the first ONU and the second result indicates that the to-be-stored file cannot be stored in the second storage space of the at least one second ONU, the method further comprises: determining a fourth free storage space corresponding to the first ONU and the at least one second ONU; comparing the size of the to-be-stored space with the size of the fourth free storage space to obtain a third result; In a case that the third result indicates that the size of the to-be-stored space is less than or equal to the size of the fourth free storage space corresponding to the first ONU and the at least one second ONU, the to-be-stored file is stored in the first storage space of the first ONU and the second storage space of the at least one second ONU; In a case that the third result indicates that the size of the to-be-stored space is greater than the size of the fourth free storage space corresponding to the first ONU and the at least one second ONU, the to-be-stored file is not stored in the first storage space of the first ONU and the second storage space of the at least one second ONU.
6. The method according to any one of claims 1 to 5, characterized in that, In a case that the to-be-stored file is stored in the first storage space of the first ONU and / or the second storage space corresponding to the at least one second ONU, the method further comprises: updating the first storage information and / or the second storage information in the database; distributing the updated database to the at least one second ONU.
7. The method of claim 1, wherein, The method further comprises: In a case that the second ONU is offline, determining that the state of the free storage space in the second storage information is unavailable.
8. The method of claim 1, wherein, The method further comprises: sending the first identity information of the first ONU and the first storage information of the first network disk corresponding to the first ONU to a database; obtaining the second identity information of the second ONU and the second storage information of the second network disk corresponding to the second ONU; constructing the first database according to the first identity information, the second identity information, the first storage information and the second storage information.
9. The method of claim 8, wherein, The obtaining of the second identity information of the second ONU and the second storage information of the second network disk corresponding to the second ONU comprises: sending a first query request to the second ONU; the first query request is used to query the second identity information and the second storage information; receiving first information sent by the second ONU in response to the first query request, and determining the second identity information and the second storage information according to the first information.
10. The method of claim 1, wherein, The obtaining of the file information of the to-be-stored file comprises: determining a network address of a user; obtaining the file information according to the network address.
11. A storage system, characterized by The system comprises an optical line terminal (OLT), an optical splitter and an optical network unit (ONU); the OLT comprises at least one virtual domain, each of the at least one virtual domain manages a plurality of optical network units (ONUs); the optical splitter is connected with the OLT and the plurality of ONUs respectively; The first ONU is configured to construct a first database in a first virtual domain; the first virtual domain is any virtual domain in the at least one virtual domain; the database comprises first storage information of the first ONU and second storage information of each of at least one second ONU; The first ONU is any ONU in the plurality of ONUs; the second ONU is any ONU in the plurality of ONUs except the first ONU; File information of a to-be-stored file is acquired, and whether the to-be-stored file is stored into a first storage space of the first ONU and / or a second storage space corresponding to the at least one second ONU is determined based on the file information, the first storage information and the at least one second storage information.
12. A memory device, comprising: The device is applied to a storage system, the system comprises at least one virtual domain, each of the at least one virtual domain manages a plurality of optical network units (ONUs); the device comprises a constructing unit and a determining unit, wherein, The constructing unit is configured to construct a first database in a first virtual domain; the first virtual domain is any virtual domain in the at least one virtual domain; the database comprises first storage information of a first ONU and second storage information of each of at least one second ONU; the first ONU is any ONU in the plurality of ONUs; the second ONU is any ONU in the plurality of ONUs except the first ONU; The determining unit is configured to acquire file information of a to-be-stored file, and determine whether the to-be-stored file is stored into a first storage space of the first ONU and / or a second storage space corresponding to the at least one second ONU based on the file information, the first storage information and the at least one second storage information.
13. A storage medium, characterized by The storage medium stores a computer program; the computer program is executed by a processor to implement the steps of the method in any one of claims 1 to 10.
14. A storage device, comprising: The storage device comprises a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to run the computer program to execute the steps of the method in any one of claims 1 to 10.
Citation Information
Patent Citations
File storage method and system, computing equipment and storage medium
CN113986117A
Storage function method and apparatus in a passive optical network
US20070230471A1