WO2024026592A1 - Data storage method and related apparatus - Google Patents
Data storage method and related apparatus Download PDFInfo
- Publication number
- WO2024026592A1 WO2024026592A1 PCT/CN2022/109301 CN2022109301W WO2024026592A1 WO 2024026592 A1 WO2024026592 A1 WO 2024026592A1 CN 2022109301 W CN2022109301 W CN 2022109301W WO 2024026592 A1 WO2024026592 A1 WO 2024026592A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- network element
- data
- stored
- storage
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Definitions
- the present application relates to the field of intelligent driving technology, and in particular, to a data storage method and related devices applied to intelligent driving vehicles.
- ECUs electronice control units
- in-vehicle gateways smart driving system domain controllers
- smart cockpit domain controllers smart cockpit domain controllers
- other components have their own storage units, such as non-volatile memory, embedded multimedia cards, etc., so that key information can be stored.
- the vehicle-mounted gateway will record key information about hardware errors in the storage unit for subsequent query and analysis.
- storage units have service life limits. For example, if the number of erase times exceeds the limit, abnormal power outage, etc., bad blocks will be generated, thus affecting the normal use of the storage unit.
- Embodiments of the present application provide a data storage method and related devices, which can improve the stability of data storage and reduce storage costs.
- embodiments of the present application provide a data storage method, which method includes:
- the first network element obtains the first data to be stored
- the first network element determines a storage manner of the first data to be stored based on at least one of an attribute of the first data to be stored and a storage status of the first network element.
- a data storage method is provided.
- the first network element obtains the first data to be stored, and based on the attributes of the first data to be stored, or the storage status of the first network element, or, The attributes of the first data to be stored and the storage status of the first network element determine the storage method of the first data to be stored.
- the attributes of the first data to be stored include but are not limited to data transmission delay, data storage reliability, data importance level, etc.
- the storage status of the first network element includes but is not limited to the size of available storage resources in the network element, the size of storage resource utilization, and so on.
- the embodiment of the present application determines the storage method of the data to be stored based on at least one of the attributes of the data to be stored and the storage status of the network element. Specifically, you can choose to store the data to be stored in the first In a network element, you can also choose to store the data to be stored in other network elements. Using multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of the network element, and reduce storage costs. .
- determining the storage method of the first data to be stored includes:
- the first network element When the storage state of the first network element is a first state, the first network element transmits the first data to be stored to the second network element, wherein the first state represents the first state.
- the size of the available storage resources of a network element satisfies the first condition, or the storage resource utilization rate of the first network element satisfies the second condition; or,
- the first network element stores the first to-be-stored data to the first network element, where the second state represents the The size of the available storage resources of the first network element does not meet the first condition, or the storage resource utilization of the first network element does not meet the second condition.
- a possible specific implementation manner of determining the storage method of the first data to be stored is provided. Specifically, when the storage state of the first network element is the first state, the first network element The first data to be stored is transmitted to the second network element. When the storage state of the first network element is the second state, the first network element stores the first data to be stored in the first network element, where the first network element One state represents that the size of the available storage resources of the first network element meets the first condition, or the storage resource utilization rate of the first network element meets the second condition, and the second state represents that the size of the available storage resources of the first network element does not meet the second condition. The first condition, or the storage resource utilization of the first network element does not meet the second condition.
- the above-mentioned first condition may include that the size of the available storage resources is less than a first threshold
- the above-mentioned second condition may include that the storage resource utilization is less than a second threshold.
- the second network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and The overall storage availability of the first network element and the second network element is improved, and storage costs are reduced.
- determining the storage method of the first data to be stored includes:
- the first network element transmits the first data to be stored to the second network element; or,
- the first network element stores the first data to be stored in the first network element
- the attributes of the first type data and the attributes of the second type data satisfy the third condition.
- a possible specific implementation manner of determining the storage method of the first data to be stored is provided.
- the first network element will The first data to be stored is transmitted to the second network element.
- the first network element stores the first data to be stored in the first network element, where the first type
- the attributes of the data and the attributes of the second type of data satisfy the third condition.
- the third condition may include: the transmission delay requirement/storage reliability requirement/importance level of the first type of data is lower than the corresponding transmission time of the second type of data. Extension requirements/storage reliability requirements/importance level.
- the third threshold can be used as a boundary to distinguish the first type of data from the second type of data.
- the transmission delay requirement/storage reliability requirement/importance level of the first type of data is less than the third threshold, and the transmission time of the second type of data is smaller than the third threshold.
- the delay requirement/storage reliability requirement/importance level is greater than the third threshold.
- the network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and improve This improves the overall storage availability of the first network element and the second network element and reduces storage costs.
- determining the storage method of the first data to be stored includes:
- the first network element When the first data to be stored is the first type of data and the storage state of the first network element is the first state, the first network element transmits the first data to be stored to the second network element. yuan; or,
- the first network element stores the first data to be stored in the third One network element
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition
- the second state represents that the The size of the available storage resources of the first network element does not meet the first condition, or the storage resource utilization of the first network element does not meet the second condition
- the attributes of the first type of data and the third condition The attributes of the second type of data satisfy the third condition.
- a possible specific implementation manner of determining the storage method of the first data to be stored is provided. Specifically, when the first data to be stored is the first type of data and the storage status of the first network element is In the first state, the first network element transmits the first data to be stored to the second network element. When the first data to be stored is the second type of data and the storage state of the first network element is the second state. , the first network element stores the first data to be stored in the first network element.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition, and the second state represents the size of the available storage resources of the first network element.
- the first condition is not met, or the storage resource utilization of the first network element does not meet the second condition, and the attributes of the first type of data and the attributes of the second type of data satisfy the third condition.
- the above-mentioned first condition may include that the size of available storage resources is less than the first threshold
- the above-mentioned second condition may include that the storage resource utilization is less than the second threshold
- the above-mentioned third condition may include: transmission delay requirements/storage reliability of the first type of data
- the performance requirements/importance level are lower than the transmission delay requirements/storage reliability requirements/importance level corresponding to the second type of data.
- the third threshold can be used as a boundary to distinguish the first type of data from the second type of data.
- the transmission delay requirement/storage reliability requirement/importance level of the first type of data is less than the third threshold, and the transmission time of the second type of data is smaller than the third threshold.
- the delay requirement/storage reliability requirement/importance level is greater than the third threshold.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
- the first condition may include that the size of the available storage resources is less than the first threshold
- the second condition may include that the storage resources are smaller than the first threshold.
- the utilization is less than the second threshold.
- the first threshold and the second threshold are not fixed values, but are related to the attributes of the first data to be stored, and can be adjusted according to different scenarios.
- the first condition when the first data to be stored is the first type of data, the first condition The first threshold in may be 2GB, and the second threshold in the second condition may be 50%.
- the first threshold in the first condition may be 1GB
- the second threshold in the second condition may be 1GB.
- the second threshold in can be 25%.
- the higher the transmission delay requirement/storage reliability requirement/importance level of the first data to be stored The smaller the required value of the available storage resources or storage resource utilization in the first network element.
- the transmission of the first data to be stored will be The higher the delay requirement/storage reliability requirement/importance level, the greater the value required for available storage resources or storage resource utilization in the first network element.
- the relationship between the first threshold involved in the first condition, the second threshold involved in the second condition, and the attributes of the first data to be stored can be used to transmit the first data to be stored to the third
- the second network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and The overall storage availability of the first network element and the second network element is improved, and the storage cost is reduced.
- the method further includes:
- the first network element obtains the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
- the first network element obtains the information of the second network element, and the information of the second network element is used to uniquely Identify the second network element.
- the first network element can transmit the first data to be stored to the second network element according to the information of the second network element, and choose to store the first data to be stored in the second network element.
- the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
- the information of the second network element is obtained by any of the following methods:
- Broadcast messages either pre-configured or sent peer-to-peer.
- the first network element can obtain the information of the second network element through preconfigured information, or the first network element can obtain the information of the second network element through preconfigured information.
- the network element can also receive the broadcast message to obtain the information of the second network element, or the second network element sends the information of the second network element point-to-point to the first network element.
- the first network element receives the information of the second network element.
- the second network element sends the information of the second network element point-to-point to the centralized controller, and then the centralized controller sends the information of the second network element to the first network element.
- the first network element receives the information of the second network element. Yuan information.
- the information of the second network element is obtained, including the identifier of the second network element.
- the first network element can transmit the first data to be stored to the second network element accordingly, and select to store the first data to be stored. to the second network element.
- the storage state of the second network element is the third state, wherein, The third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or the storage resource utilization rate of the second network element satisfies the fifth condition.
- a possible specific implementation manner of determining the storage method of the first data to be stored is provided, specifically, based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
- the first network element also determines the storage method of the first data to be stored based on the storage status of the second network element.
- the storage status of the second network element includes but is not limited to the size of available storage resources in the network element, the size of storage resource utilization, and so on.
- the first network element transmits the first data to be stored to the second network element, where,
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization rate of the first network element satisfies the second condition.
- the third state represents that the size of the available storage resources of the second network element satisfies the third condition.
- the fourth condition, or the storage resource utilization of the second network element meets the fifth condition.
- the above-mentioned first condition may include that the size of available storage resources is less than a first threshold
- the above-mentioned second condition may include that the storage resource utilization is less than a second threshold
- the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold
- the above-mentioned The fifth condition may include storage resource utilization being greater than a fifth threshold.
- the method specifically, the storage method of the first data to be stored can be determined according to the storage status of the first network element and the storage status of the second network element, so that the storage status of the first network element is the first status and the storage status of the second network element is
- the state is the third state
- the first data to be stored is transmitted to the second network element
- the first data to be stored is selected to be stored in the second network element
- the second network element is used to cooperate with the first network element to complete the first
- the storage of data to be stored can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
- the method further includes:
- the first network element sends first information, where the first information includes information about the storage status of the first network element.
- the first network element can send a broadcast message, and the broadcast message includes a message for indicating the first information.
- the first information includes information about the storage status of the first network element, and other network elements such as the second network element can learn the storage status of the first network element by receiving the broadcast message.
- the first network element can send the first information to the second network element point-to-point, or the first network element can send the first information point-to-point to the centralized controller, and then the centralized controller can send the first information to the second network element. Yuan.
- other network elements such as the second network element can obtain the first information and learn the storage status information of the first network element.
- the first information is used to indicate the size of the available storage resources of the first network element, or the size of the storage resource utilization of the first network element.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
- the first information is used by the third network element to select whether to store the data to be stored from the first network element.
- the first information is used to indicate the size of the available storage resources of the first network element, or the storage resource utilization of the first network element.
- the size of the rate through the embodiment of the present application, the third network element and other other network elements can choose whether to store the to-be-stored data of the third network element and other other network elements into the first network element according to the content indicated by the first information.
- other network elements such as the third network element can also choose whether to store the data to be stored from the first network element according to the content indicated by the first information.
- the method further includes:
- the first network element receives second information, the second information includes information about the storage status of at least one third network element, and the second information is used by the first network element to determine the first data to be stored.
- the first network element receives a broadcast message, and the broadcast message includes a message for indicating the second information
- the second information includes information about the storage status of at least one third network element.
- the first network element learns the storage status of at least one third network element by receiving the broadcast message.
- at least one third network element sends the second information point-to-point to the first network element, and accordingly, the first network element receives the second information sent by at least one third network element.
- at least one third network element sends the second information point-to-point to the centralized controller, and then the centralized controller sends the second information to the first network element.
- the first network element receives the third information sent by the centralized controller. 2. Information.
- the third network element and the second network element may be the same network element.
- the first network element can learn the storage status information of at least one third network element based on the second information, and determine the first pending network element based on the storage status of at least one third network element.
- the data is stored in at least one third network element, and the at least one third network element is used to cooperate with the first network element to complete the storage of the first data to be stored.
- the method further includes:
- the first network element receives second information, where the second information includes information on the storage status of at least one third network element;
- the first network element determines to store the first data to be stored in the at least one third network element based on the second information.
- the method further includes:
- the first network element When the first network element transmits the first data to be stored to the second network element, the first network element sends third information, and the third information is used to indicate the first The storage network element corresponding to the data to be stored or the first data to be stored is not stored in the first network element.
- the first network element transmits the first data to be stored to the second network element.
- the first network element sends third information, and the third information is used to indicate the storage network element corresponding to the first data to be stored or the first data to be stored is not stored in the first network element.
- the first network element can inform other network elements of the storage network element corresponding to the first data to be stored by sending the third information, so as to facilitate other network elements to initiate access requests for the first data to be stored.
- the third information is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the first network element can send a broadcast message.
- the broadcast message includes a message indicating the third information.
- the third information This includes information indicating the storage network element corresponding to the first data to be stored, or information that the first data to be stored is not stored in the first network element.
- Other network elements such as the third network element can learn about the first network element by receiving the broadcast message.
- the storage network element corresponding to the data to be stored initiates an access request for the first data to be stored.
- the first network element can send the third information point-to-point to the third network element or other network elements.
- the first network element can send the third information point-to-point to the centralized controller, and then the centralized controller sends the first information.
- the third network element and other network elements can obtain the third information, learn the storage network element corresponding to the first data to be stored, and initiate an access request to the first data to be stored.
- the method further includes:
- the first network element When the first network element transmits the first data to be stored to the second network element, the first network element receives a first request, and the first request is used to request access to the third network element. Once the data is to be stored.
- a possible specific implementation manner for the first network element to receive the first request is provided. Specifically, when the first network element transmits the first data to be stored to the second network element, The first network element receives the first request, requesting access to the first data to be stored. It may be that the third network element requests access to the first data to be stored from the second network element, and the second network element sends the first request to the first network element. Correspondingly, the first network element receives the third data from the second network element. One request. It is also possible that the third network element directly sends the first request to the first network element, requesting access to the first data to be stored, and accordingly, the first network element receives the first request from the third network element.
- the second network element may directly send the first data to be stored to the third network element or other networks that access the first data to be stored.
- the first network element may also be a second network element that forwards the first data to be stored to a third network element or other network elements that access the first data to be stored via the first network element.
- the first network element controls the access rights of other network elements to the first data to be stored by receiving a request to access the first data to be stored. Even if the first data to be stored is stored in the second network element, It can also ensure that the first network element controls the storage security of the first data to be stored.
- embodiments of the present application provide a data storage method, which method includes:
- the second network element receives the first data to be stored sent by the first network element, wherein the first data to be stored is based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
- One item determines the data received by the second network element;
- the second network element stores the first data to be stored.
- a data storage method receives the first data to be stored sent by the first network element, which may be done in the first network element according to the attributes of the first data to be stored and the When at least one of the storage statuses of the first network element determines that the first data to be stored is sent, the second network element receives the first data to be stored from the first network element and stores the first data to be stored in the first network element. in the second network element.
- the attributes of the first data to be stored include but are not limited to data transmission delay, data storage reliability, data importance level, etc.
- the storage status of the first network element includes but is not limited to the size of available storage resources in the network element, the size of storage resource utilization, and so on.
- the embodiment of the present application determines to store the data to be stored in the first network element to the second network element based on at least one of the attributes of the data to be stored and the storage status of the first network element. Using multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- the first data to be stored is data determined to be received by the second network element when the storage state of the first network element is the first state, wherein the The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or that the storage resource utilization of the first network element satisfies the second condition.
- a possible specific implementation manner of receiving the first data to be stored is provided.
- the storage state of the first network element is the first state
- the first network element sends the data to the second state.
- the network element sends the first data to be stored, and correspondingly, the second network element receives the first data to be stored from the first network element.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition.
- the above-mentioned first condition may include that the size of the available storage resources is smaller than the first condition.
- the above-mentioned second condition may include that the storage resource utilization is less than the second threshold.
- the first data to be stored is determined to be sent to the second network element according to the storage status of the first network element, so that when the storage status of the first network element is the first status, the second network element receives For the first data to be stored from the first network element, the first data to be stored is selected to be stored in the second network element, and the second network element is used to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the first data to be stored.
- the stability of the data to be stored is improved, the overall storage availability of the first network element and the second network element is improved, and the storage cost is reduced.
- the first data to be stored is data determined to be received by the second network element when the first data to be stored is data of the first type, wherein the first data to be stored is determined to be received by the second network element.
- An attribute of a type of data satisfies the third condition.
- the first network element sends the data to the second network.
- the first network element sends the first data to be stored, and accordingly, the second network element receives the first data to be stored from the first network element.
- the attributes of the first type of data satisfy the third condition.
- the third condition may include: the transmission delay requirement/storage reliability requirement/importance level of the first type of data is lower than the corresponding transmission delay requirement of the second type of data. /storage reliability requirements/importance level.
- the third threshold can be used as a boundary to distinguish the first type of data from the second type of data.
- the transmission delay requirement/storage reliability requirement/importance level of the first type of data is less than the third threshold, and the transmission time of the second type of data is smaller than the third threshold.
- the delay requirement/storage reliability requirement/importance level is greater than the third threshold.
- the first data to be stored is determined by the first data when the first data to be stored is the first type of data and the storage state of the first network element is the first state.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
- a possible specific implementation manner of receiving the first data to be stored is provided.
- the first data to be stored is the first type of data and the storage state of the first network element is the first state
- the first network element sends the first data to be stored to the second network element, and accordingly, the second network element receives the first data to be stored from the first network element.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition, and the attributes of the first type of data satisfy the third condition.
- the above-mentioned first condition may include that the size of available storage resources is less than the first threshold
- the above-mentioned second condition may include that the storage resource utilization is less than the second threshold
- the above-mentioned third condition may include: transmission delay requirements/storage reliability of the first type of data
- the performance requirements/importance level are lower than the transmission delay requirements/storage reliability requirements/importance level corresponding to the second type of data.
- the third threshold can be used as a boundary to distinguish the first type of data from the second type of data.
- the transmission delay requirement/storage reliability requirement/importance level of the first type of data is less than the third threshold, and the transmission time of the second type of data is smaller than the third threshold.
- the delay requirement/storage reliability requirement/importance level is greater than the third threshold.
- the first data to be stored is determined to be sent to the second network element according to the attributes of the first data to be stored and the storage status of the first network element, so that when the first data to be stored is the first type of data and the first
- the second network element receives the first data to be stored from the first network element, selects to store the first data to be stored in the second network element, and uses the second network element to store the first data to be stored.
- the network element cooperates with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
- the first condition may include that the size of the available storage resources is less than the first threshold
- the second condition may include that the storage resources are smaller than the first threshold.
- the utilization is less than the second threshold.
- the first threshold and the second threshold are not fixed values, but are related to the attributes of the first data to be stored, and can be adjusted according to different scenarios.
- the first condition when the first data to be stored is the first type of data, the first condition The first threshold in may be 2GB, and the second threshold in the second condition may be 50%.
- the first threshold in the first condition may be 1GB
- the second threshold in the second condition may be 1GB.
- the second threshold in can be 25%.
- the higher the transmission delay requirement/storage reliability requirement/importance level of the first data to be stored The smaller the required value of the available storage resources or storage resource utilization in the first network element.
- the transmission of the first data to be stored will be The higher the delay requirement/storage reliability requirement/importance level, the greater the value required for available storage resources or storage resource utilization in the first network element.
- the relationship between the first threshold involved in the first condition, the second threshold involved in the second condition, and the attributes of the first data to be stored can be used to transmit the first data to be stored to the third
- the second network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and The overall storage availability of the first network element and the second network element is improved, and storage costs are reduced.
- the method further includes:
- the second network element sends the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
- the second network element sends the information of the second network element, and the information of the second network element is used to uniquely Identify the second network element.
- the first network element can learn the information of the second network element, transmit the first data to be stored to the second network element according to the identifier of the second network element, and choose to store the first data to be stored in in the second network element.
- the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
- the information of the second network element is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the second network element can send a broadcast message, and the broadcast message includes information used to indicate the second network element.
- the first network element obtains the information of the second network element by receiving the broadcast message, can learn the identity of the second network element, and transmits the first data to be stored to the second network element according to the identity of the second network element.
- network element select to store the first data to be stored in the second network element.
- the second network element sends the information of the second network element point-to-point to the first network element, and accordingly, the first network element receives the information of the second network element, or the second network element sends the information of the second network element point-to-point to the first network element.
- the centralized controller then sends the information of the second network element to the first network element, and accordingly, the first network element receives the information of the second network element.
- the information of the second network element is sent, including the identifier of the second network element, so that the first network element can learn the identifier of the second network element, and accordingly transmit the first data to be stored to the second network element.
- network element select to store the first data to be stored in the second network element.
- the first data to be stored is data determined to be received by the second network element when the storage state of the second network element is the third state, wherein the The third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or that the storage resource utilization rate of the second network element satisfies the fifth condition.
- a possible specific implementation manner of receiving the first data to be stored is provided, specifically, based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
- the first network element also determines to send the first data to be stored to the second network element according to the storage status of the second network element.
- the second network element receives the first data to be stored from the first network element.
- the storage status of the second network element includes but is not limited to the size of available storage resources in the network element, the size of storage resource utilization, and so on.
- the first network element sends the first data to be stored to the second network element.
- the second network element receives the first data to be stored from the first network element.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition
- the third state represents the size of the available storage resources of the second network element.
- the fourth condition is met, or the storage resource utilization of the second network element meets the fifth condition.
- the above-mentioned first condition may include that the size of available storage resources is less than a first threshold
- the above-mentioned second condition may include that the storage resource utilization is less than a second threshold
- the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold
- the above-mentioned The fifth condition may include storage resource utilization being greater than a fifth threshold.
- the second network element receives the first data to be stored from the first network element, selects to store the first data to be stored in the second network element, and uses the second network element to Collaborating with the first network element to complete the storage of the first data to be stored can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
- the method further includes:
- the second network element receives first information, where the first information includes information about the storage status of the first network element.
- the first network element can send a broadcast message, and the broadcast message includes a message for indicating the first information.
- the first information includes information about the storage status of the first network element, and the second network element can learn the storage status of the first network element by receiving the broadcast message.
- the first network element can send the first information point-to-point to the second network element, or the first network element can send the first information point-to-point to the centralized controller, and then the centralized controller can send the first information to the second network element. Yuan.
- the second network element can obtain the first information and learn the storage status information of the first network element.
- the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
- the first information is used by the third network element to select whether to store the data to be stored from the first network element.
- the first information is used to indicate the size of the available storage resources of the first network element, or the storage resource utilization of the first network element.
- the size of the rate through the embodiment of the present application, the third network element and other other network elements can choose whether to store the to-be-stored data of the third network element and other other network elements into the first network element according to the content indicated by the first information.
- other network elements such as the third network element can also choose whether to store the data to be stored from the first network element according to the content indicated by the first information.
- the method further includes:
- the second network element sends second information, the second information includes information about the storage status of the second network element, and the second information is used by the first network element to determine the first data to be stored.
- the second network element sends a broadcast message, and the broadcast message includes a message for indicating the second information
- the second information includes information about the storage status of the second network element.
- the first network element learns the storage status of the second network element by receiving the broadcast message.
- the second network element sends the second information point-to-point to the first network element, and accordingly, the first network element receives the second information sent by the second network element.
- the second network element sends the second information point-to-point to the centralized controller, and then the centralized controller sends the second information to the first network element.
- the first network element receives the second information sent by the centralized controller. .
- the first network element can learn the storage status information of the second network element based on the second information, and determine the storage of the first data to be stored based on the storage status of the second network element.
- the method and/or the storage network element of the first data to be stored for example, stores the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored.
- the method further includes:
- the second network element When the first network element transmits the first data to be stored to the second network element, the second network element receives third information, and the third information is used to indicate that the first The storage network element corresponding to the data to be stored or the first data to be stored is not stored in the first network element.
- a possible specific implementation manner for the second network element to receive the third information is provided. Specifically, when the first network element transmits the first data to be stored to the second network element, The first network element sends third information, and the third information is used to indicate the storage network element corresponding to the first data to be stored or the first data to be stored is not stored in the first network element.
- the second network element and other other network elements can learn the storage network element corresponding to the first data to be stored through the third information sent by the first network element, which facilitates the second network element and other other network elements to Initiate an access request for the data to be stored.
- the third information is received in any of the following ways:
- the first network element can send a broadcast message, and the broadcast message includes a message for indicating the third information.
- the third information This includes information indicating the storage network element corresponding to the first data to be stored, or information that the first data to be stored is not stored in the first network element.
- Other network elements such as the third network element can learn about the first network element by receiving the broadcast message.
- the storage network element corresponding to the data to be stored initiates an access request for the first data to be stored.
- the first network element can send the third information point-to-point to the third network element or other network elements.
- the first network element can send the third information point-to-point to the centralized controller, and then the centralized controller sends the first information.
- the third network element or other network elements can obtain the third information, learn the storage network element corresponding to the first data to be stored, and initiate an access request for the first data to be stored.
- the method further includes:
- the second network element When the second network element receives the first data to be stored sent by the first network element, the second network element sends a first request, and the first request is used to request access to the first data. Once the data is to be stored.
- a possible specific implementation manner for the second network element to send the first request is provided. Specifically, when the second network element receives the first data to be stored sent by the first network element, The second network element sends a first request to the first network element, requesting access to the first data to be stored. Correspondingly, the first network element receives the first request from the second network element. When the first network element responds to the first request and allows access to the first data to be stored, the second network element directly accesses the first data to be stored stored stored in the second network element.
- the second network element sends a request to access the first data to be stored to the first network element, and the first network element can control the access rights of other network elements such as the second network element to the first data to be stored, even if Storing the first data to be stored in the second network element can also ensure that the first network element controls the storage security of the first data to be stored.
- embodiments of the present application provide a data storage method, which method includes:
- the first network element sends a first message, the first message is used to request the second network element to store second data to be stored, and the second data to be stored is the data of the first network element;
- the first network element receives the second message
- the first network element determines a storage method for the second data to be stored based on the second message.
- a data storage method is provided. Specifically, the first network element sends a first message to request the second network element to store the second to-be-stored data of the first network element. The first network element receives second message, and determine a storage method for the second data to be stored based on the second message.
- the embodiment of the present application sends a request message to other network elements and determines the storage method of the data to be stored based on the received response message. Specifically, the second network element can be requested to store the data in the first network element. For the data to be stored, using multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- determining a storage method for the second data to be stored according to the second message includes:
- the first network element sends the second data to be stored to the second network element;
- the first network element stores the second data to be stored in the first network element, Alternatively, send a third message, where the third message is used to request a third network element to store the second data to be stored.
- the second message indicates that the second network element is allowed to store the second data to be stored.
- the first network element sends the second data to be stored to the second network element, otherwise, the first network element stores the second data to be stored to the first network element, or the first network element sends the third message, Requesting the third network element to store the second data to be stored.
- the first network element when the received response message indicates that the second network element is allowed to store the second data to be stored in the first network element, the first network element sends the second data to be stored to the second network element, using multiple Network elements collaboratively complete the storage of the second data to be stored, which can improve the stability of the storage of the second data to be stored, improve the overall storage availability of the network elements, and reduce storage costs.
- the method before sending the first message, the method further includes:
- the first network element determines to send the first message based on at least one of the attributes of the second data to be stored and the storage status of the first network element.
- the determining to send the first message includes:
- the storage state of the first network element is a first state
- the determining to send the first message includes:
- the second data to be stored is the first type of data
- the determining to send the first message includes:
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
- the method further includes:
- the first network element obtains the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
- the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
- the information of the second network element is obtained by any of the following methods:
- Broadcast messages either pre-configured or sent peer-to-peer.
- the method further includes:
- the first network element determines to send the first message according to the storage status of the second network element.
- the first network element determines to send the first message based on the storage status of the second network element, including:
- the storage state of the first network element is the first state
- the storage state of the second network element is the third state
- the method further includes:
- the first network element sends first information, where the first information includes information about the storage status of the first network element.
- the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
- the first information is used by the third network element to select whether to store the data to be stored from the first network element.
- the method further includes:
- the first network element receives second information, the second information includes information on the storage status of at least one third network element, and the second information is used for the first network element to determine to send the first message.
- the method further includes:
- the first network element receives second information, where the second information includes information on the storage status of at least one third network element;
- the first network element determines to send the first message based on the second information.
- the method further includes:
- the first network element When the first network element sends the second data to be stored to the second network element, the first network element sends fourth information, and the fourth information is used to indicate that the second data to be stored is The storage network element corresponding to the stored data or the second data to be stored is not stored in the first network element.
- the fourth information is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the method further includes:
- the first network element When the first network element sends the second data to be stored to the second network element, the first network element receives a second request, and the second request is used to request access to the second data. Data to be stored.
- embodiments of the present application provide a data storage method, which method includes:
- the second network element receives a first message, the first message is used to request the second network element to store second data to be stored, and the second data to be stored is the data of the first network element;
- the second network element sends a second message, and the second message is used by the first network element to determine a storage method for the second data to be stored.
- the embodiment of the present application provides a data storage method.
- the second network element receives a first message, and the first message is used to request the second network element to store the second data to be stored in the first network element.
- the second network element responds to the request and sends a second message.
- the second message is used by the first network element to determine the storage method of the second data to be stored.
- the embodiment of the present application receives a first message sent by the first network element requesting to store the second to-be-stored data of the first network element, and sends a second message in response to the request, for the first time.
- One network element determines a storage method for the second data to be stored. Specifically, it may be determined to store the second data to be stored in the second network element.
- the second message is used by the first network element to determine a storage method for the second data to be stored, including:
- the second network element receives the second data to be stored sent by the first network element; or ,
- the second message When the second message indicates that the second network element is not allowed to store the second data to be stored, the second message is used for the first network element to determine to store the second data to be stored. to the first network element, or send a third message, where the third message is used to request the third network element to store the second data to be stored.
- a second message is provided as a possible implementation manner for the first network element to determine the storage method of the second data to be stored.
- the second message indicates that the second network element allows When storing the second data to be stored, the second network element receives the second data to be stored sent by the first network element; otherwise, the second message is used by the first network element to determine to store the second data to be stored in the first network element. element, or used for the first network element to determine to send the third message and request the third network element to store the second data to be stored.
- the second network element when the received response message indicates that the second network element is allowed to store the second data to be stored in the first network element, the second network element receives the second data to be stored sent by the first network element, and uses Multiple network elements cooperate to complete the storage of the second data to be stored, which can improve the stability of the storage of the second data to be stored, improve the overall storage availability of the network elements, and reduce storage costs.
- the first message is determined to be received by the second network element based on at least one of the attributes of the second data to be stored and the storage status of the first network element. information.
- the first message is a message determined to be received by the second network element when the storage state of the first network element is the first state, wherein the first The status indicates that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition.
- the first message is a message determined to be received by the second network element when the second data to be stored is data of the first type, wherein the first type The attributes of the data satisfy the third condition.
- the first message is determined by the third network element when the second data to be stored is the first type of data and the storage state of the first network element is the first state. Message received by the second network element;
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
- the method further includes:
- the second network element sends the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
- the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
- the information of the second network element is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the first message is a message received by the second network element determined according to the storage status of the second network element.
- the first message is determined when the storage state of the first network element is the first state, and the storage state of the second network element is the third state.
- the method further includes:
- the second network element receives first information, where the first information includes information about the storage status of the first network element.
- the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
- the first information is used by the third network element to select whether to store the data to be stored from the first network element.
- the method further includes:
- the second network element sends second information, the second information includes information about the storage status of the second network element, and the second information is used by the first network element to determine to send the first message.
- the method further includes:
- the second network element When the first network element sends the second data to be stored to the second network element, the second network element receives fourth information, and the fourth information is used to indicate that the second data to be stored is The storage network element corresponding to the stored data or the second data to be stored is not stored in the first network element.
- the fourth information is received in any of the following ways:
- the method further includes:
- the second network element When the first network element sends the second data to be stored to the second network element, the second network element sends a second request, and the second request is used to request access to the second data. Data to be stored.
- embodiments of the present application provide a data storage device, which includes a module or unit for executing the method described in any one of the first to fourth aspects.
- the device includes:
- a processing unit used to obtain the first data to be stored
- the processing unit is further configured to determine a storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the data storage device.
- the device further includes:
- a transceiver unit configured to transmit the first data to be stored to the second network element when the storage state of the data storage device is a first state, wherein the first state represents the data storage device The size of the available storage resources satisfies the first condition, or the storage resource utilization rate of the data storage device satisfies the second condition; or,
- the processing unit is specifically configured to store the first data to be stored in the data storage device when the storage state of the data storage device is a second state, wherein the second state represents the The size of the available storage resources of the data storage device does not meet the first condition, or the storage resource utilization of the data storage device does not meet the second condition.
- the transceiver unit is further configured to transmit the first data to be stored to the second network element when the first data to be stored is data of the first type; or ,
- the processing unit is also configured to store the first data to be stored in the data storage device when the first data to be stored is data of the second type;
- the attributes of the first type data and the attributes of the second type data satisfy the third condition.
- the transceiver unit is further configured to: when the first data to be stored is data of the first type and the storage state of the data storage device is a first state, The first data to be stored is transmitted to the second network element; or,
- the processing unit is also configured to store the first data to be stored in the second type of data when the first data to be stored is the second type of data and the storage state of the data storage device is the second state.
- data storage device
- the first state represents that the size of the available storage resources of the data storage device meets the first condition, or the storage resource utilization of the data storage device meets the second condition
- the second state represents that the data storage The size of the available storage resources of the device does not meet the first condition, or the storage resource utilization of the data storage device does not meet the second condition
- the attributes of the first type of data and the attributes of the second type of data The attribute satisfies the third condition.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
- the processing unit is further configured to obtain information about the second network element, and the information about the second network element is used to uniquely identify the second network element.
- the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
- the information of the second network element is obtained by any of the following methods:
- Broadcast messages either pre-configured or sent peer-to-peer.
- the storage state of the second network element is the third state, wherein:
- the third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or that the storage resource utilization rate of the second network element satisfies the fifth condition.
- the transceiver unit is further configured to send first information, where the first information includes information about the storage status of the data storage device.
- the first information is used to indicate the size of available storage resources of the data storage device, or the size of storage resource utilization of the data storage device.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the data storage device.
- the first information is used by the third network element to select whether to store the data to be stored from the data storage device.
- the transceiver unit is further configured to receive second information, where the second information includes information on the storage status of at least one third network element, and the second information is used for the data
- the storage device determines the storage method of the first data to be stored and/or the storage network element of the first data to be stored.
- the transceiver unit is further configured to receive second information, where the second information includes information on the storage status of at least one third network element;
- the processing unit is further configured to determine, according to the second information, to store the first data to be stored in the at least one third network element.
- the transceiver unit is further configured to send third information when the data storage device transmits the first data to be stored to the second network element.
- the third information is used to indicate the storage network element corresponding to the first data to be stored or the first data to be stored is not stored in the first network element.
- the third information is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the transceiver unit is further configured to receive a first request when transmitting the first data to be stored to the second network element, and the first request is used to Request access to the first data to be stored.
- the device includes:
- a transceiver unit configured to receive the first data to be stored sent by the first network element, wherein the first data to be stored is based on the attributes of the first data to be stored and the storage status of the first network element. At least one item determines data received by the transceiver unit;
- a processing unit configured to store the first data to be stored.
- the first data to be stored is determined to be received when the storage state of the first network element is a first state, wherein the first state represents the first network element The size of the available storage resources satisfies the first condition, or the storage resource utilization rate of the first network element satisfies the second condition.
- the first data to be stored is data determined to be received by the transceiver unit when the first data to be stored is data of a first type, wherein the first type The attributes of the data satisfy the third condition.
- the first data to be stored is determined by the first data when the first data to be stored is the first type of data and the storage state of the first network element is the first state.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
- the transceiver unit is also configured to send information about the data storage device, and the information about the data storage device is used to uniquely identify the data storage device.
- the information about the data storage device includes at least one of the following: an identification of the data storage device and an address of the data storage device.
- the information of the data storage device is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the first data to be stored is data determined to be received by the data storage device when the storage state of the data storage device is a third state, wherein the third The status represents that the size of the available storage resources of the data storage device satisfies the fourth condition, or the storage resource utilization of the data storage device satisfies the fifth condition.
- the transceiver unit is further configured to receive first information, where the first information includes information about the storage status of the first network element.
- the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
- the first information is used by the third network element to select whether to store the data to be stored from the first network element.
- the transceiver unit is also configured to send second information, where the second information includes information about the storage status of the data storage device, and the second information is used for the first
- the network element determines the storage method of the first data to be stored and/or the storage network element of the first data to be stored.
- the transceiver unit is further configured to receive third information when the first network element transmits the first data to be stored to the data storage device, and the The third information is used to indicate the storage network element corresponding to the first data to be stored or the first data to be stored is not stored in the first network element.
- the third information is received in any of the following ways:
- the transceiver unit is further configured to send a first request when receiving the first data to be stored sent by the first network element, and the first request is used to Request access to the first data to be stored.
- the device includes:
- a transceiver unit configured to send a first message, the first message being used to request the second network element to store second data to be stored, where the second data to be stored is the data of the data storage device;
- the transceiver unit is also used to receive the second message
- a processing unit configured to determine a storage method for the second data to be stored according to the second message.
- the transceiver unit is further configured to send a message to the second network element when the second message indicates that the second network element is allowed to store the second data to be stored. Send the second data to be stored; or,
- the processing unit is specifically configured to store the second data to be stored in the data storage device when the second message indicates that the second network element is not allowed to store the second data to be stored. , or the transceiver unit is further configured to send a third message, where the third message is used to request a third network element to store the second data to be stored.
- the processing unit is further configured to determine to send the first message based on at least one of the attributes of the second data to be stored and the storage status of the data storage device.
- the processing unit is further configured to determine to send the first message when the storage state of the data storage device is a first state, wherein the first state represents The size of the available storage resources of the data storage device satisfies the first condition, or the storage resource utilization rate of the data storage device satisfies the second condition.
- the processing unit is further configured to determine to send the first message when the second data to be stored is the first type of data, wherein the first type of data The properties satisfy the third condition.
- the processing unit is further configured to determine whether to send the data when the second data to be stored is the first type of data and the storage state of the data storage device is the first state. state the first news;
- the first state represents that the size of the available storage resources of the data storage device satisfies the first condition, or the storage resource utilization rate of the data storage device satisfies the second condition; the attributes of the first type of data satisfy the second condition.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
- the processing unit is further configured to obtain information about the second network element, and the information about the second network element is used to uniquely identify the second network element.
- the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
- the information of the second network element is obtained by any of the following methods:
- Broadcast messages either pre-configured or sent peer-to-peer.
- the processing unit is further configured to determine to send the first message according to the storage status of the second network element.
- the processing unit is further configured to: when the storage state of the data storage device is the first state, and the storage state of the second network element is the third state , determine to send the first message, wherein the third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or the storage resource utilization rate of the second network element satisfies the fifth condition. .
- the transceiver unit is further configured to send first information, where the first information includes information about the storage status of the data storage device.
- the first information is used to indicate the size of available storage resources of the data storage device, or the size of storage resource utilization of the data storage device.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the data storage device.
- the first information is used by the third network element to select whether to store the data to be stored from the data storage device.
- the transceiver unit is further configured to receive second information, where the second information includes information on the storage status of at least one third network element, and the second information is used for the data
- the storage device determines to send the first message.
- the transceiver unit is further configured to receive second information, where the second information includes information on the storage status of at least one third network element;
- the processing unit is further configured to determine to send the first message based on the second information.
- the transceiver unit is further configured to send fourth information when the data storage device sends the second data to be stored to the second network element.
- the fourth information is used to indicate that the storage network element corresponding to the second data to be stored or the second data to be stored is not stored in the data storage device.
- the fourth information is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the transceiver unit is further configured to receive a second request when the data storage device sends the second data to be stored to the second network element.
- the second request is used to request access to the second data to be stored.
- the device includes:
- a transceiver unit configured to receive a first message, the first message being used to request the data storage device to store second data to be stored, where the second data to be stored is the data of the first network element;
- the transceiver unit is also configured to send a second message, where the second message is used by the first network element to determine a storage method for the second data to be stored.
- the transceiver unit is further configured to receive a message sent by the first network element when the second message indicates that the data storage device allows storage of the second data to be stored.
- the second data to be stored or,
- the second message indicates that the data storage device is not allowed to store the second data to be stored
- the second message is used by the first network element to determine to store the second data to be stored in
- the first network element may, alternatively, send a third message, where the third message is used to request the third network element to store the second data to be stored.
- the first message is a message received by the transceiver unit determined based on at least one of the attributes of the second data to be stored and the storage status of the first network element.
- the first message is a message determined to be received by the transceiver unit when the storage state of the first network element is a first state, wherein the first state represents The size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition.
- the first message is a message determined to be received by the transceiver unit when the second data to be stored is data of the first type, wherein the data of the first type is The attribute satisfies the third condition.
- the first message is determined by the transceiver when the second data to be stored is the first type of data and the storage state of the first network element is the first state. Messages received by the unit;
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
- the transceiver unit is also configured to send information about the data storage device, and the information about the data storage device is used to uniquely identify the data storage device.
- the information about the data storage device includes at least one of the following: an identification of the data storage device and an address of the data storage device.
- the information of the data storage device is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the first message is a message received by the transceiver unit based on the storage status of the data storage device.
- the first message is determined when the storage state of the first network element is the first state and the storage state of the data storage device is the third state.
- the third state represents that the size of the available storage resources of the data storage device satisfies the fourth condition, or the storage resource utilization of the data storage device satisfies the fifth condition.
- the transceiver unit is further configured to receive first information, where the first information includes information about the storage status of the first network element.
- the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
- the first information is used by the third network element to select whether to store the data to be stored from the first network element.
- the transceiver unit is also configured to send second information, where the second information includes information about the storage status of the data storage device, and the second information is used for the first
- the network element determines to send the first message.
- the transceiver unit is further configured to receive fourth information when the first network element sends the second data to be stored to the data storage device.
- the fourth information is used to indicate the storage network element corresponding to the second data to be stored or the second data to be stored is not stored in the first network element.
- the fourth information is received in any of the following ways:
- the transceiver unit is further configured to send a second request when the first network element sends the second data to be stored to the data storage device.
- the second request is used to request access to the second data to be stored.
- embodiments of the present application provide an electronic device including a processor.
- the processor is coupled to a memory and may be used to execute instructions in the memory to implement any one of the above first to fourth aspects and the method of any possible implementation.
- the electronic device further includes a memory.
- the electronic device further includes a communication interface, and the processor is coupled to the communication interface.
- embodiments of the present application provide a computer-readable storage medium, the computer-readable storage medium being used to store a computer program (which may also be called a code, or an instruction); when the computer program is run on a computer
- a computer program which may also be called a code, or an instruction
- inventions of the present application provide a computer program product.
- the computer program product includes: a computer program (which may also be called a code, or an instruction); when the computer program is run, it causes the computer to execute the above-mentioned first step.
- a computer program which may also be called a code, or an instruction
- embodiments of the present application provide a chip.
- the chip includes a processor.
- the processor is configured to execute instructions.
- the chip performs any of the above first to fourth aspects.
- the chip also includes a communication interface, which is used to receive signals or send signals.
- embodiments of the present application provide a vehicle terminal, which includes at least one data storage device as described in the fifth aspect, or an electronic device as described in the sixth aspect, or a chip as described in the ninth aspect. .
- embodiments of the present application provide a system, which includes a vehicle terminal and at least one data storage device as described in the fifth aspect, or an electronic device as described in the sixth aspect, or an electronic device as described in the ninth aspect. of chips.
- embodiments of the present application provide a system, which includes a first network element and a second network element; wherein the first network element is used to perform the first aspect and any possible implementation.
- the second network element is configured to perform the method of the second aspect and any possible implementation manner; or the first network element is configured to perform the method of the third aspect and any possible implementation manner.
- the second network element is configured to perform the method of the fourth aspect and any possible implementation manner.
- the process of sending information and/or receiving information in the above method can be understood as The process by which a processor outputs information, and/or the process by which a processor receives input information.
- the processor may output the information to the transceiver (or communication interface, or transmitting module) for transmission by the transceiver. After the information is output by the processor, it may also need to undergo other processing before it reaches the transceiver.
- the transceiver or communication interface, or sending module
- the transceiver receives the information and inputs it into the processor.
- the information may need to undergo other processing before being input to the processor.
- the sending information mentioned in the foregoing method can be understood as processor output information.
- receiving information can be understood as the processor receiving input information.
- the above processor may be a processor specially used to execute these methods, or may be A processor, such as a general-purpose processor, that performs these methods by executing computer instructions in memory.
- the above-mentioned memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be separately provided on different chips.
- ROM read-only memory
- the above-mentioned at least one memory is located outside the device.
- the above-mentioned at least one memory is located within the device.
- part of the at least one memory is located within the device, and another part of the memory is located outside the device.
- processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together.
- multiple network elements are used to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- Figure 1 is an architectural schematic diagram of a vehicle system provided by an embodiment of the present application
- Figure 2 is a schematic architectural diagram of a storage system provided by an embodiment of the present application.
- Figure 3 is a schematic flow chart of a data storage method provided by an embodiment of the present application.
- Figure 4 is a schematic flow chart of another data storage method provided by an embodiment of the present application.
- Figure 5 is a schematic flow chart of another data storage method provided by an embodiment of the present application.
- Figure 6 is a schematic flow chart of another data storage method provided by an embodiment of the present application.
- Figure 7 is a schematic structural diagram of a data storage device provided by an embodiment of the present application.
- Figure 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- Figure 9 is a schematic structural diagram of a chip provided by an embodiment of the present application.
- an embodiment means that a particular feature, structure or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application.
- the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments.
- Those skilled in the art can understand explicitly and implicitly that in the various embodiments of the present application, if there are no special instructions and logical conflicts, the terminology and/or descriptions between the various embodiments are consistent, and can By referencing each other, technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
- At least one (item) refers to one or more
- plural refers to two or more
- at least two (items) refers to two or three and three or more
- "and/or” is used to describe the relationship between associated objects, indicating that there can be three relationships.
- a and/or B can mean: only A exists, only B exists, and A exists at the same time. and B, where A and B can be singular or plural.
- the character “/” generally indicates that the related objects are in an "or” relationship.
- At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
- At least one of a, b or c can mean: a, b, c, "a and b", “a and c", “b and c", or "a and b and c” ”, where a, b, c can be single or multiple.
- This application provides a data storage method, which relates to the technical field of intelligent driving.
- some knowledge related to intelligent driving is first introduced below.
- the current vehicle control is divided into five major areas according to functions: power domain, chassis domain, cockpit domain, autonomous driving domain and body domain. Each area launches a corresponding domain controller, and finally through the controller area network, Communication methods such as CAN) or local interconnect network (LIN) are connected to the main line or even hosted in the cloud, thereby realizing the interaction of vehicle information data.
- Communication methods such as CAN) or local interconnect network (LIN) are connected to the main line or even hosted in the cloud, thereby realizing the interaction of vehicle information data.
- Intelligent driving domain controller An intelligent driving car contains four core subsystems: sensors, computing platforms, actuators, and application algorithms.
- the intelligent driving domain controller is positioned as a computing platform and is responsible for realizing intelligent driving panoramic perception, map and sensor fusion.
- the automobile "brain" with functions such as positioning, decision-making, planning, and control is suitable for passenger cars (such as congestion following, high-speed cruising, automatic valet parking), commercial vehicles (such as port freight, trunk logistics) and work vehicles (such as Such as mining trucks, cleaning vehicles, unmanned delivery) and other application scenarios.
- the smart cockpit domain controller needs to have excellent processing performance to support cockpit domain applications, such as voice recognition, gesture recognition, etc.; provide excellent display performance support, while supporting virtualization technology and supporting multiple cores
- the screen display meets the display needs of various sizes of instrument screens and central control screens, and isolates applications with different security levels. It also provides external and internal communication capabilities and provides a stable and high-speed communication network to easily cope with various high-speed Network requirements for bandwidth applications.
- Vehicle domain controller With the development of the vehicle, there are more and more body controllers. In order to reduce the cost of the controller and reduce the weight of the vehicle, integration requires all functional devices, from the front part of the vehicle to the middle part of the vehicle and Parts at the rear of the car, such as the rear brake lights, rear position lights, tailgate locks, and even the double struts, are all connected to a master controller.
- the vehicle domain controller has gradually transitioned from a decentralized function combination to a large controller integrating basic drives, key functions, lights, doors, windows, etc. of all body electronics.
- Power domain controller It is an intelligent powertrain management unit that uses CAN and other communication methods to manage the transmission, manage the battery, monitor the alternator adjustment. Its advantage lies in calculating and allocating torque to a variety of power system units (such as internal combustion engines, electric motors/generators, batteries, gearboxes, etc.), and achieving carbon dioxide emission reductions through predictive driving strategies.
- power system units such as internal combustion engines, electric motors/generators, batteries, gearboxes, etc.
- Chassis domain controller The chassis domain is related to vehicle driving and consists of transmission system, driving system, steering system and braking system.
- the control execution end mainly includes drive control, steering control, braking control, etc., which requires wire-controlled transformation of the chassis of traditional cars. suitable for autonomous driving.
- Vehicle-mounted gateway As the core control device of the vehicle network system, the vehicle-mounted gateway is responsible for coordinating protocol conversion, data exchange, fault diagnosis, etc. between CAN bus networks and other data networks with different structures and characteristics.
- the vehicle-mounted gateway is used to provide network compatibility functions such as protocol conversion and data exchange when collecting networks with different architectures or protocols.
- the vehicle-mounted gateway can be understood as a connector between networks, a protocol converter, and a data converter. Translator. Vehicle-mounted gateways can be used for both wide-area interconnection and local-area interconnection, serving as a computer system or device responsible for conversion between two systems that use different protocols, data or languages, or even two completely different architectures. Make the conversion.
- FIG. 1 is an architectural schematic diagram of a vehicle system provided by an embodiment of the present application.
- the vehicle system includes multiple ECUs, such as vehicle gateways (vehicle gateway 1, vehicle gateway 2, vehicle gateway 3, vehicle gateway 4, etc.), intelligent driving domain controller, intelligent cockpit domain controller, Vehicle domain controller and other ECUs.
- vehicle gateways vehicle gateway 1, vehicle gateway 2, vehicle gateway 3, vehicle gateway 4, etc.
- intelligent driving domain controller intelligent cockpit domain controller
- Vehicle domain controller and other ECUs.
- the above-mentioned ECUs are connected to each other through communication methods such as CAN or LIN or Ethernet port, thereby realizing the interaction of vehicle information data.
- modules/components/architecture of the vehicle system shown in Figure 1 above are divided based on logical functions. In practical applications, the function of one module/component can also be implemented by multiple modules/components, or multiple The functions of each module/component are implemented by one module/component.
- the vehicle system shown in the embodiment of this application is only a possible architecture implementation, and this application should not be limited by this.
- ECUs have their own storage units, such as non-volatile memory, embedded multimedia cards, etc., in order to store key information.
- the vehicle-mounted gateway will record key information about hardware errors in the storage unit for subsequent query and analysis.
- Storage units will have service life limits. For example, if the number of erase times exceeds the limit, abnormal power failure, etc., bad blocks will be generated, thus affecting the normal use of the storage unit. At present, for ECUs with high bad block rates in storage units, the ECU is usually replaced as a whole to ensure the normal use of the storage function. However, the above method may lead to data loss, poor data storage stability, and high storage costs.
- this application provides a new data storage architecture, and accordingly proposes a new data storage method based on this architecture, using Multiple network elements collaborate to complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- network elements such as the first network element, the second network element, etc. below, can be simply understood as elements in the network, which can be monitored and managed in network management. the smallest unit.
- a network element can be a collection of one or more disks or chassis that can independently complete certain transmission functions.
- Figure 2 is a schematic architectural diagram of a storage system provided by an embodiment of the present application.
- this storage system is used in the field of intelligent driving technology.
- This storage system includes a vehicle-mounted gateway 4 and an intelligent cockpit domain controller.
- the above-mentioned vehicle-mounted gateway 4 and the intelligent cockpit domain controller communicate through CAN, LIN or Ethernet port. Connect to each other to realize the exchange of information data between the vehicle gateway 4 and the smart cockpit domain controller.
- the smart cockpit domain controller mainly includes a storage read-write interface module, a local storage status management module, a storage policy decision-making module, and a global storage status management module.
- the storage read and write interface module is used to receive read and write data requests from remote network elements (such as vehicle gateway 4), request to write data to be stored in the remote network element, or request to read local stored data of the smart cockpit domain controller; Alternatively, the storage read and write interface module is also used to send local read and write data requests to the smart cockpit domain controller, request to read local storage data of the remote network element (such as the vehicle gateway 4), or request to write to the smart cockpit domain controller. of data to be stored.
- the local storage status management module is used to obtain bad block information, erasure times, alarm information and other storage-related information of the storage unit in the smart cockpit domain controller, and generate the storage status of the smart cockpit domain controller based on this information.
- the generated storage status of the smart cockpit domain controller may include but is not limited to: the size of available storage resources of the storage unit in the smart cockpit domain controller, or the size of storage resource utilization, and so on.
- the storage status of the smart cockpit domain controller represents the storage performance of the storage unit in the smart cockpit domain controller.
- the smart cockpit domain controller can decide whether to store data in the storage unit of the smart cockpit domain controller based on the storage status.
- the storage status of the smart cockpit domain controller can also be sent to the remote network element (such as the vehicle gateway 4) through the storage read-write interface module, which is used by the remote network element to decide whether to store the data to be stored in the remote network element to the smart cockpit.
- the remote network element such as the vehicle gateway 4
- the storage read-write interface module which is used by the remote network element to decide whether to store the data to be stored in the remote network element to the smart cockpit.
- the global storage status management module is used to obtain the storage status of remote network elements from interconnected remote network elements (such as vehicle gateway 4) through communication methods such as CAN, LIN or Ethernet, and generate global storage status.
- the generated global storage status may include but is not limited to: the size of available storage resources of the storage units of each remote network element globally, or the size of storage resource utilization, and so on.
- the overall situation in the embodiment of this application includes but is not limited to remote network elements that can be connected to the smart cockpit domain controller through communication methods such as CAN, LIN, or Ethernet ports.
- the global storage status represents the storage performance of the storage units in each remote network element globally.
- the smart cockpit domain controller can decide whether to store data in the storage units of each remote network element globally based on the global storage status.
- the global storage status generated by the smart cockpit domain controller can also be sent to the remote network element (such as the vehicle gateway 4) through the storage read-write interface module to share the global network element storage status information with the remote network element for remote use.
- the end network element decides whether to store the data to be stored in the remote network element in the storage unit of the smart cockpit domain controller or other remote network elements.
- the storage policy decision module is used to decide whether to store data in the storage unit of the smart cockpit domain controller based on the local storage status and/or the global storage status, or decide whether to store the data to be stored in the smart cockpit domain controller to the global storage unit.
- each remote network element such as vehicle-mounted gateway 4
- the vehicle gateway 4 is similar to the above-mentioned smart cockpit domain controller, and mainly includes a storage read and write interface module, a local storage status management module, a storage policy decision-making module, and a global storage status management module. Among them, the functions of each module are similar to the modules in the above-mentioned smart cockpit domain controller, and will not be described again here.
- this application proposes a new data storage method based on the architecture of the above-mentioned storage system.
- the data storage method provided by this application will be described in detail below with reference to Figures 3 to 6.
- Figure 3 is a schematic flow chart of a data storage method provided by an embodiment of the present application.
- This data storage method is applied in the field of intelligent driving technology.
- the data storage method includes but is not limited to the following steps:
- the first network element obtains the first data to be stored.
- the first network element in the embodiment of the present application is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc., specifically it can be as shown in Figure 1 above.
- multiple network elements are used to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- the first data to be stored may be the data to be stored locally generated by the first network element, or the data to be stored sent by other network elements to the first network element.
- This application does not constitute a limited.
- S302 Determine a storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
- the first network element determines a storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
- the first data to be stored may be stored in the first network element, or the first data to be stored may be transmitted to the second network element, and the first data to be stored may be stored in the second network element.
- the attributes of the first data to be stored include but are not limited to data transmission delay, data storage reliability, data importance level, etc., and can be determined according to the type of the first data to be stored.
- the storage status of the first network element includes but is not limited to the size of the available storage resources in the network element, the size of the storage resource utilization, etc., and can be based on the bad block information, erasure times, and alarms in the storage unit of the first network element. Information and other storage-related information are determined.
- the second network element in the embodiment of this application is a network element different from the above-mentioned first network element.
- the second network element is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be each network element/device in the vehicle system shown in Figure 1 above.
- the data storage method uses multiple network elements to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- the first network element may determine the storage method of the first data to be stored according to the storage status of the first network element.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element; in the first network element
- the first network element stores the first data to be stored in the first network element.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the second state represents the size of the available storage resources of the first network element.
- the first condition is not met, or the storage resource utilization of the first network element does not meet the second condition.
- the above-mentioned first condition may include that the size of available storage resources is less than a first threshold
- the above-mentioned second condition may include that the storage resource utilization is less than a second threshold.
- the first network element when the size of the available storage resources of the first network element is less than the first threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. In the network element; when the size of the available storage resource of the first network element is greater than or equal to the first threshold, the first network element stores the first data to be stored in the first network element.
- the first network element when the storage resource utilization of the first network element is less than the second threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element.
- the first network element when the storage resource utilization of the first network element is greater than or equal to the second threshold, the first network element stores the first data to be stored in the first network element.
- first threshold and second threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
- the storage mode of the first data to be stored is determined according to the storage state of the first network element, so that when the storage state of the first network element is the first state, the first data to be stored is transmitted to the third network element.
- the second network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and The overall storage availability of the first network element and the second network element is improved, and the storage cost is reduced.
- the first network element may determine the storage method of the first data to be stored based on the attributes of the first data to be stored.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element; in the first network element to be stored
- the first network element stores the first data to be stored in the first network element.
- the attributes of the first type of data and the attributes of the second type of data satisfy the third condition.
- the attributes of the data include but are not limited to data transmission delay, storage reliability, importance level, etc.
- the above third condition may include: the transmission delay requirement of the first type of data is lower than the transmission delay requirement of the second type of data, or the storage reliability requirement of the first type of data is lower than that of the second type of data. Corresponding storage reliability requirements, or the importance level of the first type of data is lower than the corresponding importance level of the second type of data.
- a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
- the third condition that the attributes of the first type of data and the attributes of the second type of data satisfy may include: the transmission delay requirement of the first type of data is less than a third threshold, and the transmission delay requirement of the second type of data corresponds to The delay requirement is greater than or equal to the third threshold; or, the storage reliability requirement of the first type of data is less than the third threshold, and the storage reliability requirement of the second type of data is greater than or equal to the third threshold; or, the storage reliability requirement of the first type of data is greater than or equal to the third threshold.
- the importance level is less than the third threshold, and the importance level corresponding to the second type of data is greater than or equal to the third threshold.
- the first network element when the transmission delay requirement of the first data to be stored is less than the third threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. In the network element; when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, the first network element stores the first data to be stored in the first network element.
- the first network element when the storage reliability requirement of the first data to be stored is less than the third threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. In the network element; when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, the first network element stores the first data to be stored in the first network element.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. in; when the importance level of the first data to be stored is greater than or equal to the third threshold, the first network element stores the first data to be stored in the first network element.
- the above third threshold is not a fixed value and can be adjusted accordingly according to different application scenarios, and this is not limited in the embodiments of the present application.
- the storage method of the first data to be stored is determined according to the attributes of the first data to be stored, so that when the first data to be stored is the first type of data, the first data to be stored is transmitted to the second data.
- the network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and improve This improves the overall storage availability of the first network element and the second network element and reduces storage costs.
- the first network element may determine the storage method of the first data to be stored based on the attributes of the first data to be stored and the storage status of the first network element.
- the first network element When the first data to be stored is the first type of data and the storage state of the first network element is the first state, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is Store it in the second network element; when the first data to be stored is the second type of data and the storage state of the first network element is the second state, the first network element stores the first data to be stored in the first network element. Yuanzhong.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the second state represents the size of the available storage resources of the first network element.
- the first condition is not met, or the storage resource utilization of the first network element does not meet the second condition; the attributes of the first type of data and the attributes of the second type of data meet the third condition, and the attributes of the data include but are not limited to data transmission. Latency, storage reliability, importance level, etc.
- the above-mentioned first condition may include that the size of the available storage resources is less than the first threshold; the above-mentioned second condition may include that the storage resource utilization is less than the second threshold; the above-mentioned third condition may include: the transmission delay of the first type of data The requirements are lower than the transmission delay requirements corresponding to the second type of data, or the storage reliability requirements of the first type of data are lower than the storage reliability requirements of the second type of data, or the importance level of the first type of data is lower than that of the second type of data. The importance levels corresponding to the two types of data.
- a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
- the third condition that the attributes of the first type of data and the attributes of the second type of data satisfy may include: the transmission delay requirement of the first type of data is less than a third threshold, and the transmission delay requirement of the second type of data corresponds to The delay requirement is greater than or equal to the third threshold; or, the storage reliability requirement of the first type of data is less than the third threshold, and the storage reliability requirement of the second type of data is greater than or equal to the third threshold; or, the storage reliability requirement of the first type of data is greater than or equal to the third threshold.
- the importance level is less than the third threshold, and the importance level corresponding to the second type of data is greater than or equal to the third threshold.
- the first network element transmits the first data to be stored.
- the first data to be stored is stored in the second network element; when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than Or equal to the first threshold, the first network element stores the first data to be stored in the first network element.
- the first network element when the transmission delay requirement of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element; when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is If the size is greater than or equal to the second threshold, the first network element stores the first data to be stored in the first network element.
- the first network element transmits the first data to be stored.
- the first data to be stored is stored in the second network element; when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than Or equal to the first threshold, the first network element stores the first data to be stored in the first network element.
- the first network element when the storage reliability requirement of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element; when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is If the size is greater than or equal to the second threshold, the first network element stores the first data to be stored in the first network element.
- the first network element transmits the first data to be stored to the third network element.
- the first data to be stored is stored in the second network element; the importance level of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than or equal to the first
- the first network element stores the first data to be stored in the first network element.
- the first network element transmits the first data to be stored to The second network element stores the first data to be stored in the second network element; when the importance level of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is greater than or equal to In the case of the second threshold, the first network element stores the first data to be stored in the first network element.
- first threshold, second threshold and third threshold are not fixed values and can be adjusted accordingly according to different application scenarios, which is not limited in the embodiments of the present application.
- the storage method of the first data to be stored is determined according to the attributes of the first data to be stored and the storage status of the first network element, so that when the first data to be stored is the first type of data and the first network element is When the storage state is the first state, the first data to be stored is transmitted to the second network element, the first data to be stored is selected to be stored in the second network element, and the second network element is used to cooperate with the first network element to complete the first step.
- the storage of the first data to be stored can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
- possible correlations between the first condition, the second condition and the attributes of the first data to be stored are also provided.
- the first threshold related to the above-mentioned first condition and the second threshold related to the above-mentioned second condition are related to the attributes of the first data to be stored and can be adjusted according to different scenarios.
- the first threshold in the first condition when the first data to be stored is the first type of data, the first threshold in the first condition may be 2GB, and the second threshold in the second condition may be 50%; when the first data to be stored is the When using two types of data, the first threshold in the first condition may be 1GB, and the second threshold in the second condition may be 25%.
- the higher the transmission delay requirement/storage reliability requirement/importance level of the first data to be stored the greater the impact on the first network element.
- the higher the transmission delay requirement/storage reliability requirement/importance level of the first data to be stored the greater the impact on the available storage resources in the first network element or The larger the size requirement for storage resource utilization, the greater the value.
- the relationship between the first threshold involved in the first condition, the second threshold involved in the second condition, and the attributes of the first data to be stored can be used to transmit the first data to be stored to the third
- the second network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and The overall storage availability of the first network element and the second network element is improved, and the storage cost is reduced.
- Embodiment 4 is a diagrammatic representation of Embodiment 4:
- the storage status of the second network element in the embodiment of the present application is: The third state.
- the third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or the storage resource utilization of the second network element satisfies the fifth condition.
- the first network element determines the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the first network element, and also based on the storage status of the second network element. storage method.
- the first network element may determine the storage method of the first data to be stored based on the storage status of the first network element and the storage status of the second network element.
- the first network element transmits the first data to be stored to the second network element.
- the stored data is stored in the second network element; otherwise, the first data to be stored is stored in the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first The data to be stored is stored in the third network element or other network elements.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the third state represents the size of the available storage resources of the second network element.
- the fourth condition is met, or the storage resource utilization of the second network element meets the fifth condition.
- the above-mentioned first condition may include that the size of available storage resources is less than a first threshold; the above-mentioned second condition may include that the storage resource utilization is less than a second threshold; the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold ; The above fifth condition may include that the storage resource utilization is greater than the fifth threshold.
- the first network element transmits the first data to be stored.
- the first data to be stored is stored in the second network element.
- the first data to be stored is stored in the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or in other network elements.
- the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element. Otherwise, the first data to be stored is stored in the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or in other network elements.
- the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element. Otherwise, the first data to be stored is stored in the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or in other network elements.
- the first network element sets the first to-be-stored The data is transmitted to the second network element, and the first data to be stored is stored in the second network element. Otherwise, the first data to be stored is stored in the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or in other network elements.
- first threshold, second threshold, fourth threshold and fifth threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
- the storage mode of the first data to be stored is determined according to the storage state of the first network element and the storage state of the second network element, so that the storage state of the first network element is the first state and the second network element
- the storage state is the third state
- the first data to be stored is transmitted to the second network element
- the first data to be stored is selected to be stored in the second network element
- the second network element is used to cooperate with the first network element to complete the
- the storage of the first data to be stored can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
- Embodiment 1 to Embodiment 4 are only used as several possible embodiments to specifically illustrate the storage method of determining the first data to be stored in step S302 of the embodiment of the present application, and should not be used to implement the present application. Examples constitute limitations.
- the first network element obtains the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
- the information of the second network element may include at least one of the following: the identifier of the second network element, or the address of the second network element, or other information used to authenticate the identity of the second network element; this application No restrictions.
- the first network element when it is necessary to transmit the first data to be stored to the second network element, the first network element can obtain the data of the second network element according to the embodiment of the present application. information, transmitting the first data to be stored to the second network element uniquely identified by the information.
- the first network element when the storage state of the first network element is the first state, the first network element can store the first network element according to the information of the second network element obtained in the embodiment of this application.
- the data to be stored is transmitted to the second network element uniquely identified by the information.
- the first to-be-stored data needs to be transmitted to the second network element in Embodiment 2 to Embodiment 4 please refer to the above description and will not be described again here.
- the first network element can transmit the first data to be stored to the second network element according to the information of the second network element, and choose to store the first data to be stored in the second network element.
- the first network element can obtain the information of the second network element through preconfigured information.
- the first network element can also receive the broadcast message to obtain the information of the second network element.
- the second network element sends the information of the second network element to the first network element point-to-point, and accordingly, the first network element receives the information of the second network element.
- the second network element sends the second network element's information to the centralized controller point-to-point, and then the centralized controller sends the second network element's information to the first network element.
- the first network element receives the second network element's information. Information about the second network element.
- the information of the second network element is obtained through the embodiment of the present application, including the identifier of the second network element, or the address of the second network element, or other information used to authenticate the identity of the second network element, and the first network element can use this information to authenticate the identity of the second network element.
- the first data to be stored is transmitted to the second network element, and the first data to be stored is selected to be stored in the second network element.
- a possible specific implementation manner of sending the first information is also provided.
- the first network element sends first information
- the first information includes but is not limited to information about the storage status of the first network element.
- the first network element may send a broadcast message, where the broadcast message includes a message indicating the first information, and the first information includes information about the storage status of the first network element.
- the broadcast message includes a message indicating the first information
- the first information includes information about the storage status of the first network element.
- other network elements such as the second network element can learn the storage status of the first network element by receiving the broadcast message.
- the first network element can send the first information point-to-point to the second network element and other other network elements.
- the second network element and other network elements can learn the first information by receiving the first information point-to-point sent by the first network element.
- the storage status of the first network element can be
- the first network element can send the first information to the centralized controller point-to-point, and then the centralized controller sends the first information to the second network element and other other network elements.
- the second network element and other other network elements can The network element can learn the storage status of the first network element by receiving the first information sent point-to-point by the centralized controller.
- the second network element can obtain the first information and learn the storage status information of the first network element.
- the first information is used to indicate the size of the available storage resources of the first network element, or the size of the storage resource utilization of the first network element.
- the first information is used to instruct other network elements such as the third network element to choose whether to transmit the data to be stored to the first network element.
- the first information is used to instruct other network elements such as the third network element to choose whether to store the data to be stored from the first network element.
- the third network element and other other network elements can choose whether to store the data to be stored of the third network element and other other network elements in the first network element according to the content indicated by the first information.
- Other network elements such as the network element can also choose whether to store the data to be stored from the first network element according to the content indicated by the first information.
- a possible specific implementation manner of receiving the second information is also provided.
- the first network element receives the second information
- the second information includes but is not limited to information about the storage status of at least one third network element
- the first network element can determine the storage method of the first data to be stored based on the second information. and/or a storage network element for the first data to be stored, such as storing the first data to be stored in the at least one third network element.
- the third network element in the embodiment of the present application and the second network element mentioned above may be the same network element or may be different network elements, and the embodiment of the present application does not limit this.
- the first network element receives a broadcast message.
- the broadcast message includes a message indicating second information.
- the second information includes information on the storage status of at least one third network element.
- the first network element obtains the information by receiving the broadcast message.
- the storage status of at least one third network element is known.
- the second network element sends the second information point-to-point to the first network element.
- the first network element learns the storage status of at least one third network element by receiving the second information sent point-to-point by the second network element.
- the second network element sends the second information point-to-point to the centralized controller, and then the centralized controller sends the second information to the first network element.
- the first network element sends point-to-point information by receiving the centralized controller.
- the second information obtains the storage status of at least one third network element.
- the first network element can learn the storage status information of at least one third network element based on the second information, and determine the storage status of the first pending network element based on the storage status of at least one third network element.
- the stored data is stored in the at least one third network element, and the at least one third network element is used to cooperate with the first network element to complete the storage of the first data to be stored.
- a possible specific implementation manner of sending the third information is also provided.
- the first network element when the first network element transmits the first data to be stored to the second network element, the first network element sends third information, and the third information is used to indicate the storage network element corresponding to the first data to be stored. Or the first data to be stored is not stored in the first network element.
- the first network element can inform other network elements of the storage network element corresponding to the first data to be stored by sending the third information, so as to facilitate other network elements to initiate access requests for the first data to be stored.
- the first network element may send a broadcast message.
- the broadcast message includes a message indicating third information.
- the third information includes information indicating a storage network element corresponding to the first data to be stored, or the first network element to be stored.
- the stored data is not stored in the first network element.
- other network elements such as the third network element can learn the storage network element corresponding to the first data to be stored by receiving the broadcast message, so as to initiate an access request for the first data to be stored.
- the first network element may send the third information point-to-point to the third network element or other network elements.
- other network elements such as the third network element can learn the storage network element corresponding to the first data to be stored by receiving the third information sent point-to-point by the first network element, so as to initiate an access request for the first data to be stored.
- the first network element can send the third information to the centralized controller point-to-point, and then the centralized controller sends the first information to the third network element or other network elements.
- other network elements such as the third network element can learn the storage network element corresponding to the first data to be stored by receiving the third information sent point-to-point by the centralized controller, so as to initiate an access request for the first data to be stored.
- the third network element and other network elements can obtain the third information, learn the storage network element corresponding to the first data to be stored, and initiate an access request to the first data to be stored.
- a possible specific implementation manner of receiving the first request is also provided.
- the first network element when the first network element transmits the first data to be stored to the second network element, the first network element receives the first request to access the first data to be stored.
- the third network element may request the second network element to access the first data to be stored, and the second network element then sends the first request to the first network element.
- the first network element receives the first request from the second network element.
- the third network element may also directly send the first request to the first network element, requesting access to the first data to be stored.
- the first network element receives the first request from the third network element.
- the second network element may directly send the first data to be stored to the third network element or other access to the first data to be stored.
- the network element may also be a second network element that forwards the first data to be stored to a third network element or other network elements that access the first data to be stored via the first network element.
- the first network element controls the access rights of other network elements to the first data to be stored by receiving a request to access the first data to be stored. Even if the first data to be stored is stored in the second network element, It can also ensure that the first network element controls the storage security of the first data to be stored.
- FIG. 3 is only a possible method embodiment applied in the field of intelligent driving technology, and is used for a specific explanation of determining the storage method of the first data to be stored.
- the data storage method shown in Figure 3 above can also be applied to other technical fields outside the field of intelligent driving technology, and is suitable for technical solutions that use multiple network elements to share storage resources and collaboratively complete data storage.
- the network element is usually replaced as a whole to ensure the normal use of the storage function.
- the replacement process may cause data loss, poor data storage stability, and storage higher cost.
- the embodiment of the present application determines the storage method of the data to be stored based on at least one of the attributes of the data to be stored and the storage status of the network element. Specifically, you can choose to store the data to be stored in the first In the network element, you can also choose to store the data to be stored in other network elements. Using multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of the network element, and reduce storage costs. .
- Figure 4 is a schematic flowchart of another data storage method provided by an embodiment of the present application. Alternatively, it can also be understood as a modification or supplement of the flowchart of the data storage method in Figure 3. Specifically, it can be understood as This is a supplementary explanation on the content of "determining the storage method of the first data to be stored" in step S302 executed by the first network element in Figure 3.
- the data storage method in the embodiment of this application is applied in the field of intelligent driving technology.
- the data storage method includes but is not limited to the following steps:
- the first network element obtains the first data to be stored.
- the first network element in the embodiment of the present application is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc., specifically it can be as shown in Figure 1 above.
- multiple network elements are used to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- the first data to be stored may be the data to be stored locally generated by the first network element, or the data to be stored sent by other network elements to the first network element.
- This application does not constitute a limited.
- S402 Determine a storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
- the first network element determines a storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
- Determining the storage method of the first data to be stored may specifically include determining the storage method as described in step S403: transmitting the first data to be stored to the second network element. Or, determine the storage method as described in step S404: store the first data to be stored in the first network element.
- steps S403 and S404 are two optional steps. Which storage method should be performed may be based on the attributes of the first data to be stored, the storage status of the first network element, and the characteristics of the first network element. Determined by the storage status of other network elements connected to the communication.
- the attributes of the first data to be stored include but are not limited to data transmission delay, data storage reliability, data importance level, etc., and can be determined according to the type of the first data to be stored.
- the storage status of the first network element includes but is not limited to the size of the available storage resources in the network element, the size of the storage resource utilization, etc., and can be based on the bad block information, erasure times, and alarms in the storage unit of the first network element. Information and other storage-related information are determined.
- the second network element in the embodiment of this application is a network element different from the above-mentioned first network element.
- the second network element is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be each network element/device in the vehicle system shown in Figure 1 above.
- the data storage method uses multiple network elements to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- S403 Transmit the first data to be stored to the second network element.
- the first network element determines to transmit the first data to be stored to the second network element according to the storage status of the first network element.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition.
- the above-mentioned first condition may include that the size of available storage resources is less than a first threshold
- the above-mentioned second condition may include that the storage resource utilization is less than a second threshold.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. in the network element.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. in the second network element.
- first threshold and second threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
- the first network element determines to transmit the first data to be stored to the second network element according to the attributes of the first data to be stored.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element.
- the attributes of the first type of data satisfy the third condition, and the attributes of the data include but are not limited to data transmission delay, storage reliability, importance level, etc.
- the above third condition may include: the transmission delay requirement of the first type of data is lower than the transmission delay requirement of the second type of data, or the storage reliability requirement of the first type of data is lower than that of the second type of data. Corresponding storage reliability requirements, or the importance level of the first type of data is lower than the corresponding importance level of the second type of data.
- a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
- the third condition satisfied by the attributes of the first type of data may include: the transmission delay requirement of the first type of data is less than a third threshold; or the storage reliability requirement of the first type of data is less than the third threshold. threshold; or, the importance level of the first type of data is less than the third threshold.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. in the network element.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. in the network element.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. middle.
- the above third threshold is not a fixed value and can be adjusted accordingly according to different application scenarios, and this is not limited in the embodiments of the present application.
- the first network element determines to transmit the first data to be stored to the second network element based on the attributes of the first data to be stored and the storage status of the first network element.
- the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition, and the attributes of the data Including but not limited to data transmission delay, storage reliability, importance level, etc.
- the above-mentioned first condition may include that the size of the available storage resources is less than the first threshold; the above-mentioned second condition may include that the storage resource utilization is less than the second threshold; the above-mentioned third condition may include: the transmission delay of the first type of data The requirements are lower than the transmission delay requirements corresponding to the second type of data, or the storage reliability requirements of the first type of data are lower than the storage reliability requirements of the second type of data, or the importance level of the first type of data is lower than that of the second type of data. The importance levels corresponding to the two types of data.
- a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
- the third condition satisfied by the attributes of the first type of data may include: the transmission delay requirement of the first type of data is less than a third threshold; or the storage reliability requirement of the first type of data is less than the third threshold. threshold; or, the importance level of the first type of data is less than the third threshold.
- the first network element transmits the first data to be stored.
- the first data to be stored is stored in the second network element.
- the first network element when the transmission delay requirement of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element.
- the first network element transmits the first data to be stored.
- the first data to be stored is stored in the second network element.
- the first network element when the storage reliability requirement of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element.
- the first network element transmits the first data to be stored to the third network element.
- the first data to be stored is stored in the second network element.
- the first network element transmits the first data to be stored to The second network element stores the first data to be stored in the second network element.
- first threshold, second threshold and third threshold are not fixed values and can be adjusted accordingly according to different application scenarios, which is not limited in the embodiments of the present application.
- the first network element determines to transmit the first data to be stored to the third network element based on at least one of the attributes of the first data to be stored and the storage status of the first network element, and also based on the storage status of the second network element. Two network elements.
- the first network element may determine to transmit the first data to be stored to the second network element based on the storage status of the first network element and the storage status of the second network element.
- the first network element transmits the first data to be stored to the second network element.
- the stored data is stored in the second network element.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the third state represents the size of the available storage resources of the second network element.
- the fourth condition is met, or the storage resource utilization of the second network element meets the fifth condition.
- the above-mentioned first condition may include that the size of available storage resources is less than a first threshold; the above-mentioned second condition may include that the storage resource utilization is less than a second threshold; the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold ; The above fifth condition may include that the storage resource utilization is greater than the fifth threshold.
- the first network element transmits the first data to be stored.
- the first data to be stored is stored in the second network element.
- the first network element when the size of the available storage resources of the first network element is less than the first threshold, and the size of the storage resource utilization of the second network element is greater than the fifth threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element.
- the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element.
- the first network element sets the first to-be-stored The data is transmitted to the second network element, and the first data to be stored is stored in the second network element.
- first threshold, second threshold, fourth threshold and fifth threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
- S404 Store the first data to be stored in the first network element.
- the first network element may determine to store the first data to be stored in the first network element according to the storage status of the first network element.
- the first network element stores the first data to be stored in the first network element.
- the second state represents that the size of the available storage resources of the first network element does not meet the first condition, or the storage resource utilization of the first network element does not meet the second condition.
- the above-mentioned first condition may include that the size of available storage resources is less than a first threshold
- the above-mentioned second condition may include that the storage resource utilization is less than a second threshold.
- the first network element when the size of the available storage resource of the first network element is greater than or equal to the first threshold, the first network element stores the first data to be stored in the first network element.
- the first network element stores the first data to be stored in the first network element.
- first threshold and second threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
- the first network element determines to store the first data to be stored in the first network element according to the attributes of the first data to be stored.
- the first network element stores the first data to be stored in the first network element.
- the attributes of the second type of data satisfy the third condition, and the attributes of the data include but are not limited to data transmission delay, storage reliability, importance level, etc.
- the above third condition may include: the transmission delay requirement of the first type of data is lower than the transmission delay requirement of the second type of data, or the storage reliability requirement of the first type of data is lower than that of the second type of data. Corresponding storage reliability requirements, or the importance level of the first type of data is lower than the corresponding importance level of the second type of data.
- a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
- the third condition satisfied by the attributes of the second type data may include: the transmission delay requirement corresponding to the second type data is greater than or equal to the third threshold; or, the storage reliability corresponding to the second type data It is required to be greater than or equal to the third threshold; or, the importance level corresponding to the second type of data is greater than or equal to the third threshold.
- the first network element stores the first data to be stored in the first network element.
- the first network element stores the first data to be stored in the first network element.
- the first network element stores the first data to be stored in the first network element.
- the above third threshold is not a fixed value and can be adjusted accordingly according to different application scenarios, and this is not limited in the embodiments of the present application.
- the first network element determines to store the first data to be stored in the first network element based on the attributes of the first data to be stored and the storage status of the first network element.
- the first network element stores the first data to be stored in the first network element.
- the second state represents that the size of the available storage resources of the first network element does not meet the first condition, or the storage resource utilization rate of the first network element does not meet the second condition; the attributes of the second type of data satisfy the third condition, and the data
- the attributes include but are not limited to data transmission delay, storage reliability, importance level, etc.
- the above-mentioned first condition may include that the size of the available storage resources is less than the first threshold; the above-mentioned second condition may include that the storage resource utilization is less than the second threshold; the above-mentioned third condition may include: the transmission delay of the first type of data The requirements are lower than the transmission delay requirements corresponding to the second type of data, or the storage reliability requirements of the first type of data are lower than the storage reliability requirements of the second type of data, or the importance level of the first type of data is lower than that of the second type of data. The importance levels corresponding to the two types of data.
- a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
- the third condition satisfied by the attributes of the second type data may include: the transmission delay requirement corresponding to the second type data is greater than or equal to the third threshold; or, the storage reliability corresponding to the second type data It is required to be greater than or equal to the third threshold; or, the importance level corresponding to the second type of data is greater than or equal to the third threshold.
- the first network element when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than or equal to the first threshold, the first network element will first The data to be stored is stored in the first network element.
- the first network element when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is greater than or equal to the second threshold, the first network element will The data to be stored is stored in the first network element.
- the first network element when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than or equal to the first threshold, the first network element will first The data to be stored is stored in the first network element.
- the first network element when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is greater than or equal to the second threshold, the first network element will The data to be stored is stored in the first network element.
- the first network element when the importance level of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than or equal to the first threshold, the first network element will store the first data to be stored. The data is stored in the first network element.
- the first network element when the importance level of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is greater than or equal to the second threshold, the first network element will store the first data to be stored. The stored data is stored in the first network element.
- first threshold, second threshold and third threshold are not fixed values and can be adjusted accordingly according to different application scenarios, which is not limited in the embodiments of the present application.
- the first network element Based on at least one of the attributes of the first data to be stored and the storage status of the first network element, the first network element also determines to store the first data to be stored in the second network element based on the storage status of the second network element.
- One network element One network element.
- the first network element may determine to store the first data to be stored in the first network element based on the storage status of the first network element and the storage status of the second network element.
- the first data to be stored is stored in the first network element, or the first data to be stored is stored in the first network element.
- the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or other network elements.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the third state represents the size of the available storage resources of the second network element.
- the fourth condition is met, or the storage resource utilization of the second network element meets the fifth condition.
- the above-mentioned first condition may include that the size of available storage resources is less than a first threshold; the above-mentioned second condition may include that the storage resource utilization is less than a second threshold; the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold ; The above fifth condition may include that the storage resource utilization is greater than the fifth threshold.
- the first data to be stored is stored in In the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or other network elements.
- the first data to be stored is stored. to the first network element, or transmit the first data to be stored to a third network element or other network elements, and store the first data to be stored in the third network element or other network elements.
- the first data to be stored is stored. to the first network element, or transmit the first data to be stored to a third network element or other network elements, and store the first data to be stored in the third network element or other network elements.
- the first data to be stored is Store the data in the first network element, or transmit the first data to be stored to the third network element or other network elements, and store the first data to be stored in the third network element or other network elements.
- first threshold, second threshold, fourth threshold and fifth threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
- the embodiment of the present application determines the storage method of the data to be stored based on at least one of the attributes of the data to be stored and the storage status of the network element. Specifically, you can choose to store the data to be stored in the first network element, or you can choose to store the data to be stored in the first network element. Store data in other network elements, and use multiple network elements to collaborate to complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- Figure 5 is a schematic flowchart of another data storage method provided by an embodiment of the present application. Alternatively, it can also be understood as a modification or supplement of the flowchart of the data storage method in Figures 3 and 4. Specifically, It can be understood as a supplementary explanation of the content of determining the storage method of the data to be stored through message interaction between the first network element and the second network element in the above-mentioned FIG. 3 and FIG. 4 .
- the data storage method in the embodiment of this application is applied in the field of intelligent driving technology.
- the data storage method includes but is not limited to the following steps:
- S501 The first network element sends the first message to the second network element.
- the second network element receives the first message sent by the first network element.
- the first message is used to request the second network element to store the second to-be-stored data of the first network element.
- the first network element in the embodiment of this application is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be the vehicle system shown in Figure 1 above.
- Each network element/device in the storage system, or each network element/device in the storage system shown in Figure 2 above, such as vehicle gateway, intelligent driving domain controller, intelligent cockpit domain controller, vehicle domain controller, power domain Other ECUs such as controllers and chassis domain controllers, or the above-mentioned network elements/devices that integrate the vehicle system shown in Figure 1, or the above-mentioned network elements/devices that integrate the storage system shown in Figure 2, are used for Implementing the data storage method in the embodiment of the present application and utilizing multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- the second network element in the embodiment of this application is a network element different from the above-mentioned first network element.
- the second network element is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be each network element/device in the vehicle system shown in Figure 1 above.
- the data storage method uses multiple network elements to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- the first network element determines to send a first message to the second network element according to the storage status of the first network element, for requesting the second network element to store the second data to be stored of the first network element.
- the storage state of the first network element is the first state, it is determined to send a first message to the second network element for requesting the second network element to store the second data to be stored of the first network element.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition.
- the above-mentioned first condition may include that the size of available storage resources is less than a first threshold
- the above-mentioned second condition may include that the storage resource utilization is less than a second threshold.
- the first network element determines to send a first message to the second network element for requesting the second network element to store the first network element.
- the second data to be stored.
- the first network element determines to send a first message to the second network element for requesting the second network element to store the first network element.
- first threshold and second threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
- the first network element determines to send a first message to the second network element according to the attributes of the second data to be stored, for requesting the second network element to store the second data to be stored of the first network element.
- the second data to be stored is data of the first type
- the attributes of the first type of data satisfy the third condition, and the attributes of the data include but are not limited to data transmission delay, storage reliability, importance level, etc.
- the above third condition may include: the transmission delay requirement of the first type of data is lower than the transmission delay requirement of the second type of data, or the storage reliability requirement of the first type of data is lower than that of the second type of data. Corresponding storage reliability requirements, or the importance level of the first type of data is lower than the corresponding importance level of the second type of data.
- a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
- the third condition satisfied by the attributes of the first type of data may include: the transmission delay requirement of the first type of data is less than a third threshold; or the storage reliability requirement of the first type of data is less than the third threshold. threshold; or, the importance level of the first type of data is less than the third threshold.
- the first network element determines to send a first message to the second network element to request the second network element to store the first network element.
- the second data to be stored when the transmission delay requirement of the first data to be stored is less than the third threshold, the first network element determines to send a first message to the second network element to request the second network element to store the first network element.
- the second data to be stored when the transmission delay requirement of the first data to be stored is less than the third threshold, the first network element determines to send a first message to the second network element to request the second network element to store the first network element.
- the second data to be stored when the transmission delay requirement of the first data to be stored is less than the third threshold.
- the first network element determines to send a first message to the second network element to request the second network element to store the first network element.
- the second data to be stored is the third threshold
- the first network element determines to send a first message to the second network element for requesting the second network element to store the first network element's third data. 2. Data to be stored.
- the above third threshold is not a fixed value and can be adjusted accordingly according to different application scenarios, and this is not limited in the embodiments of the present application.
- the first network element determines to send a first message to the second network element according to the attributes of the first data to be stored and the storage status of the first network element, for requesting the second network element to store the second data to be stored of the first network element.
- the second data to be stored is the first type of data and the storage state of the first network element is the first state, it is determined to send a first message to the second network element for requesting the second network element to store the first network element.
- the second data to be stored is the first type of data and the storage state of the first network element is the first state.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition, and the attributes of the data Including but not limited to data transmission delay, storage reliability, importance level, etc.
- the above-mentioned first condition may include that the size of the available storage resources is less than the first threshold; the above-mentioned second condition may include that the storage resource utilization is less than the second threshold; the above-mentioned third condition may include: the transmission delay of the first type of data The requirements are lower than the transmission delay requirements corresponding to the second type of data, or the storage reliability requirements of the first type of data are lower than the storage reliability requirements of the second type of data, or the importance level of the first type of data is lower than that of the second type of data. The importance levels corresponding to the two types of data.
- a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
- the third condition satisfied by the attributes of the first type of data may include: the transmission delay requirement of the first type of data is less than a third threshold; or the storage reliability requirement of the first type of data is less than the third threshold. threshold; or, the importance level of the first type of data is less than the third threshold.
- the first network element determines to send the data to the second network element.
- the first message is used to request the second network element to store the second to-be-stored data of the first network element.
- the first network element determines to send the data to the second network element. Send a first message for requesting the second network element to store the second to-be-stored data of the first network element.
- the first network element determines to send the data to the second network element.
- the first message is used to request the second network element to store the second to-be-stored data of the first network element.
- the first network element determines to send the data to the second network element.
- the first network element determines to send the first data to the second network element.
- the message is used to request the second network element to store the second to-be-stored data of the first network element.
- the first network element determines to send the third data to the second network element.
- first threshold, second threshold and third threshold are not fixed values and can be adjusted accordingly according to different application scenarios, which is not limited in the embodiments of the present application.
- the first threshold related to the above-mentioned first condition and the second threshold related to the above-mentioned second condition are related to the attributes of the second data to be stored, and can be adjusted according to different scenarios.
- the first threshold involved in the first condition, the second threshold involved in the second condition, and related to the attributes of the first data to be stored The contents will not be repeated here.
- the first network element determines to send the first message to the second network element based on at least one of the attributes of the first data to be stored and the storage status of the first network element, and also based on the storage status of the second network element. , used to request the second network element to store the second data to be stored of the first network element.
- the first network element may determine to send the first message to the second network element according to the storage status of the first network element and the storage status of the second network element, for requesting the second network element to store the first network element's third message. 2. Data to be stored.
- the storage state of the first network element is the first state and the storage state of the second network element is the third state, it is determined to send a first message to the second network element for requesting the second network element to store the first The second data to be stored of the network element.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the third state represents the size of the available storage resources of the second network element.
- the fourth condition is met, or the storage resource utilization of the second network element meets the fifth condition.
- the above-mentioned first condition may include that the size of available storage resources is less than a first threshold; the above-mentioned second condition may include that the storage resource utilization is less than a second threshold; the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold ; The above fifth condition may include that the storage resource utilization is greater than the fifth threshold.
- the first network element determines to send the data to the second network element.
- the first message is used to request the second network element to store the second to-be-stored data of the first network element.
- the first network element determines to send the data to the second network element.
- the first network element determines to send the data to the second network element.
- the first network element determines to send the data to the second network.
- the network element sends a first message for requesting the second network element to store the second to-be-stored data of the first network element.
- first threshold, second threshold, fourth threshold and fifth threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
- a possible specific implementation manner of obtaining the information of the second network element is also provided.
- the first network element obtains the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
- the information of the second network element may include at least one of the following: the identifier of the second network element, or the address of the second network element, or other information used to authenticate the identity of the second network element; Embodiments of this application There are no restrictions on this.
- the first network element can obtain the information of the second network element through preconfigured information.
- the first network element can also receive the broadcast message to obtain the information of the second network element.
- the second network element sends the information of the second network element to the first network element point-to-point, and accordingly, the first network element receives the information of the second network element.
- the second network element sends the second network element's information point-to-point to the centralized controller, and then the centralized controller sends the second network element's information to the first network element.
- the first network element receives the second network element's information. Information about the second network element.
- the first network element can send the first message to the second network element based on the information of the second network element, and can also transmit the second data to be stored to the second network element based on the information of the second network element. Select to store the second data to be stored in the second network element.
- a possible specific implementation manner of sending the first information is also provided.
- the first network element sends first information
- the first information includes but is not limited to information about the storage status of the first network element.
- the first network element may send a broadcast message, where the broadcast message includes a message indicating the first information, and the first information includes information about the storage status of the first network element.
- the broadcast message includes a message indicating the first information
- the first information includes information about the storage status of the first network element.
- other network elements such as the second network element can learn the storage status of the first network element by receiving the broadcast message.
- the first network element can send the first information point-to-point to the second network element and other other network elements.
- the second network element and other network elements can learn the first information by receiving the first information point-to-point sent by the first network element.
- the storage status of the first network element can be
- the first network element can send the first information to the centralized controller point-to-point, and then the centralized controller sends the first information to the second network element and other other network elements.
- the second network element and other other network elements can The network element can learn the storage status of the first network element by receiving the first information sent point-to-point by the centralized controller.
- the second network element can obtain the first information and learn the storage status information of the first network element.
- the first information is used to indicate the size of the available storage resources of the first network element, or the size of the storage resource utilization of the first network element.
- the first information is used to instruct other network elements such as the third network element to choose whether to transmit the data to be stored to the first network element.
- the first information is used to instruct other network elements such as the third network element to choose whether to store the data to be stored from the first network element.
- the third network element and other other network elements can choose whether to store the data to be stored of the third network element and other other network elements in the first network element according to the content indicated by the first information.
- Other network elements such as the network element can also choose whether to store the data to be stored from the first network element according to the content indicated by the first information.
- a possible specific implementation manner of receiving the second information is also provided.
- the first network element receives the second information.
- the second information includes but is not limited to information about the storage status of at least one third network element.
- the first network element can determine to send the information to the at least one third network element based on the second information.
- First news is not limited to information about the storage status of at least one third network element.
- the third network element in the embodiment of the present application and the second network element mentioned above may be the same network element or may be different network elements, and the embodiment of the present application does not limit this.
- the first network element receives a broadcast message.
- the broadcast message includes a message indicating second information.
- the second information includes information on the storage status of at least one third network element.
- the first network element obtains the information by receiving the broadcast message.
- the storage status of at least one third network element is known.
- the second network element sends the second information point-to-point to the first network element.
- the first network element learns the storage status of at least one third network element by receiving the second information sent point-to-point by the second network element.
- the second network element sends the second information point-to-point to the centralized controller, and then the centralized controller sends the second information to the first network element.
- the first network element sends point-to-point information by receiving the centralized controller.
- the second information obtains the storage status of at least one third network element.
- the first network element can learn the storage status information of at least one third network element based on the second information, and determine the storage status of the at least one third network element based on the storage status of the at least one third network element.
- the three network elements send a first message, requesting the at least one third network element to cooperate with the first network element to complete the storage of the second data to be stored.
- S502 The second network element sends the second message to the first network element.
- the first network element receives the second message sent by the second network element.
- the second message includes a message used to indicate whether the second network element is allowed to store the second to-be-stored data of the first network element, and the second message is used by the first network element to determine a storage method for the second to-be-stored data.
- the first network element determines the storage method of the second data to be stored according to the second message.
- the first network element sends the second data to be stored to the second network element, and the second data to be stored is stored in the second network element.
- a possible specific implementation manner of sending the fourth information is also provided.
- the first network element when the first network element sends the second data to be stored to the second network element, the first network element sends fourth information, and the fourth information is used to indicate the storage network element or storage network element corresponding to the second data to be stored.
- the second data to be stored is not stored in the first network element.
- the first network element can inform other network elements of the storage network element corresponding to the second data to be stored by sending the fourth information, so as to facilitate other network elements to initiate access requests for the second data to be stored.
- the first network element may send a broadcast message.
- the broadcast message includes a message indicating fourth information.
- the fourth information includes information indicating a storage network element corresponding to the second data to be stored, or the second network element to be stored.
- the stored data is not stored in the first network element.
- other network elements such as the third network element can learn the storage network element corresponding to the second data to be stored by receiving the broadcast message, so as to initiate an access request for the second data to be stored.
- the first network element may send the fourth information point-to-point to the third network element or other network elements.
- other network elements such as the third network element can learn the storage network element corresponding to the second data to be stored by receiving the fourth information sent point-to-point by the first network element, so as to initiate an access request for the second data to be stored.
- the first network element can send the fourth information to the centralized controller point-to-point, and then the centralized controller sends the first information to the third network element or other network elements.
- other network elements such as the third network element can learn the storage network element corresponding to the second data to be stored by receiving the fourth information sent point-to-point by the centralized controller, so as to initiate an access request for the second data to be stored.
- the third network element can obtain the fourth information, learn the storage network element corresponding to the second data to be stored, and initiate an access request for the second data to be stored.
- a possible specific implementation manner of receiving the second request is also provided.
- the first network element receives the second request and requests access to the second data to be stored.
- the third network element may request the second network element to access the second data to be stored, and the second network element then sends the second request to the first network element.
- the first network element receives the second request from the second network element.
- the third network element may also directly send a second request to the first network element, requesting access to the second data to be stored.
- the first network element receives the second request from the third network element.
- the second network element may directly send the second data to be stored to the third network element or other access to the second data to be stored.
- the network element may also be a second network element that forwards the second data to be stored to a third network element or other network elements that access the second data to be stored via the first network element. The embodiment of the present application does not limit this.
- the first network element controls the access rights of other network elements to the second data to be stored by receiving a request to access the second data to be stored. Even if the second data to be stored is stored in the second network element, It can also ensure that the first network element controls the storage security of the second data to be stored.
- the first network element stores the second data to be stored to the first network element; or, the first network element sends a third message to The third network element requests to store the second data to be stored, and determines the storage method of the second data to be stored according to the response message sent by the third network element, specifically whether to determine whether to send the second data to be stored to the third network element or to determine Whether to store the second data to be stored in the first network element or to determine whether to send a fourth message and request the fourth network element to store the second data to be stored, you can refer to the above to determine the storage of the second data to be stored based on the second message. The content of the method will not be repeated here.
- FIG. 5 is only a possible method embodiment applied in the field of intelligent driving technology, and is used for a specific explanation of determining the storage method of the second data to be stored.
- the data storage method shown in Figure 5 above can also be applied to other technical fields outside the field of intelligent driving technology, and is suitable for technical solutions that use multiple network elements to share storage resources and collaboratively complete data storage.
- the first network element when the received response message indicates that the second network element is allowed to store the second data to be stored in the first network element, the first network element sends the second data to be stored to the second network element, using multiple Network elements collaboratively complete the storage of the second data to be stored, which can improve the stability of the storage of the second data to be stored, improve the overall storage availability of the network elements, and reduce storage costs.
- Figure 6 is a schematic flow chart of another data storage method provided by an embodiment of the present application. Alternatively, it can also be understood as a modification or supplement of the flow chart of the data storage method in Figure 5. Specifically, it can be understood as This is a supplementary explanation of the content of step S503 executed by the first network element in Figure 5 above regarding "determining the storage method of the second data to be stored according to the second message.”
- the data storage method in the embodiment of this application is applied in the field of intelligent driving technology.
- the data storage method includes but is not limited to the following steps:
- S601 The first network element sends the first message to the second network element.
- the second network element receives the first message sent by the first network element.
- the first message is used to request the second network element to store the second to-be-stored data of the first network element.
- the first network element in the embodiment of this application is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be the vehicle system shown in Figure 1 above.
- Each network element/device in the storage system, or each network element/device in the storage system shown in Figure 2 above, such as vehicle gateway, intelligent driving domain controller, intelligent cockpit domain controller, vehicle domain controller, power domain Other ECUs such as controllers and chassis domain controllers, or the above-mentioned network elements/devices that integrate the vehicle system shown in Figure 1, or the above-mentioned network elements/devices that integrate the storage system shown in Figure 2, are used for Implementing the data storage method in the embodiment of the present application and utilizing multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- the second network element in the embodiment of this application is a network element different from the above-mentioned first network element.
- the second network element is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be each network element/device in the vehicle system shown in Figure 1 above.
- the data storage method uses multiple network elements to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- step S501 shown in Figure 5 above, which will not be described again here.
- S602 The second network element sends the second message to the first network element.
- the first network element receives the second message sent by the second network element.
- the second message includes a message used to indicate whether the second network element is allowed to store the second to-be-stored data of the first network element, and the second message is used by the first network element to determine a storage method for the second to-be-stored data.
- the first network element sends the second data to be stored to the second network element, and accordingly, the second network element receives the second data to be stored sent by the first network element.
- the first network element sends the second data to be stored to the second network element, and the second data to be stored is stored in the second network element.
- the first network element sends the third message to the third network element, and accordingly, the third network element receives the third message sent by the first network element.
- the first network element sends a third message to the third network element.
- the third message is used to request the third network element to store the second to-be-stored data of the first network element.
- the first network element will also determine the storage method of the second data to be stored based on the response message sent by the third network element. Specifically, it may be to determine to send the second data to be stored to the third network element, or to determine to send the second data to be stored.
- the data to be stored is stored in the first network element, or a fourth message is sent to request the fourth network element to store the second data to be stored. You can refer to the above content to determine the storage method of the second data to be stored based on the second message. , which will not be described again here.
- the third network element and the fourth network element in the embodiment of the present application are network elements different from the above-mentioned first network element and the second network element.
- the description of the first network element and the second network element will not be described again here.
- the first network element stores the second data to be stored in the first network element.
- the first network element stores the second data to be stored in the first network element.
- the first network element when the received response message indicates that the second network element is allowed to store the second data to be stored in the first network element, the first network element sends the second data to be stored to the second network element, using multiple Network elements collaboratively complete the storage of the second data to be stored, which can improve the stability of the storage of the second data to be stored, improve the overall storage availability of the network elements, and reduce storage costs.
- a device for implementing any method in the embodiment of the present application.
- a device is provided that includes a device for implementing any of the above methods.
- FIG. 7 is a schematic structural diagram of a data storage device provided by an embodiment of the present application.
- the data storage device 70 may include a transceiver unit 701 and a processing unit 702 .
- the transceiver unit 701 and the processing unit 702 may be software, hardware, or a combination of software and hardware.
- the transceiver unit 701 can implement a sending function and/or a receiving function, and the transceiver unit 701 can also be described as a communication unit.
- the transceiver unit 701 may also be a unit that integrates an acquisition unit and a sending unit, where the acquisition unit is used to implement the receiving function and the sending unit is used to implement the sending function.
- the transceiver unit 701 can be used to receive information sent by other devices, and can also be used to send information to other devices.
- the data storage device 70 may correspond to the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6.
- the data storage device 70 may be the first network element.
- a network element can also be a chip in the first network element.
- the data storage device 70 may include a unit for performing operations performed by the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6, and the data storage device 70
- Each unit is respectively intended to implement the operations performed by the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6. Among them, the descriptions of each unit are as follows:
- Processing unit 702 used to obtain the first data to be stored
- the processing unit 702 is further configured to determine the storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the data storage device.
- the device further includes:
- Transceiver unit 701 configured to transmit the first data to be stored to the second network element when the storage state of the data storage device is a first state, where the first state represents the data storage The size of the available storage resources of the device satisfies the first condition, or the storage resource utilization of the data storage device satisfies the second condition; or,
- the processing unit 702 is specifically configured to store the first data to be stored in the data storage device when the storage state of the data storage device is a second state, where the second state represents The size of the available storage resources of the data storage device does not meet the first condition, or the storage resource utilization of the data storage device does not meet the second condition.
- the transceiver unit 701 is further configured to transmit the first data to be stored to the second network element when the first data to be stored is data of the first type; or,
- the processing unit 702 is also configured to store the first data to be stored in the data storage device when the first data to be stored is the second type of data;
- the attributes of the first type data and the attributes of the second type data satisfy the third condition.
- the transceiver unit 701 is further configured to: when the first data to be stored is data of the first type and the storage state of the data storage device is the first state, The first data to be stored is transmitted to the second network element; or,
- the processing unit 702 is also configured to store the first data to be stored in the second type of data when the first data to be stored is the second type of data and the storage state of the data storage device is the second state. the data storage device;
- the first state represents that the size of the available storage resources of the data storage device meets the first condition, or the storage resource utilization of the data storage device meets the second condition
- the second state represents that the data storage The size of the available storage resources of the device does not meet the first condition, or the storage resource utilization of the data storage device does not meet the second condition
- the attributes of the first type of data and the attributes of the second type of data The attribute satisfies the third condition.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
- the processing unit 702 is further configured to obtain information about the second network element, and the information about the second network element is used to uniquely identify the second network element.
- the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
- the information of the second network element is obtained by any of the following methods:
- Broadcast messages either pre-configured or sent peer-to-peer.
- the storage state of the second network element is the third state, wherein: The third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or the storage resource utilization rate of the second network element satisfies the fifth condition.
- the transceiver unit 701 is also configured to send first information, where the first information includes information about the storage status of the data storage device.
- the first information is used to indicate the size of available storage resources of the data storage device, or the size of storage resource utilization of the data storage device.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the data storage device.
- the first information is used by the third network element to select whether to store the data to be stored from the data storage device.
- the transceiver unit 701 is further configured to receive second information, where the second information includes information on the storage status of at least one third network element, and the second information is used for the The data storage device determines the storage method of the first data to be stored and/or the storage network element of the first data to be stored.
- the transceiver unit 701 is also configured to receive second information, where the second information includes information on the storage status of at least one third network element;
- the processing unit 702 is further configured to determine, according to the second information, to store the first data to be stored in the at least one third network element.
- the transceiver unit 701 is also configured to send third information when the data storage device transmits the first data to be stored to the second network element, so The third information is used to indicate the storage network element corresponding to the first data to be stored or the first data to be stored is not stored in the first network element.
- the third information is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the transceiver unit 701 is further configured to receive a first request when transmitting the first data to be stored to the second network element, and the first request is in Requesting access to the first data to be stored.
- the data storage device 70 may correspond to the second network element in the method embodiment shown in FIG. 5 and FIG. 6 , for example, the data storage device 70 may be the second network element, or It can be a chip in the second network element.
- the data storage device 70 may include a unit for performing the operations performed by the second network element in the method embodiments shown in FIG. 5 and FIG. 6 , and each unit in the data storage device 70 is respectively used to implement the above. Operations performed by the second network element in the method embodiments shown in FIG. 5 and FIG. 6 . Among them, the descriptions of each unit are as follows:
- the transceiver unit 701 is configured to receive the first data to be stored sent by the first network element, wherein the first data to be stored is based on the attributes of the first data to be stored and the storage status of the first network element. At least one item of determines the data received by the transceiver unit 701;
- the processing unit 702 is used to store the first data to be stored.
- the first data to be stored is data determined to be received by the transceiver unit 701 when the storage state of the first network element is the first state, wherein the A state indicates that the size of the available storage resources of the first network element satisfies the first condition, or that the storage resource utilization of the first network element satisfies the second condition.
- the first data to be stored is data determined to be received by the transceiver unit 701 when the first data to be stored is data of the first type, wherein the first Properties of type data satisfy the third condition.
- the first data to be stored is determined by the first data when the first data to be stored is the first type of data and the storage state of the first network element is the first state.
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
- the transceiver unit 701 is also configured to send information about the data storage device, where the information about the data storage device is used to uniquely identify the data storage device.
- the information about the data storage device includes at least one of the following: an identification of the data storage device and an address of the data storage device.
- the information of the data storage device is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the first data to be stored is data determined to be received by the data storage device when the storage state of the data storage device is a third state, wherein the third The status represents that the size of the available storage resources of the data storage device satisfies the fourth condition, or the storage resource utilization of the data storage device satisfies the fifth condition.
- the transceiver unit 701 is further configured to receive first information, where the first information includes information about the storage status of the first network element.
- the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
- the first information is used by the third network element to select whether to store the data to be stored from the first network element.
- the transceiver unit 701 is also configured to send second information, where the second information includes information about the storage status of the data storage device, and the second information is used for the third A network element determines the storage method of the first data to be stored and/or the storage network element of the first data to be stored.
- the transceiver unit 701 is further configured to receive third information when the first network element transmits the first data to be stored to the data storage device, so The third information is used to indicate the storage network element corresponding to the first data to be stored or the first data to be stored is not stored in the first network element.
- the third information is received in any of the following ways:
- the transceiver unit 701 is further configured to send a first request when receiving the first data to be stored sent by the first network element.
- the first request is in Requesting access to the first data to be stored.
- the data storage device 70 may correspond to the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6.
- the data storage device 70 may be The first network element may also be a chip in the first network element.
- the data storage device 70 may include a unit for performing operations performed by the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6, and the data storage device 70 Each unit is respectively intended to implement the operations performed by the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6. Among them, the descriptions of each unit are as follows:
- the transceiver unit 701 is configured to send a first message, where the first message is used to request the second network element to store second data to be stored, where the second data to be stored is the data of the data storage device;
- the transceiver unit 701 is also used to receive the second message
- the processing unit 702 is configured to determine the storage method of the second data to be stored according to the second message.
- the transceiver unit 701 is further configured to send a message to the second network when the second message indicates that the second network element is allowed to store the second data to be stored. Send the second data to be stored; or,
- the processing unit 702 is specifically configured to store the second data to be stored in the data storage when the second message indicates that the second network element is not allowed to store the second data to be stored.
- the device, or the transceiver unit is further configured to send a third message, where the third message is used to request a third network element to store the second data to be stored.
- the processing unit 702 is further configured to determine to send the first message based on at least one of the attributes of the second data to be stored and the storage status of the data storage device. .
- the processing unit 702 is further configured to determine to send the first message when the storage state of the data storage device is a first state, wherein the first state It means that the size of the available storage resources of the data storage device meets the first condition, or the storage resource utilization of the data storage device meets the second condition.
- the processing unit 702 is further configured to determine to send the first message when the second data to be stored is data of the first type, wherein the first type The attributes of the data satisfy the third condition.
- the processing unit 702 is further configured to determine whether to send the data when the second data to be stored is the first type of data and the storage state of the data storage device is the first state. the first message;
- the first state represents that the size of the available storage resources of the data storage device satisfies the first condition, or the storage resource utilization rate of the data storage device satisfies the second condition; the attributes of the first type of data satisfy the second condition.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
- the processing unit 702 is further configured to obtain information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
- the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
- the information of the second network element is obtained by any of the following methods:
- Broadcast messages either pre-configured or sent peer-to-peer.
- processing unit 702 is further configured to determine to send the first message according to the storage status of the second network element.
- the processing unit 702 is also configured to: when the storage state of the data storage device is the first state, and the storage state of the second network element is the third state Next, it is determined to send the first message, wherein the third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or the storage resource utilization rate of the second network element satisfies the fifth condition. condition.
- the transceiver unit 701 is also configured to send first information, where the first information includes information about the storage status of the data storage device.
- the first information is used to indicate the size of available storage resources of the data storage device, or the size of storage resource utilization of the data storage device.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the data storage device.
- the first information is used by the third network element to select whether to store the data to be stored from the data storage device.
- the transceiver unit 701 is also configured to receive second information, where the second information includes information on the storage status of at least one third network element, and the second information is used for the The data storage device determines to send the first message.
- the transceiver unit 701 is also configured to receive second information, where the second information includes information on the storage status of at least one third network element;
- the processing unit 702 is also configured to determine to send the first message according to the second information.
- the transceiver unit 701 is also configured to send fourth information when the data storage device sends the second data to be stored to the second network element.
- the fourth information is used to indicate that the storage network element corresponding to the second data to be stored or the second data to be stored is not stored in the data storage device.
- the fourth information is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the transceiver unit 701 is further configured to receive a second request when the data storage device sends the second data to be stored to the second network element.
- the second request is used to request access to the second data to be stored.
- the data storage device 70 may correspond to the second network element in the method embodiment shown in FIG. 5 and FIG. 6 , for example, the data storage device 70 may be the second network element, or It can be a chip in the second network element.
- the data storage device 70 may include units for performing operations performed by the second network element in the method embodiments shown in FIG. 5 and FIG. 6 , and each unit in the data storage device 70 is configured to implement the above-mentioned operations. Operations performed by the second network element in the method embodiments shown in FIG. 5 and FIG. 6 . Among them, the descriptions of each unit are as follows:
- Transceiver unit 701 configured to receive a first message, the first message being used to request the data storage device to store second data to be stored, where the second data to be stored is the data of the first network element;
- the transceiver unit 701 is also configured to send a second message, where the second message is used by the first network element to determine the storage method of the second data to be stored.
- the transceiver unit 701 is further configured to receive the first network element from the first network element when the second message indicates that the data storage device allows storage of the second to-be-stored data.
- the second data to be stored is sent; or,
- the second message indicates that the data storage device is not allowed to store the second data to be stored
- the second message is used by the first network element to determine to store the second data to be stored in
- the first network element may, alternatively, send a third message, where the third message is used to request the third network element to store the second data to be stored.
- the first message is a message received by the transceiver unit 701 based on at least one of the attributes of the second data to be stored and the storage status of the first network element. .
- the first message is a message determined to be received by the transceiver unit 701 when the storage state of the first network element is the first state, wherein the first state It means that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition.
- the first message is a message determined to be received by the transceiver unit 701 when the second data to be stored is data of the first type, wherein the first type of data The properties satisfy the third condition.
- the first message is determined by the transceiver when the second data to be stored is the first type of data and the storage state of the first network element is the first state. Message received by unit 701;
- the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
- the first condition includes that the size of available storage resources is less than a first threshold
- the second condition includes that storage resource utilization is less than a second threshold
- the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
- the transceiver unit 701 is also configured to send information about the data storage device, where the information about the data storage device is used to uniquely identify the data storage device.
- the information about the data storage device includes at least one of the following: an identification of the data storage device and an address of the data storage device.
- the information of the data storage device is sent in any of the following ways:
- Broadcast messages alternatively, sent point-to-point.
- the first message is a message received by the transceiver unit 701 according to the storage status of the data storage device.
- the first message is determined when the storage state of the first network element is the first state and the storage state of the data storage device is the third state.
- the third state represents that the size of the available storage resources of the data storage device satisfies the fourth condition, or the storage resource utilization of the data storage device satisfies the fifth condition.
- the transceiver unit 701 is further configured to receive first information, where the first information includes information about the storage status of the first network element.
- the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
- the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
- the first information is used by the third network element to select whether to store the data to be stored from the first network element.
- the transceiver unit 701 is also configured to send second information, where the second information includes information about the storage status of the data storage device, and the second information is used for the third A network element determines to send the first message.
- the transceiver unit 701 is further configured to receive fourth information when the first network element sends the second data to be stored to the data storage device.
- the fourth information is used to indicate the storage network element corresponding to the second data to be stored or the second data to be stored is not stored in the first network element.
- the fourth information is received in any of the following ways:
- the transceiver unit 701 is further configured to send a second request when the first network element sends the second data to be stored to the data storage device.
- the second request is used to request access to the second data to be stored.
- each unit in the device shown in Figure 7 can be separately or entirely combined into one or several additional units, or one (some) of the units can be further split into functionally more advanced units. It is composed of multiple small units, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application.
- the above units are divided based on logical functions. In practical applications, the function of one unit can also be realized by multiple units, or the functions of multiple units can be realized by one unit. In other embodiments of the present application, the electronic device may also include other units. In practical applications, these functions may also be implemented with the assistance of other units, and may be implemented by multiple units in cooperation.
- each unit may also refer to the corresponding descriptions of the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6.
- multiple network elements are used to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
- FIG. 8 is a schematic structural diagram of an electronic device 80 provided by an embodiment of the present application.
- the electronic device 80 may include a memory 801 and a processor 802 .
- a communication interface 803 and a bus 804 may also be included, wherein the memory 801, the processor 802 and the communication interface 803 implement communication connections between each other through the bus 804.
- the communication interface 803 is used for data interaction with the above-mentioned data storage device 70 .
- the memory 801 is used to provide storage space, and data such as operating systems and computer programs can be stored in the storage space.
- Memory 801 includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or Portable read-only memory (compact disc read-only memory, CD-ROM).
- the processor 802 is a module that performs arithmetic operations and logical operations, and can be a processing module such as a central processing unit (CPU), a graphics processor (GPU) or a microprocessor (microprocessor unit, MPU). one or a combination of multiple.
- a processing module such as a central processing unit (CPU), a graphics processor (GPU) or a microprocessor (microprocessor unit, MPU). one or a combination of multiple.
- the electronic device 80 may correspond to the first network element in the method embodiments shown in FIGS. 3, 4, 5, and 6.
- the electronic device 80 may be the first network element. element, or it can be the chip in the first network element.
- the electronic device 80 may include components for performing the operations performed by the first network element in the above method embodiment, and each component in the electronic device 80 is respectively used to implement the operations performed by the first network element in the above method embodiment.
- the processor 802 calls the computer program stored in the memory 801 to execute the data storage method shown in Figure 3, Figure 4, Figure 5, and Figure 6. Specifically, it can be as follows:
- the first network element obtains the first data to be stored
- the first network element determines a storage manner of the first data to be stored based on at least one of an attribute of the first data to be stored and a storage status of the first network element.
- the processor 802 calls the computer program stored in the memory 801, and can also be used to execute the method steps performed by each unit in the data storage device 70 shown in the above-mentioned Figure 7.
- the processor 802 calls the computer program stored in the memory 801, and can also be used to execute the method steps performed by each unit in the data storage device 70 shown in the above-mentioned Figure 7.
- the specific content please refer to the above-mentioned Figure 7.
- No further details will be given.
- the electronic device 80 may correspond to the second network element in the method embodiment shown in FIG. 5 and FIG. 6 , for example, the electronic device 80 may be the second network element, or it may be The chip in the second network element.
- the electronic device 80 may include components for performing the operations performed by the second network element in the above method embodiment, and each component in the electronic device 80 is respectively used to implement the operations performed by the second network element in the above method embodiment.
- the processor 802 calls the computer program stored in the memory 801 to execute the data storage method shown in Figure 5 and Figure 6. Specifically, it can be as follows:
- the second network element receives the first data to be stored sent by the first network element, wherein the first data to be stored is based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
- One item determines the data received by the second network element;
- the second network element stores the first data to be stored.
- the processor 802 calls the computer program stored in the memory 801, and can also be used to execute the method steps performed by each unit in the data storage device 70 shown in the above-mentioned Figure 7.
- the processor 802 calls the computer program stored in the memory 801, and can also be used to execute the method steps performed by each unit in the data storage device 70 shown in the above-mentioned Figure 7.
- the specific content please refer to the above-mentioned Figure 7.
- No further details will be given.
- the electronic device 80 may correspond to the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6.
- the electronic device 80 may be the first network element.
- the network element may also be a chip in the first network element.
- the electronic device 80 may include components for performing the operations performed by the first network element in the above method embodiment, and each component in the electronic device 80 is respectively used to implement the operations performed by the first network element in the above method embodiment.
- the processor 802 calls the computer program stored in the memory 801 to execute the data storage method shown in Figure 3, Figure 4, Figure 5, and Figure 6. Specifically, it can be as follows:
- the first network element sends a first message, the first message is used to request the second network element to store second data to be stored, and the second data to be stored is the data of the first network element;
- the first network element receives the second message
- the first network element determines a storage method for the second data to be stored based on the second message.
- the processor 802 calls the computer program stored in the memory 801, and can also be used to execute the method steps performed by each unit in the data storage device 70 shown in the above-mentioned Figure 7.
- the processor 802 calls the computer program stored in the memory 801, and can also be used to execute the method steps performed by each unit in the data storage device 70 shown in the above-mentioned Figure 7.
- the specific content please refer to the above-mentioned Figure 7.
- No further details will be given.
- the electronic device 80 may correspond to the second network element in the method embodiment shown in FIG. 5 and FIG. 6 , for example, the electronic device 80 may be the second network element or the second network element.
- the electronic device 80 may include components for performing the operations performed by the second network element in the above method embodiment, and each component in the electronic device 80 is respectively used to implement the operations performed by the second network element in the above method embodiment.
- the processor 802 calls the computer program stored in the memory 801 to execute the data storage method shown in Figure 5 and Figure 6. Specifically, it can be as follows:
- the second network element receives a first message, the first message is used to request the second network element to store second data to be stored, and the second data to be stored is the data of the first network element;
- the second network element sends a second message, and the second message is used by the first network element to determine a storage method for the second data to be stored.
- the processor 802 calls the computer program stored in the memory 801, and can also be used to execute the method steps performed by each unit in the data storage device 70 shown in the above-mentioned Figure 7.
- the processor 802 calls the computer program stored in the memory 801, and can also be used to execute the method steps performed by each unit in the data storage device 70 shown in the above-mentioned Figure 7.
- the specific content please refer to the above-mentioned Figure 7.
- No further details will be given.
- multiple network elements are used to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of the network elements, and reduce storage costs.
- the electronic device may be a chip or a chip system
- the schematic structural diagram of the chip shown in FIG. 9 refer to the schematic structural diagram of the chip shown in FIG. 9 .
- the chip 90 includes a processor 901 and an interface 902.
- the number of processors 901 may be one or more, and the number of interfaces 902 may be multiple. It should be noted that the corresponding functions of the processor 901 and the interface 902 can be realized through hardware design, software design, or a combination of software and hardware, which are not limited here.
- the chip 90 may also include a memory 903, which is used to store necessary program instructions and data.
- the processor 901 can be used to call the implementation program of the data storage method provided by one or more embodiments of this application in the electronic device from the memory 903, and execute the instructions contained in the program.
- the interface 902 can be used to output execution results of the processor 901. In this application, the interface 902 may be specifically used to output various messages or information from the processor 901.
- the processor in the embodiment of this application can be a central processing unit (Central Processing Unit, CPU).
- the processor can also be other general-purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit (ASIC), off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
- the memory in the embodiment of the present application is used to provide storage space, and data such as operating systems and computer programs can be stored in the storage space.
- Memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable Read-only memory (compact disc read-only memory, CD-ROM).
- the embodiment of the present application also provides a computer-readable storage medium.
- the computer-readable storage medium stores a computer program.
- the embodiment of the present application also provides a computer program product.
- the above-mentioned computer program product includes a computer program.
- the above-mentioned computer program is run on a processor, the above-mentioned Figures 3, 4 and 4 can be realized. 5 and the method shown in Figure 6.
- the embodiment of the present application provides a vehicle terminal, which includes at least one data storage device 70 or electronic device 80 or chip 90 as described above.
- the embodiment of the present application also provides a system, which includes a vehicle terminal and at least one data storage device 70 or electronic device 80 or chip 90 as described above, for executing any one of the above-mentioned Figures 3, 4, 5 and 6. Steps performed by corresponding network elements in the embodiment.
- An embodiment of the present application also provides a system, which includes a first network element and a second network element; wherein the first network element is used to execute any one of the above embodiments of Figure 3, Figure 4, Figure 5 and Figure 6.
- the steps performed by the first network element in the second network element are used to perform the steps performed by the second network element in any of the embodiments of FIG. 5 and FIG. 6 .
- An embodiment of the present application also provides a processing device, including a processor and an interface; the processor is configured to execute the method in any of the above method embodiments.
- the above processing device may be a chip.
- the processing device may be a field programmable gate array (FPGA), a general processor, a digital signal processor (DSP), or an application specific integrated circuit (ASIC).
- FPGA field programmable gate array
- DSP digital signal processor
- ASIC application specific integrated circuit
- FPGA off-the-shelf programmable gate array
- SoC system on chip
- SoC system on chip
- It can be a central processor unit (CPU), a network processor (NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (micro controller unit, MCU).
- PLD programmable logic device
- a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
- the steps of the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
- the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
- non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase electrically programmable read-only memory (EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache.
- RAM random access memory
- RAM static random access memory
- DRAM dynamic random access memory
- SDRAM synchronous dynamic random access memory
- double data rate SDRAM double data rate SDRAM
- DDR SDRAM double data rate SDRAM
- ESDRAM enhanced synchronous dynamic random access memory
- SLDRAM synchronous link dynamic random access memory
- direct rambus RAM direct rambus RAM
- the computer program product includes one or more computer instructions.
- the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
- the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
- the usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media (e.g., solid state disks, SSD)) etc.
- magnetic media e.g., floppy disks, hard disks, magnetic tapes
- optical media e.g., high-density digital video discs (DVD)
- DVD digital video discs
- semiconductor media e.g., solid state disks, SSD
- the units in each of the above device embodiments correspond completely to the electronic equipment in the method embodiments, and the corresponding modules or units perform corresponding steps.
- the communication unit transmits the steps of receiving or sending in the method embodiments, except for sending.
- other steps besides receiving may be performed by the processing unit (processor).
- the processing unit processor
- the electronic device can perform some or all of the steps in the embodiments of the present application. These steps or operations are only examples. The embodiments of the present application can also perform other operations or variations of various operations. In addition, various steps may be performed in a different order than those presented in the embodiments of the present application, and it may not be necessary to perform all operations in the embodiments of the present application.
- the disclosed systems, devices and methods can be implemented in other ways.
- the device embodiments described above are only illustrative.
- the division of the units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
- the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
- the units described 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 they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
- the computer software product is stored in a storage medium and includes a number of instructions to A computer device (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the steps of the methods described in various embodiments of this application.
- the aforementioned storage media include: U disk, mobile hard disk, read-only memory ROM, random access memory RAM, magnetic disk or optical disk and other various media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
本申请涉及智能驾驶技术领域,尤其涉及一种应用于智能驾驶汽车上的数据存储方法及相关装置。The present application relates to the field of intelligent driving technology, and in particular, to a data storage method and related devices applied to intelligent driving vehicles.
在智能汽车内,存在多个电子控制单元(electronic control unit,ECU),比如车载网关、智能驾驶系统域控制器、智能座舱域控制器等元器件。多数元器件都有自己的存储单元,比如非易失性存储器、嵌入式多媒体卡等,以便能对关键信息进行存储。例如,车载网关会将硬件出错的关键信息记录在存储单元中,以备后续查询分析。In a smart car, there are multiple electronic control units (ECUs), such as in-vehicle gateways, smart driving system domain controllers, smart cockpit domain controllers and other components. Most components have their own storage units, such as non-volatile memory, embedded multimedia cards, etc., so that key information can be stored. For example, the vehicle-mounted gateway will record key information about hardware errors in the storage unit for subsequent query and analysis.
一般的,存储单元都会有使用寿命限制,比如擦除次数超出限制、异常掉电等情况都会产生坏块,从而影响存储单元的正常使用。Generally, storage units have service life limits. For example, if the number of erase times exceeds the limit, abnormal power outage, etc., bad blocks will be generated, thus affecting the normal use of the storage unit.
目前,针对存储单元的坏块率较高的电子控制单元或域控制器,通常采用将电子控制单元或域控制器整体更换的方式,来保证存储功能的正常使用。Currently, for electronic control units or domain controllers with a high bad block rate in storage units, the electronic control unit or domain controller is usually replaced as a whole to ensure the normal use of storage functions.
但是,上述方法可能导致数据丢失,数据存储的稳定性较差,且存储成本较高。However, the above method may lead to data loss, poor data storage stability, and high storage costs.
发明内容Contents of the invention
本申请实施例提供了一种数据存储方法及相关装置,可以提高数据存储的稳定性,且降低了存储成本。Embodiments of the present application provide a data storage method and related devices, which can improve the stability of data storage and reduce storage costs.
第一方面,本申请实施例提供了一种数据存储方法,该方法包括:In a first aspect, embodiments of the present application provide a data storage method, which method includes:
第一网元获取第一待存储数据;The first network element obtains the first data to be stored;
所述第一网元根据所述第一待存储数据的属性和所述第一网元的存储状态中的至少一项,确定所述第一待存储数据的存储方式。The first network element determines a storage manner of the first data to be stored based on at least one of an attribute of the first data to be stored and a storage status of the first network element.
本申请实施例中,提供了一种数据存储方法,具体为,第一网元获取第一待存储数据,并根据第一待存储数据的属性,或者,第一网元的存储状态,或者,第一待存储数据的属性和第一网元的存储状态,确定第一待存储数据的存储方式。其中,第一待存储数据的属性包括但不限于数据传输时延、数据存储可靠性、数据重要等级,等等。第一网元的存储状态包括但不限于网元中可用存储资源的大小、存储资源利用率的大小,等等。In the embodiment of the present application, a data storage method is provided. Specifically, the first network element obtains the first data to be stored, and based on the attributes of the first data to be stored, or the storage status of the first network element, or, The attributes of the first data to be stored and the storage status of the first network element determine the storage method of the first data to be stored. Among them, the attributes of the first data to be stored include but are not limited to data transmission delay, data storage reliability, data importance level, etc. The storage status of the first network element includes but is not limited to the size of available storage resources in the network element, the size of storage resource utilization, and so on.
目前针对存储单元的坏块率较高的网元,通常采用将网元整体更换的方式,来保证存储功能的正常使用,更换过程中可能导致数据丢失,数据存储的稳定性较差,且存储成本较高。与目前的数据存储方法相比,本申请实施例根据待存储数据的属性和网元的存储状态中的至少一项,确定待存储数据的存储方式,具体可以选择将待存储数据存储至第一网元中,也可以选择将待存储数据存储至其他网元中,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。Currently, for network elements with a high bad block rate in storage units, the network element is usually replaced as a whole to ensure the normal use of the storage function. The replacement process may cause data loss, poor data storage stability, and storage higher cost. Compared with the current data storage method, the embodiment of the present application determines the storage method of the data to be stored based on at least one of the attributes of the data to be stored and the storage status of the network element. Specifically, you can choose to store the data to be stored in the first In a network element, you can also choose to store the data to be stored in other network elements. Using multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of the network element, and reduce storage costs. .
在一种可能的实施方式中,所述确定所述第一待存储数据的存储方式,包括:In a possible implementation, determining the storage method of the first data to be stored includes:
在所述第一网元的存储状态为第一状态的情况下,所述第一网元将所述第一待存储数据传输至第二网元,其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条 件,或所述第一网元的存储资源利用率满足第二条件;或者,When the storage state of the first network element is a first state, the first network element transmits the first data to be stored to the second network element, wherein the first state represents the first state. The size of the available storage resources of a network element satisfies the first condition, or the storage resource utilization rate of the first network element satisfies the second condition; or,
在所述第一网元的存储状态为第二状态的情况下,所述第一网元将所述第一待存储数据存储至所述第一网元,其中,所述第二状态表征所述第一网元的可用存储资源的大小不满足所述第一条件,或所述第一网元的存储资源利用率不满足所述第二条件。When the storage state of the first network element is the second state, the first network element stores the first to-be-stored data to the first network element, where the second state represents the The size of the available storage resources of the first network element does not meet the first condition, or the storage resource utilization of the first network element does not meet the second condition.
在本申请实施例中,提供了一种确定第一待存储数据的存储方式的可能的具体实施方式,具体为,在第一网元的存储状态为第一状态的情况下,第一网元将第一待存储数据传输至第二网元,在第一网元的存储状态为第二状态的情况下,第一网元将第一待存储数据存储至第一网元中,其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件,第二状态表征第一网元的可用存储资源的大小不满足第一条件,或第一网元的存储资源利用率不满足第二条件。其中,上述第一条件可以包括可用存储资源的大小小于第一阈值,上述第二条件可以包括存储资源利用率小于第二阈值。通过本申请实施例,根据第一网元的存储状态确定第一待存储数据的存储方式,使得在第一网元的存储状态为第一状态的情况下,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。In the embodiment of the present application, a possible specific implementation manner of determining the storage method of the first data to be stored is provided. Specifically, when the storage state of the first network element is the first state, the first network element The first data to be stored is transmitted to the second network element. When the storage state of the first network element is the second state, the first network element stores the first data to be stored in the first network element, where the first network element One state represents that the size of the available storage resources of the first network element meets the first condition, or the storage resource utilization rate of the first network element meets the second condition, and the second state represents that the size of the available storage resources of the first network element does not meet the second condition. The first condition, or the storage resource utilization of the first network element does not meet the second condition. Wherein, the above-mentioned first condition may include that the size of the available storage resources is less than a first threshold, and the above-mentioned second condition may include that the storage resource utilization is less than a second threshold. Through the embodiments of the present application, the storage mode of the first data to be stored is determined according to the storage status of the first network element, so that when the storage status of the first network element is the first status, the first data to be stored is transmitted to the third network element. The second network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and The overall storage availability of the first network element and the second network element is improved, and storage costs are reduced.
在一种可能的实施方式中,所述确定所述第一待存储数据的存储方式,包括:In a possible implementation, determining the storage method of the first data to be stored includes:
在所述第一待存储数据为第一类型数据的情况下,所述第一网元将所述第一待存储数据传输至第二网元;或者,When the first data to be stored is data of the first type, the first network element transmits the first data to be stored to the second network element; or,
在所述第一待存储数据为第二类型数据的情况下,所述第一网元将所述第一待存储数据存储至所述第一网元;When the first data to be stored is data of the second type, the first network element stores the first data to be stored in the first network element;
其中,所述第一类型数据的属性和所述第二类型数据的属性满足第三条件。Wherein, the attributes of the first type data and the attributes of the second type data satisfy the third condition.
在本申请实施例中,提供了一种确定第一待存储数据的存储方式的可能的具体实施方式,具体为,在第一待存储数据为第一类型数据的情况下,第一网元将第一待存储数据传输至第二网元,在第一待存储数据为第二类型数据的情况下,第一网元将第一待存储数据存储至第一网元中,其中,第一类型数据的属性和第二类型数据的属性满足第三条件,该第三条件可以包括:第一类型数据的传输时延要求/存储可靠性要求/重要等级,低于第二类型数据对应的传输时延要求/存储可靠性要求/重要等级。具体可以以第三阈值作为界限将第一类型数据和第二类型数据区分开,第一类型数据的传输时延要求/存储可靠性要求/重要等级小于第三阈值,第二类型数据的传输时延要求/存储可靠性要求/重要等级大于第三阈值。通过本申请实施例,根据第一待存储数据的属性确定第一待存储数据的存储方式,使得在第一待存储数据为第一类型数据的情况下,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。In the embodiment of the present application, a possible specific implementation manner of determining the storage method of the first data to be stored is provided. Specifically, when the first data to be stored is the first type of data, the first network element will The first data to be stored is transmitted to the second network element. When the first data to be stored is data of the second type, the first network element stores the first data to be stored in the first network element, where the first type The attributes of the data and the attributes of the second type of data satisfy the third condition. The third condition may include: the transmission delay requirement/storage reliability requirement/importance level of the first type of data is lower than the corresponding transmission time of the second type of data. Extension requirements/storage reliability requirements/importance level. Specifically, the third threshold can be used as a boundary to distinguish the first type of data from the second type of data. The transmission delay requirement/storage reliability requirement/importance level of the first type of data is less than the third threshold, and the transmission time of the second type of data is smaller than the third threshold. The delay requirement/storage reliability requirement/importance level is greater than the third threshold. Through the embodiment of the present application, the storage method of the first data to be stored is determined according to the attributes of the first data to be stored, so that when the first data to be stored is the first type of data, the first data to be stored is transmitted to the second data. The network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and improve This improves the overall storage availability of the first network element and the second network element and reduces storage costs.
在一种可能的实施方式中,所述确定所述第一待存储数据的存储方式,包括:In a possible implementation, determining the storage method of the first data to be stored includes:
在所述第一待存储数据为第一类型数据且所述第一网元的存储状态为第一状态的情况下,所述第一网元将所述第一待存储数据传输至第二网元;或者,When the first data to be stored is the first type of data and the storage state of the first network element is the first state, the first network element transmits the first data to be stored to the second network element. yuan; or,
在所述第一待存储数据为第二类型数据且所述第一网元的存储状态为第二状态的情况下,所述第一网元将所述第一待存储数据存储至所述第一网元;When the first data to be stored is the second type of data and the storage state of the first network element is the second state, the first network element stores the first data to be stored in the third One network element;
其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件;所述第二状态表征所述第一网元的可用存储资源的大小不满足所述第一条件,或所述第一网元的存储资源利用率不满足所述第二条件;所述第 一类型数据的属性和所述第二类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the second state represents that the The size of the available storage resources of the first network element does not meet the first condition, or the storage resource utilization of the first network element does not meet the second condition; the attributes of the first type of data and the third condition The attributes of the second type of data satisfy the third condition.
在本申请实施例中,提供了一种确定第一待存储数据的存储方式的可能的具体实施方式,具体为,在第一待存储数据为第一类型数据且第一网元的存储状态为第一状态的情况下,第一网元将第一待存储数据传输至第二网元,在第一待存储数据为第二类型数据且第一网元的存储状态为第二状态的情况下,第一网元将第一待存储数据存储至第一网元中。其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件,第二状态表征第一网元的可用存储资源的大小不满足第一条件,或第一网元的存储资源利用率不满足第二条件,第一类型数据的属性和第二类型数据的属性满足第三条件。上述第一条件可以包括可用存储资源的大小小于第一阈值,上述第二条件可以包括存储资源利用率小于第二阈值,上述第三条件可以包括:第一类型数据的传输时延要求/存储可靠性要求/重要等级,低于第二类型数据对应的传输时延要求/存储可靠性要求/重要等级。具体可以以第三阈值作为界限将第一类型数据和第二类型数据区分开,第一类型数据的传输时延要求/存储可靠性要求/重要等级小于第三阈值,第二类型数据的传输时延要求/存储可靠性要求/重要等级大于第三阈值。通过本申请实施例,根据第一待存储数据的属性和第一网元的存储状态确定第一待存储数据的存储方式,使得在第一待存储数据为第一类型数据且第一网元的存储状态为第一状态的情况下,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。In the embodiment of the present application, a possible specific implementation manner of determining the storage method of the first data to be stored is provided. Specifically, when the first data to be stored is the first type of data and the storage status of the first network element is In the first state, the first network element transmits the first data to be stored to the second network element. When the first data to be stored is the second type of data and the storage state of the first network element is the second state. , the first network element stores the first data to be stored in the first network element. The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition, and the second state represents the size of the available storage resources of the first network element. The first condition is not met, or the storage resource utilization of the first network element does not meet the second condition, and the attributes of the first type of data and the attributes of the second type of data satisfy the third condition. The above-mentioned first condition may include that the size of available storage resources is less than the first threshold, the above-mentioned second condition may include that the storage resource utilization is less than the second threshold, and the above-mentioned third condition may include: transmission delay requirements/storage reliability of the first type of data The performance requirements/importance level are lower than the transmission delay requirements/storage reliability requirements/importance level corresponding to the second type of data. Specifically, the third threshold can be used as a boundary to distinguish the first type of data from the second type of data. The transmission delay requirement/storage reliability requirement/importance level of the first type of data is less than the third threshold, and the transmission time of the second type of data is smaller than the third threshold. The delay requirement/storage reliability requirement/importance level is greater than the third threshold. Through the embodiment of the present application, the storage method of the first data to be stored is determined according to the attributes of the first data to be stored and the storage status of the first network element, so that when the first data to be stored is the first type of data and the first network element is When the storage state is the first state, the first data to be stored is transmitted to the second network element, the first data to be stored is selected to be stored in the second network element, and the second network element is used to cooperate with the first network element to complete the first step. The storage of the first data to be stored can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第一待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
在本申请实施例中,提供了一种第一条件和第二条件的可能的具体实施方式,具体为,第一条件可以包括可用存储资源的大小小于第一阈值,第二条件可以包括存储资源利用率小于第二阈值。其中,第一阈值和第二阈值不是一个固定的值,与第一待存储数据的属性相关,可以根据不同场景进行调整,比如,当第一待存储数据为第一类型数据时,第一条件中的第一阈值可以是2GB,第二条件中的第二阈值可以是50%,当第一待存储数据为第二类型数据时,第一条件中的第一阈值可以是1GB,第二条件中的第二阈值可以是25%,在该场景下,如果将第一待存储数据传输给第二网元,第一待存储数据的传输时延要求/存储可靠性要求/重要等级越高,对第一网元中的可用存储资源或存储资源利用率的大小的要求的值就越小,类似的,如果将第一待存储数据存储至第一网元中,第一待存储数据的传输时延要求/存储可靠性要求/重要等级越高,对第一网元中的可用存储资源或存储资源利用率的大小要求的值就越大。通过本申请实施例,可以利用第一条件所涉及的第一阈值、第二条件所涉及的第二阈值,与第一待存储数据的属性之间的关系,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。In this embodiment of the present application, a possible specific implementation of the first condition and the second condition is provided. Specifically, the first condition may include that the size of the available storage resources is less than the first threshold, and the second condition may include that the storage resources are smaller than the first threshold. The utilization is less than the second threshold. The first threshold and the second threshold are not fixed values, but are related to the attributes of the first data to be stored, and can be adjusted according to different scenarios. For example, when the first data to be stored is the first type of data, the first condition The first threshold in may be 2GB, and the second threshold in the second condition may be 50%. When the first data to be stored is the second type of data, the first threshold in the first condition may be 1GB, and the second threshold in the second condition may be 1GB. The second threshold in can be 25%. In this scenario, if the first data to be stored is transmitted to the second network element, the higher the transmission delay requirement/storage reliability requirement/importance level of the first data to be stored, The smaller the required value of the available storage resources or storage resource utilization in the first network element. Similarly, if the first data to be stored is stored in the first network element, the transmission of the first data to be stored will be The higher the delay requirement/storage reliability requirement/importance level, the greater the value required for available storage resources or storage resource utilization in the first network element. Through the embodiments of the present application, the relationship between the first threshold involved in the first condition, the second threshold involved in the second condition, and the attributes of the first data to be stored can be used to transmit the first data to be stored to the third The second network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and The overall storage availability of the first network element and the second network element is improved, and the storage cost is reduced.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第一网元获取所述第二网元的信息,所述第二网元的信息用于唯一标识所述第二网元。The first network element obtains the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
在本申请实施例中,提供了一种获取第二网元的信息的可能的具体实施方式,具体为,第一网元获取第二网元的信息,该第二网元的信息用于唯一标识第二网元。通过本申请实施例,第一网元可以根据第二网元的信息将第一待存储数据传输给第二网元,选择将第一待存 储数据存储至第二网元中。In the embodiment of this application, a possible specific implementation manner of obtaining the information of the second network element is provided. Specifically, the first network element obtains the information of the second network element, and the information of the second network element is used to uniquely Identify the second network element. Through the embodiments of this application, the first network element can transmit the first data to be stored to the second network element according to the information of the second network element, and choose to store the first data to be stored in the second network element.
在一种可能的实施方式中,所述第二网元的信息包括以下至少一项:所述第二网元的标识、所述第二网元的地址。In a possible implementation, the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
在一种可能的实施方式中,所述第二网元的信息通过以下任一项方式获取:In a possible implementation, the information of the second network element is obtained by any of the following methods:
广播消息,或者,预先配置,或者,点对点发送。Broadcast messages, either pre-configured or sent peer-to-peer.
在本申请实施例中,提供了几种获取第二网元的信息的可能的具体实施方式,具体为,第一网元可以通过预先配置的信息获取第二网元的信息,或者,第一网元也可以接收广播消息获取第二网元的信息,或者,第二网元点对点发送第二网元的信息给第一网元,相应的,第一网元接收第二网元的信息,或者,第二网元点对点发送第二网元的信息给集中式控制器,再由集中式控制器发送第二网元的信息给第一网元,相应的,第一网元接收第二网元的信息。通过本申请实施例获取第二网元的信息,包括了第二网元的标识,第一网元可以据此将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中。In the embodiments of this application, several possible implementation methods for obtaining the information of the second network element are provided. Specifically, the first network element can obtain the information of the second network element through preconfigured information, or the first network element can obtain the information of the second network element through preconfigured information. The network element can also receive the broadcast message to obtain the information of the second network element, or the second network element sends the information of the second network element point-to-point to the first network element. Correspondingly, the first network element receives the information of the second network element. Or, the second network element sends the information of the second network element point-to-point to the centralized controller, and then the centralized controller sends the information of the second network element to the first network element. Correspondingly, the first network element receives the information of the second network element. Yuan information. Through the embodiment of the present application, the information of the second network element is obtained, including the identifier of the second network element. The first network element can transmit the first data to be stored to the second network element accordingly, and select to store the first data to be stored. to the second network element.
在一种可能的实施方式中,在所述第一网元将所述第一待存储数据传输至第二网元的情况下,所述第二网元的存储状态为第三状态,其中,所述第三状态表征所述第二网元的可用存储资源的大小满足第四条件,或所述第二网元的存储资源利用率满足第五条件。In a possible implementation, when the first network element transmits the first data to be stored to the second network element, the storage state of the second network element is the third state, wherein, The third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or the storage resource utilization rate of the second network element satisfies the fifth condition.
在本申请实施例中,提供了一种确定第一待存储数据的存储方式的可能的具体实施方式,具体为,在根据第一待存储数据的属性和第一网元的存储状态中的至少一项的基础上,第一网元还根据第二网元的存储状态,确定第一待存储数据的存储方式。其中,第二网元的存储状态包括但不限于网元中可用存储资源的大小、存储资源利用率的大小,等等。具体的,在第一网元的存储状态为第一状态且第二网元的存储状态为第三状态的情况下,第一网元将第一待存储数据传输至第二网元,其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件,第三状态表征第二网元的可用存储资源的大小满足第四条件,或第二网元的存储资源利用率满足第五条件。其中,上述第一条件可以包括可用存储资源的大小小于第一阈值,上述第二条件可以包括存储资源利用率小于第二阈值,上述第四条件可以包括可用存储资源的大小大于第四阈值,上述第五条件可以包括存储资源利用率大于第五阈值。通过本申请实施例,在根据第一待存储数据的属性和第一网元的存储状态中的至少一项的基础上,还根据第二网元的存储状态,确定第一待存储数据的存储方式,具体可以根据第一网元的存储状态和第二网元的存储状态确定第一待存储数据的存储方式,使得在第一网元的存储状态为第一状态且第二网元的存储状态为第三状态的情况下,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。In the embodiment of the present application, a possible specific implementation manner of determining the storage method of the first data to be stored is provided, specifically, based on at least one of the attributes of the first data to be stored and the storage status of the first network element. On the basis of one item, the first network element also determines the storage method of the first data to be stored based on the storage status of the second network element. The storage status of the second network element includes but is not limited to the size of available storage resources in the network element, the size of storage resource utilization, and so on. Specifically, when the storage state of the first network element is the first state and the storage state of the second network element is the third state, the first network element transmits the first data to be stored to the second network element, where, The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization rate of the first network element satisfies the second condition. The third state represents that the size of the available storage resources of the second network element satisfies the third condition. The fourth condition, or the storage resource utilization of the second network element meets the fifth condition. Wherein, the above-mentioned first condition may include that the size of available storage resources is less than a first threshold, the above-mentioned second condition may include that the storage resource utilization is less than a second threshold, the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold, and the above-mentioned The fifth condition may include storage resource utilization being greater than a fifth threshold. Through the embodiments of the present application, based on at least one of the attributes of the first data to be stored and the storage status of the first network element, the storage status of the first data to be stored is also determined based on the storage status of the second network element. The method, specifically, the storage method of the first data to be stored can be determined according to the storage status of the first network element and the storage status of the second network element, so that the storage status of the first network element is the first status and the storage status of the second network element is When the state is the third state, the first data to be stored is transmitted to the second network element, the first data to be stored is selected to be stored in the second network element, and the second network element is used to cooperate with the first network element to complete the first The storage of data to be stored can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第一网元发送第一信息,所述第一信息包括所述第一网元的存储状态的信息。The first network element sends first information, where the first information includes information about the storage status of the first network element.
在本申请实施例中,提供了一种第一网元发送第一信息的可能的具体实施方式,具体为,第一网元可以发送广播消息,该广播消息包括用于指示第一信息的消息,第一信息包括第一网元的存储状态的信息,第二网元等其他网元可以通过接收广播消息得知第一网元的存储状态。或者,第一网元可以点对点发送第一信息给第二网元,或者,第一网元可以点对点发送第一信息给集中式控制器,再由集中式控制器发送第一信息给第二网元。通过本申请实施例发送第一信息,可以使第二网元等其他网元获取第一信息,得知第一网元的存储状态的信息。In the embodiment of this application, a possible specific implementation manner for the first network element to send the first information is provided. Specifically, the first network element can send a broadcast message, and the broadcast message includes a message for indicating the first information. , the first information includes information about the storage status of the first network element, and other network elements such as the second network element can learn the storage status of the first network element by receiving the broadcast message. Alternatively, the first network element can send the first information to the second network element point-to-point, or the first network element can send the first information point-to-point to the centralized controller, and then the centralized controller can send the first information to the second network element. Yuan. By sending the first information according to the embodiment of the present application, other network elements such as the second network element can obtain the first information and learn the storage status information of the first network element.
在一种可能的实施方式中,所述第一信息用于指示所述第一网元的可用存储资源的大小, 或所述第一网元的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of the available storage resources of the first network element, or the size of the storage resource utilization of the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存储数据传输至所述第一网元。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述第一网元的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the first network element.
在本申请实施例中,提供了几种第一信息的可能的具体实施方式,具体为,第一信息用于指示第一网元的可用存储资源的大小,或第一网元的存储资源利用率的大小,通过本申请实施例,第三网元等其他网元可以根据第一信息所指示的内容,选择是否将第三网元等其他网元的待存储数据存储至第一网元中,第三网元等其他网元也可以根据第一信息所指示的内容,选择是否存储来自第一网元的待存储数据。In the embodiment of this application, several possible implementations of the first information are provided. Specifically, the first information is used to indicate the size of the available storage resources of the first network element, or the storage resource utilization of the first network element. The size of the rate, through the embodiment of the present application, the third network element and other other network elements can choose whether to store the to-be-stored data of the third network element and other other network elements into the first network element according to the content indicated by the first information. , other network elements such as the third network element can also choose whether to store the data to be stored from the first network element according to the content indicated by the first information.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第一网元接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息,所述第二信息用于所述第一网元确定所述第一待存储数据的存储方式和/或所述第一待存储数据的存储网元。The first network element receives second information, the second information includes information about the storage status of at least one third network element, and the second information is used by the first network element to determine the first data to be stored. The storage method and/or the storage network element of the first data to be stored.
在本申请实施例中,提供了一种第一网元接收第二信息的可能的具体实施方式,具体为,第一网元接收广播消息,该广播消息包括用于指示第二信息的消息,第二信息包括至少一个第三网元的存储状态的信息,第一网元通过接收广播消息得知至少一个第三网元的存储状态。或者,至少一个第三网元点对点发送第二信息给第一网元,相应的,第一网元接收至少一个第三网元发送的第二信息。或者,至少一个第三网元点对点发送第二信息给集中式控制器,再由集中式控制器发送第二信息给第一网元,相应的,第一网元接收集中式控制器发送的第二信息。其中,第三网元与第二网元可以是同一个网元。通过本申请实施例接收第二信息,第一网元可以根据第二信息得知至少一个第三网元的存储状态的信息,并根据至少一个第三网元的存储状态,确定将第一待存储数据存储至至少一个第三网元中,利用至少一个第三网元协同第一网元完成第一待存储数据的存储。In the embodiment of the present application, a possible specific implementation manner for the first network element to receive the second information is provided. Specifically, the first network element receives a broadcast message, and the broadcast message includes a message for indicating the second information, The second information includes information about the storage status of at least one third network element. The first network element learns the storage status of at least one third network element by receiving the broadcast message. Alternatively, at least one third network element sends the second information point-to-point to the first network element, and accordingly, the first network element receives the second information sent by at least one third network element. Alternatively, at least one third network element sends the second information point-to-point to the centralized controller, and then the centralized controller sends the second information to the first network element. Correspondingly, the first network element receives the third information sent by the centralized controller. 2. Information. The third network element and the second network element may be the same network element. By receiving the second information according to the embodiments of the present application, the first network element can learn the storage status information of at least one third network element based on the second information, and determine the first pending network element based on the storage status of at least one third network element. The data is stored in at least one third network element, and the at least one third network element is used to cooperate with the first network element to complete the storage of the first data to be stored.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第一网元接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息;The first network element receives second information, where the second information includes information on the storage status of at least one third network element;
所述第一网元根据所述第二信息,确定将所述第一待存储数据存储至所述至少一个第三网元中。The first network element determines to store the first data to be stored in the at least one third network element based on the second information.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在所述第一网元将所述第一待存储数据传输至所述第二网元的情况下,所述第一网元发送第三信息,所述第三信息用于指示所述第一待存储数据对应的存储网元或所述第一待存储数据未存储于所述第一网元。When the first network element transmits the first data to be stored to the second network element, the first network element sends third information, and the third information is used to indicate the first The storage network element corresponding to the data to be stored or the first data to be stored is not stored in the first network element.
在本申请实施例中,提供了一种第一网元发送第三信息的可能的具体实施方式,具体为,在第一网元将第一待存储数据传输至第二网元的情况下,第一网元发送第三信息,该第三信息用于指示第一待存储数据对应的存储网元或第一待存储数据未存储于第一网元。通过本申请实施例,第一网元可以通过发送第三信息告知其他网元第一待存储数据对应的存储网元,便于其他网元对第一待存储数据发起访问请求。In the embodiment of this application, a possible specific implementation manner for the first network element to send the third information is provided. Specifically, when the first network element transmits the first data to be stored to the second network element, The first network element sends third information, and the third information is used to indicate the storage network element corresponding to the first data to be stored or the first data to be stored is not stored in the first network element. Through the embodiments of this application, the first network element can inform other network elements of the storage network element corresponding to the first data to be stored by sending the third information, so as to facilitate other network elements to initiate access requests for the first data to be stored.
在一种可能的实施方式中,所述第三信息通过以下任一项方式发送:In a possible implementation, the third information is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在本申请实施例中,提供了几种发送第三信息的可能的具体实施方式,具体为,第一网元可以发送广播消息,该广播消息包括用于指示第三信息的消息,第三信息包括用于指示第 一待存储数据对应的存储网元的信息,或第一待存储数据未存储于第一网元的信息,第三网元等其他网元可以通过接收广播消息得知第一待存储数据对应的存储网元,以对第一待存储数据发起访问请求。或者,第一网元可以点对点发送第三信息给第三网元或其他网元,或者,第一网元可以点对点发送第三信息给集中式控制器,再由集中式控制器发送第一信息给第三网元或其他网元。通过本申请实施例发送第三信息,可以使第三网元等其他网元获取第三信息,得知第一待存储数据对应的存储网元,以对第一待存储数据发起访问请求。In the embodiment of this application, several possible specific implementations of sending the third information are provided. Specifically, the first network element can send a broadcast message. The broadcast message includes a message indicating the third information. The third information This includes information indicating the storage network element corresponding to the first data to be stored, or information that the first data to be stored is not stored in the first network element. Other network elements such as the third network element can learn about the first network element by receiving the broadcast message. The storage network element corresponding to the data to be stored initiates an access request for the first data to be stored. Alternatively, the first network element can send the third information point-to-point to the third network element or other network elements. Alternatively, the first network element can send the third information point-to-point to the centralized controller, and then the centralized controller sends the first information. To the third network element or other network elements. By sending the third information according to the embodiment of the present application, the third network element and other network elements can obtain the third information, learn the storage network element corresponding to the first data to be stored, and initiate an access request to the first data to be stored.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在所述第一网元将所述第一待存储数据传输至所述第二网元的情况下,所述第一网元接收第一请求,所述第一请求用于请求访问所述第一待存储数据。When the first network element transmits the first data to be stored to the second network element, the first network element receives a first request, and the first request is used to request access to the third network element. Once the data is to be stored.
在本申请实施例中,提供了一种第一网元接收第一请求的可能的具体实施方式,具体为,在第一网元将第一待存储数据传输至第二网元的情况下,第一网元接收第一请求,请求访问第一待存储数据。可以是第三网元向第二网元请求访问第一待存储数据,第二网元再向第一网元发送该第一请求,相应的,第一网元接收来自第二网元的第一请求。也可以是第三网元直接向第一网元发送第一请求,请求访问第一待存储数据,相应的,第一网元接收来自第三网元的第一请求。在第一网元响应第一请求,允许访问第一待存储数据的情况下,可以是第二网元直接将第一待存储数据发送给第三网元等其他访问第一待存储数据的网元,也可以是第二网元将第一待存储数据经由第一网元转发给第三网元等其他访问第一待存储数据的网元。通过本申请实施例,第一网元通过接收访问第一待存储数据的请求,控制其他网元对第一待存储数据的访问权限,即使将第一待存储数据存储至第二网元中,也可以保障第一网元对第一待存储数据的存储安全性的控制。In the embodiment of the present application, a possible specific implementation manner for the first network element to receive the first request is provided. Specifically, when the first network element transmits the first data to be stored to the second network element, The first network element receives the first request, requesting access to the first data to be stored. It may be that the third network element requests access to the first data to be stored from the second network element, and the second network element sends the first request to the first network element. Correspondingly, the first network element receives the third data from the second network element. One request. It is also possible that the third network element directly sends the first request to the first network element, requesting access to the first data to be stored, and accordingly, the first network element receives the first request from the third network element. When the first network element responds to the first request and allows access to the first data to be stored, the second network element may directly send the first data to be stored to the third network element or other networks that access the first data to be stored. The first network element may also be a second network element that forwards the first data to be stored to a third network element or other network elements that access the first data to be stored via the first network element. Through the embodiments of this application, the first network element controls the access rights of other network elements to the first data to be stored by receiving a request to access the first data to be stored. Even if the first data to be stored is stored in the second network element, It can also ensure that the first network element controls the storage security of the first data to be stored.
第二方面,本申请实施例提供了一种数据存储方法,该方法包括:In the second aspect, embodiments of the present application provide a data storage method, which method includes:
第二网元接收第一网元发送的第一待存储数据,其中,所述第一待存储数据为根据所述第一待存储数据的属性和所述第一网元的存储状态中的至少一项确定由所述第二网元接收的数据;The second network element receives the first data to be stored sent by the first network element, wherein the first data to be stored is based on at least one of the attributes of the first data to be stored and the storage status of the first network element. One item determines the data received by the second network element;
所述第二网元存储所述第一待存储数据。The second network element stores the first data to be stored.
本申请实施例中,提供了一种数据存储方法,具体为,第二网元接收第一网元发送的第一待存储数据,可以是在第一网元根据第一待存储数据的属性和第一网元的存储状态中的至少一项确定发送第一待存储数据的情况下,第二网元接收来自第一网元的第一待存储数据,并将第一待存储数据存储至第二网元中。其中,第一待存储数据的属性包括但不限于数据传输时延、数据存储可靠性、数据重要等级,等等。第一网元的存储状态包括但不限于网元中可用存储资源的大小、存储资源利用率的大小,等等。In the embodiment of the present application, a data storage method is provided. Specifically, the second network element receives the first data to be stored sent by the first network element, which may be done in the first network element according to the attributes of the first data to be stored and the When at least one of the storage statuses of the first network element determines that the first data to be stored is sent, the second network element receives the first data to be stored from the first network element and stores the first data to be stored in the first network element. in the second network element. Among them, the attributes of the first data to be stored include but are not limited to data transmission delay, data storage reliability, data importance level, etc. The storage status of the first network element includes but is not limited to the size of available storage resources in the network element, the size of storage resource utilization, and so on.
目前针对存储单元的坏块率较高的网元,通常采用将网元整体更换的方式,来保证存储功能的正常使用,更换过程中可能导致数据丢失,数据存储的稳定性较差,且存储成本较高。与目前的数据存储方法相比,本申请实施例根据待存储数据的属性和第一网元的存储状态中的至少一项,确定将第一网元中的待存储数据存储至第二网元中,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。Currently, for network elements with a high bad block rate in storage units, the network element is usually replaced as a whole to ensure the normal use of the storage function. The replacement process may cause data loss, poor data storage stability, and storage higher cost. Compared with the current data storage method, the embodiment of the present application determines to store the data to be stored in the first network element to the second network element based on at least one of the attributes of the data to be stored and the storage status of the first network element. Using multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
在一种可能的实施方式中,所述第一待存储数据为在所述第一网元的存储状态为第一状态的情况下确定由所述第二网元接收的数据,其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件。In a possible implementation, the first data to be stored is data determined to be received by the second network element when the storage state of the first network element is the first state, wherein the The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or that the storage resource utilization of the first network element satisfies the second condition.
在本申请实施例中,提供了一种接收第一待存储数据的可能的具体实施方式,具体为, 在第一网元的存储状态为第一状态的情况下,第一网元向第二网元发送第一待存储数据,相应的,第二网元接收来自第一网元的第一待存储数据。其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件,上述第一条件可以包括可用存储资源的大小小于第一阈值,上述第二条件可以包括存储资源利用率小于第二阈值。通过本申请实施例,根据第一网元的存储状态确定将第一待存储数据发送给第二网元,使得在第一网元的存储状态为第一状态的情况下,第二网元接收来自第一网元的第一待存储数据,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。In the embodiment of the present application, a possible specific implementation manner of receiving the first data to be stored is provided. Specifically, when the storage state of the first network element is the first state, the first network element sends the data to the second state. The network element sends the first data to be stored, and correspondingly, the second network element receives the first data to be stored from the first network element. The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition. The above-mentioned first condition may include that the size of the available storage resources is smaller than the first condition. The above-mentioned second condition may include that the storage resource utilization is less than the second threshold. Through the embodiment of the present application, the first data to be stored is determined to be sent to the second network element according to the storage status of the first network element, so that when the storage status of the first network element is the first status, the second network element receives For the first data to be stored from the first network element, the first data to be stored is selected to be stored in the second network element, and the second network element is used to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the first data to be stored. The stability of the data to be stored is improved, the overall storage availability of the first network element and the second network element is improved, and the storage cost is reduced.
在一种可能的实施方式中,所述第一待存储数据为在所述第一待存储数据为第一类型数据的情况下确定由所述第二网元接收的数据,其中,所述第一类型数据的属性满足第三条件。In a possible implementation, the first data to be stored is data determined to be received by the second network element when the first data to be stored is data of the first type, wherein the first data to be stored is determined to be received by the second network element. An attribute of a type of data satisfies the third condition.
在本申请实施例中,提供了一种接收第一待存储数据的可能的具体实施方式,具体为,在第一待存储数据为第一类型数据的情况下,第一网元向第二网元发送第一待存储数据,相应的,第二网元接收来自第一网元的第一待存储数据。其中,第一类型数据的属性满足第三条件,该第三条件可以包括:第一类型数据的传输时延要求/存储可靠性要求/重要等级,低于第二类型数据对应的传输时延要求/存储可靠性要求/重要等级。具体可以以第三阈值作为界限将第一类型数据和第二类型数据区分开,第一类型数据的传输时延要求/存储可靠性要求/重要等级小于第三阈值,第二类型数据的传输时延要求/存储可靠性要求/重要等级大于第三阈值。通过本申请实施例,根据第一待存储数据的属性确定将第一待存储数据发送给第二网元,使得在第一待存储数据为第一类型数据的情况下,第二网元接收来自第一网元的第一待存储数据,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。In the embodiment of the present application, a possible specific implementation manner of receiving the first data to be stored is provided. Specifically, when the first data to be stored is the first type of data, the first network element sends the data to the second network. The first network element sends the first data to be stored, and accordingly, the second network element receives the first data to be stored from the first network element. Among them, the attributes of the first type of data satisfy the third condition. The third condition may include: the transmission delay requirement/storage reliability requirement/importance level of the first type of data is lower than the corresponding transmission delay requirement of the second type of data. /storage reliability requirements/importance level. Specifically, the third threshold can be used as a boundary to distinguish the first type of data from the second type of data. The transmission delay requirement/storage reliability requirement/importance level of the first type of data is less than the third threshold, and the transmission time of the second type of data is smaller than the third threshold. The delay requirement/storage reliability requirement/importance level is greater than the third threshold. Through the embodiment of the present application, the first data to be stored is determined to be sent to the second network element according to the attributes of the first data to be stored, so that when the first data to be stored is the first type of data, the second network element receives the data from For the first data to be stored in the first network element, the first data to be stored is selected to be stored in the second network element, and the second network element is used to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the performance of the first data to be stored. The stability of stored data is improved, the overall storage availability of the first network element and the second network element is improved, and storage costs are reduced.
在一种可能的实施方式中,所述第一待存储数据为在所述第一待存储数据为第一类型数据且所述第一网元的存储状态为第一状态的情况下确定由所述第二网元接收的数据;In a possible implementation, the first data to be stored is determined by the first data when the first data to be stored is the first type of data and the storage state of the first network element is the first state. The data received by the second network element;
其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件;所述第一类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
在本申请实施例中,提供了一种接收第一待存储数据的可能的具体实施方式,具体为,在第一待存储数据为第一类型数据且第一网元的存储状态为第一状态的情况下,第一网元向第二网元发送第一待存储数据,相应的,第二网元接收来自第一网元的第一待存储数据。其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件,第一类型数据的属性满足第三条件。上述第一条件可以包括可用存储资源的大小小于第一阈值,上述第二条件可以包括存储资源利用率小于第二阈值,上述第三条件可以包括:第一类型数据的传输时延要求/存储可靠性要求/重要等级,低于第二类型数据对应的传输时延要求/存储可靠性要求/重要等级。具体可以以第三阈值作为界限将第一类型数据和第二类型数据区分开,第一类型数据的传输时延要求/存储可靠性要求/重要等级小于第三阈值,第二类型数据的传输时延要求/存储可靠性要求/重要等级大于第三阈值。通过本申请实施例,根据第一待存储数据的属性和第一网元的存储状态确定将第一待存储数据发送给第二网元,使得在第一待存储数据为第一类型数据且第一网元的存储状态为第一状态的情况下,第二网元接收来自第一网元的第一待存储数据,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的 稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。In the embodiment of the present application, a possible specific implementation manner of receiving the first data to be stored is provided. Specifically, when the first data to be stored is the first type of data and the storage state of the first network element is the first state, In the case of , the first network element sends the first data to be stored to the second network element, and accordingly, the second network element receives the first data to be stored from the first network element. The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition, and the attributes of the first type of data satisfy the third condition. The above-mentioned first condition may include that the size of available storage resources is less than the first threshold, the above-mentioned second condition may include that the storage resource utilization is less than the second threshold, and the above-mentioned third condition may include: transmission delay requirements/storage reliability of the first type of data The performance requirements/importance level are lower than the transmission delay requirements/storage reliability requirements/importance level corresponding to the second type of data. Specifically, the third threshold can be used as a boundary to distinguish the first type of data from the second type of data. The transmission delay requirement/storage reliability requirement/importance level of the first type of data is less than the third threshold, and the transmission time of the second type of data is smaller than the third threshold. The delay requirement/storage reliability requirement/importance level is greater than the third threshold. Through the embodiment of the present application, the first data to be stored is determined to be sent to the second network element according to the attributes of the first data to be stored and the storage status of the first network element, so that when the first data to be stored is the first type of data and the first When the storage state of one network element is the first state, the second network element receives the first data to be stored from the first network element, selects to store the first data to be stored in the second network element, and uses the second network element to store the first data to be stored. The network element cooperates with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第一待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
在本申请实施例中,提供了一种第一条件和第二条件的可能的具体实施方式,具体为,第一条件可以包括可用存储资源的大小小于第一阈值,第二条件可以包括存储资源利用率小于第二阈值。其中,第一阈值和第二阈值不是一个固定的值,与第一待存储数据的属性相关,可以根据不同场景进行调整,比如,当第一待存储数据为第一类型数据时,第一条件中的第一阈值可以是2GB,第二条件中的第二阈值可以是50%,当第一待存储数据为第二类型数据时,第一条件中的第一阈值可以是1GB,第二条件中的第二阈值可以是25%,在该场景下,如果将第一待存储数据传输给第二网元,第一待存储数据的传输时延要求/存储可靠性要求/重要等级越高,对第一网元中的可用存储资源或存储资源利用率的大小的要求的值就越小,类似的,如果将第一待存储数据存储至第一网元中,第一待存储数据的传输时延要求/存储可靠性要求/重要等级越高,对第一网元中的可用存储资源或存储资源利用率的大小要求的值就越大。通过本申请实施例,可以利用第一条件所涉及的第一阈值、第二条件所涉及的第二阈值,与第一待存储数据的属性之间的关系,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。In this embodiment of the present application, a possible specific implementation of the first condition and the second condition is provided. Specifically, the first condition may include that the size of the available storage resources is less than the first threshold, and the second condition may include that the storage resources are smaller than the first threshold. The utilization is less than the second threshold. The first threshold and the second threshold are not fixed values, but are related to the attributes of the first data to be stored, and can be adjusted according to different scenarios. For example, when the first data to be stored is the first type of data, the first condition The first threshold in may be 2GB, and the second threshold in the second condition may be 50%. When the first data to be stored is the second type of data, the first threshold in the first condition may be 1GB, and the second threshold in the second condition may be 1GB. The second threshold in can be 25%. In this scenario, if the first data to be stored is transmitted to the second network element, the higher the transmission delay requirement/storage reliability requirement/importance level of the first data to be stored, The smaller the required value of the available storage resources or storage resource utilization in the first network element. Similarly, if the first data to be stored is stored in the first network element, the transmission of the first data to be stored will be The higher the delay requirement/storage reliability requirement/importance level, the greater the value required for available storage resources or storage resource utilization in the first network element. Through the embodiments of the present application, the relationship between the first threshold involved in the first condition, the second threshold involved in the second condition, and the attributes of the first data to be stored can be used to transmit the first data to be stored to the third The second network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and The overall storage availability of the first network element and the second network element is improved, and storage costs are reduced.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第二网元发送所述第二网元的信息,所述第二网元的信息用于唯一标识所述第二网元。The second network element sends the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
在本申请实施例中,提供了一种发送第二网元的信息的可能的具体实施方式,具体为,第二网元发送第二网元的信息,该第二网元的信息用于唯一标识第二网元。通过本申请实施例,第一网元可以得知第二网元的信息,并根据第二网元的标识将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中。In the embodiment of the present application, a possible specific implementation manner of sending the information of the second network element is provided. Specifically, the second network element sends the information of the second network element, and the information of the second network element is used to uniquely Identify the second network element. Through the embodiments of this application, the first network element can learn the information of the second network element, transmit the first data to be stored to the second network element according to the identifier of the second network element, and choose to store the first data to be stored in in the second network element.
在一种可能的实施方式中,所述第二网元的信息包括以下至少一项:所述第二网元的标识、所述第二网元的地址。In a possible implementation, the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
在一种可能的实施方式中,所述第二网元的信息通过以下任一项方式发送:In a possible implementation, the information of the second network element is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在本申请实施例中,提供了几种发送第二网元的信息的可能的具体实施方式,具体为,第二网元可以发送广播消息,该广播消息包括用于指示第二网元的信息的消息,相应的,第一网元通过接收广播消息获取第二网元的信息,可以得知第二网元的标识,并根据第二网元的标识将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中。或者,第二网元点对点发送第二网元的信息给第一网元,相应的,第一网元接收第二网元的信息,或者,第二网元点对点发送第二网元的信息给集中式控制器,再由集中式控制器发送第二网元的信息给第一网元,相应的,第一网元接收第二网元的信息。通过本申请实施例发送第二网元的信息,包括了第二网元的标识,可以使得第一网元得知第二网元的标识,并据此将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中。In the embodiments of this application, several possible specific implementations of sending information of the second network element are provided. Specifically, the second network element can send a broadcast message, and the broadcast message includes information used to indicate the second network element. message, correspondingly, the first network element obtains the information of the second network element by receiving the broadcast message, can learn the identity of the second network element, and transmits the first data to be stored to the second network element according to the identity of the second network element. network element, select to store the first data to be stored in the second network element. Or, the second network element sends the information of the second network element point-to-point to the first network element, and accordingly, the first network element receives the information of the second network element, or the second network element sends the information of the second network element point-to-point to the first network element. The centralized controller then sends the information of the second network element to the first network element, and accordingly, the first network element receives the information of the second network element. Through the embodiment of the present application, the information of the second network element is sent, including the identifier of the second network element, so that the first network element can learn the identifier of the second network element, and accordingly transmit the first data to be stored to the second network element. network element, select to store the first data to be stored in the second network element.
在一种可能的实施方式中,所述第一待存储数据为在所述第二网元的存储状态为第三状态的情况下确定由所述第二网元接收的数据,其中,所述第三状态表征所述第二网元的可用存储资源的大小满足第四条件,或所述第二网元的存储资源利用率满足第五条件。In a possible implementation, the first data to be stored is data determined to be received by the second network element when the storage state of the second network element is the third state, wherein the The third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or that the storage resource utilization rate of the second network element satisfies the fifth condition.
在本申请实施例中,提供了一种接收第一待存储数据的可能的具体实施方式,具体为,在根据第一待存储数据的属性和第一网元的存储状态中的至少一项的基础上,第一网元还根据第二网元的存储状态,确定向第二网元发送第一待存储数据,相应的,第二网元接收来自第一网元的第一待存储数据。其中,第二网元的存储状态包括但不限于网元中可用存储资源的大小、存储资源利用率的大小,等等。具体的,在第一网元的存储状态为第一状态且第二网元的存储状态为第三状态的情况下,第一网元向第二网元发送第一待存储数据,相应的,第二网元接收来自第一网元的第一待存储数据。其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件,第三状态表征第二网元的可用存储资源的大小满足第四条件,或第二网元的存储资源利用率满足第五条件。其中,上述第一条件可以包括可用存储资源的大小小于第一阈值,上述第二条件可以包括存储资源利用率小于第二阈值,上述第四条件可以包括可用存储资源的大小大于第四阈值,上述第五条件可以包括存储资源利用率大于第五阈值。通过本申请实施例,在根据第一待存储数据的属性和第一网元的存储状态中的至少一项的基础上,还根据第二网元的存储状态,确定第一待存储数据的存储方式,具体可以根据第一网元的存储状态和第二网元的存储状态确定将第一待存储数据发送给第二网元,使得在第一网元的存储状态为第一状态且第二网元的存储状态为第三状态的情况下,第二网元接收来自第一网元的第一待存储数据,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。In the embodiment of the present application, a possible specific implementation manner of receiving the first data to be stored is provided, specifically, based on at least one of the attributes of the first data to be stored and the storage status of the first network element. Basically, the first network element also determines to send the first data to be stored to the second network element according to the storage status of the second network element. Correspondingly, the second network element receives the first data to be stored from the first network element. The storage status of the second network element includes but is not limited to the size of available storage resources in the network element, the size of storage resource utilization, and so on. Specifically, when the storage state of the first network element is the first state and the storage state of the second network element is the third state, the first network element sends the first data to be stored to the second network element. Correspondingly, The second network element receives the first data to be stored from the first network element. The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition, and the third state represents the size of the available storage resources of the second network element. The fourth condition is met, or the storage resource utilization of the second network element meets the fifth condition. Wherein, the above-mentioned first condition may include that the size of available storage resources is less than a first threshold, the above-mentioned second condition may include that the storage resource utilization is less than a second threshold, the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold, and the above-mentioned The fifth condition may include storage resource utilization being greater than a fifth threshold. Through the embodiments of the present application, based on at least one of the attributes of the first data to be stored and the storage status of the first network element, the storage status of the first data to be stored is also determined based on the storage status of the second network element. Specifically, it can be determined according to the storage status of the first network element and the storage status of the second network element to send the first data to be stored to the second network element, so that the storage status of the first network element is the first status and the second When the storage state of the network element is the third state, the second network element receives the first data to be stored from the first network element, selects to store the first data to be stored in the second network element, and uses the second network element to Collaborating with the first network element to complete the storage of the first data to be stored can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第二网元接收第一信息,所述第一信息包括所述第一网元的存储状态的信息。The second network element receives first information, where the first information includes information about the storage status of the first network element.
在本申请实施例中,提供了一种第二网元接收第一信息的可能的具体实施方式,具体为,第一网元可以发送广播消息,该广播消息包括用于指示第一信息的消息,第一信息包括第一网元的存储状态的信息,第二网元可以通过接收广播消息得知第一网元的存储状态。或者,第一网元可以点对点发送第一信息给第二网元,或者,第一网元可以点对点发送第一信息给集中式控制器,再由集中式控制器发送第一信息给第二网元。通过本申请实施例接收第一信息,可以使第二网元获取第一信息,得知第一网元的存储状态的信息。In the embodiment of the present application, a possible specific implementation manner for the second network element to receive the first information is provided. Specifically, the first network element can send a broadcast message, and the broadcast message includes a message for indicating the first information. , the first information includes information about the storage status of the first network element, and the second network element can learn the storage status of the first network element by receiving the broadcast message. Alternatively, the first network element can send the first information point-to-point to the second network element, or the first network element can send the first information point-to-point to the centralized controller, and then the centralized controller can send the first information to the second network element. Yuan. By receiving the first information through the embodiments of the present application, the second network element can obtain the first information and learn the storage status information of the first network element.
在一种可能的实施方式中,所述第一信息用于指示所述第一网元的可用存储资源的大小,或所述第一网元的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存储数据传输至所述第一网元。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述第一网元的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the first network element.
在本申请实施例中,提供了几种第一信息的可能的具体实施方式,具体为,第一信息用于指示第一网元的可用存储资源的大小,或第一网元的存储资源利用率的大小,通过本申请实施例,第三网元等其他网元可以根据第一信息所指示的内容,选择是否将第三网元等其他网元的待存储数据存储至第一网元中,第三网元等其他网元也可以根据第一信息所指示的内容,选择是否存储来自第一网元的待存储数据。In the embodiment of this application, several possible implementations of the first information are provided. Specifically, the first information is used to indicate the size of the available storage resources of the first network element, or the storage resource utilization of the first network element. The size of the rate, through the embodiment of the present application, the third network element and other other network elements can choose whether to store the to-be-stored data of the third network element and other other network elements into the first network element according to the content indicated by the first information. , other network elements such as the third network element can also choose whether to store the data to be stored from the first network element according to the content indicated by the first information.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第二网元发送第二信息,所述第二信息包括所述第二网元的存储状态的信息,所述第二信息用于所述第一网元确定所述第一待存储数据的存储方式和/或所述第一待存储数据 的存储网元。The second network element sends second information, the second information includes information about the storage status of the second network element, and the second information is used by the first network element to determine the first data to be stored. The storage method and/or the storage network element of the first data to be stored.
在本申请实施例中,提供了一种第二网元发送第二信息的可能的具体实施方式,具体为,第二网元发送广播消息,该广播消息包括用于指示第二信息的消息,第二信息包括第二网元的存储状态的信息,第一网元通过接收广播消息得知第二网元的存储状态。或者,第二网元点对点发送第二信息给第一网元,相应的,第一网元接收第二网元发送的第二信息。或者,第二网元点对点发送第二信息给集中式控制器,再由集中式控制器发送第二信息给第一网元,相应的,第一网元接收集中式控制器发送的第二信息。通过本申请实施例发送第二信息,使得第一网元可以根据第二信息得知第二网元的存储状态的信息,并根据第二网元的存储状态,确定第一待存储数据的存储方式和/或第一待存储数据的存储网元,比如将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储。In the embodiment of the present application, a possible specific implementation manner for the second network element to send the second information is provided. Specifically, the second network element sends a broadcast message, and the broadcast message includes a message for indicating the second information, The second information includes information about the storage status of the second network element. The first network element learns the storage status of the second network element by receiving the broadcast message. Alternatively, the second network element sends the second information point-to-point to the first network element, and accordingly, the first network element receives the second information sent by the second network element. Alternatively, the second network element sends the second information point-to-point to the centralized controller, and then the centralized controller sends the second information to the first network element. Correspondingly, the first network element receives the second information sent by the centralized controller. . By sending the second information through the embodiment of the present application, the first network element can learn the storage status information of the second network element based on the second information, and determine the storage of the first data to be stored based on the storage status of the second network element. The method and/or the storage network element of the first data to be stored, for example, stores the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在所述第一网元将所述第一待存储数据传输至所述第二网元的情况下,所述第二网元接收第三信息,所述第三信息用于指示所述第一待存储数据对应的存储网元或所述第一待存储数据未存储于所述第一网元。When the first network element transmits the first data to be stored to the second network element, the second network element receives third information, and the third information is used to indicate that the first The storage network element corresponding to the data to be stored or the first data to be stored is not stored in the first network element.
在本申请实施例中,提供了一种第二网元接收第三信息的可能的具体实施方式,具体为,在第一网元将第一待存储数据传输至第二网元的情况下,第一网元发送第三信息,该第三信息用于指示第一待存储数据对应的存储网元或第一待存储数据未存储于第一网元。通过本申请实施例,第二网元等其他网元可以通过第一网元发送的第三信息得知第一待存储数据对应的存储网元,便于第二网元等其他网元对第一待存储数据发起访问请求。In the embodiment of the present application, a possible specific implementation manner for the second network element to receive the third information is provided. Specifically, when the first network element transmits the first data to be stored to the second network element, The first network element sends third information, and the third information is used to indicate the storage network element corresponding to the first data to be stored or the first data to be stored is not stored in the first network element. Through the embodiments of the present application, the second network element and other other network elements can learn the storage network element corresponding to the first data to be stored through the third information sent by the first network element, which facilitates the second network element and other other network elements to Initiate an access request for the data to be stored.
在一种可能的实施方式中,所述第三信息通过以下任一项方式接收:In a possible implementation, the third information is received in any of the following ways:
广播消息,或者,点对点接收。Broadcast messages, or receive them peer-to-peer.
在本申请实施例中,提供了几种接收第三信息的可能的具体实施方式,具体为,第一网元可以发送广播消息,该广播消息包括用于指示第三信息的消息,第三信息包括用于指示第一待存储数据对应的存储网元的信息,或第一待存储数据未存储于第一网元的信息,第三网元等其他网元可以通过接收广播消息得知第一待存储数据对应的存储网元,以对第一待存储数据发起访问请求。或者,第一网元可以点对点发送第三信息给第三网元或其他网元,或者,第一网元可以点对点发送第三信息给集中式控制器,再由集中式控制器发送第一信息给第三网元或其他网元。通过本申请实施例接收第三信息,可以使第三网元等其他网元获取第三信息,得知第一待存储数据对应的存储网元,以对第一待存储数据发起访问请求。In the embodiments of this application, several possible specific implementations for receiving the third information are provided. Specifically, the first network element can send a broadcast message, and the broadcast message includes a message for indicating the third information. The third information This includes information indicating the storage network element corresponding to the first data to be stored, or information that the first data to be stored is not stored in the first network element. Other network elements such as the third network element can learn about the first network element by receiving the broadcast message. The storage network element corresponding to the data to be stored initiates an access request for the first data to be stored. Alternatively, the first network element can send the third information point-to-point to the third network element or other network elements. Alternatively, the first network element can send the third information point-to-point to the centralized controller, and then the centralized controller sends the first information. To the third network element or other network elements. By receiving the third information through the embodiments of the present application, the third network element and other network elements can obtain the third information, learn the storage network element corresponding to the first data to be stored, and initiate an access request for the first data to be stored.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在所述第二网元接收所述第一网元发送的所述第一待存储数据的情况下,所述第二网元发送第一请求,所述第一请求用于请求访问所述第一待存储数据。When the second network element receives the first data to be stored sent by the first network element, the second network element sends a first request, and the first request is used to request access to the first data. Once the data is to be stored.
在本申请实施例中,提供了一种第二网元发送第一请求的可能的具体实施方式,具体为,在第二网元接收第一网元发送的第一待存储数据的情况下,第二网元向第一网元发送第一请求,请求访问第一待存储数据,相应的,第一网元接收来自第二网元的第一请求。在第一网元响应第一请求,允许访问第一待存储数据的情况下,第二网元直接访问存储在第二网元中的第一待存储数据。通过本申请实施例,第二网元向第一网元发送访问第一待存储数据的请求,第一网元可以控制第二网元等其他网元对第一待存储数据的访问权限,即使将第一待存储数据存储至第二网元中,也可以保障第一网元对第一待存储数据的存储安全性的控制。In the embodiment of the present application, a possible specific implementation manner for the second network element to send the first request is provided. Specifically, when the second network element receives the first data to be stored sent by the first network element, The second network element sends a first request to the first network element, requesting access to the first data to be stored. Correspondingly, the first network element receives the first request from the second network element. When the first network element responds to the first request and allows access to the first data to be stored, the second network element directly accesses the first data to be stored stored in the second network element. Through the embodiment of this application, the second network element sends a request to access the first data to be stored to the first network element, and the first network element can control the access rights of other network elements such as the second network element to the first data to be stored, even if Storing the first data to be stored in the second network element can also ensure that the first network element controls the storage security of the first data to be stored.
第三方面,本申请实施例提供了一种数据存储方法,该方法包括:In a third aspect, embodiments of the present application provide a data storage method, which method includes:
第一网元发送第一消息,所述第一消息用于请求第二网元存储第二待存储数据,所述第二待存储数据为所述第一网元的数据;The first network element sends a first message, the first message is used to request the second network element to store second data to be stored, and the second data to be stored is the data of the first network element;
所述第一网元接收第二消息;The first network element receives the second message;
所述第一网元根据所述第二消息,确定对所述第二待存储数据的存储方式。The first network element determines a storage method for the second data to be stored based on the second message.
本申请实施例中,提供了一种数据存储方法,具体为,第一网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据,第一网元接收第二消息,并根据该第二消息确定对第二待存储数据的存储方式。In the embodiment of the present application, a data storage method is provided. Specifically, the first network element sends a first message to request the second network element to store the second to-be-stored data of the first network element. The first network element receives second message, and determine a storage method for the second data to be stored based on the second message.
目前针对存储单元的坏块率较高的网元,通常采用将网元整体更换的方式,来保证存储功能的正常使用,更换过程中可能导致数据丢失,数据存储的稳定性较差,且存储成本较高。与目前的数据存储方法相比,本申请实施例通过向其他网元发送请求消息,并根据接收到的响应消息确定待存储数据的存储方式,具体可以请求第二网元存储第一网元中的待存储数据,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。Currently, for network elements with a high bad block rate in storage units, the network element is usually replaced as a whole to ensure the normal use of the storage function. The replacement process may cause data loss, poor data storage stability, and storage higher cost. Compared with the current data storage method, the embodiment of the present application sends a request message to other network elements and determines the storage method of the data to be stored based on the received response message. Specifically, the second network element can be requested to store the data in the first network element. For the data to be stored, using multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
在一种可能的实施方式中,所述根据所述第二消息,确定对所述第二待存储数据的存储方式,包括:In a possible implementation, determining a storage method for the second data to be stored according to the second message includes:
在所述第二消息指示所述第二网元允许存储所述第二待存储数据的情况下,所述第一网元向所述第二网元发送所述第二待存储数据;或者,When the second message indicates that the second network element allows storage of the second data to be stored, the first network element sends the second data to be stored to the second network element; or,
在所述第二消息指示所述第二网元不允许存储所述第二待存储数据的情况下,所述第一网元将所述第二待存储数据存储至所述第一网元,或者,发送第三消息,所述第三消息用于请求第三网元存储所述第二待存储数据。When the second message indicates that the second network element is not allowed to store the second data to be stored, the first network element stores the second data to be stored in the first network element, Alternatively, send a third message, where the third message is used to request a third network element to store the second data to be stored.
在本申请实施例中,提供了一种根据第二消息确定第二待存储数据的存储方式的可能的具体实施方式,具体为,在第二消息指示第二网元允许存储第二待存储数据的情况下,第一网元向第二网元发送第二待存储数据,否则,第一网元将第二待存储数据存储至第一网元,或者,第一网元发送第三消息,向第三网元请求存储第二待存储数据。通过本申请实施例,在接收到的响应消息指示第二网元允许存储第一网元中的第二待存储数据时,第一网元向第二网元发送第二待存储数据,利用多个网元协同完成第二待存储数据的存储,可以提高第二待存储数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。In the embodiment of the present application, a possible specific implementation manner of determining the storage method of the second data to be stored according to the second message is provided. Specifically, the second message indicates that the second network element is allowed to store the second data to be stored. In the case of , the first network element sends the second data to be stored to the second network element, otherwise, the first network element stores the second data to be stored to the first network element, or the first network element sends the third message, Requesting the third network element to store the second data to be stored. Through the embodiment of the present application, when the received response message indicates that the second network element is allowed to store the second data to be stored in the first network element, the first network element sends the second data to be stored to the second network element, using multiple Network elements collaboratively complete the storage of the second data to be stored, which can improve the stability of the storage of the second data to be stored, improve the overall storage availability of the network elements, and reduce storage costs.
在一种可能的实施方式中,所述发送第一消息之前,所述方法还包括:In a possible implementation, before sending the first message, the method further includes:
所述第一网元根据所述第二待存储数据的属性和所述第一网元的存储状态中的至少一项,确定发送所述第一消息。The first network element determines to send the first message based on at least one of the attributes of the second data to be stored and the storage status of the first network element.
在一种可能的实施方式中,所述确定发送所述第一消息,包括:In a possible implementation, the determining to send the first message includes:
在所述第一网元的存储状态为第一状态的情况下,确定发送所述第一消息,其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件。When the storage state of the first network element is a first state, it is determined to send the first message, wherein the first state represents that the size of the available storage resources of the first network element satisfies a first condition. , or the storage resource utilization rate of the first network element meets the second condition.
在一种可能的实施方式中,所述确定发送所述第一消息,包括:In a possible implementation, the determining to send the first message includes:
在所述第二待存储数据为第一类型数据的情况下,确定发送所述第一消息,其中,所述第一类型数据的属性满足第三条件。In the case where the second data to be stored is the first type of data, it is determined to send the first message, wherein the attributes of the first type of data satisfy the third condition.
在一种可能的实施方式中,所述确定发送所述第一消息,包括:In a possible implementation, the determining to send the first message includes:
在所述第二待存储数据为第一类型数据且所述第一网元的存储状态为第一状态的情况下,确定发送所述第一消息;When the second data to be stored is the first type of data and the storage state of the first network element is the first state, determine to send the first message;
其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第 一网元的存储资源利用率满足第二条件;所述第一类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第二待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第一网元获取所述第二网元的信息,所述第二网元的信息用于唯一标识所述第二网元。The first network element obtains the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
在一种可能的实施方式中,所述第二网元的信息包括以下至少一项:所述第二网元的标识、所述第二网元的地址。In a possible implementation, the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
在一种可能的实施方式中,所述第二网元的信息通过以下任一项方式获取:In a possible implementation, the information of the second network element is obtained by any of the following methods:
广播消息,或者,预先配置,或者,点对点发送。Broadcast messages, either pre-configured or sent peer-to-peer.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第一网元根据所述第二网元的存储状态,确定发送所述第一消息。The first network element determines to send the first message according to the storage status of the second network element.
在一种可能的实施方式中,所述第一网元根据所述第二网元的存储状态,确定发送所述第一消息,包括:In a possible implementation, the first network element determines to send the first message based on the storage status of the second network element, including:
在所述第一网元的存储状态为所述第一状态,且所述第二网元的存储状态为第三状态的情况下,确定发送所述第一消息,其中,所述第三状态表征所述第二网元的可用存储资源的大小满足第四条件,或所述第二网元的存储资源利用率满足第五条件。When the storage state of the first network element is the first state, and the storage state of the second network element is the third state, it is determined to send the first message, wherein the third state It means that the size of the available storage resources of the second network element satisfies the fourth condition, or the utilization rate of the storage resources of the second network element satisfies the fifth condition.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第一网元发送第一信息,所述第一信息包括所述第一网元的存储状态的信息。The first network element sends first information, where the first information includes information about the storage status of the first network element.
在一种可能的实施方式中,所述第一信息用于指示所述第一网元的可用存储资源的大小,或所述第一网元的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存储数据传输至所述第一网元。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述第一网元的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the first network element.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第一网元接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息,所述第二信息用于所述第一网元确定发送所述第一消息。The first network element receives second information, the second information includes information on the storage status of at least one third network element, and the second information is used for the first network element to determine to send the first message.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第一网元接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息;The first network element receives second information, where the second information includes information on the storage status of at least one third network element;
所述第一网元根据所述第二信息,确定发送所述第一消息。The first network element determines to send the first message based on the second information.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在所述第一网元向所述第二网元发送所述第二待存储数据的情况下,所述第一网元发送第四信息,所述第四信息用于指示所述第二待存储数据对应的存储网元或所述第二待存储数据未存储于所述第一网元。When the first network element sends the second data to be stored to the second network element, the first network element sends fourth information, and the fourth information is used to indicate that the second data to be stored is The storage network element corresponding to the stored data or the second data to be stored is not stored in the first network element.
在一种可能的实施方式中,所述第四信息通过以下任一项方式发送:In a possible implementation, the fourth information is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在所述第一网元向所述第二网元发送所述第二待存储数据的情况下,所述第一网元接收第二请求,所述第二请求用于请求访问所述第二待存储数据。When the first network element sends the second data to be stored to the second network element, the first network element receives a second request, and the second request is used to request access to the second data. Data to be stored.
第四方面,本申请实施例提供了一种数据存储方法,该方法包括:In a fourth aspect, embodiments of the present application provide a data storage method, which method includes:
第二网元接收第一消息,所述第一消息用于请求所述第二网元存储第二待存储数据,所述第二待存储数据为第一网元的数据;The second network element receives a first message, the first message is used to request the second network element to store second data to be stored, and the second data to be stored is the data of the first network element;
所述第二网元发送第二消息,所述第二消息用于所述第一网元确定对所述第二待存储数据的存储方式。The second network element sends a second message, and the second message is used by the first network element to determine a storage method for the second data to be stored.
本申请实施例,提供了一种数据存储方法,具体为,第二网元接收第一消息,该第一消息用于请求第二网元存储第一网元中的第二待存储数据,第二网元响应该请求,发送第二消息,该第二消息用于第一网元确定对第二待存储数据的存储方式。The embodiment of the present application provides a data storage method. Specifically, the second network element receives a first message, and the first message is used to request the second network element to store the second data to be stored in the first network element. The second network element responds to the request and sends a second message. The second message is used by the first network element to determine the storage method of the second data to be stored.
目前针对存储单元的坏块率较高的网元,通常采用将网元整体更换的方式,来保证存储功能的正常使用,更换过程中可能导致数据丢失,数据存储的稳定性较差,且存储成本较高。与目前的数据存储方法相比,本申请实施例通过接收第一网元发送的请求存储第一网元的第二待存储数据的第一消息,并响应该请求发送第二消息,用于第一网元确定对第二待存储数据的存储方式,具体可以是确定将第二待存储数据存储至第二网元,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。Currently, for network elements with a high bad block rate in storage units, the network element is usually replaced as a whole to ensure the normal use of the storage function. The replacement process may cause data loss, poor data storage stability, and storage higher cost. Compared with the current data storage method, the embodiment of the present application receives a first message sent by the first network element requesting to store the second to-be-stored data of the first network element, and sends a second message in response to the request, for the first time. One network element determines a storage method for the second data to be stored. Specifically, it may be determined to store the second data to be stored in the second network element. Using multiple network elements to collaboratively complete data storage can improve the stability of data storage, and It improves the overall storage availability of network elements and reduces storage costs.
在一种可能的实施方式中,所述第二消息用于所述第一网元确定对所述第二待存储数据的存储方式,包括:In a possible implementation, the second message is used by the first network element to determine a storage method for the second data to be stored, including:
在所述第二消息指示所述第二网元允许存储所述第二待存储数据的情况下,所述第二网元接收所述第一网元发送的所述第二待存储数据;或者,In the case where the second message indicates that the second network element is allowed to store the second data to be stored, the second network element receives the second data to be stored sent by the first network element; or ,
在所述第二消息指示所述第二网元不允许存储所述第二待存储数据的情况下,所述第二消息用于所述第一网元确定将所述第二待存储数据存储至所述第一网元,或者,发送第三消息,所述第三消息用于请求第三网元存储所述第二待存储数据。When the second message indicates that the second network element is not allowed to store the second data to be stored, the second message is used for the first network element to determine to store the second data to be stored. to the first network element, or send a third message, where the third message is used to request the third network element to store the second data to be stored.
在本申请实施例中,提供了一种第二消息用于第一网元确定对第二待存储数据的存储方式的可能的具体实施方式,具体为,在第二消息指示第二网元允许存储第二待存储数据的情况下,第二网元接收第一网元发送的第二待存储数据,否则,第二消息用于第一网元确定将第二待存储数据存储至第一网元,或者,用于第一网元确定发送第三消息,向第三网元请求存储第二待存储数据。通过本申请实施例,在接收到的响应消息指示第二网元允许存储第一网元中的第二待存储数据时,第二网元接收第一网元发送的第二待存储数据,利用多个网元协同完成第二待存储数据的存储,可以提高第二待存储数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。In this embodiment of the present application, a second message is provided as a possible implementation manner for the first network element to determine the storage method of the second data to be stored. Specifically, the second message indicates that the second network element allows When storing the second data to be stored, the second network element receives the second data to be stored sent by the first network element; otherwise, the second message is used by the first network element to determine to store the second data to be stored in the first network element. element, or used for the first network element to determine to send the third message and request the third network element to store the second data to be stored. Through the embodiment of the present application, when the received response message indicates that the second network element is allowed to store the second data to be stored in the first network element, the second network element receives the second data to be stored sent by the first network element, and uses Multiple network elements cooperate to complete the storage of the second data to be stored, which can improve the stability of the storage of the second data to be stored, improve the overall storage availability of the network elements, and reduce storage costs.
在一种可能的实施方式中,所述第一消息为根据所述第二待存储数据的属性和所述第一网元的存储状态中的至少一项确定由所述第二网元接收的消息。In a possible implementation, the first message is determined to be received by the second network element based on at least one of the attributes of the second data to be stored and the storage status of the first network element. information.
在一种可能的实施方式中,所述第一消息为在所述第一网元的存储状态为第一状态的情况下确定由所述第二网元接收的消息,其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件。In a possible implementation, the first message is a message determined to be received by the second network element when the storage state of the first network element is the first state, wherein the first The status indicates that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition.
在一种可能的实施方式中,所述第一消息为在所述第二待存储数据为第一类型数据的情况下确定由所述第二网元接收的消息,其中,所述第一类型数据的属性满足第三条件。In a possible implementation, the first message is a message determined to be received by the second network element when the second data to be stored is data of the first type, wherein the first type The attributes of the data satisfy the third condition.
在一种可能的实施方式中,所述第一消息为在所述第二待存储数据为第一类型数据且所述第一网元的存储状态为第一状态的情况下确定由所述第二网元接收的消息;In a possible implementation, the first message is determined by the third network element when the second data to be stored is the first type of data and the storage state of the first network element is the first state. Message received by the second network element;
其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件;所述第一类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第二待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第二网元发送所述第二网元的信息,所述第二网元的信息用于唯一标识所述第二网元。The second network element sends the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
在一种可能的实施方式中,所述第二网元的信息包括以下至少一项:所述第二网元的标识、所述第二网元的地址。In a possible implementation, the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
在一种可能的实施方式中,所述第二网元的信息通过以下任一项方式发送:In a possible implementation, the information of the second network element is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在一种可能的实施方式中,所述第一消息为根据所述第二网元的存储状态确定由所述第二网元接收的消息。In a possible implementation, the first message is a message received by the second network element determined according to the storage status of the second network element.
在一种可能的实施方式中,所述第一消息为在所述第一网元的存储状态为所述第一状态,且所述第二网元的存储状态为第三状态的情况下确定由所述第二网元接收的消息,其中,所述第三状态表征所述第二网元的可用存储资源的大小满足第四条件,或所述第二网元的存储资源利用率满足第五条件。In a possible implementation, the first message is determined when the storage state of the first network element is the first state, and the storage state of the second network element is the third state. The message received by the second network element, wherein the third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or the storage resource utilization rate of the second network element satisfies the third condition. Five conditions.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第二网元接收第一信息,所述第一信息包括所述第一网元的存储状态的信息。The second network element receives first information, where the first information includes information about the storage status of the first network element.
在一种可能的实施方式中,所述第一信息用于指示所述第一网元的可用存储资源的大小,或所述第一网元的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存储数据传输至所述第一网元。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述第一网元的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the first network element.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
所述第二网元发送第二信息,所述第二信息包括所述第二网元的存储状态的信息,所述第二信息用于所述第一网元确定发送所述第一消息。The second network element sends second information, the second information includes information about the storage status of the second network element, and the second information is used by the first network element to determine to send the first message.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在所述第一网元向所述第二网元发送所述第二待存储数据的情况下,所述第二网元接收第四信息,所述第四信息用于指示所述第二待存储数据对应的存储网元或所述第二待存储数据未存储于所述第一网元。When the first network element sends the second data to be stored to the second network element, the second network element receives fourth information, and the fourth information is used to indicate that the second data to be stored is The storage network element corresponding to the stored data or the second data to be stored is not stored in the first network element.
在一种可能的实施方式中,所述第四信息通过以下任一项方式接收:In a possible implementation, the fourth information is received in any of the following ways:
广播消息,或者,点对点接收。Broadcast messages, or receive them peer-to-peer.
在一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:
在所述第一网元向所述第二网元发送所述第二待存储数据的情况下,所述第二网元发送第二请求,所述第二请求用于请求访问所述第二待存储数据。When the first network element sends the second data to be stored to the second network element, the second network element sends a second request, and the second request is used to request access to the second data. Data to be stored.
第五方面,本申请实施例提供了一种数据存储装置,该装置包括用于执行如第一方面至第四方面任一方面中任一项所述方法的模块或单元。In a fifth aspect, embodiments of the present application provide a data storage device, which includes a module or unit for executing the method described in any one of the first to fourth aspects.
在一种可能的设计中,该装置包括:In one possible design, the device includes:
处理单元,用于获取第一待存储数据;A processing unit used to obtain the first data to be stored;
所述处理单元,还用于根据所述第一待存储数据的属性和所述数据存储装置的存储状态中的至少一项,确定所述第一待存储数据的存储方式。The processing unit is further configured to determine a storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the data storage device.
在一种可能的实施方式中,该装置还包括:In a possible implementation, the device further includes:
收发单元,用于在所述数据存储装置的存储状态为第一状态的情况下,将所述第一待存储数据传输至第二网元,其中,所述第一状态表征所述数据存储装置的可用存储资源的大小满足第一条件,或所述数据存储装置的存储资源利用率满足第二条件;或者,A transceiver unit, configured to transmit the first data to be stored to the second network element when the storage state of the data storage device is a first state, wherein the first state represents the data storage device The size of the available storage resources satisfies the first condition, or the storage resource utilization rate of the data storage device satisfies the second condition; or,
所述处理单元,具体用于在所述数据存储装置的存储状态为第二状态的情况下,将所述第一待存储数据存储至所述数据存储装置,其中,所述第二状态表征所述数据存储装置的可用存储资源的大小不满足所述第一条件,或所述数据存储装置的存储资源利用率不满足所述第二条件。The processing unit is specifically configured to store the first data to be stored in the data storage device when the storage state of the data storage device is a second state, wherein the second state represents the The size of the available storage resources of the data storage device does not meet the first condition, or the storage resource utilization of the data storage device does not meet the second condition.
在一种可能的实施方式中,所述收发单元,还用于在所述第一待存储数据为第一类型数据的情况下,将所述第一待存储数据传输至第二网元;或者,In a possible implementation, the transceiver unit is further configured to transmit the first data to be stored to the second network element when the first data to be stored is data of the first type; or ,
所述处理单元,还用于在所述第一待存储数据为第二类型数据的情况下,将所述第一待存储数据存储至所述数据存储装置;The processing unit is also configured to store the first data to be stored in the data storage device when the first data to be stored is data of the second type;
其中,所述第一类型数据的属性和所述第二类型数据的属性满足第三条件。Wherein, the attributes of the first type data and the attributes of the second type data satisfy the third condition.
在一种可能的实施方式中,所述收发单元,还用于在所述第一待存储数据为第一类型数据且所述数据存储装置的存储状态为第一状态的情况下,将所述第一待存储数据传输至第二网元;或者,In a possible implementation, the transceiver unit is further configured to: when the first data to be stored is data of the first type and the storage state of the data storage device is a first state, The first data to be stored is transmitted to the second network element; or,
所述处理单元,还用于在所述第一待存储数据为第二类型数据且所述数据存储装置的存储状态为第二状态的情况下,将所述第一待存储数据存储至所述数据存储装置;The processing unit is also configured to store the first data to be stored in the second type of data when the first data to be stored is the second type of data and the storage state of the data storage device is the second state. data storage device;
其中,所述第一状态表征所述数据存储装置的可用存储资源的大小满足第一条件,或所述数据存储装置的存储资源利用率满足第二条件;所述第二状态表征所述数据存储装置的可用存储资源的大小不满足所述第一条件,或所述数据存储装置的存储资源利用率不满足所述第二条件;所述第一类型数据的属性和所述第二类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the data storage device meets the first condition, or the storage resource utilization of the data storage device meets the second condition; the second state represents that the data storage The size of the available storage resources of the device does not meet the first condition, or the storage resource utilization of the data storage device does not meet the second condition; the attributes of the first type of data and the attributes of the second type of data The attribute satisfies the third condition.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第一待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
在一种可能的实施方式中,所述处理单元,还用于获取所述第二网元的信息,所述第二网元的信息用于唯一标识所述第二网元。In a possible implementation, the processing unit is further configured to obtain information about the second network element, and the information about the second network element is used to uniquely identify the second network element.
在一种可能的实施方式中,所述第二网元的信息包括以下至少一项:所述第二网元的标识、所述第二网元的地址。In a possible implementation, the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
在一种可能的实施方式中,所述第二网元的信息通过以下任一项方式获取:In a possible implementation, the information of the second network element is obtained by any of the following methods:
广播消息,或者,预先配置,或者,点对点发送。Broadcast messages, either pre-configured or sent peer-to-peer.
在一种可能的实施方式中,在所述收发单元将所述第一待存储数据传输至第二网元的情况下,所述第二网元的存储状态为第三状态,其中,所述第三状态表征所述第二网元的可用存储资源的大小满足第四条件,或所述第二网元的存储资源利用率满足第五条件。In a possible implementation, when the transceiver unit transmits the first data to be stored to the second network element, the storage state of the second network element is the third state, wherein: The third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or that the storage resource utilization rate of the second network element satisfies the fifth condition.
在一种可能的实施方式中,所述收发单元,还用于发送第一信息,所述第一信息包括所述数据存储装置的存储状态的信息。In a possible implementation, the transceiver unit is further configured to send first information, where the first information includes information about the storage status of the data storage device.
在一种可能的实施方式中,所述第一信息用于指示所述数据存储装置的可用存储资源的大小,或所述数据存储装置的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the data storage device, or the size of storage resource utilization of the data storage device.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存 储数据传输至所述数据存储装置。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the data storage device.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述数据存储装置的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the data storage device.
在一种可能的实施方式中,所述收发单元,还用于接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息,所述第二信息用于所述数据存储装置确定所述第一待存储数据的存储方式和/或所述第一待存储数据的存储网元。In a possible implementation, the transceiver unit is further configured to receive second information, where the second information includes information on the storage status of at least one third network element, and the second information is used for the data The storage device determines the storage method of the first data to be stored and/or the storage network element of the first data to be stored.
在一种可能的实施方式中,所述收发单元,还用于接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息;In a possible implementation, the transceiver unit is further configured to receive second information, where the second information includes information on the storage status of at least one third network element;
所述处理单元,还用于根据所述第二信息,确定将所述第一待存储数据存储至所述至少一个第三网元中。The processing unit is further configured to determine, according to the second information, to store the first data to be stored in the at least one third network element.
在一种可能的实施方式中,所述收发单元,还用于在所述数据存储装置将所述第一待存储数据传输至所述第二网元的情况下,发送第三信息,所述第三信息用于指示所述第一待存储数据对应的存储网元或所述第一待存储数据未存储于所述第一网元。In a possible implementation, the transceiver unit is further configured to send third information when the data storage device transmits the first data to be stored to the second network element. The third information is used to indicate the storage network element corresponding to the first data to be stored or the first data to be stored is not stored in the first network element.
在一种可能的实施方式中,所述第三信息通过以下任一项方式发送:In a possible implementation, the third information is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在一种可能的实施方式中,所述收发单元,还用于在将所述第一待存储数据传输至所述第二网元的情况下,接收第一请求,所述第一请求用于请求访问所述第一待存储数据。In a possible implementation, the transceiver unit is further configured to receive a first request when transmitting the first data to be stored to the second network element, and the first request is used to Request access to the first data to be stored.
关于第五方面以及任一项可能的实施方式所带来的技术效果,可参考对应于第一方面以及相应的实施方式的技术效果的介绍。Regarding the technical effects brought by the fifth aspect and any possible implementation, reference may be made to the introduction corresponding to the technical effects of the first aspect and the corresponding implementation.
在另一种可能的设计中,该装置包括:In another possible design, the device includes:
收发单元,用于接收第一网元发送的第一待存储数据,其中,所述第一待存储数据为根据所述第一待存储数据的属性和所述第一网元的存储状态中的至少一项确定由所述收发单元接收的数据;A transceiver unit configured to receive the first data to be stored sent by the first network element, wherein the first data to be stored is based on the attributes of the first data to be stored and the storage status of the first network element. At least one item determines data received by the transceiver unit;
处理单元,用于存储所述第一待存储数据。A processing unit configured to store the first data to be stored.
在一种可能的实施方式中,所述第一待存储数据在所述第一网元的存储状态为第一状态的情况下确定接收,其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件。In a possible implementation, the first data to be stored is determined to be received when the storage state of the first network element is a first state, wherein the first state represents the first network element The size of the available storage resources satisfies the first condition, or the storage resource utilization rate of the first network element satisfies the second condition.
在一种可能的实施方式中,所述第一待存储数据为在所述第一待存储数据为第一类型数据的情况下确定由所述收发单元接收的数据,其中,所述第一类型数据的属性满足第三条件。In a possible implementation, the first data to be stored is data determined to be received by the transceiver unit when the first data to be stored is data of a first type, wherein the first type The attributes of the data satisfy the third condition.
在一种可能的实施方式中,所述第一待存储数据为在所述第一待存储数据为第一类型数据且所述第一网元的存储状态为第一状态的情况下确定由所述收发单元接收的数据;In a possible implementation, the first data to be stored is determined by the first data when the first data to be stored is the first type of data and the storage state of the first network element is the first state. The data received by the transceiver unit;
其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件;所述第一类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第一待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
在一种可能的实施方式中,所述收发单元,还用于发送所述数据存储装置的信息,所述数据存储装置的信息用于唯一标识所述数据存储装置。In a possible implementation, the transceiver unit is also configured to send information about the data storage device, and the information about the data storage device is used to uniquely identify the data storage device.
在一种可能的实施方式中,所述数据存储装置的信息包括以下至少一项:所述数据存储装置的标识、所述数据存储装置的地址。In a possible implementation, the information about the data storage device includes at least one of the following: an identification of the data storage device and an address of the data storage device.
在一种可能的实施方式中,所述数据存储装置的信息通过以下任一项方式发送:In a possible implementation, the information of the data storage device is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在一种可能的实施方式中,所述第一待存储数据为在所述数据存储装置的存储状态为第三状态的情况下确定由所述数据存储装置接收的数据,其中,所述第三状态表征所述数据存储装置的可用存储资源的大小满足第四条件,或所述数据存储装置的存储资源利用率满足第五条件。In a possible implementation, the first data to be stored is data determined to be received by the data storage device when the storage state of the data storage device is a third state, wherein the third The status represents that the size of the available storage resources of the data storage device satisfies the fourth condition, or the storage resource utilization of the data storage device satisfies the fifth condition.
在一种可能的实施方式中,所述收发单元,还用于接收第一信息,所述第一信息包括所述第一网元的存储状态的信息。In a possible implementation, the transceiver unit is further configured to receive first information, where the first information includes information about the storage status of the first network element.
在一种可能的实施方式中,所述第一信息用于指示所述第一网元的可用存储资源的大小,或所述第一网元的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存储数据传输至所述第一网元。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述第一网元的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the first network element.
在一种可能的实施方式中,所述收发单元,还用于发送第二信息,所述第二信息包括所述数据存储装置的存储状态的信息,所述第二信息用于所述第一网元确定所述第一待存储数据的存储方式和/或所述第一待存储数据的存储网元。In a possible implementation, the transceiver unit is also configured to send second information, where the second information includes information about the storage status of the data storage device, and the second information is used for the first The network element determines the storage method of the first data to be stored and/or the storage network element of the first data to be stored.
在一种可能的实施方式中,所述收发单元,还用于在所述第一网元将所述第一待存储数据传输至所述数据存储装置的情况下,接收第三信息,所述第三信息用于指示所述第一待存储数据对应的存储网元或所述第一待存储数据未存储于所述第一网元。In a possible implementation, the transceiver unit is further configured to receive third information when the first network element transmits the first data to be stored to the data storage device, and the The third information is used to indicate the storage network element corresponding to the first data to be stored or the first data to be stored is not stored in the first network element.
在一种可能的实施方式中,所述第三信息通过以下任一项方式接收:In a possible implementation, the third information is received in any of the following ways:
广播消息,或者,点对点接收。Broadcast messages, or receive them peer-to-peer.
在一种可能的实施方式中,所述收发单元,还用于在接收所述第一网元发送的所述第一待存储数据的情况下,发送第一请求,所述第一请求用于请求访问所述第一待存储数据。In a possible implementation, the transceiver unit is further configured to send a first request when receiving the first data to be stored sent by the first network element, and the first request is used to Request access to the first data to be stored.
关于第五方面以及任一项可能的实施方式所带来的技术效果,可参考对应于第二方面以及相应的实施方式的技术效果的介绍。Regarding the technical effects brought by the fifth aspect and any possible implementation, reference may be made to the introduction corresponding to the technical effects of the second aspect and the corresponding implementation.
在另一种可能的设计中,该装置包括:In another possible design, the device includes:
收发单元,用于发送第一消息,所述第一消息用于请求第二网元存储第二待存储数据,所述第二待存储数据为所述数据存储装置的数据;A transceiver unit configured to send a first message, the first message being used to request the second network element to store second data to be stored, where the second data to be stored is the data of the data storage device;
所述收发单元,还用于接收第二消息;The transceiver unit is also used to receive the second message;
处理单元,用于根据所述第二消息,确定对所述第二待存储数据的存储方式。A processing unit configured to determine a storage method for the second data to be stored according to the second message.
在一种可能的实施方式中,所述收发单元,还用于在所述第二消息指示所述第二网元允许存储所述第二待存储数据的情况下,向所述第二网元发送所述第二待存储数据;或者,In a possible implementation, the transceiver unit is further configured to send a message to the second network element when the second message indicates that the second network element is allowed to store the second data to be stored. Send the second data to be stored; or,
所述处理单元,具体用于在所述第二消息指示所述第二网元不允许存储所述第二待存储数据的情况下,将所述第二待存储数据存储至所述数据存储装置,或者,所述收发单元,还用于发送第三消息,所述第三消息用于请求第三网元存储所述第二待存储数据。The processing unit is specifically configured to store the second data to be stored in the data storage device when the second message indicates that the second network element is not allowed to store the second data to be stored. , or the transceiver unit is further configured to send a third message, where the third message is used to request a third network element to store the second data to be stored.
在一种可能的实施方式中,所述处理单元,还用于根据所述第二待存储数据的属性和所述数据存储装置的存储状态中的至少一项,确定发送所述第一消息。In a possible implementation, the processing unit is further configured to determine to send the first message based on at least one of the attributes of the second data to be stored and the storage status of the data storage device.
在一种可能的实施方式中,所述处理单元,还用于在所述数据存储装置的存储状态为第一状态的情况下,确定发送所述第一消息,其中,所述第一状态表征所述数据存储装置的可用存储资源的大小满足第一条件,或所述数据存储装置的存储资源利用率满足第二条件。In a possible implementation, the processing unit is further configured to determine to send the first message when the storage state of the data storage device is a first state, wherein the first state represents The size of the available storage resources of the data storage device satisfies the first condition, or the storage resource utilization rate of the data storage device satisfies the second condition.
在一种可能的实施方式中,所述处理单元,还用于在所述第二待存储数据为第一类型数 据的情况下,确定发送所述第一消息,其中,所述第一类型数据的属性满足第三条件。In a possible implementation, the processing unit is further configured to determine to send the first message when the second data to be stored is the first type of data, wherein the first type of data The properties satisfy the third condition.
在一种可能的实施方式中,所述处理单元,还用于在所述第二待存储数据为第一类型数据且所述数据存储装置的存储状态为第一状态的情况下,确定发送所述第一消息;In a possible implementation, the processing unit is further configured to determine whether to send the data when the second data to be stored is the first type of data and the storage state of the data storage device is the first state. state the first news;
其中,所述第一状态表征所述数据存储装置的可用存储资源的大小满足第一条件,或所述数据存储装置的存储资源利用率满足第二条件;所述第一类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the data storage device satisfies the first condition, or the storage resource utilization rate of the data storage device satisfies the second condition; the attributes of the first type of data satisfy the second condition. Three conditions.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第二待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
在一种可能的实施方式中,所述处理单元,还用于获取所述第二网元的信息,所述第二网元的信息用于唯一标识所述第二网元。In a possible implementation, the processing unit is further configured to obtain information about the second network element, and the information about the second network element is used to uniquely identify the second network element.
在一种可能的实施方式中,所述第二网元的信息包括以下至少一项:所述第二网元的标识、所述第二网元的地址。In a possible implementation, the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
在一种可能的实施方式中,所述第二网元的信息通过以下任一项方式获取:In a possible implementation, the information of the second network element is obtained by any of the following methods:
广播消息,或者,预先配置,或者,点对点发送。Broadcast messages, either pre-configured or sent peer-to-peer.
在一种可能的实施方式中,所述处理单元,还用于根据所述第二网元的存储状态,确定发送所述第一消息。In a possible implementation, the processing unit is further configured to determine to send the first message according to the storage status of the second network element.
在一种可能的实施方式中,所述处理单元,还用于在所述数据存储装置的存储状态为所述第一状态,且所述第二网元的存储状态为第三状态的情况下,确定发送所述第一消息,其中,所述第三状态表征所述第二网元的可用存储资源的大小满足第四条件,或所述第二网元的存储资源利用率满足第五条件。In a possible implementation, the processing unit is further configured to: when the storage state of the data storage device is the first state, and the storage state of the second network element is the third state , determine to send the first message, wherein the third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or the storage resource utilization rate of the second network element satisfies the fifth condition. .
在一种可能的实施方式中,所述收发单元,还用于发送第一信息,所述第一信息包括所述数据存储装置的存储状态的信息。In a possible implementation, the transceiver unit is further configured to send first information, where the first information includes information about the storage status of the data storage device.
在一种可能的实施方式中,所述第一信息用于指示所述数据存储装置的可用存储资源的大小,或所述数据存储装置的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the data storage device, or the size of storage resource utilization of the data storage device.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存储数据传输至所述数据存储装置。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the data storage device.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述数据存储装置的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the data storage device.
在一种可能的实施方式中,所述收发单元,还用于接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息,所述第二信息用于所述数据存储装置确定发送所述第一消息。In a possible implementation, the transceiver unit is further configured to receive second information, where the second information includes information on the storage status of at least one third network element, and the second information is used for the data The storage device determines to send the first message.
在一种可能的实施方式中,所述收发单元,还用于接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息;In a possible implementation, the transceiver unit is further configured to receive second information, where the second information includes information on the storage status of at least one third network element;
所述处理单元,还用于根据所述第二信息,确定发送所述第一消息。The processing unit is further configured to determine to send the first message based on the second information.
在一种可能的实施方式中,所述收发单元,还用于在所述数据存储装置向所述第二网元发送所述第二待存储数据的情况下,发送第四信息,所述第四信息用于指示所述第二待存储数据对应的存储网元或所述第二待存储数据未存储于所述数据存储装置。In a possible implementation, the transceiver unit is further configured to send fourth information when the data storage device sends the second data to be stored to the second network element. The fourth information is used to indicate that the storage network element corresponding to the second data to be stored or the second data to be stored is not stored in the data storage device.
在一种可能的实施方式中,在一种可能的实施方式中,所述第四信息通过以下任一项方式发送:In a possible implementation, the fourth information is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在一种可能的实施方式中,所述收发单元,还用于在所述数据存储装置向所述第二网元 发送所述第二待存储数据的情况下,接收第二请求,所述第二请求用于请求访问所述第二待存储数据。In a possible implementation, the transceiver unit is further configured to receive a second request when the data storage device sends the second data to be stored to the second network element. The second request is used to request access to the second data to be stored.
关于第五方面以及任一项可能的实施方式所带来的技术效果,可参考对应于第三方面以及相应的实施方式的技术效果的介绍。Regarding the technical effects brought by the fifth aspect and any possible implementation, reference may be made to the introduction corresponding to the technical effects of the third aspect and the corresponding implementation.
在另一种可能的设计中,该装置包括:In another possible design, the device includes:
收发单元,用于接收第一消息,所述第一消息用于请求所述数据存储装置存储第二待存储数据,所述第二待存储数据为第一网元的数据;A transceiver unit configured to receive a first message, the first message being used to request the data storage device to store second data to be stored, where the second data to be stored is the data of the first network element;
所述收发单元,还用于发送第二消息,所述第二消息用于所述第一网元确定对所述第二待存储数据的存储方式。The transceiver unit is also configured to send a second message, where the second message is used by the first network element to determine a storage method for the second data to be stored.
在一种可能的实施方式中,所述收发单元,还用于在所述第二消息指示所述数据存储装置允许存储所述第二待存储数据的情况下,接收所述第一网元发送的所述第二待存储数据;或者,In a possible implementation, the transceiver unit is further configured to receive a message sent by the first network element when the second message indicates that the data storage device allows storage of the second data to be stored. The second data to be stored; or,
在所述第二消息指示所述数据存储装置不允许存储所述第二待存储数据的情况下,所述第二消息用于所述第一网元确定将所述第二待存储数据存储至所述第一网元,或者,发送第三消息,所述第三消息用于请求第三网元存储所述第二待存储数据。In the case where the second message indicates that the data storage device is not allowed to store the second data to be stored, the second message is used by the first network element to determine to store the second data to be stored in The first network element may, alternatively, send a third message, where the third message is used to request the third network element to store the second data to be stored.
在一种可能的实施方式中,所述第一消息为根据所述第二待存储数据的属性和所述第一网元的存储状态中的至少一项确定由所述收发单元接收的消息。In a possible implementation, the first message is a message received by the transceiver unit determined based on at least one of the attributes of the second data to be stored and the storage status of the first network element.
在一种可能的实施方式中,所述第一消息为在所述第一网元的存储状态为第一状态的情况下确定由所述收发单元接收的消息,其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件。In a possible implementation, the first message is a message determined to be received by the transceiver unit when the storage state of the first network element is a first state, wherein the first state represents The size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition.
在一种可能的实施方式中,所述第一消息为在所述第二待存储数据为第一类型数据的情况下确定由所述收发单元接收的消息,其中,所述第一类型数据的属性满足第三条件。In a possible implementation, the first message is a message determined to be received by the transceiver unit when the second data to be stored is data of the first type, wherein the data of the first type is The attribute satisfies the third condition.
在一种可能的实施方式中,所述第一消息为在所述第二待存储数据为第一类型数据且所述第一网元的存储状态为第一状态的情况下确定由所述收发单元接收的消息;In a possible implementation, the first message is determined by the transceiver when the second data to be stored is the first type of data and the storage state of the first network element is the first state. Messages received by the unit;
其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件;所述第一类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第二待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
在一种可能的实施方式中,所述收发单元,还用于发送所述数据存储装置的信息,所述数据存储装置的信息用于唯一标识所述数据存储装置。In a possible implementation, the transceiver unit is also configured to send information about the data storage device, and the information about the data storage device is used to uniquely identify the data storage device.
在一种可能的实施方式中,所述数据存储装置的信息包括以下至少一项:所述数据存储装置的标识、所述数据存储装置的地址。In a possible implementation, the information about the data storage device includes at least one of the following: an identification of the data storage device and an address of the data storage device.
在一种可能的实施方式中,所述数据存储装置的信息通过以下任一项方式发送:In a possible implementation, the information of the data storage device is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在一种可能的实施方式中,所述第一消息为根据所述数据存储装置的存储状态确定由所述收发单元接收的消息。In a possible implementation, the first message is a message received by the transceiver unit based on the storage status of the data storage device.
在一种可能的实施方式中,所述第一消息为在所述第一网元的存储状态为所述第一状态,且所述数据存储装置的存储状态为第三状态的情况下确定由所述收发单元接收的消息,其中,所述第三状态表征所述数据存储装置的可用存储资源的大小满足第四条件,或所述数据存储装置的存储资源利用率满足第五条件。In a possible implementation, the first message is determined when the storage state of the first network element is the first state and the storage state of the data storage device is the third state. In the message received by the transceiver unit, the third state represents that the size of the available storage resources of the data storage device satisfies the fourth condition, or the storage resource utilization of the data storage device satisfies the fifth condition.
在一种可能的实施方式中,所述收发单元,还用于接收第一信息,所述第一信息包括所述第一网元的存储状态的信息。In a possible implementation, the transceiver unit is further configured to receive first information, where the first information includes information about the storage status of the first network element.
在一种可能的实施方式中,所述第一信息用于指示所述第一网元的可用存储资源的大小,或所述第一网元的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存储数据传输至所述第一网元。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述第一网元的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the first network element.
在一种可能的实施方式中,所述收发单元,还用于发送第二信息,所述第二信息包括所述数据存储装置的存储状态的信息,所述第二信息用于所述第一网元确定发送所述第一消息。In a possible implementation, the transceiver unit is also configured to send second information, where the second information includes information about the storage status of the data storage device, and the second information is used for the first The network element determines to send the first message.
在一种可能的实施方式中,所述收发单元,还用于在所述第一网元向所述数据存储装置发送所述第二待存储数据的情况下,接收第四信息,所述第四信息用于指示所述第二待存储数据对应的存储网元或所述第二待存储数据未存储于所述第一网元。In a possible implementation, the transceiver unit is further configured to receive fourth information when the first network element sends the second data to be stored to the data storage device. The fourth information is used to indicate the storage network element corresponding to the second data to be stored or the second data to be stored is not stored in the first network element.
在一种可能的实施方式中,所述第四信息通过以下任一项方式接收:In a possible implementation, the fourth information is received in any of the following ways:
广播消息,或者,点对点接收。Broadcast messages, or receive them peer-to-peer.
在一种可能的实施方式中,所述收发单元,还用于在所述第一网元向所述数据存储装置发送所述第二待存储数据的情况下,发送第二请求,所述第二请求用于请求访问所述第二待存储数据。In a possible implementation, the transceiver unit is further configured to send a second request when the first network element sends the second data to be stored to the data storage device. The second request is used to request access to the second data to be stored.
关于第五方面以及任一项可能的实施方式所带来的技术效果,可参考对应于第四方面以及相应的实施方式的技术效果的介绍。Regarding the technical effects brought by the fifth aspect and any possible implementation, reference may be made to the introduction corresponding to the technical effects of the fourth aspect and the corresponding implementation.
第六方面,本申请实施例提供了一种电子设备,该电子设备包括处理器。该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第一方面至第四方面任一方面以及任一项可能的实施方式的方法。可选地,该电子设备还包括存储器。可选地,该电子设备还包括通信接口,处理器与通信接口耦合。In a sixth aspect, embodiments of the present application provide an electronic device including a processor. The processor is coupled to a memory and may be used to execute instructions in the memory to implement any one of the above first to fourth aspects and the method of any possible implementation. Optionally, the electronic device further includes a memory. Optionally, the electronic device further includes a communication interface, and the processor is coupled to the communication interface.
第七方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序(也可以称为代码,或指令);当所述计算机程序在计算机上运行时,使得上述第一方面至第四方面任一方面以及任一项可能的实施方式的方法被实现。In the seventh aspect, embodiments of the present application provide a computer-readable storage medium, the computer-readable storage medium being used to store a computer program (which may also be called a code, or an instruction); when the computer program is run on a computer When, the method of any one of the above-mentioned first to fourth aspects and any possible implementation is realized.
第八方面,本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序(也可以称为代码,或指令);当所述计算机程序被运行时,使得计算机执行上述第一方面至第四方面任一方面以及任一项可能的实施方式的方法。In an eighth aspect, embodiments of the present application provide a computer program product. The computer program product includes: a computer program (which may also be called a code, or an instruction); when the computer program is run, it causes the computer to execute the above-mentioned first step. The method of any one of the first aspect to the fourth aspect and any possible implementation.
第九方面,本申请实施例提供一种芯片,该芯片包括处理器,所述处理器用于执行指令,当该处理器执行所述指令时,使得该芯片执行上述第一方面至第四方面任一方面以及任一项可能的实施方式的方法。可选的,该芯片还包括通信接口,所述通信接口用于接收信号或发送信号。In a ninth aspect, embodiments of the present application provide a chip. The chip includes a processor. The processor is configured to execute instructions. When the processor executes the instructions, the chip performs any of the above first to fourth aspects. Methods of one aspect and any of the possible embodiments. Optionally, the chip also includes a communication interface, which is used to receive signals or send signals.
第十方面,本申请实施例提供一种车端,所述车端包括至少一个如第五方面所述的数据存储装置,或第六方面所述的电子设备,或第九方面所述的芯片。In a tenth aspect, embodiments of the present application provide a vehicle terminal, which includes at least one data storage device as described in the fifth aspect, or an electronic device as described in the sixth aspect, or a chip as described in the ninth aspect. .
第十一方面,本申请实施例提供一种系统,所述系统包括车端以及至少一个如第五方面所述的数据存储装置,或第六方面所述的电子设备,或第九方面所述的芯片。In an eleventh aspect, embodiments of the present application provide a system, which includes a vehicle terminal and at least one data storage device as described in the fifth aspect, or an electronic device as described in the sixth aspect, or an electronic device as described in the ninth aspect. of chips.
第十二方面,本申请实施例提供一种系统,所述系统包括第一网元和第二网元;其中,所述第一网元用于执行如第一方面以及任一项可能的实施方式的方法,所述第二网元用于执行如第二方面以及任一项可能的实施方式的方法;或者,所述第一网元用于执行如第三方面 以及任一项可能的实施方式的方法,所述第二网元用于执行如第四方面以及任一项可能的实施方式的方法。In a twelfth aspect, embodiments of the present application provide a system, which includes a first network element and a second network element; wherein the first network element is used to perform the first aspect and any possible implementation. The second network element is configured to perform the method of the second aspect and any possible implementation manner; or the first network element is configured to perform the method of the third aspect and any possible implementation manner. The second network element is configured to perform the method of the fourth aspect and any possible implementation manner.
此外,在执行上述第一方面至第四方面任一方面以及任一项可能的实施方式所述的方法的过程中,上述方法中有关发送信息和/或接收信息等的过程,可以理解为由处理器输出信息的过程,和/或,处理器接收输入的信息的过程。在输出信息时,处理器可以将信息输出给收发器(或者通信接口、或发送模块),以便由收发器进行发射。信息在由处理器输出之后,还可能需要进行其他的处理,然后才到达收发器。类似的,处理器接收输入的信息时,收发器(或者通信接口、或发送模块)接收信息,并将其输入处理器。更进一步的,在收发器收到该信息之后,该信息可能需要进行其他的处理,然后才输入处理器。In addition, in the process of executing the method described in any one of the above first to fourth aspects and any possible implementation manner, the process of sending information and/or receiving information in the above method can be understood as The process by which a processor outputs information, and/or the process by which a processor receives input information. When outputting information, the processor may output the information to the transceiver (or communication interface, or transmitting module) for transmission by the transceiver. After the information is output by the processor, it may also need to undergo other processing before it reaches the transceiver. Similarly, when the processor receives input information, the transceiver (or communication interface, or sending module) receives the information and inputs it into the processor. Furthermore, after the transceiver receives the information, the information may need to undergo other processing before being input to the processor.
基于上述原理,举例来说,前述方法中提及的发送信息可以理解为处理器输出信息。又例如,接收信息可以理解为处理器接收输入的信息。Based on the above principles, for example, the sending information mentioned in the foregoing method can be understood as processor output information. For another example, receiving information can be understood as the processor receiving input information.
可选的,对于处理器所涉及的发射、发送和接收等操作,如果没有特殊说明,或者,如果未与其在相关描述中的实际作用或者内在逻辑相抵触,则均可以更加一般性的理解为处理器输出和接收、输入等操作。Optional, if there is no special explanation for the transmitting, sending and receiving operations involved in the processor, or if it does not conflict with its actual role or internal logic in the relevant description, it can be understood more generally as Processor output and receive, input and other operations.
可选的,在执行上述第一方面至第四方面任一方面以及任一项可能的实施方式所述的方法的过程中,上述处理器可以是专门用于执行这些方法的处理器,也可以是通过执行存储器中的计算机指令来执行这些方法的处理器,例如通用处理器。上述存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。Optionally, in the process of executing the method described in any one of the above first to fourth aspects and any possible implementation manner, the above processor may be a processor specially used to execute these methods, or may be A processor, such as a general-purpose processor, that performs these methods by executing computer instructions in memory. The above-mentioned memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be separately provided on different chips. This application The embodiment does not limit the type of memory and the arrangement of the memory and the processor.
在一种可能的实施方式中,上述至少一个存储器位于装置之外。In a possible implementation, the above-mentioned at least one memory is located outside the device.
在又一种可能的实施方式中,上述至少一个存储器位于装置之内。In another possible implementation, the above-mentioned at least one memory is located within the device.
在又一种可能的实施方式之中,上述至少一个存储器的部分存储器位于装置之内,另一部分存储器位于装置之外。In yet another possible implementation, part of the at least one memory is located within the device, and another part of the memory is located outside the device.
本申请中,处理器和存储器还可能集成于一个器件中,即处理器和存储器还可以被集成在一起。In this application, the processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together.
本申请实施例中,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。In the embodiment of the present application, multiple network elements are used to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the drawings required to be used in the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1为本申请实施例提供的一种车辆系统的架构示意图;Figure 1 is an architectural schematic diagram of a vehicle system provided by an embodiment of the present application;
图2为本申请实施例提供的一种存储系统的架构示意图;Figure 2 is a schematic architectural diagram of a storage system provided by an embodiment of the present application;
图3为本申请实施例提供的一种数据存储方法的流程示意图;Figure 3 is a schematic flow chart of a data storage method provided by an embodiment of the present application;
图4为本申请实施例提供的另一种数据存储方法的流程示意图;Figure 4 is a schematic flow chart of another data storage method provided by an embodiment of the present application;
图5为本申请实施例提供的又一种数据存储方法的流程示意图;Figure 5 is a schematic flow chart of another data storage method provided by an embodiment of the present application;
图6为本申请实施例提供的又一种数据存储方法的流程示意图;Figure 6 is a schematic flow chart of another data storage method provided by an embodiment of the present application;
图7为本申请实施例提供的一种数据存储装置的结构示意图;Figure 7 is a schematic structural diagram of a data storage device provided by an embodiment of the present application;
图8为本申请实施例提供的一种电子设备的结构示意图;Figure 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图9为本申请实施例提供的一种芯片的结构示意图。Figure 9 is a schematic structural diagram of a chip provided by an embodiment of the present application.
为了使本申请的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图对本申请实施例进行描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
本申请的说明书、权利要求书及附图中的术语“第一”和“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备等,没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元等,或可选地还包括对于这些过程、方法、产品或设备等固有的其它步骤或单元。The terms "first" and "second" in the description, claims and drawings of this application are used to distinguish different objects, rather than describing a specific sequence. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optional It also includes other steps or units inherent to these processes, methods, products or equipment.
在本文中提及的“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员可以显式地和隐式地理解的是,在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,各个实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。Reference herein to "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art can understand explicitly and implicitly that in the various embodiments of the present application, if there are no special instructions and logical conflicts, the terminology and/or descriptions between the various embodiments are consistent, and can By referencing each other, technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
应当理解,在本申请中,“至少一个(项)”是指一个或者多个,“多个”是指两个或两个以上,“至少两个(项)”是指两个或三个及三个以上,“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:只存在A,只存在B以及同时存在A和B三种情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,“a和b”,“a和c”,“b和c”,或“a和b和c”,其中a,b,c可以是单个,也可以是多个。It should be understood that in this application, "at least one (item)" refers to one or more, "plurality" refers to two or more, and "at least two (items)" refers to two or three and three or more, "and/or" is used to describe the relationship between associated objects, indicating that there can be three relationships. For example, "A and/or B" can mean: only A exists, only B exists, and A exists at the same time. and B, where A and B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. “At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c" ”, where a, b, c can be single or multiple.
本申请提供了一种数据存储方法,涉及智能驾驶技术领域,为了更清楚地描述本申请的方案,下面先介绍一些与智能驾驶相关的知识。This application provides a data storage method, which relates to the technical field of intelligent driving. In order to describe the solution of this application more clearly, some knowledge related to intelligent driving is first introduced below.
目前的车辆控制是按照功能划分为动力域、底盘域、座舱域、自动驾驶域和车身域五大区域,每个区域对应推出相应的域控制器,最后再通过控制器局域网络(controller area network,CAN)或局域互联网络(local interconnect network,LIN)等通信方式连接至主干线甚至托管至云端,从而实现整车信息数据的交互。The current vehicle control is divided into five major areas according to functions: power domain, chassis domain, cockpit domain, autonomous driving domain and body domain. Each area launches a corresponding domain controller, and finally through the controller area network, Communication methods such as CAN) or local interconnect network (LIN) are connected to the main line or even hosted in the cloud, thereby realizing the interaction of vehicle information data.
智能驾驶域控制器:智能驾驶汽车中,包含四个核心子系统:传感器、计算平台、执行器与应用算法,智能驾驶域控制器定位为计算平台,是实现智能驾驶全景感知、地图和传感器融合定位、决策、规划、控制等功能的汽车“大脑”,适用于乘用车(如拥堵跟车、高速巡航、自动代客泊车)、商用车(如港口货运、干线物流)与作业车(如矿卡、清洁车、无人配送)等多种应用场景。Intelligent driving domain controller: An intelligent driving car contains four core subsystems: sensors, computing platforms, actuators, and application algorithms. The intelligent driving domain controller is positioned as a computing platform and is responsible for realizing intelligent driving panoramic perception, map and sensor fusion. The automobile "brain" with functions such as positioning, decision-making, planning, and control is suitable for passenger cars (such as congestion following, high-speed cruising, automatic valet parking), commercial vehicles (such as port freight, trunk logistics) and work vehicles (such as Such as mining trucks, cleaning vehicles, unmanned delivery) and other application scenarios.
智能座舱域控制器:智能座舱域控制器需要具备卓越的处理性能,以支持座舱域的应用,如语音识别、手势识别等;提供优秀的显示性能支持,同时支持虚拟化技术,支持一芯多屏显示,满足各种尺寸的仪表屏及中控屏幕的显示需求,并将不同安全级别的应用进行隔离,同时提供对外对内的通信能力,提供稳定、高速的通信网络以轻松应对各种高带宽应用的网 络要求。Smart cockpit domain controller: The smart cockpit domain controller needs to have excellent processing performance to support cockpit domain applications, such as voice recognition, gesture recognition, etc.; provide excellent display performance support, while supporting virtualization technology and supporting multiple cores The screen display meets the display needs of various sizes of instrument screens and central control screens, and isolates applications with different security levels. It also provides external and internal communication capabilities and provides a stable and high-speed communication network to easily cope with various high-speed Network requirements for bandwidth applications.
整车域控制器:随着整车发展,车身控制器越来越多,为了降低控制器成本,降低整车重量,集成化需要把所有的功能器件,从车头的部分、车中间的部分和车尾部的部分,如后刹车灯、后位置灯、尾门锁、甚至双撑杆,统一连接到一个总的控制器里面。整车域控制器从分散化的功能组合,逐渐过渡到集成所有车身电子的基础驱动、钥匙功能、车灯、车门、车窗等的大控制器。Vehicle domain controller: With the development of the vehicle, there are more and more body controllers. In order to reduce the cost of the controller and reduce the weight of the vehicle, integration requires all functional devices, from the front part of the vehicle to the middle part of the vehicle and Parts at the rear of the car, such as the rear brake lights, rear position lights, tailgate locks, and even the double struts, are all connected to a master controller. The vehicle domain controller has gradually transitioned from a decentralized function combination to a large controller integrating basic drives, key functions, lights, doors, windows, etc. of all body electronics.
动力域控制器:是一种智能化的动力总成管理单元,借助CAN等通信方式实现变速器管理,管理电池监控交流发电机调节。其优势在于为多种动力系统单元(如内燃机、电动机/发电机、电池、变速箱等)计算和分配扭矩,通过预判驾驶策略实现二氧化碳减排。Power domain controller: It is an intelligent powertrain management unit that uses CAN and other communication methods to manage the transmission, manage the battery, monitor the alternator adjustment. Its advantage lies in calculating and allocating torque to a variety of power system units (such as internal combustion engines, electric motors/generators, batteries, gearboxes, etc.), and achieving carbon dioxide emission reductions through predictive driving strategies.
底盘域控制器:底盘域与车辆行驶相关,由传动系统、行驶系统、转向系统和制动系统共同构成。随着汽车智能化发展,智能汽车的感知识别、决策规划、控制执行三个核心系统中,控制执行端主要包括驱动控制、转向控制、制动控制等,需要对传统汽车的底盘进行线控改造以适用于自动驾驶。Chassis domain controller: The chassis domain is related to vehicle driving and consists of transmission system, driving system, steering system and braking system. With the development of automobile intelligence, among the three core systems of perception and identification, decision-making and planning, and control execution of smart cars, the control execution end mainly includes drive control, steering control, braking control, etc., which requires wire-controlled transformation of the chassis of traditional cars. suitable for autonomous driving.
车载网关:作为车辆网络系统的核心控制装置,车载网关负责协调不同结构和特征的CAN总线网络及其他数据网络之间的协议转换、数据交换、故障诊断等工作。车载网关在采集不同体系结构或协议的网络之间进行互通时,用于提供协议转换、数据交换等网络兼容功能,车载网关可以理解为是网络之间的连接器、协议的转换器、数据的翻译器。车载网关既可以用于广域互联,也可以用于局域互联,充当着转换重任的计算机系统或者设备,在使用不同协议、数据或者语言,甚至两种体系结构完全不同的两个系统之间进行转换。Vehicle-mounted gateway: As the core control device of the vehicle network system, the vehicle-mounted gateway is responsible for coordinating protocol conversion, data exchange, fault diagnosis, etc. between CAN bus networks and other data networks with different structures and characteristics. The vehicle-mounted gateway is used to provide network compatibility functions such as protocol conversion and data exchange when collecting networks with different architectures or protocols. The vehicle-mounted gateway can be understood as a connector between networks, a protocol converter, and a data converter. Translator. Vehicle-mounted gateways can be used for both wide-area interconnection and local-area interconnection, serving as a computer system or device responsible for conversion between two systems that use different protocols, data or languages, or even two completely different architectures. Make the conversion.
下面结合本申请实施例中的附图对本申请实施例进行描述。The embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
请参阅图1,图1为本申请实施例提供的一种车辆系统的架构示意图。Please refer to FIG. 1 , which is an architectural schematic diagram of a vehicle system provided by an embodiment of the present application.
如图1所示,该车辆系统包括多个ECU,比如车载网关(车载网关1,车载网关2,车载网关3,车载网关4,等等)、智能驾驶域控制器、智能座舱域控制器、整车域控制器等其他ECU。其中,上述各个ECU通过CAN或LIN或以太口等通信方式互相连接,从而实现整车信息数据的交互。As shown in Figure 1, the vehicle system includes multiple ECUs, such as vehicle gateways (vehicle gateway 1, vehicle gateway 2, vehicle gateway 3, vehicle gateway 4, etc.), intelligent driving domain controller, intelligent cockpit domain controller, Vehicle domain controller and other ECUs. Among them, the above-mentioned ECUs are connected to each other through communication methods such as CAN or LIN or Ethernet port, thereby realizing the interaction of vehicle information data.
应当理解的是,上述图1所示的车辆系统的模块/部件/架构是基于逻辑功能划分的,在实际应用中,一个模块/部件的功能也可以由多个模块/部件来实现,或者多个模块/部件的功能由一个模块/部件实现,本申请实施例所示的车辆系统仅作为一种可能的架构实施方式,不应以此对本申请构成限定。It should be understood that the modules/components/architecture of the vehicle system shown in Figure 1 above are divided based on logical functions. In practical applications, the function of one module/component can also be implemented by multiple modules/components, or multiple The functions of each module/component are implemented by one module/component. The vehicle system shown in the embodiment of this application is only a possible architecture implementation, and this application should not be limited by this.
一般的,大多数ECU都有自己的存储单元,比如非易失性存储器、嵌入式多媒体卡等,以便能对关键信息进行存储。例如,车载网关会将硬件出错的关键信息记录在存储单元中,以备后续查询分析。Generally, most ECUs have their own storage units, such as non-volatile memory, embedded multimedia cards, etc., in order to store key information. For example, the vehicle-mounted gateway will record key information about hardware errors in the storage unit for subsequent query and analysis.
存储单元都会有使用寿命限制,比如擦除次数超出限制、异常掉电等情况都会产生坏块,从而影响存储单元的正常使用。目前,针对存储单元的坏块率较高的ECU,通常采用将ECU整体更换的方式,来保证存储功能的正常使用。但是,上述方法可能导致数据丢失,数据存储的稳定性较差,且存储成本较高。Storage units will have service life limits. For example, if the number of erase times exceeds the limit, abnormal power failure, etc., bad blocks will be generated, thus affecting the normal use of the storage unit. At present, for ECUs with high bad block rates in storage units, the ECU is usually replaced as a whole to ensure the normal use of the storage function. However, the above method may lead to data loss, poor data storage stability, and high storage costs.
针对上述存储方法中存在的数据存储稳定性较差,存储成本较高的技术问题,本申请提供了一种新的数据存储架构,并基于该架构相应提出了一种新的数据存储方法,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。In view of the technical problems of poor data storage stability and high storage cost in the above storage method, this application provides a new data storage architecture, and accordingly proposes a new data storage method based on this architecture, using Multiple network elements collaborate to complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
应理解,本申请所提及的网元(net element,NE),例如下文中的第一网元、第二网元 等,可以简单理解为网络中的元素,是网络管理中可以监视和管理的最小单位。网元可以是由一个或多个机盘或机框组成,能够独立完成一定的传输功能的集合。It should be understood that the network elements (NE) mentioned in this application, such as the first network element, the second network element, etc. below, can be simply understood as elements in the network, which can be monitored and managed in network management. the smallest unit. A network element can be a collection of one or more disks or chassis that can independently complete certain transmission functions.
下面将以上述图1中的车载网关4和智能座舱域控制器为例,对本申请提供的数据存储架构进行说明。The data storage architecture provided by this application will be described below by taking the vehicle gateway 4 and the smart cockpit domain controller in the above-mentioned Figure 1 as an example.
请参阅图2,图2为本申请实施例提供的一种存储系统的架构示意图。Please refer to Figure 2, which is a schematic architectural diagram of a storage system provided by an embodiment of the present application.
如图2所示,本存储系统应用于智能驾驶技术领域,本存储系统包括车载网关4和智能座舱域控制器,上述车载网关4和智能座舱域控制器通过CAN或LIN或以太口等通信方式互相连接,从而实现车载网关4和智能座舱域控制器之间信息数据的交互。As shown in Figure 2, this storage system is used in the field of intelligent driving technology. This storage system includes a vehicle-mounted gateway 4 and an intelligent cockpit domain controller. The above-mentioned vehicle-mounted gateway 4 and the intelligent cockpit domain controller communicate through CAN, LIN or Ethernet port. Connect to each other to realize the exchange of information data between the vehicle gateway 4 and the smart cockpit domain controller.
其中,智能座舱域控制器主要包括存储读写接口模块、本地存储状态管理模块、存储策略决策模块、全局存储状态管理模块。Among them, the smart cockpit domain controller mainly includes a storage read-write interface module, a local storage status management module, a storage policy decision-making module, and a global storage status management module.
存储读写接口模块用于接收远端网元(如车载网关4)的读写数据请求,请求写入远端网元的待存储数据,或请求读取智能座舱域控制器本地的存储数据;或者,存储读写接口模块还用于发送智能座舱域控制器本地的读写数据请求,请求读取远端网元(如车载网关4)本地的存储数据,或请求写入智能座舱域控制器的待存储数据。The storage read and write interface module is used to receive read and write data requests from remote network elements (such as vehicle gateway 4), request to write data to be stored in the remote network element, or request to read local stored data of the smart cockpit domain controller; Alternatively, the storage read and write interface module is also used to send local read and write data requests to the smart cockpit domain controller, request to read local storage data of the remote network element (such as the vehicle gateway 4), or request to write to the smart cockpit domain controller. of data to be stored.
本地存储状态管理模块用于获取智能座舱域控制器内的存储单元的坏块信息、擦除次数、告警信息等与存储相关的信息,并根据这些信息生成智能座舱域控制器的存储状态。其中,生成的智能座舱域控制器的存储状态可以包括但不限于:智能座舱域控制器内的存储单元的可用存储资源的大小,或存储资源利用率的大小等等。智能座舱域控制器的存储状态表征智能座舱域控制器内的存储单元的存储性能,智能座舱域控制器可以根据存储状态决定是否往智能座舱域控制器的存储单元内存储数据。智能座舱域控制器的存储状态还可以通过存储读写接口模块发送给远端网元(如车载网关4),用于远端网元决定是否将远端网元的待存储数据存储至智能座舱域控制器的存储单元内。The local storage status management module is used to obtain bad block information, erasure times, alarm information and other storage-related information of the storage unit in the smart cockpit domain controller, and generate the storage status of the smart cockpit domain controller based on this information. The generated storage status of the smart cockpit domain controller may include but is not limited to: the size of available storage resources of the storage unit in the smart cockpit domain controller, or the size of storage resource utilization, and so on. The storage status of the smart cockpit domain controller represents the storage performance of the storage unit in the smart cockpit domain controller. The smart cockpit domain controller can decide whether to store data in the storage unit of the smart cockpit domain controller based on the storage status. The storage status of the smart cockpit domain controller can also be sent to the remote network element (such as the vehicle gateway 4) through the storage read-write interface module, which is used by the remote network element to decide whether to store the data to be stored in the remote network element to the smart cockpit. Within the storage unit of the domain controller.
全局存储状态管理模块用于通过CAN或LIN或以太口等通信方式,从相互连接的远端网元(如车载网关4)中获取远端网元的存储状态,生成全局存储状态。其中,生成的全局存储状态可以包括但不限于:全局内的各个远端网元的存储单元的可用存储资源的大小,或存储资源利用率的大小等等。本申请实施例中的全局,包括但不限于可以通过CAN或LIN或以太口等通信方式与智能座舱域控制器相互连接的远端网元。全局存储状态表征全局内的各个远端网元内的存储单元的存储性能,智能座舱域控制器可以根据全局存储状态决定是否往全局内的各个远端网元的存储单元内存储数据。智能座舱域控制器生成的全局存储状态还可以通过存储读写接口模块发送给远端网元(如车载网关4),与远端网元分享全局内的网元存储状态的信息,用于远端网元决定是否将远端网元的待存储数据存储至智能座舱域控制器或其他远端网元的存储单元内。The global storage status management module is used to obtain the storage status of remote network elements from interconnected remote network elements (such as vehicle gateway 4) through communication methods such as CAN, LIN or Ethernet, and generate global storage status. The generated global storage status may include but is not limited to: the size of available storage resources of the storage units of each remote network element globally, or the size of storage resource utilization, and so on. The overall situation in the embodiment of this application includes but is not limited to remote network elements that can be connected to the smart cockpit domain controller through communication methods such as CAN, LIN, or Ethernet ports. The global storage status represents the storage performance of the storage units in each remote network element globally. The smart cockpit domain controller can decide whether to store data in the storage units of each remote network element globally based on the global storage status. The global storage status generated by the smart cockpit domain controller can also be sent to the remote network element (such as the vehicle gateway 4) through the storage read-write interface module to share the global network element storage status information with the remote network element for remote use. The end network element decides whether to store the data to be stored in the remote network element in the storage unit of the smart cockpit domain controller or other remote network elements.
存储策略决策模块用于根据本地存储状态和/或全局存储状态,决定是否往智能座舱域控制器的存储单元内存储数据,或者决定是否将智能座舱域控制器的待存储数据存储至全局内的各个远端网元(如车载网关4)的存储单元内。The storage policy decision module is used to decide whether to store data in the storage unit of the smart cockpit domain controller based on the local storage status and/or the global storage status, or decide whether to store the data to be stored in the smart cockpit domain controller to the global storage unit. In the storage unit of each remote network element (such as vehicle-mounted gateway 4).
可以理解的是,车载网关4同上述智能座舱域控制器类似,主要包括存储读写接口模块、本地存储状态管理模块、存储策略决策模块、全局存储状态管理模块。其中,各个模块的功能与上述智能座舱域控制器内的模块类似,此处不再赘述。It can be understood that the vehicle gateway 4 is similar to the above-mentioned smart cockpit domain controller, and mainly includes a storage read and write interface module, a local storage status management module, a storage policy decision-making module, and a global storage status management module. Among them, the functions of each module are similar to the modules in the above-mentioned smart cockpit domain controller, and will not be described again here.
应当理解的是,上述图2所示的存储系统的内部模块是基于逻辑功能划分的,在实际应用中,一个模块的功能也可以由多个模块来实现,或者多个模块的功能由一个模块实现。本申请实施例所示的存储系统仅作为一种可能的架构实施方式,不应以此对本申请构成限定。It should be understood that the internal modules of the storage system shown in Figure 2 are divided based on logical functions. In actual applications, the function of one module can also be implemented by multiple modules, or the functions of multiple modules can be implemented by one module. accomplish. The storage system shown in the embodiments of this application is only a possible architecture implementation, and should not be used to limit this application.
相应的,本申请基于上述存储系统的架构提出了新的数据存储方法,下面将结合图3至图6对本申请提供的数据存储方法进行详细说明。Accordingly, this application proposes a new data storage method based on the architecture of the above-mentioned storage system. The data storage method provided by this application will be described in detail below with reference to Figures 3 to 6.
请参阅图3,图3为本申请实施例提供的一种数据存储方法的流程示意图。该数据存储方法应用于智能驾驶技术领域,该数据存储方法包括但不限于如下步骤:Please refer to Figure 3, which is a schematic flow chart of a data storage method provided by an embodiment of the present application. This data storage method is applied in the field of intelligent driving technology. The data storage method includes but is not limited to the following steps:
S301:获取第一待存储数据。S301: Obtain the first data to be stored.
第一网元获取第一待存储数据。The first network element obtains the first data to be stored.
其中,本申请实施例中的第一网元为搭载了可用于执行计算机执行指令的处理器的网元/设备,可以是终端设备(如车载终端)等,具体可以是上述图1所示的车辆系统内的各个网元/设备,或是上述图2所示的存储系统内的各个网元/设备,比如车载网关、智能驾驶域控制器、智能座舱域控制器、整车域控制器、动力域控制器、底盘域控制器等其他ECU,或是上述集成了上述图1所示的车辆系统的网元/设备,或是集成了上述图2所示的存储系统的网元/设备,用于执行本申请实施例中的数据存储方法,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。Among them, the first network element in the embodiment of the present application is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc., specifically it can be as shown in Figure 1 above. Each network element/device in the vehicle system, or each network element/device in the storage system shown in Figure 2 above, such as vehicle gateway, intelligent driving domain controller, intelligent cockpit domain controller, vehicle domain controller, Other ECUs such as power domain controllers and chassis domain controllers, or the above-mentioned network elements/devices that integrate the vehicle system shown in Figure 1, or the above-mentioned network elements/devices that integrate the storage system shown in Figure 2, For executing the data storage method in the embodiment of the present application, multiple network elements are used to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
本申请实施例中获取第一待存储数据,可以是第一网元本地产生的待存储的数据,也可以是其他网元发送给第一网元的待存储的数据,本申请对此不构成限定。In the embodiment of this application, the first data to be stored may be the data to be stored locally generated by the first network element, or the data to be stored sent by other network elements to the first network element. This application does not constitute a limited.
S302:根据第一待存储数据的属性和第一网元的存储状态中的至少一项,确定第一待存储数据的存储方式。S302: Determine a storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
第一网元根据第一待存储数据的属性和第一网元的存储状态中的至少一项,确定第一待存储数据的存储方式。The first network element determines a storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
具体可以是,将第一待存储数据存储至第一网元中,或者,将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Specifically, the first data to be stored may be stored in the first network element, or the first data to be stored may be transmitted to the second network element, and the first data to be stored may be stored in the second network element.
其中,第一待存储数据的属性包括但不限于数据传输时延、数据存储可靠性、数据重要等级,等等,可以根据第一待存储数据的类型确定得到。第一网元的存储状态包括但不限于网元中可用存储资源的大小、存储资源利用率的大小,等等,可以根据第一网元的存储单元中的坏块信息、擦除次数、告警信息等与存储相关的信息确定得到。Among them, the attributes of the first data to be stored include but are not limited to data transmission delay, data storage reliability, data importance level, etc., and can be determined according to the type of the first data to be stored. The storage status of the first network element includes but is not limited to the size of the available storage resources in the network element, the size of the storage resource utilization, etc., and can be based on the bad block information, erasure times, and alarms in the storage unit of the first network element. Information and other storage-related information are determined.
本申请实施例中的第二网元为不同于上述第一网元的网元。第二网元为搭载了可用于执行计算机执行指令的处理器的网元/设备,可以是终端设备(如车载终端)等,具体可以是上述图1所示的车辆系统内的各个网元/设备,或是上述图2所示的存储系统内的各个网元/设备,比如车载网关、智能驾驶域控制器、智能座舱域控制器、整车域控制器、动力域控制器、底盘域控制器等其他ECU,或是上述集成了上述图1所示的车辆系统的网元/设备,或是集成了上述图2所示的存储系统的网元/设备,用于执行本申请实施例中的数据存储方法,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。The second network element in the embodiment of this application is a network element different from the above-mentioned first network element. The second network element is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be each network element/device in the vehicle system shown in Figure 1 above. equipment, or each network element/device in the storage system shown in Figure 2 above, such as vehicle gateway, intelligent driving domain controller, intelligent cockpit domain controller, vehicle domain controller, power domain controller, chassis domain control Other ECUs such as controllers, or the above-mentioned network elements/devices integrated with the vehicle system shown in Figure 1, or the above-mentioned network elements/devices integrated with the storage system shown in Figure 2, are used to execute the embodiments of the present application. The data storage method uses multiple network elements to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
具体的,下面将分别对几种确定第一待存储数据的存储方式的可能的实施例进行说明。Specifically, several possible embodiments for determining the storage method of the first data to be stored will be described below.
实施例一:Example 1:
第一网元可以根据第一网元的存储状态,确定第一待存储数据的存储方式。The first network element may determine the storage method of the first data to be stored according to the storage status of the first network element.
在第一网元的存储状态为第一状态的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一网元的存储状态为第二状态的情况下,第一网元将第一待存储数据存储至第一网元中。When the storage state of the first network element is the first state, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element; in the first network element When the storage state of the network element is the second state, the first network element stores the first data to be stored in the first network element.
其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件;第二状态表征第一网元的可用存储资源的大小不满足第一条件, 或第一网元的存储资源利用率不满足第二条件。The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the second state represents the size of the available storage resources of the first network element. The first condition is not met, or the storage resource utilization of the first network element does not meet the second condition.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值,上述第二条件可以包括存储资源利用率小于第二阈值。Optionally, the above-mentioned first condition may include that the size of available storage resources is less than a first threshold, and the above-mentioned second condition may include that the storage resource utilization is less than a second threshold.
在该可选方式中,有以下示例性的存储方式:In this optional method, there are the following exemplary storage methods:
示例性的,在第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一网元的可用存储资源的大小大于或等于第一阈值的情况下,第一网元将第一待存储数据存储至第一网元中。Exemplarily, when the size of the available storage resources of the first network element is less than the first threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. In the network element; when the size of the available storage resource of the first network element is greater than or equal to the first threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一网元的存储资源利用率的大小大于或等于第二阈值的情况下,第一网元将第一待存储数据存储至第一网元中。Exemplarily, when the storage resource utilization of the first network element is less than the second threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. Among the two network elements; when the storage resource utilization of the first network element is greater than or equal to the second threshold, the first network element stores the first data to be stored in the first network element.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值和第二阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold and second threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
通过本申请实施例,根据第一网元的存储状态确定第一待存储数据的存储方式,使得在第一网元的存储状态为第一状态的情况下,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。Through the embodiments of the present application, the storage mode of the first data to be stored is determined according to the storage state of the first network element, so that when the storage state of the first network element is the first state, the first data to be stored is transmitted to the third network element. The second network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and The overall storage availability of the first network element and the second network element is improved, and the storage cost is reduced.
实施例二:Example 2:
第一网元可以根据第一待存储数据的属性,确定第一待存储数据的存储方式。The first network element may determine the storage method of the first data to be stored based on the attributes of the first data to be stored.
在第一待存储数据为第一类型数据的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据为第二类型数据的情况下,第一网元将第一待存储数据存储至第一网元中。When the first data to be stored is the first type of data, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element; in the first network element to be stored When the stored data is the second type of data, the first network element stores the first data to be stored in the first network element.
其中,第一类型数据的属性和第二类型数据的属性满足第三条件,数据的属性包括但不限于数据的传输时延、存储可靠性、重要等级等。Among them, the attributes of the first type of data and the attributes of the second type of data satisfy the third condition. The attributes of the data include but are not limited to data transmission delay, storage reliability, importance level, etc.
可选的,上述第三条件可以包括:第一类型数据的传输时延要求低于第二类型数据对应的传输时延要求,或者,第一类型数据的存储可靠性要求低于第二类型数据对应的存储可靠性要求,或者,第一类型数据的重要等级低于第二类型数据对应的重要等级。Optionally, the above third condition may include: the transmission delay requirement of the first type of data is lower than the transmission delay requirement of the second type of data, or the storage reliability requirement of the first type of data is lower than that of the second type of data. Corresponding storage reliability requirements, or the importance level of the first type of data is lower than the corresponding importance level of the second type of data.
可选的,可以以第三阈值作为界限将第一类型数据和第二类型数据区分开。Optionally, a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
在该可选方式中,上述第一类型数据的属性和第二类型数据的属性满足的第三条件可以包括:第一类型数据的传输时延要求小于第三阈值,第二类型数据对应的传输时延要求大于或等于第三阈值;或者,第一类型数据的存储可靠性要求小于第三阈值,第二类型数据对应的存储可靠性要求大于或等于第三阈值;或者,第一类型数据的重要等级小于第三阈值,第二类型数据对应的重要等级大于或等于第三阈值。In this optional method, the third condition that the attributes of the first type of data and the attributes of the second type of data satisfy may include: the transmission delay requirement of the first type of data is less than a third threshold, and the transmission delay requirement of the second type of data corresponds to The delay requirement is greater than or equal to the third threshold; or, the storage reliability requirement of the first type of data is less than the third threshold, and the storage reliability requirement of the second type of data is greater than or equal to the third threshold; or, the storage reliability requirement of the first type of data is greater than or equal to the third threshold. The importance level is less than the third threshold, and the importance level corresponding to the second type of data is greater than or equal to the third threshold.
在该可选方式中,有以下示例性的存储方式:In this optional method, there are the following exemplary storage methods:
示例性的,在第一待存储数据的传输时延要求小于第三阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据的传输时延要求大于或等于第三阈值的情况下,第一网元将第一待存储数据存储至第一网元中。Exemplarily, when the transmission delay requirement of the first data to be stored is less than the third threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. In the network element; when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一待存储数据的存储可靠性要求小于第三阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据的存储可靠性要求大于或等于第三阈值的情况下,第一网元将第一待存储数据存储至第一网元中。Exemplarily, when the storage reliability requirement of the first data to be stored is less than the third threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. In the network element; when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一待存储数据的重要等级小于第三阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据的重要等级大于或等于第三阈值的情况下,第一网元将第一待存储数据存储至第一网元中。Exemplarily, when the importance level of the first data to be stored is less than the third threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. in; when the importance level of the first data to be stored is greater than or equal to the third threshold, the first network element stores the first data to be stored in the first network element.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第三阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above third threshold is not a fixed value and can be adjusted accordingly according to different application scenarios, and this is not limited in the embodiments of the present application.
通过本申请实施例,根据第一待存储数据的属性确定第一待存储数据的存储方式,使得在第一待存储数据为第一类型数据的情况下,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。Through the embodiment of the present application, the storage method of the first data to be stored is determined according to the attributes of the first data to be stored, so that when the first data to be stored is the first type of data, the first data to be stored is transmitted to the second data. The network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and improve This improves the overall storage availability of the first network element and the second network element and reduces storage costs.
实施例三:Embodiment three:
第一网元可以根据第一待存储数据的属性和第一网元的存储状态,确定第一待存储数据的存储方式。The first network element may determine the storage method of the first data to be stored based on the attributes of the first data to be stored and the storage status of the first network element.
在第一待存储数据为第一类型数据且第一网元的存储状态为第一状态的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据为第二类型数据且第一网元的存储状态为第二状态的情况下,第一网元将第一待存储数据存储至第一网元中。When the first data to be stored is the first type of data and the storage state of the first network element is the first state, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is Store it in the second network element; when the first data to be stored is the second type of data and the storage state of the first network element is the second state, the first network element stores the first data to be stored in the first network element. Yuanzhong.
其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件;第二状态表征第一网元的可用存储资源的大小不满足第一条件,或第一网元的存储资源利用率不满足第二条件;第一类型数据的属性和第二类型数据的属性满足第三条件,数据的属性包括但不限于数据的传输时延、存储可靠性、重要等级等。The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the second state represents the size of the available storage resources of the first network element. The first condition is not met, or the storage resource utilization of the first network element does not meet the second condition; the attributes of the first type of data and the attributes of the second type of data meet the third condition, and the attributes of the data include but are not limited to data transmission. Latency, storage reliability, importance level, etc.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值;上述第二条件可以包括存储资源利用率小于第二阈值;上述第三条件可以包括:第一类型数据的传输时延要求低于第二类型数据对应的传输时延要求,或者,第一类型数据的存储可靠性要求低于第二类型数据对应的存储可靠性要求,或者,第一类型数据的重要等级低于第二类型数据对应的重要等级。Optionally, the above-mentioned first condition may include that the size of the available storage resources is less than the first threshold; the above-mentioned second condition may include that the storage resource utilization is less than the second threshold; the above-mentioned third condition may include: the transmission delay of the first type of data The requirements are lower than the transmission delay requirements corresponding to the second type of data, or the storage reliability requirements of the first type of data are lower than the storage reliability requirements of the second type of data, or the importance level of the first type of data is lower than that of the second type of data. The importance levels corresponding to the two types of data.
可选的,可以以第三阈值作为界限将第一类型数据和第二类型数据区分开。Optionally, a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
在该可选方式中,上述第一类型数据的属性和第二类型数据的属性满足的第三条件可以包括:第一类型数据的传输时延要求小于第三阈值,第二类型数据对应的传输时延要求大于或等于第三阈值;或者,第一类型数据的存储可靠性要求小于第三阈值,第二类型数据对应的存储可靠性要求大于或等于第三阈值;或者,第一类型数据的重要等级小于第三阈值,第二类型数据对应的重要等级大于或等于第三阈值。In this optional method, the third condition that the attributes of the first type of data and the attributes of the second type of data satisfy may include: the transmission delay requirement of the first type of data is less than a third threshold, and the transmission delay requirement of the second type of data corresponds to The delay requirement is greater than or equal to the third threshold; or, the storage reliability requirement of the first type of data is less than the third threshold, and the storage reliability requirement of the second type of data is greater than or equal to the third threshold; or, the storage reliability requirement of the first type of data is greater than or equal to the third threshold. The importance level is less than the third threshold, and the importance level corresponding to the second type of data is greater than or equal to the third threshold.
在上述可选方式中,有以下示例性的存储方式:Among the above optional methods, there are the following exemplary storage methods:
示例性的,在第一待存储数据的传输时延要求小于第三阈值,且第一网元的可用存储资 源的大小小于第一阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据的传输时延要求大于或等于第三阈值,且第一网元的可用存储资源的大小大于或等于第一阈值的情况下,第一网元将第一待存储数据存储至第一网元中。Exemplarily, when the transmission delay requirement of the first data to be stored is less than the third threshold and the size of the available storage resources of the first network element is less than the first threshold, the first network element transmits the first data to be stored. To the second network element, the first data to be stored is stored in the second network element; when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than Or equal to the first threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一待存储数据的传输时延要求小于第三阈值,且第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据的传输时延要求大于或等于第三阈值,且第一网元的存储资源利用率的大小大于或等于第二阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the transmission delay requirement of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element; when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is If the size is greater than or equal to the second threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一待存储数据的存储可靠性要求小于第三阈值,且第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据的存储可靠性要求大于或等于第三阈值,且第一网元的可用存储资源的大小大于或等于第一阈值的情况下,第一网元将第一待存储数据存储至第一网元中。Exemplarily, when the storage reliability requirement of the first data to be stored is less than the third threshold and the size of the available storage resources of the first network element is less than the first threshold, the first network element transmits the first data to be stored. To the second network element, the first data to be stored is stored in the second network element; when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than Or equal to the first threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一待存储数据的存储可靠性要求小于第三阈值,且第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据的存储可靠性要求大于或等于第三阈值,且第一网元的存储资源利用率的大小大于或等于第二阈值的情况下,第一网元将第一待存储数据存储至第一网元中。Exemplarily, when the storage reliability requirement of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element; when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is If the size is greater than or equal to the second threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一待存储数据的重要等级小于第三阈值,且第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据的重要等级大于或等于第三阈值,且第一网元的可用存储资源的大小大于或等于第一阈值的情况下,第一网元将第一待存储数据存储至第一网元中。Exemplarily, when the importance level of the first data to be stored is less than the third threshold and the size of the available storage resources of the first network element is less than the first threshold, the first network element transmits the first data to be stored to the third network element. Two network elements, the first data to be stored is stored in the second network element; the importance level of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than or equal to the first In the case of a threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一待存储数据的重要等级小于第三阈值,且第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;在第一待存储数据的重要等级大于或等于第三阈值,且第一网元的存储资源利用率的大小大于或等于第二阈值的情况下,第一网元将第一待存储数据存储至第一网元中。Exemplarily, when the importance level of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element transmits the first data to be stored to The second network element stores the first data to be stored in the second network element; when the importance level of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is greater than or equal to In the case of the second threshold, the first network element stores the first data to be stored in the first network element.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值、第二阈值以及第三阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold, second threshold and third threshold are not fixed values and can be adjusted accordingly according to different application scenarios, which is not limited in the embodiments of the present application.
通过本申请实施例,根据第一待存储数据的属性和第一网元的存储状态确定第一待存储数据的存储方式,使得在第一待存储数据为第一类型数据且第一网元的存储状态为第一状态的情况下,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。Through the embodiment of the present application, the storage method of the first data to be stored is determined according to the attributes of the first data to be stored and the storage status of the first network element, so that when the first data to be stored is the first type of data and the first network element is When the storage state is the first state, the first data to be stored is transmitted to the second network element, the first data to be stored is selected to be stored in the second network element, and the second network element is used to cooperate with the first network element to complete the first step. The storage of the first data to be stored can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
在一种可能的实施例中,还提供了第一条件、第二条件和第一待存储数据的属性的可能的关联关系。In a possible embodiment, possible correlations between the first condition, the second condition and the attributes of the first data to be stored are also provided.
具体为,上述第一条件涉及的第一阈值,上述第二条件涉及的第二阈值,与第一待存储 数据的属性相关,可以根据不同场景进行调整。Specifically, the first threshold related to the above-mentioned first condition and the second threshold related to the above-mentioned second condition are related to the attributes of the first data to be stored and can be adjusted according to different scenarios.
示例性的,当第一待存储数据为第一类型数据时,第一条件中的第一阈值可以是2GB,第二条件中的第二阈值可以是50%;当第一待存储数据为第二类型数据时,第一条件中的第一阈值可以是1GB,第二条件中的第二阈值可以是25%。For example, when the first data to be stored is the first type of data, the first threshold in the first condition may be 2GB, and the second threshold in the second condition may be 50%; when the first data to be stored is the When using two types of data, the first threshold in the first condition may be 1GB, and the second threshold in the second condition may be 25%.
可以看出,在该场景下,如果将第一待存储数据传输给第二网元,第一待存储数据的传输时延要求/存储可靠性要求/重要等级越高,对第一网元中的可用存储资源或存储资源利用率的大小要求的值就越小。类似的,如果将第一待存储数据存储至第一网元中,第一待存储数据的传输时延要求/存储可靠性要求/重要等级越高,对第一网元中的可用存储资源或存储资源利用率的大小要求的值就越大。It can be seen that in this scenario, if the first data to be stored is transmitted to the second network element, the higher the transmission delay requirement/storage reliability requirement/importance level of the first data to be stored, the greater the impact on the first network element. The smaller the value required for the available storage resources or storage resource utilization. Similarly, if the first data to be stored is stored in the first network element, the higher the transmission delay requirement/storage reliability requirement/importance level of the first data to be stored, the greater the impact on the available storage resources in the first network element or The larger the size requirement for storage resource utilization, the greater the value.
通过本申请实施例,可以利用第一条件所涉及的第一阈值、第二条件所涉及的第二阈值,与第一待存储数据的属性之间的关系,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。Through the embodiments of the present application, the relationship between the first threshold involved in the first condition, the second threshold involved in the second condition, and the attributes of the first data to be stored can be used to transmit the first data to be stored to the third The second network element chooses to store the first data to be stored in the second network element, and uses the second network element to cooperate with the first network element to complete the storage of the first data to be stored, which can improve the stability of the first data to be stored, and The overall storage availability of the first network element and the second network element is improved, and the storage cost is reduced.
实施例四:Embodiment 4:
基于上述实施例一至实施例三中的任一实施例,在第一网元将第一待存储数据传输至第二网元的情况下,本申请实施例中的第二网元的存储状态为第三状态。其中,第三状态表征第二网元的可用存储资源的大小满足第四条件,或第二网元的存储资源利用率满足第五条件。Based on any one of the above-mentioned Embodiments 1 to 3, when the first network element transmits the first data to be stored to the second network element, the storage status of the second network element in the embodiment of the present application is: The third state. The third state represents that the size of the available storage resources of the second network element satisfies the fourth condition, or the storage resource utilization of the second network element satisfies the fifth condition.
可以理解为,第一网元在根据第一待存储数据的属性和第一网元的存储状态中的至少一项的基础上,还根据第二网元的存储状态,确定第一待存储数据的存储方式。It can be understood that the first network element determines the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the first network element, and also based on the storage status of the second network element. storage method.
具体的,第一网元可以根据第一网元的存储状态和第二网元的存储状态,确定第一待存储数据的存储方式。Specifically, the first network element may determine the storage method of the first data to be stored based on the storage status of the first network element and the storage status of the second network element.
在第一网元的存储状态为第一状态,且第二网元的存储状态为第三状态的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中;否则,将该第一待存储数据存储至第一网元中,或者,将该第一待存储数据传输至第三网元或其他网元,该第一待存储数据存储至第三网元或其他网元中。When the storage state of the first network element is the first state and the storage state of the second network element is the third state, the first network element transmits the first data to be stored to the second network element. The stored data is stored in the second network element; otherwise, the first data to be stored is stored in the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first The data to be stored is stored in the third network element or other network elements.
其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件;第三状态表征第二网元的可用存储资源的大小满足第四条件,或第二网元的存储资源利用率满足第五条件。The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the third state represents the size of the available storage resources of the second network element. The fourth condition is met, or the storage resource utilization of the second network element meets the fifth condition.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值;上述第二条件可以包括存储资源利用率小于第二阈值;上述第四条件可以包括可用存储资源的大小大于第四阈值;上述第五条件可以包括存储资源利用率大于第五阈值。Optionally, the above-mentioned first condition may include that the size of available storage resources is less than a first threshold; the above-mentioned second condition may include that the storage resource utilization is less than a second threshold; the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold ; The above fifth condition may include that the storage resource utilization is greater than the fifth threshold.
在上述可选方式中,有以下示例性的存储方式:Among the above optional methods, there are the following exemplary storage methods:
示例性的,在第一网元的可用存储资源的大小小于第一阈值,且第二网元的可用存储资源的大小大于第四阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。否则,将该第一待存储数据存储至第一网元中,或者,将该第一待存储数据传输至第三网元或其他网元,该第一待存储数据存储至第三网元或其他网元中。Exemplarily, when the size of the available storage resources of the first network element is less than the first threshold, and the size of the available storage resources of the second network element is greater than the fourth threshold, the first network element transmits the first data to be stored. To the second network element, the first data to be stored is stored in the second network element. Otherwise, the first data to be stored is stored in the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or in other network elements.
示例性的,在第一网元的可用存储资源的大小小于第一阈值,且第二网元的存储资源利用率的大小大于第五阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。否则,将该第一待存储数据存储至第一网元中,或者,将该第 一待存储数据传输至第三网元或其他网元,该第一待存储数据存储至第三网元或其他网元中。For example, when the size of the available storage resources of the first network element is less than the first threshold, and the size of the storage resource utilization of the second network element is greater than the fifth threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element. Otherwise, the first data to be stored is stored in the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or in other network elements.
示例性的,在第一网元的存储资源利用率的大小小于第二阈值,且第二网元的可用存储资源的大小大于第四阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。否则,将该第一待存储数据存储至第一网元中,或者,将该第一待存储数据传输至第三网元或其他网元,该第一待存储数据存储至第三网元或其他网元中。For example, when the storage resource utilization of the first network element is less than the second threshold, and the size of the available storage resources of the second network element is greater than the fourth threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element. Otherwise, the first data to be stored is stored in the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or in other network elements.
示例性的,在第一网元的存储资源利用率的大小小于第二阈值,且第二网元的存储资源利用率的大小大于第五阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。否则,将该第一待存储数据存储至第一网元中,或者,将该第一待存储数据传输至第三网元或其他网元,该第一待存储数据存储至第三网元或其他网元中。Exemplarily, when the storage resource utilization of the first network element is less than the second threshold, and the storage resource utilization of the second network element is greater than the fifth threshold, the first network element sets the first to-be-stored The data is transmitted to the second network element, and the first data to be stored is stored in the second network element. Otherwise, the first data to be stored is stored in the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or in other network elements.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值、第二阈值、第四阈值以及第五阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold, second threshold, fourth threshold and fifth threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
通过本申请实施例,根据第一网元的存储状态和第二网元的存储状态确定第一待存储数据的存储方式,使得在第一网元的存储状态为第一状态且第二网元的存储状态为第三状态的情况下,将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中,利用第二网元协同第一网元完成第一待存储数据的存储,可以提高第一待存储数据的稳定性,且提高了第一网元和第二网元整体的存储可用性,降低了存储成本。Through the embodiment of the present application, the storage mode of the first data to be stored is determined according to the storage state of the first network element and the storage state of the second network element, so that the storage state of the first network element is the first state and the second network element When the storage state is the third state, the first data to be stored is transmitted to the second network element, the first data to be stored is selected to be stored in the second network element, and the second network element is used to cooperate with the first network element to complete the The storage of the first data to be stored can improve the stability of the first data to be stored, improve the overall storage availability of the first network element and the second network element, and reduce storage costs.
应理解,上述实施例一至实施例四,仅作为几种可能的实施例,用于对本申请实施例步骤S302中确定第一待存储数据的存储方式进行的具体说明,不应以此对本申请实施例构成限定。It should be understood that the above-mentioned Embodiment 1 to Embodiment 4 are only used as several possible embodiments to specifically illustrate the storage method of determining the first data to be stored in step S302 of the embodiment of the present application, and should not be used to implement the present application. Examples constitute limitations.
此外,在一种可能的实施例中,还提供了一种获取第二网元的信息的可能的具体实施方式。In addition, in a possible embodiment, a possible specific implementation manner for obtaining information about the second network element is also provided.
具体为,第一网元获取第二网元的信息,该第二网元的信息用于唯一标识第二网元。Specifically, the first network element obtains the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
示例性的,该第二网元的信息可以包括以下至少一项:第二网元的标识,或者第二网元的地址,或者其他用于认证第二网元身份的信息;本申请对此不作限制。Exemplarily, the information of the second network element may include at least one of the following: the identifier of the second network element, or the address of the second network element, or other information used to authenticate the identity of the second network element; this application No restrictions.
可以理解的是,在上述实施例一至实施例四中需要将第一待存储数据传输至第二网元的情况下,第一网元可以根据本申请实施例中获取到的第二网元的信息,将第一待存储数据传输至该信息唯一标识的第二网元。示例性的,在上述实施例一中,第一网元的存储状态为第一状态的情况下,第一网元可以根据本申请实施例中获取到的第二网元的信息,将第一待存储数据传输至该信息唯一标识的第二网元。类似的,实施例二至实施例四中需要将第一待存储数据传输至第二网元的情况可以参阅上文说明,此处不再赘述。It can be understood that, in the above-mentioned Embodiment 1 to Embodiment 4, when it is necessary to transmit the first data to be stored to the second network element, the first network element can obtain the data of the second network element according to the embodiment of the present application. information, transmitting the first data to be stored to the second network element uniquely identified by the information. For example, in the first embodiment above, when the storage state of the first network element is the first state, the first network element can store the first network element according to the information of the second network element obtained in the embodiment of this application. The data to be stored is transmitted to the second network element uniquely identified by the information. Similarly, for the situation where the first to-be-stored data needs to be transmitted to the second network element in Embodiment 2 to Embodiment 4, please refer to the above description and will not be described again here.
通过本申请实施例,第一网元可以根据第二网元的信息将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中。Through the embodiments of this application, the first network element can transmit the first data to be stored to the second network element according to the information of the second network element, and choose to store the first data to be stored in the second network element.
可选的,第一网元可以通过预先配置的信息获取第二网元的信息。Optionally, the first network element can obtain the information of the second network element through preconfigured information.
可选的,第一网元也可以接收广播消息获取第二网元的信息。Optionally, the first network element can also receive the broadcast message to obtain the information of the second network element.
可选的,第二网元点对点发送第二网元的信息给第一网元,相应的,第一网元接收第二网元的信息。Optionally, the second network element sends the information of the second network element to the first network element point-to-point, and accordingly, the first network element receives the information of the second network element.
可选的,第二网元点对点发送第二网元的信息给集中式控制器,再由集中式控制器发送 第二网元的信息给第一网元,相应的,第一网元接收第二网元的信息。Optionally, the second network element sends the second network element's information to the centralized controller point-to-point, and then the centralized controller sends the second network element's information to the first network element. Correspondingly, the first network element receives the second network element's information. Information about the second network element.
通过本申请实施例获取第二网元的信息,包括了第二网元的标识,或者第二网元的地址,或者其他用于认证第二网元身份的信息,第一网元可以据此将第一待存储数据传输给第二网元,选择将第一待存储数据存储至第二网元中。The information of the second network element is obtained through the embodiment of the present application, including the identifier of the second network element, or the address of the second network element, or other information used to authenticate the identity of the second network element, and the first network element can use this information to authenticate the identity of the second network element. The first data to be stored is transmitted to the second network element, and the first data to be stored is selected to be stored in the second network element.
在一种可能的实施例中,还提供了一种发送第一信息的可能的具体实施方式。In a possible embodiment, a possible specific implementation manner of sending the first information is also provided.
具体为,第一网元发送第一信息,该第一信息包括但不限于第一网元的存储状态的信息。Specifically, the first network element sends first information, and the first information includes but is not limited to information about the storage status of the first network element.
可选的,第一网元可以发送广播消息,该广播消息包括用于指示第一信息的消息,第一信息包括第一网元的存储状态的信息。相应的,第二网元等其他网元可以通过接收广播消息得知第一网元的存储状态。Optionally, the first network element may send a broadcast message, where the broadcast message includes a message indicating the first information, and the first information includes information about the storage status of the first network element. Correspondingly, other network elements such as the second network element can learn the storage status of the first network element by receiving the broadcast message.
可选的,第一网元可以点对点发送第一信息给第二网元等其他网元,相应的,第二网元等其他网元可以通过接收第一网元点对点发送的第一信息得知第一网元的存储状态。Optionally, the first network element can send the first information point-to-point to the second network element and other other network elements. Correspondingly, the second network element and other other network elements can learn the first information by receiving the first information point-to-point sent by the first network element. The storage status of the first network element.
可选的,第一网元可以点对点发送第一信息给集中式控制器,再由集中式控制器发送第一信息给第二网元等其他网元,相应的,第二网元等其他网元可以通过接收集中式控制器点对点发送的第一信息得知第一网元的存储状态。Optionally, the first network element can send the first information to the centralized controller point-to-point, and then the centralized controller sends the first information to the second network element and other other network elements. Correspondingly, the second network element and other other network elements can The network element can learn the storage status of the first network element by receiving the first information sent point-to-point by the centralized controller.
通过本申请实施例发送第一信息,可以使第二网元等其他网元获取第一信息,得知第一网元的存储状态的信息。By sending the first information according to the embodiment of the present application, other network elements such as the second network element can obtain the first information and learn the storage status information of the first network element.
可选的,第一信息用于指示第一网元的可用存储资源的大小,或第一网元的存储资源利用率的大小。Optionally, the first information is used to indicate the size of the available storage resources of the first network element, or the size of the storage resource utilization of the first network element.
可选的,第一信息用于指示第三网元等其他网元选择是否将待存储数据传输至第一网元中。Optionally, the first information is used to instruct other network elements such as the third network element to choose whether to transmit the data to be stored to the first network element.
可选的,第一信息用于指示第三网元等其他网元选择是否存储来自第一网元的待存储数据。Optionally, the first information is used to instruct other network elements such as the third network element to choose whether to store the data to be stored from the first network element.
通过本申请实施例,第三网元等其他网元可以根据第一信息所指示的内容,选择是否将第三网元等其他网元的待存储数据存储至第一网元中,第三网元等其他网元也可以根据第一信息所指示的内容,选择是否存储来自第一网元的待存储数据。Through the embodiments of the present application, the third network element and other other network elements can choose whether to store the data to be stored of the third network element and other other network elements in the first network element according to the content indicated by the first information. Other network elements such as the network element can also choose whether to store the data to be stored from the first network element according to the content indicated by the first information.
在一种可能的实施例中,还提供了一种接收第二信息的可能的具体实施方式。In a possible embodiment, a possible specific implementation manner of receiving the second information is also provided.
具体为,第一网元接收第二信息,该第二信息包括但不限于至少一个第三网元的存储状态的信息,第一网元可以根据第二信息确定第一待存储数据的存储方式和/或第一待存储数据的存储网元,比如将第一待存储数据存储至该至少一个第三网元中。Specifically, the first network element receives the second information, the second information includes but is not limited to information about the storage status of at least one third network element, and the first network element can determine the storage method of the first data to be stored based on the second information. and/or a storage network element for the first data to be stored, such as storing the first data to be stored in the at least one third network element.
可以理解的是,本申请实施例中的第三网元和上文所提及的第二网元可以是同一个网元,也可以是不同的网元,本申请实施例对此不作限制。It can be understood that the third network element in the embodiment of the present application and the second network element mentioned above may be the same network element or may be different network elements, and the embodiment of the present application does not limit this.
可选的,第一网元接收广播消息,该广播消息包括用于指示第二信息的消息,第二信息包括至少一个第三网元的存储状态的信息,第一网元通过接收广播消息得知至少一个第三网元的存储状态。Optionally, the first network element receives a broadcast message. The broadcast message includes a message indicating second information. The second information includes information on the storage status of at least one third network element. The first network element obtains the information by receiving the broadcast message. The storage status of at least one third network element is known.
可选的,第二网元点对点发送第二信息给第一网元,相应的,第一网元通过接收第二网元点对点发送的第二信息得知至少一个第三网元的存储状态。Optionally, the second network element sends the second information point-to-point to the first network element. Correspondingly, the first network element learns the storage status of at least one third network element by receiving the second information sent point-to-point by the second network element.
可选的,第二网元点对点发送第二信息给集中式控制器,再由集中式控制器发送第二信息给第一网元,相应的,第一网元通过接收集中式控制器点对点发送的第二信息得知至少一个第三网元的存储状态。Optionally, the second network element sends the second information point-to-point to the centralized controller, and then the centralized controller sends the second information to the first network element. Correspondingly, the first network element sends point-to-point information by receiving the centralized controller. The second information obtains the storage status of at least one third network element.
通过本申请实施例接收第二信息,第一网元可以根据第二信息得知至少一个第三网元的存储状态的信息,并根据至少一个第三网元的存储状态,确定将第一待存储数据存储至该至 少一个第三网元中,利用至少一个第三网元协同第一网元完成第一待存储数据的存储。By receiving the second information according to the embodiment of the present application, the first network element can learn the storage status information of at least one third network element based on the second information, and determine the storage status of the first pending network element based on the storage status of at least one third network element. The stored data is stored in the at least one third network element, and the at least one third network element is used to cooperate with the first network element to complete the storage of the first data to be stored.
在一种可能的实施例中,还提供了一种发送第三信息的可能的具体实施方式。In a possible embodiment, a possible specific implementation manner of sending the third information is also provided.
具体为,在第一网元将第一待存储数据传输至第二网元的情况下,第一网元发送第三信息,该第三信息用于指示第一待存储数据对应的存储网元或第一待存储数据未存储于第一网元。Specifically, when the first network element transmits the first data to be stored to the second network element, the first network element sends third information, and the third information is used to indicate the storage network element corresponding to the first data to be stored. Or the first data to be stored is not stored in the first network element.
通过本申请实施例,第一网元可以通过发送第三信息告知其他网元第一待存储数据对应的存储网元,便于其他网元对第一待存储数据发起访问请求。Through the embodiments of this application, the first network element can inform other network elements of the storage network element corresponding to the first data to be stored by sending the third information, so as to facilitate other network elements to initiate access requests for the first data to be stored.
可选的,第一网元可以发送广播消息,该广播消息包括用于指示第三信息的消息,第三信息包括用于指示第一待存储数据对应的存储网元的信息,或第一待存储数据未存储于第一网元的信息。相应的,第三网元等其他网元可以通过接收广播消息得知第一待存储数据对应的存储网元,以对第一待存储数据发起访问请求。Optionally, the first network element may send a broadcast message. The broadcast message includes a message indicating third information. The third information includes information indicating a storage network element corresponding to the first data to be stored, or the first network element to be stored. The stored data is not stored in the first network element. Correspondingly, other network elements such as the third network element can learn the storage network element corresponding to the first data to be stored by receiving the broadcast message, so as to initiate an access request for the first data to be stored.
可选的,第一网元可以点对点发送第三信息给第三网元或其他网元。相应的,第三网元等其他网元可以通过接收第一网元点对点发送的第三信息得知第一待存储数据对应的存储网元,以对第一待存储数据发起访问请求。Optionally, the first network element may send the third information point-to-point to the third network element or other network elements. Correspondingly, other network elements such as the third network element can learn the storage network element corresponding to the first data to be stored by receiving the third information sent point-to-point by the first network element, so as to initiate an access request for the first data to be stored.
可选的,第一网元可以点对点发送第三信息给集中式控制器,再由集中式控制器发送第一信息给第三网元或其他网元。相应的,第三网元等其他网元可以通过接收集中式控制器点对点发送的第三信息得知第一待存储数据对应的存储网元,以对第一待存储数据发起访问请求。Optionally, the first network element can send the third information to the centralized controller point-to-point, and then the centralized controller sends the first information to the third network element or other network elements. Correspondingly, other network elements such as the third network element can learn the storage network element corresponding to the first data to be stored by receiving the third information sent point-to-point by the centralized controller, so as to initiate an access request for the first data to be stored.
通过本申请实施例发送第三信息,可以使第三网元等其他网元获取第三信息,得知第一待存储数据对应的存储网元,以对第一待存储数据发起访问请求。By sending the third information according to the embodiment of the present application, the third network element and other network elements can obtain the third information, learn the storage network element corresponding to the first data to be stored, and initiate an access request to the first data to be stored.
在一种可能的实施例中,还提供了一种接收第一请求的可能的具体实施方式。In a possible embodiment, a possible specific implementation manner of receiving the first request is also provided.
具体为,在第一网元将第一待存储数据传输至第二网元的情况下,第一网元接收第一请求,请求访问第一待存储数据。Specifically, when the first network element transmits the first data to be stored to the second network element, the first network element receives the first request to access the first data to be stored.
可选的,可以是第三网元向第二网元请求访问第一待存储数据,第二网元再向第一网元发送该第一请求。相应的,第一网元接收来自第二网元的第一请求。Optionally, the third network element may request the second network element to access the first data to be stored, and the second network element then sends the first request to the first network element. Correspondingly, the first network element receives the first request from the second network element.
可选的,也可以是第三网元直接向第一网元发送第一请求,请求访问第一待存储数据。相应的,第一网元接收来自第三网元的第一请求。Optionally, the third network element may also directly send the first request to the first network element, requesting access to the first data to be stored. Correspondingly, the first network element receives the first request from the third network element.
此外,在第一网元响应第一请求,允许访问第一待存储数据的情况下,可以是第二网元直接将第一待存储数据发送给第三网元等其他访问第一待存储数据的网元,也可以是第二网元将第一待存储数据经由第一网元转发给第三网元等其他访问第一待存储数据的网元,本申请实施例对此不作限制。In addition, when the first network element responds to the first request and allows access to the first data to be stored, the second network element may directly send the first data to be stored to the third network element or other access to the first data to be stored. The network element may also be a second network element that forwards the first data to be stored to a third network element or other network elements that access the first data to be stored via the first network element. The embodiment of the present application does not limit this.
通过本申请实施例,第一网元通过接收访问第一待存储数据的请求,控制其他网元对第一待存储数据的访问权限,即使将第一待存储数据存储至第二网元中,也可以保障第一网元对第一待存储数据的存储安全性的控制。Through the embodiments of this application, the first network element controls the access rights of other network elements to the first data to be stored by receiving a request to access the first data to be stored. Even if the first data to be stored is stored in the second network element, It can also ensure that the first network element controls the storage security of the first data to be stored.
可以理解的是,上述图3所示的数据存储方法,仅作为应用于智能驾驶技术领域的可能的方法实施例,用于对确定第一待存储数据的存储方式进行的具体说明。It can be understood that the above-mentioned data storage method shown in FIG. 3 is only a possible method embodiment applied in the field of intelligent driving technology, and is used for a specific explanation of determining the storage method of the first data to be stored.
可选的,上述图3所示的数据存储方法,还可以应用于智能驾驶技术领域之外的其他技术领域,适用于利用多个网元进行存储资源共享,协同完成数据存储的技术方案。Optionally, the data storage method shown in Figure 3 above can also be applied to other technical fields outside the field of intelligent driving technology, and is suitable for technical solutions that use multiple network elements to share storage resources and collaboratively complete data storage.
目前针对存储单元的坏块率较高的网元,通常采用将网元整体更换的方式,来保证存储功能的正常使用,更换过程中可能导致数据丢失,数据存储的稳定性较差,且存储成本较高。Currently, for network elements with a high bad block rate in storage units, the network element is usually replaced as a whole to ensure the normal use of the storage function. The replacement process may cause data loss, poor data storage stability, and storage higher cost.
与目前的数据存储方法相比,本申请实施例根据待存储数据的属性和网元的存储状态中 的至少一项,确定待存储数据的存储方式,具体可以选择将待存储数据存储至第一网元中,也可以选择将待存储数据存储至其他网元中,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。Compared with the current data storage method, the embodiment of the present application determines the storage method of the data to be stored based on at least one of the attributes of the data to be stored and the storage status of the network element. Specifically, you can choose to store the data to be stored in the first In the network element, you can also choose to store the data to be stored in other network elements. Using multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of the network element, and reduce storage costs. .
请参阅图4,图4为本申请实施例提供的另一种数据存储方法的流程示意图,或者,也可以理解为是上述图3中的数据存储方法流程图的变形或补充,具体可以理解为是上述图3中的第一网元所执行的步骤S302关于“确定第一待存储数据的存储方式”内容的补充说明。本申请实施例中的数据存储方法应用于智能驾驶技术领域,该数据存储方法包括但不限于如下步骤:Please refer to Figure 4. Figure 4 is a schematic flowchart of another data storage method provided by an embodiment of the present application. Alternatively, it can also be understood as a modification or supplement of the flowchart of the data storage method in Figure 3. Specifically, it can be understood as This is a supplementary explanation on the content of "determining the storage method of the first data to be stored" in step S302 executed by the first network element in Figure 3. The data storage method in the embodiment of this application is applied in the field of intelligent driving technology. The data storage method includes but is not limited to the following steps:
S401:获取第一待存储数据。S401: Obtain the first data to be stored.
第一网元获取第一待存储数据。The first network element obtains the first data to be stored.
其中,本申请实施例中的第一网元为搭载了可用于执行计算机执行指令的处理器的网元/设备,可以是终端设备(如车载终端)等,具体可以是上述图1所示的车辆系统内的各个网元/设备,或是上述图2所示的存储系统内的各个网元/设备,比如车载网关、智能驾驶域控制器、智能座舱域控制器、整车域控制器、动力域控制器、底盘域控制器等其他ECU,或是上述集成了上述图1所示的车辆系统的网元/设备,或是集成了上述图2所示的存储系统的网元/设备,用于执行本申请实施例中的数据存储方法,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。Among them, the first network element in the embodiment of the present application is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc., specifically it can be as shown in Figure 1 above. Each network element/device in the vehicle system, or each network element/device in the storage system shown in Figure 2 above, such as vehicle gateway, intelligent driving domain controller, intelligent cockpit domain controller, vehicle domain controller, Other ECUs such as power domain controllers and chassis domain controllers, or the above-mentioned network elements/devices that integrate the vehicle system shown in Figure 1, or the above-mentioned network elements/devices that integrate the storage system shown in Figure 2, For executing the data storage method in the embodiment of the present application, multiple network elements are used to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
本申请实施例中获取第一待存储数据,可以是第一网元本地产生的待存储的数据,也可以是其他网元发送给第一网元的待存储的数据,本申请对此不构成限定。In the embodiment of this application, the first data to be stored may be the data to be stored locally generated by the first network element, or the data to be stored sent by other network elements to the first network element. This application does not constitute a limited.
S402:根据第一待存储数据的属性和第一网元的存储状态中的至少一项,确定第一待存储数据的存储方式。S402: Determine a storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
第一网元根据第一待存储数据的属性和第一网元的存储状态中的至少一项,确定第一待存储数据的存储方式。The first network element determines a storage method of the first data to be stored based on at least one of the attributes of the first data to be stored and the storage status of the first network element.
其中,确定第一待存储数据的存储方式,具体可以是,确定如步骤S403所描述的存储方式:将第一待存储数据传输至第二网元。或者,确定如步骤S404所描述的存储方式:将第一待存储数据存储至第一网元中。Determining the storage method of the first data to be stored may specifically include determining the storage method as described in step S403: transmitting the first data to be stored to the second network element. Or, determine the storage method as described in step S404: store the first data to be stored in the first network element.
可以理解的是,步骤S403和S404是两种可选的步骤,具体该执行哪一种存储方式,可以根据第一待存储数据的属性、第一网元的存储状态、与第一网元具有通信连接的其他网元的存储状态等情况决定。It can be understood that steps S403 and S404 are two optional steps. Which storage method should be performed may be based on the attributes of the first data to be stored, the storage status of the first network element, and the characteristics of the first network element. Determined by the storage status of other network elements connected to the communication.
第一待存储数据的属性包括但不限于数据传输时延、数据存储可靠性、数据重要等级,等等,可以根据第一待存储数据的类型确定得到。第一网元的存储状态包括但不限于网元中可用存储资源的大小、存储资源利用率的大小,等等,可以根据第一网元的存储单元中的坏块信息、擦除次数、告警信息等与存储相关的信息确定得到。The attributes of the first data to be stored include but are not limited to data transmission delay, data storage reliability, data importance level, etc., and can be determined according to the type of the first data to be stored. The storage status of the first network element includes but is not limited to the size of the available storage resources in the network element, the size of the storage resource utilization, etc., and can be based on the bad block information, erasure times, and alarms in the storage unit of the first network element. Information and other storage-related information are determined.
本申请实施例中的第二网元为不同于上述第一网元的网元。第二网元为搭载了可用于执行计算机执行指令的处理器的网元/设备,可以是终端设备(如车载终端)等,具体可以是上述图1所示的车辆系统内的各个网元/设备,或是上述图2所示的存储系统内的各个网元/设备,比如车载网关、智能驾驶域控制器、智能座舱域控制器、整车域控制器、动力域控制器、底盘域控制器等其他ECU,或是上述集成了上述图1所示的车辆系统的网元/设备,或是集成了上述图2所示的存储系统的网元/设备,用于执行本申请实施例中的数据存储方法,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性, 降低了存储成本。The second network element in the embodiment of this application is a network element different from the above-mentioned first network element. The second network element is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be each network element/device in the vehicle system shown in Figure 1 above. equipment, or each network element/device in the storage system shown in Figure 2 above, such as vehicle gateway, intelligent driving domain controller, intelligent cockpit domain controller, vehicle domain controller, power domain controller, chassis domain control Other ECUs such as controllers, or the above-mentioned network elements/devices integrated with the vehicle system shown in Figure 1, or the above-mentioned network elements/devices integrated with the storage system shown in Figure 2, are used to execute the embodiments of the present application. The data storage method uses multiple network elements to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
具体的,下面将分别对两种不同的确定第一待存储数据的存储方式进行说明。Specifically, two different storage methods for determining the first data to be stored will be described below.
S403:将第一待存储数据传输至第二网元。S403: Transmit the first data to be stored to the second network element.
情况一:Situation one:
第一网元根据第一网元的存储状态,确定将第一待存储数据传输至第二网元。The first network element determines to transmit the first data to be stored to the second network element according to the storage status of the first network element.
在第一网元的存储状态为第一状态的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。When the storage state of the first network element is the first state, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element.
其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件。The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值,上述第二条件可以包括存储资源利用率小于第二阈值。Optionally, the above-mentioned first condition may include that the size of available storage resources is less than a first threshold, and the above-mentioned second condition may include that the storage resource utilization is less than a second threshold.
在该可选方式中,有以下示例性的存储方式:In this optional method, there are the following exemplary storage methods:
示例性的,在第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the size of the available storage resources of the first network element is less than the first threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. in the network element.
示例性的,在第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the storage resource utilization of the first network element is less than the second threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. in the second network element.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值和第二阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold and second threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
情况二:Situation two:
第一网元根据第一待存储数据的属性,确定将第一待存储数据传输至第二网元。The first network element determines to transmit the first data to be stored to the second network element according to the attributes of the first data to be stored.
在第一待存储数据为第一类型数据的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。When the first data to be stored is data of the first type, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element.
其中,第一类型数据的属性满足第三条件,数据的属性包括但不限于数据的传输时延、存储可靠性、重要等级等。Among them, the attributes of the first type of data satisfy the third condition, and the attributes of the data include but are not limited to data transmission delay, storage reliability, importance level, etc.
可选的,上述第三条件可以包括:第一类型数据的传输时延要求低于第二类型数据对应的传输时延要求,或者,第一类型数据的存储可靠性要求低于第二类型数据对应的存储可靠性要求,或者,第一类型数据的重要等级低于第二类型数据对应的重要等级。Optionally, the above third condition may include: the transmission delay requirement of the first type of data is lower than the transmission delay requirement of the second type of data, or the storage reliability requirement of the first type of data is lower than that of the second type of data. Corresponding storage reliability requirements, or the importance level of the first type of data is lower than the corresponding importance level of the second type of data.
可选的,可以以第三阈值作为界限将第一类型数据和第二类型数据区分开。Optionally, a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
在该可选方式中,上述第一类型数据的属性满足的第三条件可以包括:第一类型数据的传输时延要求小于第三阈值;或者,第一类型数据的存储可靠性要求小于第三阈值;或者,第一类型数据的重要等级小于第三阈值。In this optional manner, the third condition satisfied by the attributes of the first type of data may include: the transmission delay requirement of the first type of data is less than a third threshold; or the storage reliability requirement of the first type of data is less than the third threshold. threshold; or, the importance level of the first type of data is less than the third threshold.
在该可选方式中,有以下示例性的存储方式:In this optional method, there are the following exemplary storage methods:
示例性的,在第一待存储数据的传输时延要求小于第三阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the transmission delay requirement of the first data to be stored is less than the third threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. in the network element.
示例性的,在第一待存储数据的存储可靠性要求小于第三阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the storage reliability requirement of the first data to be stored is less than the third threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. in the network element.
示例性的,在第一待存储数据的重要等级小于第三阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the importance level of the first data to be stored is less than the third threshold, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element. middle.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应 以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第三阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above third threshold is not a fixed value and can be adjusted accordingly according to different application scenarios, and this is not limited in the embodiments of the present application.
情况三:Situation three:
第一网元根据第一待存储数据的属性和第一网元的存储状态,确定将第一待存储数据传输至第二网元。The first network element determines to transmit the first data to be stored to the second network element based on the attributes of the first data to be stored and the storage status of the first network element.
在第一待存储数据为第一类型数据且第一网元的存储状态为第一状态的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。When the first data to be stored is the first type of data and the storage state of the first network element is the first state, the first network element transmits the first data to be stored to the second network element, and the first data to be stored is stored in the second network element.
其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件;第一类型数据的属性满足第三条件,数据的属性包括但不限于数据的传输时延、存储可靠性、重要等级等。Among them, the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition, and the attributes of the data Including but not limited to data transmission delay, storage reliability, importance level, etc.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值;上述第二条件可以包括存储资源利用率小于第二阈值;上述第三条件可以包括:第一类型数据的传输时延要求低于第二类型数据对应的传输时延要求,或者,第一类型数据的存储可靠性要求低于第二类型数据对应的存储可靠性要求,或者,第一类型数据的重要等级低于第二类型数据对应的重要等级。Optionally, the above-mentioned first condition may include that the size of the available storage resources is less than the first threshold; the above-mentioned second condition may include that the storage resource utilization is less than the second threshold; the above-mentioned third condition may include: the transmission delay of the first type of data The requirements are lower than the transmission delay requirements corresponding to the second type of data, or the storage reliability requirements of the first type of data are lower than the storage reliability requirements of the second type of data, or the importance level of the first type of data is lower than that of the second type of data. The importance levels corresponding to the two types of data.
可选的,可以以第三阈值作为界限将第一类型数据和第二类型数据区分开。Optionally, a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
在该可选方式中,上述第一类型数据的属性满足的第三条件可以包括:第一类型数据的传输时延要求小于第三阈值;或者,第一类型数据的存储可靠性要求小于第三阈值;或者,第一类型数据的重要等级小于第三阈值。In this optional manner, the third condition satisfied by the attributes of the first type of data may include: the transmission delay requirement of the first type of data is less than a third threshold; or the storage reliability requirement of the first type of data is less than the third threshold. threshold; or, the importance level of the first type of data is less than the third threshold.
在上述可选方式中,有以下示例性的存储方式:Among the above optional methods, there are the following exemplary storage methods:
示例性的,在第一待存储数据的传输时延要求小于第三阈值,且第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the transmission delay requirement of the first data to be stored is less than the third threshold and the size of the available storage resources of the first network element is less than the first threshold, the first network element transmits the first data to be stored. To the second network element, the first data to be stored is stored in the second network element.
示例性的,在第一待存储数据的传输时延要求小于第三阈值,且第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the transmission delay requirement of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element.
示例性的,在第一待存储数据的存储可靠性要求小于第三阈值,且第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the storage reliability requirement of the first data to be stored is less than the third threshold and the size of the available storage resources of the first network element is less than the first threshold, the first network element transmits the first data to be stored. To the second network element, the first data to be stored is stored in the second network element.
示例性的,在第一待存储数据的存储可靠性要求小于第三阈值,且第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the storage reliability requirement of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element.
示例性的,在第一待存储数据的重要等级小于第三阈值,且第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the importance level of the first data to be stored is less than the third threshold and the size of the available storage resources of the first network element is less than the first threshold, the first network element transmits the first data to be stored to the third network element. In the second network element, the first data to be stored is stored in the second network element.
示例性的,在第一待存储数据的重要等级小于第三阈值,且第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the importance level of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element transmits the first data to be stored to The second network element stores the first data to be stored in the second network element.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值、第二阈值以及第三阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold, second threshold and third threshold are not fixed values and can be adjusted accordingly according to different application scenarios, which is not limited in the embodiments of the present application.
情况四:Situation four:
第一网元在根据第一待存储数据的属性和第一网元的存储状态中的至少一项的基础上,还根据第二网元的存储状态,确定将第一待存储数据传输至第二网元。The first network element determines to transmit the first data to be stored to the third network element based on at least one of the attributes of the first data to be stored and the storage status of the first network element, and also based on the storage status of the second network element. Two network elements.
具体的,第一网元可以根据第一网元的存储状态和第二网元的存储状态,确定将第一待存储数据传输至第二网元。Specifically, the first network element may determine to transmit the first data to be stored to the second network element based on the storage status of the first network element and the storage status of the second network element.
在第一网元的存储状态为第一状态,且第二网元的存储状态为第三状态的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。When the storage state of the first network element is the first state and the storage state of the second network element is the third state, the first network element transmits the first data to be stored to the second network element. The stored data is stored in the second network element.
其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件;第三状态表征第二网元的可用存储资源的大小满足第四条件,或第二网元的存储资源利用率满足第五条件。The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the third state represents the size of the available storage resources of the second network element. The fourth condition is met, or the storage resource utilization of the second network element meets the fifth condition.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值;上述第二条件可以包括存储资源利用率小于第二阈值;上述第四条件可以包括可用存储资源的大小大于第四阈值;上述第五条件可以包括存储资源利用率大于第五阈值。Optionally, the above-mentioned first condition may include that the size of available storage resources is less than a first threshold; the above-mentioned second condition may include that the storage resource utilization is less than a second threshold; the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold ; The above fifth condition may include that the storage resource utilization is greater than the fifth threshold.
在上述可选方式中,有以下示例性的存储方式:Among the above optional methods, there are the following exemplary storage methods:
示例性的,在第一网元的可用存储资源的大小小于第一阈值,且第二网元的可用存储资源的大小大于第四阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the size of the available storage resources of the first network element is less than the first threshold, and the size of the available storage resources of the second network element is greater than the fourth threshold, the first network element transmits the first data to be stored. To the second network element, the first data to be stored is stored in the second network element.
示例性的,在第一网元的可用存储资源的大小小于第一阈值,且第二网元的存储资源利用率的大小大于第五阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。For example, when the size of the available storage resources of the first network element is less than the first threshold, and the size of the storage resource utilization of the second network element is greater than the fifth threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element.
示例性的,在第一网元的存储资源利用率的大小小于第二阈值,且第二网元的可用存储资源的大小大于第四阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。For example, when the storage resource utilization of the first network element is less than the second threshold, and the size of the available storage resources of the second network element is greater than the fourth threshold, the first network element stores the first data to be stored. Transmitted to the second network element, the first data to be stored is stored in the second network element.
示例性的,在第一网元的存储资源利用率的大小小于第二阈值,且第二网元的存储资源利用率的大小大于第五阈值的情况下,第一网元将第一待存储数据传输至第二网元,该第一待存储数据存储至第二网元中。Exemplarily, when the storage resource utilization of the first network element is less than the second threshold, and the storage resource utilization of the second network element is greater than the fifth threshold, the first network element sets the first to-be-stored The data is transmitted to the second network element, and the first data to be stored is stored in the second network element.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值、第二阈值、第四阈值以及第五阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold, second threshold, fourth threshold and fifth threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
应理解,上述情况一至情况四,仅作为几种可能的实施例,用于对本申请实施例步骤S403中确定将第一待存储数据传输至第二网元的存储方式进行的具体说明,不应以此对本申请实施例构成限定。It should be understood that the above situations 1 to 4 are only used as several possible embodiments for specific explanation of the storage method for determining the transmission of the first data to be stored to the second network element in step S403 of the embodiment of the present application, and should not be used. This constitutes a limitation on the embodiments of the present application.
S404:将第一待存储数据存储至第一网元。S404: Store the first data to be stored in the first network element.
情况一:Situation one:
第一网元可以根据第一网元的存储状态,确定将第一待存储数据存储至第一网元。The first network element may determine to store the first data to be stored in the first network element according to the storage status of the first network element.
在第一网元的存储状态为第二状态的情况下,第一网元将第一待存储数据存储至第一网元中。When the storage state of the first network element is the second state, the first network element stores the first data to be stored in the first network element.
其中,第二状态表征第一网元的可用存储资源的大小不满足第一条件,或第一网元的存储资源利用率不满足第二条件。The second state represents that the size of the available storage resources of the first network element does not meet the first condition, or the storage resource utilization of the first network element does not meet the second condition.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值,上述第二条件可以包括存储资源利用率小于第二阈值。Optionally, the above-mentioned first condition may include that the size of available storage resources is less than a first threshold, and the above-mentioned second condition may include that the storage resource utilization is less than a second threshold.
在该可选方式中,有以下示例性的存储方式:In this optional method, there are the following exemplary storage methods:
示例性的,在第一网元的可用存储资源的大小大于或等于第一阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the size of the available storage resource of the first network element is greater than or equal to the first threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一网元的存储资源利用率的大小大于或等于第二阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the storage resource utilization of the first network element is greater than or equal to the second threshold, the first network element stores the first data to be stored in the first network element.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值和第二阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold and second threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
情况二:Situation two:
第一网元根据第一待存储数据的属性,确定将第一待存储数据存储至第一网元。The first network element determines to store the first data to be stored in the first network element according to the attributes of the first data to be stored.
在第一待存储数据为第二类型数据的情况下,第一网元将第一待存储数据存储至第一网元中。When the first data to be stored is the second type of data, the first network element stores the first data to be stored in the first network element.
其中,第二类型数据的属性满足第三条件,数据的属性包括但不限于数据的传输时延、存储可靠性、重要等级等。Among them, the attributes of the second type of data satisfy the third condition, and the attributes of the data include but are not limited to data transmission delay, storage reliability, importance level, etc.
可选的,上述第三条件可以包括:第一类型数据的传输时延要求低于第二类型数据对应的传输时延要求,或者,第一类型数据的存储可靠性要求低于第二类型数据对应的存储可靠性要求,或者,第一类型数据的重要等级低于第二类型数据对应的重要等级。Optionally, the above third condition may include: the transmission delay requirement of the first type of data is lower than the transmission delay requirement of the second type of data, or the storage reliability requirement of the first type of data is lower than that of the second type of data. Corresponding storage reliability requirements, or the importance level of the first type of data is lower than the corresponding importance level of the second type of data.
可选的,可以以第三阈值作为界限将第一类型数据和第二类型数据区分开。Optionally, a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
在该可选方式中,上述第二类型数据的属性满足的第三条件可以包括:第二类型数据对应的传输时延要求大于或等于第三阈值;或者,第二类型数据对应的存储可靠性要求大于或等于第三阈值;或者,第二类型数据对应的重要等级大于或等于第三阈值。In this optional method, the third condition satisfied by the attributes of the second type data may include: the transmission delay requirement corresponding to the second type data is greater than or equal to the third threshold; or, the storage reliability corresponding to the second type data It is required to be greater than or equal to the third threshold; or, the importance level corresponding to the second type of data is greater than or equal to the third threshold.
在该可选方式中,有以下示例性的存储方式:In this optional method, there are the following exemplary storage methods:
示例性的,在第一待存储数据的传输时延要求大于或等于第三阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一待存储数据的存储可靠性要求大于或等于第三阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, the first network element stores the first data to be stored in the first network element.
示例性的,在第一待存储数据的重要等级大于或等于第三阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the importance level of the first data to be stored is greater than or equal to the third threshold, the first network element stores the first data to be stored in the first network element.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application and should not be used to limit the embodiments of the present application.
应理解,上述第三阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above third threshold is not a fixed value and can be adjusted accordingly according to different application scenarios, and this is not limited in the embodiments of the present application.
情况三:Situation three:
第一网元根据第一待存储数据的属性和第一网元的存储状态,确定将第一待存储数据存储至第一网元。The first network element determines to store the first data to be stored in the first network element based on the attributes of the first data to be stored and the storage status of the first network element.
在第一待存储数据为第二类型数据且第一网元的存储状态为第二状态的情况下,第一网 元将第一待存储数据存储至第一网元中。When the first data to be stored is the second type of data and the storage state of the first network element is the second state, the first network element stores the first data to be stored in the first network element.
其中,第二状态表征第一网元的可用存储资源的大小不满足第一条件,或第一网元的存储资源利用率不满足第二条件;第二类型数据的属性满足第三条件,数据的属性包括但不限于数据的传输时延、存储可靠性、重要等级等。Among them, the second state represents that the size of the available storage resources of the first network element does not meet the first condition, or the storage resource utilization rate of the first network element does not meet the second condition; the attributes of the second type of data satisfy the third condition, and the data The attributes include but are not limited to data transmission delay, storage reliability, importance level, etc.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值;上述第二条件可以包括存储资源利用率小于第二阈值;上述第三条件可以包括:第一类型数据的传输时延要求低于第二类型数据对应的传输时延要求,或者,第一类型数据的存储可靠性要求低于第二类型数据对应的存储可靠性要求,或者,第一类型数据的重要等级低于第二类型数据对应的重要等级。Optionally, the above-mentioned first condition may include that the size of the available storage resources is less than the first threshold; the above-mentioned second condition may include that the storage resource utilization is less than the second threshold; the above-mentioned third condition may include: the transmission delay of the first type of data The requirements are lower than the transmission delay requirements corresponding to the second type of data, or the storage reliability requirements of the first type of data are lower than the storage reliability requirements of the second type of data, or the importance level of the first type of data is lower than that of the second type of data. The importance levels corresponding to the two types of data.
可选的,可以以第三阈值作为界限将第一类型数据和第二类型数据区分开。Optionally, a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
在该可选方式中,上述第二类型数据的属性满足的第三条件可以包括:第二类型数据对应的传输时延要求大于或等于第三阈值;或者,第二类型数据对应的存储可靠性要求大于或等于第三阈值;或者,第二类型数据对应的重要等级大于或等于第三阈值。In this optional method, the third condition satisfied by the attributes of the second type data may include: the transmission delay requirement corresponding to the second type data is greater than or equal to the third threshold; or, the storage reliability corresponding to the second type data It is required to be greater than or equal to the third threshold; or, the importance level corresponding to the second type of data is greater than or equal to the third threshold.
在上述可选方式中,有以下示例性的存储方式:Among the above optional methods, there are the following exemplary storage methods:
示例性的,在第一待存储数据的传输时延要求大于或等于第三阈值,且第一网元的可用存储资源的大小大于或等于第一阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than or equal to the first threshold, the first network element will first The data to be stored is stored in the first network element.
示例性的,在第一待存储数据的传输时延要求大于或等于第三阈值,且第一网元的存储资源利用率的大小大于或等于第二阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the transmission delay requirement of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is greater than or equal to the second threshold, the first network element will The data to be stored is stored in the first network element.
示例性的,在第一待存储数据的存储可靠性要求大于或等于第三阈值,且第一网元的可用存储资源的大小大于或等于第一阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than or equal to the first threshold, the first network element will first The data to be stored is stored in the first network element.
示例性的,在第一待存储数据的存储可靠性要求大于或等于第三阈值,且第一网元的存储资源利用率的大小大于或等于第二阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the storage reliability requirement of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is greater than or equal to the second threshold, the first network element will The data to be stored is stored in the first network element.
示例性的,在第一待存储数据的重要等级大于或等于第三阈值,且第一网元的可用存储资源的大小大于或等于第一阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the importance level of the first data to be stored is greater than or equal to the third threshold, and the size of the available storage resources of the first network element is greater than or equal to the first threshold, the first network element will store the first data to be stored. The data is stored in the first network element.
示例性的,在第一待存储数据的重要等级大于或等于第三阈值,且第一网元的存储资源利用率的大小大于或等于第二阈值的情况下,第一网元将第一待存储数据存储至第一网元中。For example, when the importance level of the first data to be stored is greater than or equal to the third threshold, and the storage resource utilization of the first network element is greater than or equal to the second threshold, the first network element will store the first data to be stored. The stored data is stored in the first network element.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值、第二阈值以及第三阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold, second threshold and third threshold are not fixed values and can be adjusted accordingly according to different application scenarios, which is not limited in the embodiments of the present application.
情况四:Situation four:
第一网元在根据第一待存储数据的属性和第一网元的存储状态中的至少一项的基础上,还根据第二网元的存储状态,确定将第一待存储数据存储至第一网元。Based on at least one of the attributes of the first data to be stored and the storage status of the first network element, the first network element also determines to store the first data to be stored in the second network element based on the storage status of the second network element. One network element.
具体的,第一网元可以根据第一网元的存储状态和第二网元的存储状态,确定将第一待存储数据存储至第一网元。Specifically, the first network element may determine to store the first data to be stored in the first network element based on the storage status of the first network element and the storage status of the second network element.
在第一网元的存储状态不为第一状态,或第二网元的存储状态不为第三状态的情况下,将该第一待存储数据存储至第一网元中,或者,将该第一待存储数据传输至第三网元或其他 网元,该第一待存储数据存储至第三网元或其他网元中。When the storage state of the first network element is not the first state, or the storage state of the second network element is not the third state, the first data to be stored is stored in the first network element, or the first data to be stored is stored in the first network element. The first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or other network elements.
其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件;第三状态表征第二网元的可用存储资源的大小满足第四条件,或第二网元的存储资源利用率满足第五条件。The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the third state represents the size of the available storage resources of the second network element. The fourth condition is met, or the storage resource utilization of the second network element meets the fifth condition.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值;上述第二条件可以包括存储资源利用率小于第二阈值;上述第四条件可以包括可用存储资源的大小大于第四阈值;上述第五条件可以包括存储资源利用率大于第五阈值。Optionally, the above-mentioned first condition may include that the size of available storage resources is less than a first threshold; the above-mentioned second condition may include that the storage resource utilization is less than a second threshold; the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold ; The above fifth condition may include that the storage resource utilization is greater than the fifth threshold.
在上述可选方式中,有以下示例性的存储方式:Among the above optional methods, there are the following exemplary storage methods:
示例性的,在第一网元的可用存储资源的大小不小于第一阈值,或第二网元的可用存储资源的大小不大于第四阈值的情况下,将该第一待存储数据存储至第一网元中,或者,将该第一待存储数据传输至第三网元或其他网元,该第一待存储数据存储至第三网元或其他网元中。Exemplarily, when the size of the available storage resources of the first network element is not less than the first threshold, or the size of the available storage resources of the second network element is not greater than the fourth threshold, the first data to be stored is stored in In the first network element, or the first data to be stored is transmitted to the third network element or other network elements, and the first data to be stored is stored in the third network element or other network elements.
示例性的,在第一网元的可用存储资源的大小不小于第一阈值,或第二网元的存储资源利用率的大小不大于第五阈值的情况下,将该第一待存储数据存储至第一网元中,或者,将该第一待存储数据传输至第三网元或其他网元,该第一待存储数据存储至第三网元或其他网元中。Exemplarily, when the size of the available storage resources of the first network element is not less than the first threshold, or the size of the storage resource utilization of the second network element is not greater than the fifth threshold, the first data to be stored is stored. to the first network element, or transmit the first data to be stored to a third network element or other network elements, and store the first data to be stored in the third network element or other network elements.
示例性的,在第一网元的存储资源利用率的大小不小于第二阈值,或第二网元的可用存储资源的大小不大于第四阈值的情况下,将该第一待存储数据存储至第一网元中,或者,将该第一待存储数据传输至第三网元或其他网元,该第一待存储数据存储至第三网元或其他网元中。Exemplarily, when the storage resource utilization of the first network element is not less than the second threshold, or the size of the available storage resources of the second network element is not greater than the fourth threshold, the first data to be stored is stored. to the first network element, or transmit the first data to be stored to a third network element or other network elements, and store the first data to be stored in the third network element or other network elements.
示例性的,在第一网元的存储资源利用率的大小不小于第二阈值,或第二网元的存储资源利用率的大小不大于第五阈值的情况下,将该第一待存储数据存储至第一网元中,或者,将该第一待存储数据传输至第三网元或其他网元,该第一待存储数据存储至第三网元或其他网元中。For example, when the storage resource utilization of the first network element is not less than the second threshold, or the storage resource utilization of the second network element is not greater than the fifth threshold, the first data to be stored is Store the data in the first network element, or transmit the first data to be stored to the third network element or other network elements, and store the first data to be stored in the third network element or other network elements.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值、第二阈值、第四阈值以及第五阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold, second threshold, fourth threshold and fifth threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
应理解,上述情况一至情况四,仅作为几种可能的实施例,用于对本申请实施例步骤S404中确定将第一待存储数据存储至第一网元的存储方式进行的具体说明,不应以此对本申请实施例构成限定。It should be understood that the above situations 1 to 4 are only used as several possible embodiments to specifically explain the storage method of determining to store the first data to be stored in the first network element in step S404 of the embodiment of this application, and should not be used. This constitutes a limitation on the embodiments of the present application.
本申请实施例根据待存储数据的属性和网元的存储状态中的至少一项,确定待存储数据的存储方式,具体可以选择将待存储数据存储至第一网元中,也可以选择将待存储数据存储至其他网元中,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。The embodiment of the present application determines the storage method of the data to be stored based on at least one of the attributes of the data to be stored and the storage status of the network element. Specifically, you can choose to store the data to be stored in the first network element, or you can choose to store the data to be stored in the first network element. Store data in other network elements, and use multiple network elements to collaborate to complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
请参阅图5,图5为本申请实施例提供的又一种数据存储方法的流程示意图,或者,也可以理解为是上述图3和图4中的数据存储方法流程图的变形或补充,具体可以理解为是上述图3和图4中的第一网元和第二网元之间通过消息交互确定待存储数据的存储方式的内容的补充说明。本申请实施例中的数据存储方法应用于智能驾驶技术领域,该数据存储方法包括但不限于如下步骤:Please refer to Figure 5. Figure 5 is a schematic flowchart of another data storage method provided by an embodiment of the present application. Alternatively, it can also be understood as a modification or supplement of the flowchart of the data storage method in Figures 3 and 4. Specifically, It can be understood as a supplementary explanation of the content of determining the storage method of the data to be stored through message interaction between the first network element and the second network element in the above-mentioned FIG. 3 and FIG. 4 . The data storage method in the embodiment of this application is applied in the field of intelligent driving technology. The data storage method includes but is not limited to the following steps:
S501:第一网元向第二网元发送第一消息,相应的,第二网元接收第一网元发送的第一消息。S501: The first network element sends the first message to the second network element. Correspondingly, the second network element receives the first message sent by the first network element.
其中,第一消息用于请求第二网元存储第一网元的第二待存储数据。The first message is used to request the second network element to store the second to-be-stored data of the first network element.
本申请实施例中的第一网元为搭载了可用于执行计算机执行指令的处理器的网元/设备,可以是终端设备(如车载终端)等,具体可以是上述图1所示的车辆系统内的各个网元/设备,或是上述图2所示的存储系统内的各个网元/设备,比如车载网关、智能驾驶域控制器、智能座舱域控制器、整车域控制器、动力域控制器、底盘域控制器等其他ECU,或是上述集成了上述图1所示的车辆系统的网元/设备,或是集成了上述图2所示的存储系统的网元/设备,用于执行本申请实施例中的数据存储方法,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。The first network element in the embodiment of this application is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be the vehicle system shown in Figure 1 above. Each network element/device in the storage system, or each network element/device in the storage system shown in Figure 2 above, such as vehicle gateway, intelligent driving domain controller, intelligent cockpit domain controller, vehicle domain controller, power domain Other ECUs such as controllers and chassis domain controllers, or the above-mentioned network elements/devices that integrate the vehicle system shown in Figure 1, or the above-mentioned network elements/devices that integrate the storage system shown in Figure 2, are used for Implementing the data storage method in the embodiment of the present application and utilizing multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
本申请实施例中的第二网元为不同于上述第一网元的网元。第二网元为搭载了可用于执行计算机执行指令的处理器的网元/设备,可以是终端设备(如车载终端)等,具体可以是上述图1所示的车辆系统内的各个网元/设备,或是上述图2所示的存储系统内的各个网元/设备,比如车载网关、智能驾驶域控制器、智能座舱域控制器、整车域控制器、动力域控制器、底盘域控制器等其他ECU,或是上述集成了上述图1所示的车辆系统的网元/设备,或是集成了上述图2所示的存储系统的网元/设备,用于执行本申请实施例中的数据存储方法,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。The second network element in the embodiment of this application is a network element different from the above-mentioned first network element. The second network element is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be each network element/device in the vehicle system shown in Figure 1 above. equipment, or each network element/device in the storage system shown in Figure 2 above, such as vehicle gateway, intelligent driving domain controller, intelligent cockpit domain controller, vehicle domain controller, power domain controller, chassis domain control Other ECUs such as controllers, or the above-mentioned network elements/devices integrated with the vehicle system shown in Figure 1, or the above-mentioned network elements/devices integrated with the storage system shown in Figure 2, are used to execute the embodiments of the present application. The data storage method uses multiple network elements to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
具体的,下面将介绍几种第一网元向第二网元发送第一消息的可能的场景。Specifically, several possible scenarios in which the first network element sends the first message to the second network element will be introduced below.
场景一:scene one:
第一网元根据第一网元的存储状态,确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。The first network element determines to send a first message to the second network element according to the storage status of the first network element, for requesting the second network element to store the second data to be stored of the first network element.
在第一网元的存储状态为第一状态的情况下,确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。When the storage state of the first network element is the first state, it is determined to send a first message to the second network element for requesting the second network element to store the second data to be stored of the first network element.
其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件。The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值,上述第二条件可以包括存储资源利用率小于第二阈值。Optionally, the above-mentioned first condition may include that the size of available storage resources is less than a first threshold, and the above-mentioned second condition may include that the storage resource utilization is less than a second threshold.
在该可选方式中,有以下示例性的存储方式:In this optional method, there are the following exemplary storage methods:
示例性的,在第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。Exemplarily, when the size of the available storage resources of the first network element is less than the first threshold, the first network element determines to send a first message to the second network element for requesting the second network element to store the first network element. The second data to be stored.
示例性的,在第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。Exemplarily, when the storage resource utilization of the first network element is less than the second threshold, the first network element determines to send a first message to the second network element for requesting the second network element to store the first network element. The second data of the element to be stored.
应理解,上述几种示例性的存储方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above exemplary storage methods are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值和第二阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold and second threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
场景二:Scene two:
第一网元根据第二待存储数据的属性,确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。The first network element determines to send a first message to the second network element according to the attributes of the second data to be stored, for requesting the second network element to store the second data to be stored of the first network element.
在第二待存储数据为第一类型数据的情况下,确定向第二网元发送第一消息,用于请求 第二网元存储第一网元的第二待存储数据。When the second data to be stored is data of the first type, it is determined to send a first message to the second network element for requesting the second network element to store the second data to be stored of the first network element.
其中,第一类型数据的属性满足第三条件,数据的属性包括但不限于数据的传输时延、存储可靠性、重要等级等。Among them, the attributes of the first type of data satisfy the third condition, and the attributes of the data include but are not limited to data transmission delay, storage reliability, importance level, etc.
可选的,上述第三条件可以包括:第一类型数据的传输时延要求低于第二类型数据对应的传输时延要求,或者,第一类型数据的存储可靠性要求低于第二类型数据对应的存储可靠性要求,或者,第一类型数据的重要等级低于第二类型数据对应的重要等级。Optionally, the above third condition may include: the transmission delay requirement of the first type of data is lower than the transmission delay requirement of the second type of data, or the storage reliability requirement of the first type of data is lower than that of the second type of data. Corresponding storage reliability requirements, or the importance level of the first type of data is lower than the corresponding importance level of the second type of data.
可选的,可以以第三阈值作为界限将第一类型数据和第二类型数据区分开。Optionally, a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
在该可选方式中,上述第一类型数据的属性满足的第三条件可以包括:第一类型数据的传输时延要求小于第三阈值;或者,第一类型数据的存储可靠性要求小于第三阈值;或者,第一类型数据的重要等级小于第三阈值。In this optional manner, the third condition satisfied by the attributes of the first type of data may include: the transmission delay requirement of the first type of data is less than a third threshold; or the storage reliability requirement of the first type of data is less than the third threshold. threshold; or, the importance level of the first type of data is less than the third threshold.
在该可选方式中,有以下示例性的发送第一消息的方式:In this optional way, there are the following exemplary ways of sending the first message:
示例性的,在第一待存储数据的传输时延要求小于第三阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。Exemplarily, when the transmission delay requirement of the first data to be stored is less than the third threshold, the first network element determines to send a first message to the second network element to request the second network element to store the first network element. The second data to be stored.
示例性的,在第一待存储数据的存储可靠性要求小于第三阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。Exemplarily, when the storage reliability requirement of the first data to be stored is less than the third threshold, the first network element determines to send a first message to the second network element to request the second network element to store the first network element. The second data to be stored.
示例性的,在第一待存储数据的重要等级小于第三阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。Exemplarily, when the importance level of the first data to be stored is less than the third threshold, the first network element determines to send a first message to the second network element for requesting the second network element to store the first network element's third data. 2. Data to be stored.
应理解,上述几种示例性的发送第一消息的方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above-mentioned exemplary ways of sending the first message are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第三阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above third threshold is not a fixed value and can be adjusted accordingly according to different application scenarios, and this is not limited in the embodiments of the present application.
场景三:Scene three:
第一网元根据第一待存储数据的属性和第一网元的存储状态,确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。The first network element determines to send a first message to the second network element according to the attributes of the first data to be stored and the storage status of the first network element, for requesting the second network element to store the second data to be stored of the first network element. .
在第二待存储数据为第一类型数据且第一网元的存储状态为第一状态的情况下,确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。When the second data to be stored is the first type of data and the storage state of the first network element is the first state, it is determined to send a first message to the second network element for requesting the second network element to store the first network element. The second data to be stored.
其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件;第一类型数据的属性满足第三条件,数据的属性包括但不限于数据的传输时延、存储可靠性、重要等级等。Among them, the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition, and the attributes of the data Including but not limited to data transmission delay, storage reliability, importance level, etc.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值;上述第二条件可以包括存储资源利用率小于第二阈值;上述第三条件可以包括:第一类型数据的传输时延要求低于第二类型数据对应的传输时延要求,或者,第一类型数据的存储可靠性要求低于第二类型数据对应的存储可靠性要求,或者,第一类型数据的重要等级低于第二类型数据对应的重要等级。Optionally, the above-mentioned first condition may include that the size of the available storage resources is less than the first threshold; the above-mentioned second condition may include that the storage resource utilization is less than the second threshold; the above-mentioned third condition may include: the transmission delay of the first type of data The requirements are lower than the transmission delay requirements corresponding to the second type of data, or the storage reliability requirements of the first type of data are lower than the storage reliability requirements of the second type of data, or the importance level of the first type of data is lower than that of the second type of data. The importance levels corresponding to the two types of data.
可选的,可以以第三阈值作为界限将第一类型数据和第二类型数据区分开。Optionally, a third threshold can be used as a limit to distinguish the first type of data from the second type of data.
在该可选方式中,上述第一类型数据的属性满足的第三条件可以包括:第一类型数据的传输时延要求小于第三阈值;或者,第一类型数据的存储可靠性要求小于第三阈值;或者,第一类型数据的重要等级小于第三阈值。In this optional manner, the third condition satisfied by the attributes of the first type of data may include: the transmission delay requirement of the first type of data is less than a third threshold; or the storage reliability requirement of the first type of data is less than the third threshold. threshold; or, the importance level of the first type of data is less than the third threshold.
在上述可选方式中,有以下示例性的发送第一消息的方式:Among the above optional methods, there are the following exemplary methods of sending the first message:
示例性的,在第一待存储数据的传输时延要求小于第三阈值,且第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网 元存储第一网元的第二待存储数据。For example, when the transmission delay requirement of the first data to be stored is less than the third threshold and the size of the available storage resources of the first network element is less than the first threshold, the first network element determines to send the data to the second network element. The first message is used to request the second network element to store the second to-be-stored data of the first network element.
示例性的,在第一待存储数据的传输时延要求小于第三阈值,且第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。For example, when the transmission delay requirement of the first data to be stored is less than the third threshold, and the storage resource utilization of the first network element is less than the second threshold, the first network element determines to send the data to the second network element. Send a first message for requesting the second network element to store the second to-be-stored data of the first network element.
示例性的,在第一待存储数据的存储可靠性要求小于第三阈值,且第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。For example, when the storage reliability requirement of the first data to be stored is less than the third threshold and the size of the available storage resources of the first network element is less than the first threshold, the first network element determines to send the data to the second network element. The first message is used to request the second network element to store the second to-be-stored data of the first network element.
示例性的,在第一待存储数据的存储可靠性要求小于第三阈值,且第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。For example, when the storage reliability requirement of the first data to be stored is less than the third threshold, and the storage resource utilization of the first network element is less than the second threshold, the first network element determines to send the data to the second network element. Send a first message for requesting the second network element to store the second to-be-stored data of the first network element.
示例性的,在第一待存储数据的重要等级小于第三阈值,且第一网元的可用存储资源的大小小于第一阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。For example, when the importance level of the first data to be stored is less than the third threshold and the size of the available storage resources of the first network element is less than the first threshold, the first network element determines to send the first data to the second network element. The message is used to request the second network element to store the second to-be-stored data of the first network element.
示例性的,在第一待存储数据的重要等级小于第三阈值,且第一网元的存储资源利用率的大小小于第二阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。For example, when the importance level of the first data to be stored is less than the third threshold and the storage resource utilization of the first network element is less than the second threshold, the first network element determines to send the third data to the second network element. A message used to request the second network element to store the second to-be-stored data of the first network element.
应理解,上述几种示例性的发送第一消息的方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above-mentioned exemplary ways of sending the first message are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值、第二阈值以及第三阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold, second threshold and third threshold are not fixed values and can be adjusted accordingly according to different application scenarios, which is not limited in the embodiments of the present application.
可选的,上述第一条件涉及的第一阈值,上述第二条件涉及的第二阈值,与第二待存储数据的属性相关,可以根据不同场景进行调整。具体的关联关系可参阅上述图3所示的数据存储方法的实施例三中关于“第一条件涉及的第一阈值,第二条件涉及的第二阈值,与第一待存储数据的属性相关”的内容,此处不再赘述。Optionally, the first threshold related to the above-mentioned first condition and the second threshold related to the above-mentioned second condition are related to the attributes of the second data to be stored, and can be adjusted according to different scenarios. For specific correlations, please refer to Embodiment 3 of the data storage method shown in Figure 3 above regarding "the first threshold involved in the first condition, the second threshold involved in the second condition, and related to the attributes of the first data to be stored." The contents will not be repeated here.
场景四:Scene four:
第一网元在根据第一待存储数据的属性和第一网元的存储状态中的至少一项的基础上,还根据第二网元的存储状态,确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。The first network element determines to send the first message to the second network element based on at least one of the attributes of the first data to be stored and the storage status of the first network element, and also based on the storage status of the second network element. , used to request the second network element to store the second data to be stored of the first network element.
具体的,第一网元可以根据第一网元的存储状态和第二网元的存储状态,确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。Specifically, the first network element may determine to send the first message to the second network element according to the storage status of the first network element and the storage status of the second network element, for requesting the second network element to store the first network element's third message. 2. Data to be stored.
在第一网元的存储状态为第一状态,且第二网元的存储状态为第三状态的情况下,确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。When the storage state of the first network element is the first state and the storage state of the second network element is the third state, it is determined to send a first message to the second network element for requesting the second network element to store the first The second data to be stored of the network element.
其中,第一状态表征第一网元的可用存储资源的大小满足第一条件,或第一网元的存储资源利用率满足第二条件;第三状态表征第二网元的可用存储资源的大小满足第四条件,或第二网元的存储资源利用率满足第五条件。The first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the utilization rate of the storage resources of the first network element satisfies the second condition; the third state represents the size of the available storage resources of the second network element. The fourth condition is met, or the storage resource utilization of the second network element meets the fifth condition.
可选的,上述第一条件可以包括可用存储资源的大小小于第一阈值;上述第二条件可以包括存储资源利用率小于第二阈值;上述第四条件可以包括可用存储资源的大小大于第四阈值;上述第五条件可以包括存储资源利用率大于第五阈值。Optionally, the above-mentioned first condition may include that the size of available storage resources is less than a first threshold; the above-mentioned second condition may include that the storage resource utilization is less than a second threshold; the above-mentioned fourth condition may include that the size of available storage resources is greater than a fourth threshold ; The above fifth condition may include that the storage resource utilization is greater than the fifth threshold.
在上述可选方式中,有以下示例性的发送第一消息的方式:Among the above optional methods, there are the following exemplary methods of sending the first message:
示例性的,在第一网元的可用存储资源的大小小于第一阈值,且第二网元的可用存储资源的大小大于第四阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网 元存储第一网元的第二待存储数据。For example, when the size of the available storage resources of the first network element is less than the first threshold, and the size of the available storage resources of the second network element is greater than the fourth threshold, the first network element determines to send the data to the second network element. The first message is used to request the second network element to store the second to-be-stored data of the first network element.
示例性的,在第一网元的可用存储资源的大小小于第一阈值,且第二网元的存储资源利用率的大小大于第五阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。For example, when the size of the available storage resources of the first network element is less than the first threshold, and the size of the storage resource utilization of the second network element is greater than the fifth threshold, the first network element determines to send the data to the second network element. Send a first message for requesting the second network element to store the second to-be-stored data of the first network element.
示例性的,在第一网元的存储资源利用率的大小小于第二阈值,且第二网元的可用存储资源的大小大于第四阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。For example, when the storage resource utilization of the first network element is less than the second threshold, and the size of the available storage resources of the second network element is greater than the fourth threshold, the first network element determines to send the data to the second network element. Send a first message for requesting the second network element to store the second to-be-stored data of the first network element.
示例性的,在第一网元的存储资源利用率的大小小于第二阈值,且第二网元的存储资源利用率的大小大于第五阈值的情况下,第一网元确定向第二网元发送第一消息,用于请求第二网元存储第一网元的第二待存储数据。For example, when the storage resource utilization of the first network element is less than the second threshold, and the storage resource utilization of the second network element is greater than the fifth threshold, the first network element determines to send the data to the second network. The network element sends a first message for requesting the second network element to store the second to-be-stored data of the first network element.
应理解,上述几种示例性的发送第一消息的方式,仅作为几种举例对本申请实施例进行说明,不应以此对本申请实施例构成限定。It should be understood that the above-mentioned exemplary ways of sending the first message are only used as examples to illustrate the embodiments of the present application, and should not be used to limit the embodiments of the present application.
应理解,上述第一阈值、第二阈值、第四阈值以及第五阈值不是一个固定的值,可以根据不同的应用场景进行相应调整,本申请实施例对此不作限制。It should be understood that the above-mentioned first threshold, second threshold, fourth threshold and fifth threshold are not fixed values and can be adjusted accordingly according to different application scenarios. This is not limited in the embodiments of the present application.
应理解,上述场景一至场景四,仅作为几种可能的实施例,用于对本申请实施例步骤S501中第一网元向第二网元发送第一消息的可能的场景进行的具体说明,不应以此对本申请实施例构成限定。It should be understood that the above scenarios one to four are only used as several possible embodiments to specifically describe the possible scenarios in which the first network element sends the first message to the second network element in step S501 of the embodiment of the present application. This should limit the embodiments of the present application.
在一种可能的实施例中,还提供了一种获取第二网元的信息的可能的具体实施方式。In a possible embodiment, a possible specific implementation manner of obtaining the information of the second network element is also provided.
具体为,第一网元获取第二网元的信息,该第二网元的信息用于唯一标识第二网元。Specifically, the first network element obtains the information of the second network element, and the information of the second network element is used to uniquely identify the second network element.
示例性的,该第二网元的信息可以包括以下至少一项:第二网元的标识,或者第二网元的地址,或者其他用于认证第二网元身份的信息;本申请实施例对此不作限制。Exemplarily, the information of the second network element may include at least one of the following: the identifier of the second network element, or the address of the second network element, or other information used to authenticate the identity of the second network element; Embodiments of this application There are no restrictions on this.
可选的,第一网元可以通过预先配置的信息获取第二网元的信息。Optionally, the first network element can obtain the information of the second network element through preconfigured information.
可选的,第一网元也可以接收广播消息获取第二网元的信息。Optionally, the first network element can also receive the broadcast message to obtain the information of the second network element.
可选的,第二网元点对点发送第二网元的信息给第一网元,相应的,第一网元接收第二网元的信息。Optionally, the second network element sends the information of the second network element to the first network element point-to-point, and accordingly, the first network element receives the information of the second network element.
可选的,第二网元点对点发送第二网元的信息给集中式控制器,再由集中式控制器发送第二网元的信息给第一网元,相应的,第一网元接收第二网元的信息。Optionally, the second network element sends the second network element's information point-to-point to the centralized controller, and then the centralized controller sends the second network element's information to the first network element. Correspondingly, the first network element receives the second network element's information. Information about the second network element.
通过本申请实施例,第一网元可以根据第二网元的信息向第二网元发送第一消息,也可以根据第二网元的信息将第二待存储数据传输给第二网元,选择将第二待存储数据存储至第二网元中。Through the embodiments of this application, the first network element can send the first message to the second network element based on the information of the second network element, and can also transmit the second data to be stored to the second network element based on the information of the second network element. Select to store the second data to be stored in the second network element.
在一种可能的实施例中,还提供了一种发送第一信息的可能的具体实施方式。In a possible embodiment, a possible specific implementation manner of sending the first information is also provided.
具体为,第一网元发送第一信息,该第一信息包括但不限于第一网元的存储状态的信息。Specifically, the first network element sends first information, and the first information includes but is not limited to information about the storage status of the first network element.
可选的,第一网元可以发送广播消息,该广播消息包括用于指示第一信息的消息,第一信息包括第一网元的存储状态的信息。相应的,第二网元等其他网元可以通过接收广播消息得知第一网元的存储状态。Optionally, the first network element may send a broadcast message, where the broadcast message includes a message indicating the first information, and the first information includes information about the storage status of the first network element. Correspondingly, other network elements such as the second network element can learn the storage status of the first network element by receiving the broadcast message.
可选的,第一网元可以点对点发送第一信息给第二网元等其他网元,相应的,第二网元等其他网元可以通过接收第一网元点对点发送的第一信息得知第一网元的存储状态。Optionally, the first network element can send the first information point-to-point to the second network element and other other network elements. Correspondingly, the second network element and other other network elements can learn the first information by receiving the first information point-to-point sent by the first network element. The storage status of the first network element.
可选的,第一网元可以点对点发送第一信息给集中式控制器,再由集中式控制器发送第一信息给第二网元等其他网元,相应的,第二网元等其他网元可以通过接收集中式控制器点对点发送的第一信息得知第一网元的存储状态。Optionally, the first network element can send the first information to the centralized controller point-to-point, and then the centralized controller sends the first information to the second network element and other other network elements. Correspondingly, the second network element and other other network elements can The network element can learn the storage status of the first network element by receiving the first information sent point-to-point by the centralized controller.
通过本申请实施例发送第一信息,可以使第二网元等其他网元获取第一信息,得知第一 网元的存储状态的信息。By sending the first information through the embodiment of the present application, other network elements such as the second network element can obtain the first information and learn the storage status information of the first network element.
可选的,第一信息用于指示第一网元的可用存储资源的大小,或第一网元的存储资源利用率的大小。Optionally, the first information is used to indicate the size of the available storage resources of the first network element, or the size of the storage resource utilization of the first network element.
可选的,第一信息用于指示第三网元等其他网元选择是否将待存储数据传输至第一网元中。Optionally, the first information is used to instruct other network elements such as the third network element to choose whether to transmit the data to be stored to the first network element.
可选的,第一信息用于指示第三网元等其他网元选择是否存储来自第一网元的待存储数据。Optionally, the first information is used to instruct other network elements such as the third network element to choose whether to store the data to be stored from the first network element.
通过本申请实施例,第三网元等其他网元可以根据第一信息所指示的内容,选择是否将第三网元等其他网元的待存储数据存储至第一网元中,第三网元等其他网元也可以根据第一信息所指示的内容,选择是否存储来自第一网元的待存储数据。Through the embodiments of this application, the third network element and other other network elements can choose whether to store the data to be stored of the third network element and other other network elements in the first network element according to the content indicated by the first information. Other network elements such as the network element can also choose whether to store the data to be stored from the first network element according to the content indicated by the first information.
在一种可能的实施例中,还提供了一种接收第二信息的可能的具体实施方式。In a possible embodiment, a possible specific implementation manner of receiving the second information is also provided.
具体为,第一网元接收第二信息,该第二信息包括但不限于至少一个第三网元的存储状态的信息,第一网元可以根据第二信息确定向至少一个第三网元发送第一消息。Specifically, the first network element receives the second information. The second information includes but is not limited to information about the storage status of at least one third network element. The first network element can determine to send the information to the at least one third network element based on the second information. First news.
可以理解的是,本申请实施例中的第三网元和上文所提及的第二网元可以是同一个网元,也可以是不同的网元,本申请实施例对此不作限制。It can be understood that the third network element in the embodiment of the present application and the second network element mentioned above may be the same network element or may be different network elements, and the embodiment of the present application does not limit this.
可选的,第一网元接收广播消息,该广播消息包括用于指示第二信息的消息,第二信息包括至少一个第三网元的存储状态的信息,第一网元通过接收广播消息得知至少一个第三网元的存储状态。Optionally, the first network element receives a broadcast message. The broadcast message includes a message indicating second information. The second information includes information on the storage status of at least one third network element. The first network element obtains the information by receiving the broadcast message. The storage status of at least one third network element is known.
可选的,第二网元点对点发送第二信息给第一网元,相应的,第一网元通过接收第二网元点对点发送的第二信息得知至少一个第三网元的存储状态。Optionally, the second network element sends the second information point-to-point to the first network element. Correspondingly, the first network element learns the storage status of at least one third network element by receiving the second information sent point-to-point by the second network element.
可选的,第二网元点对点发送第二信息给集中式控制器,再由集中式控制器发送第二信息给第一网元,相应的,第一网元通过接收集中式控制器点对点发送的第二信息得知至少一个第三网元的存储状态。Optionally, the second network element sends the second information point-to-point to the centralized controller, and then the centralized controller sends the second information to the first network element. Correspondingly, the first network element sends point-to-point information by receiving the centralized controller. The second information obtains the storage status of at least one third network element.
通过本申请实施例接收第二信息,第一网元可以根据第二信息得知至少一个第三网元的存储状态的信息,并根据至少一个第三网元的存储状态,确定向至少一个第三网元发送第一消息,请求该至少一个第三网元协同第一网元完成第二待存储数据的存储。By receiving the second information in the embodiment of the present application, the first network element can learn the storage status information of at least one third network element based on the second information, and determine the storage status of the at least one third network element based on the storage status of the at least one third network element. The three network elements send a first message, requesting the at least one third network element to cooperate with the first network element to complete the storage of the second data to be stored.
S502:第二网元向第一网元发送第二消息,相应的,第一网元接收第二网元发送的第二消息。S502: The second network element sends the second message to the first network element. Correspondingly, the first network element receives the second message sent by the second network element.
其中,第二消息包括了用于指示第二网元是否允许存储第一网元的第二待存储数据的消息,第二消息用于第一网元确定对第二待存储数据的存储方式。The second message includes a message used to indicate whether the second network element is allowed to store the second to-be-stored data of the first network element, and the second message is used by the first network element to determine a storage method for the second to-be-stored data.
S503:第一网元根据第二消息,确定对第二待存储数据的存储方式。S503: The first network element determines the storage method of the second data to be stored according to the second message.
存储方式一:Storage method one:
在第二消息指示第二网元允许存储第二待存储数据的情况下,第一网元向第二网元发送第二待存储数据,该第二待存储数据存储至第二网元中。When the second message indicates that the second network element allows storage of the second data to be stored, the first network element sends the second data to be stored to the second network element, and the second data to be stored is stored in the second network element.
在一种可能的实施例中,还提供了一种发送第四信息的可能的具体实施方式。In a possible embodiment, a possible specific implementation manner of sending the fourth information is also provided.
具体为,在第一网元向第二网元发送第二待存储数据的情况下,第一网元发送第四信息,该第四信息用于指示第二待存储数据对应的存储网元或第二待存储数据未存储于第一网元。Specifically, when the first network element sends the second data to be stored to the second network element, the first network element sends fourth information, and the fourth information is used to indicate the storage network element or storage network element corresponding to the second data to be stored. The second data to be stored is not stored in the first network element.
通过本申请实施例,第一网元可以通过发送第四信息告知其他网元第二待存储数据对应的存储网元,便于其他网元对第二待存储数据发起访问请求。Through the embodiments of this application, the first network element can inform other network elements of the storage network element corresponding to the second data to be stored by sending the fourth information, so as to facilitate other network elements to initiate access requests for the second data to be stored.
可选的,第一网元可以发送广播消息,该广播消息包括用于指示第四信息的消息,第四信息包括用于指示第二待存储数据对应的存储网元的信息,或第二待存储数据未存储于第一 网元的信息。相应的,第三网元等其他网元可以通过接收广播消息得知第二待存储数据对应的存储网元,以对第二待存储数据发起访问请求。Optionally, the first network element may send a broadcast message. The broadcast message includes a message indicating fourth information. The fourth information includes information indicating a storage network element corresponding to the second data to be stored, or the second network element to be stored. The stored data is not stored in the first network element. Correspondingly, other network elements such as the third network element can learn the storage network element corresponding to the second data to be stored by receiving the broadcast message, so as to initiate an access request for the second data to be stored.
可选的,第一网元可以点对点发送第四信息给第三网元或其他网元。相应的,第三网元等其他网元可以通过接收第一网元点对点发送的第四信息得知第二待存储数据对应的存储网元,以对第二待存储数据发起访问请求。Optionally, the first network element may send the fourth information point-to-point to the third network element or other network elements. Correspondingly, other network elements such as the third network element can learn the storage network element corresponding to the second data to be stored by receiving the fourth information sent point-to-point by the first network element, so as to initiate an access request for the second data to be stored.
可选的,第一网元可以点对点发送第四信息给集中式控制器,再由集中式控制器发送第一信息给第三网元或其他网元。相应的,第三网元等其他网元可以通过接收集中式控制器点对点发送的第四信息得知第二待存储数据对应的存储网元,以对第二待存储数据发起访问请求。Optionally, the first network element can send the fourth information to the centralized controller point-to-point, and then the centralized controller sends the first information to the third network element or other network elements. Correspondingly, other network elements such as the third network element can learn the storage network element corresponding to the second data to be stored by receiving the fourth information sent point-to-point by the centralized controller, so as to initiate an access request for the second data to be stored.
通过本申请实施例发送第四信息,可以使第三网元等其他网元获取第四信息,得知第二待存储数据对应的存储网元,以对第二待存储数据发起访问请求。By sending the fourth information according to the embodiment of the present application, other network elements such as the third network element can obtain the fourth information, learn the storage network element corresponding to the second data to be stored, and initiate an access request for the second data to be stored.
在一种可能的实施例中,还提供了一种接收第二请求的可能的具体实施方式。In a possible embodiment, a possible specific implementation manner of receiving the second request is also provided.
具体为,第一网元接收第二请求,请求访问第二待存储数据。Specifically, the first network element receives the second request and requests access to the second data to be stored.
可选的,可以是第三网元向第二网元请求访问第二待存储数据,第二网元再向第一网元发送该第二请求。相应的,第一网元接收来自第二网元的第二请求。Optionally, the third network element may request the second network element to access the second data to be stored, and the second network element then sends the second request to the first network element. Correspondingly, the first network element receives the second request from the second network element.
可选的,也可以是第三网元直接向第一网元发送第二请求,请求访问第二待存储数据。相应的,第一网元接收来自第三网元的第二请求。Optionally, the third network element may also directly send a second request to the first network element, requesting access to the second data to be stored. Correspondingly, the first network element receives the second request from the third network element.
此外,在第一网元响应第二请求,允许访问第二待存储数据的情况下,可以是第二网元直接将第二待存储数据发送给第三网元等其他访问第二待存储数据的网元,也可以是第二网元将第二待存储数据经由第一网元转发给第三网元等其他访问第二待存储数据的网元,本申请实施例对此不作限制。In addition, when the first network element responds to the second request and allows access to the second data to be stored, the second network element may directly send the second data to be stored to the third network element or other access to the second data to be stored. The network element may also be a second network element that forwards the second data to be stored to a third network element or other network elements that access the second data to be stored via the first network element. The embodiment of the present application does not limit this.
通过本申请实施例,第一网元通过接收访问第二待存储数据的请求,控制其他网元对第二待存储数据的访问权限,即使将第二待存储数据存储至第二网元中,也可以保障第一网元对第二待存储数据的存储安全性的控制。Through the embodiments of this application, the first network element controls the access rights of other network elements to the second data to be stored by receiving a request to access the second data to be stored. Even if the second data to be stored is stored in the second network element, It can also ensure that the first network element controls the storage security of the second data to be stored.
存储方式二:Storage method two:
在第二消息指示第二网元不允许存储第二待存储数据的情况下,第一网元将第二待存储数据存储至第一网元;或者,第一网元发送第三消息,向第三网元请求存储第二待存储数据,并根据第三网元发送的响应消息确定对第二待存储数据的存储方式,具体是确定向第三网元发送第二待存储数据,还是确定将第二待存储数据存储至第一网元,还是确定发送第四消息,向第四网元请求存储第二待存储数据,可以参照上文根据第二消息确定对第二待存储数据的存储方式的内容,此处不再赘述。When the second message indicates that the second network element is not allowed to store the second data to be stored, the first network element stores the second data to be stored to the first network element; or, the first network element sends a third message to The third network element requests to store the second data to be stored, and determines the storage method of the second data to be stored according to the response message sent by the third network element, specifically whether to determine whether to send the second data to be stored to the third network element or to determine Whether to store the second data to be stored in the first network element or to determine whether to send a fourth message and request the fourth network element to store the second data to be stored, you can refer to the above to determine the storage of the second data to be stored based on the second message. The content of the method will not be repeated here.
可以理解的是,上述图5所示的数据存储方法,仅作为应用于智能驾驶技术领域的可能的方法实施例,用于对确定第二待存储数据的存储方式进行的具体说明。It can be understood that the above-mentioned data storage method shown in FIG. 5 is only a possible method embodiment applied in the field of intelligent driving technology, and is used for a specific explanation of determining the storage method of the second data to be stored.
可选的,上述图5所示的数据存储方法,还可以应用于智能驾驶技术领域之外的其他技术领域,适用于利用多个网元进行存储资源共享,协同完成数据存储的技术方案。Optionally, the data storage method shown in Figure 5 above can also be applied to other technical fields outside the field of intelligent driving technology, and is suitable for technical solutions that use multiple network elements to share storage resources and collaboratively complete data storage.
通过本申请实施例,在接收到的响应消息指示第二网元允许存储第一网元中的第二待存储数据时,第一网元向第二网元发送第二待存储数据,利用多个网元协同完成第二待存储数据的存储,可以提高第二待存储数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。Through the embodiment of the present application, when the received response message indicates that the second network element is allowed to store the second data to be stored in the first network element, the first network element sends the second data to be stored to the second network element, using multiple Network elements collaboratively complete the storage of the second data to be stored, which can improve the stability of the storage of the second data to be stored, improve the overall storage availability of the network elements, and reduce storage costs.
请参阅图6,图6为本申请实施例提供的又一种数据存储方法的流程示意图,或者,也 可以理解为是上述图5中的数据存储方法流程图的变形或补充,具体可以理解为是上述图5中的第一网元所执行的步骤S503关于“根据第二消息确定对第二待存储数据的存储方式”内容的补充说明。本申请实施例中的数据存储方法应用于智能驾驶技术领域,该数据存储方法包括但不限于如下步骤:Please refer to Figure 6. Figure 6 is a schematic flow chart of another data storage method provided by an embodiment of the present application. Alternatively, it can also be understood as a modification or supplement of the flow chart of the data storage method in Figure 5. Specifically, it can be understood as This is a supplementary explanation of the content of step S503 executed by the first network element in Figure 5 above regarding "determining the storage method of the second data to be stored according to the second message." The data storage method in the embodiment of this application is applied in the field of intelligent driving technology. The data storage method includes but is not limited to the following steps:
S601:第一网元向第二网元发送第一消息,相应的,第二网元接收第一网元发送的第一消息。S601: The first network element sends the first message to the second network element. Correspondingly, the second network element receives the first message sent by the first network element.
其中,第一消息用于请求第二网元存储第一网元的第二待存储数据。The first message is used to request the second network element to store the second to-be-stored data of the first network element.
本申请实施例中的第一网元为搭载了可用于执行计算机执行指令的处理器的网元/设备,可以是终端设备(如车载终端)等,具体可以是上述图1所示的车辆系统内的各个网元/设备,或是上述图2所示的存储系统内的各个网元/设备,比如车载网关、智能驾驶域控制器、智能座舱域控制器、整车域控制器、动力域控制器、底盘域控制器等其他ECU,或是上述集成了上述图1所示的车辆系统的网元/设备,或是集成了上述图2所示的存储系统的网元/设备,用于执行本申请实施例中的数据存储方法,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。The first network element in the embodiment of this application is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be the vehicle system shown in Figure 1 above. Each network element/device in the storage system, or each network element/device in the storage system shown in Figure 2 above, such as vehicle gateway, intelligent driving domain controller, intelligent cockpit domain controller, vehicle domain controller, power domain Other ECUs such as controllers and chassis domain controllers, or the above-mentioned network elements/devices that integrate the vehicle system shown in Figure 1, or the above-mentioned network elements/devices that integrate the storage system shown in Figure 2, are used for Implementing the data storage method in the embodiment of the present application and utilizing multiple network elements to collaboratively complete data storage can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
本申请实施例中的第二网元为不同于上述第一网元的网元。第二网元为搭载了可用于执行计算机执行指令的处理器的网元/设备,可以是终端设备(如车载终端)等,具体可以是上述图1所示的车辆系统内的各个网元/设备,或是上述图2所示的存储系统内的各个网元/设备,比如车载网关、智能驾驶域控制器、智能座舱域控制器、整车域控制器、动力域控制器、底盘域控制器等其他ECU,或是上述集成了上述图1所示的车辆系统的网元/设备,或是集成了上述图2所示的存储系统的网元/设备,用于执行本申请实施例中的数据存储方法,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。The second network element in the embodiment of this application is a network element different from the above-mentioned first network element. The second network element is a network element/device equipped with a processor that can be used to execute computer execution instructions. It can be a terminal device (such as a vehicle-mounted terminal), etc. Specifically, it can be each network element/device in the vehicle system shown in Figure 1 above. equipment, or each network element/device in the storage system shown in Figure 2 above, such as vehicle gateway, intelligent driving domain controller, intelligent cockpit domain controller, vehicle domain controller, power domain controller, chassis domain control Other ECUs such as controllers, or the above-mentioned network elements/devices integrated with the vehicle system shown in Figure 1, or the above-mentioned network elements/devices integrated with the storage system shown in Figure 2, are used to execute the embodiments of the present application. The data storage method uses multiple network elements to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
具体的,第一网元向第二网元发送第一消息的可能的场景,可参阅上述图5所示的步骤S501的相关说明,此处不再赘述。Specifically, for a possible scenario in which the first network element sends the first message to the second network element, please refer to the relevant description of step S501 shown in Figure 5 above, which will not be described again here.
S602:第二网元向第一网元发送第二消息,相应的,第一网元接收第二网元发送的第二消息。S602: The second network element sends the second message to the first network element. Correspondingly, the first network element receives the second message sent by the second network element.
其中,第二消息包括了用于指示第二网元是否允许存储第一网元的第二待存储数据的消息,第二消息用于第一网元确定对第二待存储数据的存储方式。The second message includes a message used to indicate whether the second network element is allowed to store the second to-be-stored data of the first network element, and the second message is used by the first network element to determine a storage method for the second to-be-stored data.
S603:第一网元向第二网元发送第二待存储数据,相应的,第二网元接收第一网元发送的第二待存储数据。S603: The first network element sends the second data to be stored to the second network element, and accordingly, the second network element receives the second data to be stored sent by the first network element.
在第二消息指示第二网元允许存储第二待存储数据的情况下,第一网元向第二网元发送第二待存储数据,该第二待存储数据存储至第二网元中。When the second message indicates that the second network element allows storage of the second data to be stored, the first network element sends the second data to be stored to the second network element, and the second data to be stored is stored in the second network element.
S604:第一网元向第三网元发送第三消息,相应的,第三网元接收第一网元发送的第三消息。S604: The first network element sends the third message to the third network element, and accordingly, the third network element receives the third message sent by the first network element.
在第二消息指示第二网元不允许存储第二待存储数据的情况下,第一网元向第三网元发送第三消息。When the second message indicates that the second network element is not allowed to store the second data to be stored, the first network element sends a third message to the third network element.
其中,第三消息用于请求第三网元存储第一网元的第二待存储数据。The third message is used to request the third network element to store the second to-be-stored data of the first network element.
此外,第一网元还将根据第三网元发送的响应消息确定对第二待存储数据的存储方式,具体可以是确定向第三网元发送第二待存储数据,或者,确定将第二待存储数据存储至第一网元,或者确定发送第四消息,向第四网元请求存储第二待存储数据,可以参照上文根据第二消息确定对第二待存储数据的存储方式的内容,此处不再赘述。In addition, the first network element will also determine the storage method of the second data to be stored based on the response message sent by the third network element. Specifically, it may be to determine to send the second data to be stored to the third network element, or to determine to send the second data to be stored. The data to be stored is stored in the first network element, or a fourth message is sent to request the fourth network element to store the second data to be stored. You can refer to the above content to determine the storage method of the second data to be stored based on the second message. , which will not be described again here.
本申请实施例中的第三网元、第四网元为不同于上述第一网元、第二网元的网元,关于第三网元和第四网元的具体说明,可以参阅上文对第一网元和第二网元的描述,此处不再赘述。The third network element and the fourth network element in the embodiment of the present application are network elements different from the above-mentioned first network element and the second network element. For specific descriptions of the third network element and the fourth network element, please refer to the above. The description of the first network element and the second network element will not be described again here.
S605:第一网元将第二待存储数据存储至第一网元中。S605: The first network element stores the second data to be stored in the first network element.
在第二消息指示第二网元不允许存储第二待存储数据的情况下,第一网元将第二待存储数据存储至第一网元。When the second message indicates that the second network element is not allowed to store the second data to be stored, the first network element stores the second data to be stored in the first network element.
通过本申请实施例,在接收到的响应消息指示第二网元允许存储第一网元中的第二待存储数据时,第一网元向第二网元发送第二待存储数据,利用多个网元协同完成第二待存储数据的存储,可以提高第二待存储数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。Through the embodiment of the present application, when the received response message indicates that the second network element is allowed to store the second data to be stored in the first network element, the first network element sends the second data to be stored to the second network element, using multiple Network elements collaboratively complete the storage of the second data to be stored, which can improve the stability of the storage of the second data to be stored, improve the overall storage availability of the network elements, and reduce storage costs.
上述详细阐述了本申请实施例的方法,下面提供用于实现本申请实施例中任一种方法的装置,例如,提供一种装置包括用以实现以上任一种方法中网元/设备所执行的各步骤的单元(或手段)。The methods of the embodiments of the present application are described in detail above. The following provides a device for implementing any method in the embodiment of the present application. For example, a device is provided that includes a device for implementing any of the above methods. The units (or means) of each step.
请参阅图7,图7为本申请实施例提供的一种数据存储装置的结构示意图。Please refer to FIG. 7 , which is a schematic structural diagram of a data storage device provided by an embodiment of the present application.
如图7所示,该数据存储装置70可以包括收发单元701以及处理单元702。收发单元701以及处理单元702可以是软件,也可以是硬件,或者是软件和硬件结合。As shown in FIG. 7 , the data storage device 70 may include a
其中,收发单元701可以实现发送功能和/或接收功能,收发单元701也可以描述为通信单元。收发单元701还可以是集成了获取单元和发送单元的单元,其中,获取单元用于实现接收功能,发送单元用于实现发送功能。可选的,收发单元701可以用于接收其他装置发送的信息,还可以用于向其他装置发送信息。Among them, the
在一种可能的设计中,该数据存储装置70可对应于上述图3、图4、图5、图6所示的方法实施例中的第一网元,如该数据存储装置70可以是第一网元,也可以是第一网元中的芯片。该数据存储装置70可以包括用于执行上述图3、图4、图5、图6所示的方法实施例中由第一网元所执行的操作的单元,并且,该数据存储装置70中的各单元分别为了实现上述图3、图4、图5、图6所示的方法实施例中由第一网元所执行的操作。其中,各个单元的描述如下:In a possible design, the data storage device 70 may correspond to the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6. For example, the data storage device 70 may be the first network element. A network element can also be a chip in the first network element. The data storage device 70 may include a unit for performing operations performed by the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6, and the data storage device 70 Each unit is respectively intended to implement the operations performed by the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6. Among them, the descriptions of each unit are as follows:
处理单元702,用于获取第一待存储数据;
所述处理单元702,还用于根据所述第一待存储数据的属性和所述数据存储装置的存储状态中的至少一项,确定所述第一待存储数据的存储方式。The
在一种可能的实施方式中,该装置还包括:In a possible implementation, the device further includes:
收发单元701,用于在所述数据存储装置的存储状态为第一状态的情况下,将所述第一待存储数据传输至第二网元,其中,所述第一状态表征所述数据存储装置的可用存储资源的大小满足第一条件,或所述数据存储装置的存储资源利用率满足第二条件;或者,
所述处理单元702,具体用于在所述数据存储装置的存储状态为第二状态的情况下,将所述第一待存储数据存储至所述数据存储装置,其中,所述第二状态表征所述数据存储装置的可用存储资源的大小不满足所述第一条件,或所述数据存储装置的存储资源利用率不满足所述第二条件。The
在一种可能的实施方式中,所述收发单元701,还用于在所述第一待存储数据为第一类型数据的情况下,将所述第一待存储数据传输至第二网元;或者,In a possible implementation, the
所述处理单元702,还用于在所述第一待存储数据为第二类型数据的情况下,将所述第 一待存储数据存储至所述数据存储装置;The
其中,所述第一类型数据的属性和所述第二类型数据的属性满足第三条件。Wherein, the attributes of the first type data and the attributes of the second type data satisfy the third condition.
在一种可能的实施方式中,所述收发单元701,还用于在所述第一待存储数据为第一类型数据且所述数据存储装置的存储状态为第一状态的情况下,将所述第一待存储数据传输至第二网元;或者,In a possible implementation, the
所述处理单元702,还用于在所述第一待存储数据为第二类型数据且所述数据存储装置的存储状态为第二状态的情况下,将所述第一待存储数据存储至所述数据存储装置;The
其中,所述第一状态表征所述数据存储装置的可用存储资源的大小满足第一条件,或所述数据存储装置的存储资源利用率满足第二条件;所述第二状态表征所述数据存储装置的可用存储资源的大小不满足所述第一条件,或所述数据存储装置的存储资源利用率不满足所述第二条件;所述第一类型数据的属性和所述第二类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the data storage device meets the first condition, or the storage resource utilization of the data storage device meets the second condition; the second state represents that the data storage The size of the available storage resources of the device does not meet the first condition, or the storage resource utilization of the data storage device does not meet the second condition; the attributes of the first type of data and the attributes of the second type of data The attribute satisfies the third condition.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第一待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
在一种可能的实施方式中,所述处理单元702,还用于获取所述第二网元的信息,所述第二网元的信息用于唯一标识所述第二网元。In a possible implementation, the
在一种可能的实施方式中,所述第二网元的信息包括以下至少一项:所述第二网元的标识、所述第二网元的地址。In a possible implementation, the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
在一种可能的实施方式中,所述第二网元的信息通过以下任一项方式获取:In a possible implementation, the information of the second network element is obtained by any of the following methods:
广播消息,或者,预先配置,或者,点对点发送。Broadcast messages, either pre-configured or sent peer-to-peer.
在一种可能的实施方式中,在所述收发单元701将所述第一待存储数据传输至第二网元的情况下,所述第二网元的存储状态为第三状态,其中,所述第三状态表征所述第二网元的可用存储资源的大小满足第四条件,或所述第二网元的存储资源利用率满足第五条件。In a possible implementation, when the
在一种可能的实施方式中,所述收发单元701,还用于发送第一信息,所述第一信息包括所述数据存储装置的存储状态的信息。In a possible implementation, the
在一种可能的实施方式中,所述第一信息用于指示所述数据存储装置的可用存储资源的大小,或所述数据存储装置的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the data storage device, or the size of storage resource utilization of the data storage device.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存储数据传输至所述数据存储装置。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the data storage device.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述数据存储装置的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the data storage device.
在一种可能的实施方式中,所述收发单元701,还用于接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息,所述第二信息用于所述数据存储装置确定所述第一待存储数据的存储方式和/或所述第一待存储数据的存储网元。In a possible implementation, the
在一种可能的实施方式中,所述收发单元701,还用于接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息;In a possible implementation, the
所述处理单元702,还用于根据所述第二信息,确定将所述第一待存储数据存储至所述至少一个第三网元中。The
在一种可能的实施方式中,所述收发单元701,还用于在所述数据存储装置将所述第一待存储数据传输至所述第二网元的情况下,发送第三信息,所述第三信息用于指示所述第一待存储数据对应的存储网元或所述第一待存储数据未存储于所述第一网元。In a possible implementation, the
在一种可能的实施方式中,所述第三信息通过以下任一项方式发送:In a possible implementation, the third information is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在一种可能的实施方式中,所述收发单元701,还用于在将所述第一待存储数据传输至所述第二网元的情况下,接收第一请求,所述第一请求用于请求访问所述第一待存储数据。In a possible implementation, the
在另一种可能的设计中,该数据存储装置70可对应于上述图5、图6所示的方法实施例中的第二网元,如该数据存储装置70可以是第二网元,也可以是第二网元中的芯片。该数据存储装置70可以包括用于执行上述图5、图6所示的方法实施例中由第二网元所执行的操作的单元,并且,该数据存储装置70中的各单元分别为了实现上述图5、图6所示的方法实施例中由第二网元所执行的操作。其中,各个单元的描述如下:In another possible design, the data storage device 70 may correspond to the second network element in the method embodiment shown in FIG. 5 and FIG. 6 , for example, the data storage device 70 may be the second network element, or It can be a chip in the second network element. The data storage device 70 may include a unit for performing the operations performed by the second network element in the method embodiments shown in FIG. 5 and FIG. 6 , and each unit in the data storage device 70 is respectively used to implement the above. Operations performed by the second network element in the method embodiments shown in FIG. 5 and FIG. 6 . Among them, the descriptions of each unit are as follows:
收发单元701,用于接收第一网元发送的第一待存储数据,其中,所述第一待存储数据为根据所述第一待存储数据的属性和所述第一网元的存储状态中的至少一项确定由所述收发单元701接收的数据;The
处理单元702,用于存储所述第一待存储数据。The
在一种可能的实施方式中,所述第一待存储数据为在所述第一网元的存储状态为第一状态的情况下确定由所述收发单元701接收的数据,其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件。In a possible implementation, the first data to be stored is data determined to be received by the
在一种可能的实施方式中,所述第一待存储数据为在所述第一待存储数据为第一类型数据的情况下确定由所述收发单元701接收的数据,其中,所述第一类型数据的属性满足第三条件。In a possible implementation, the first data to be stored is data determined to be received by the
在一种可能的实施方式中,所述第一待存储数据为在所述第一待存储数据为第一类型数据且所述第一网元的存储状态为第一状态的情况下确定由所述收发单元701接收的数据;In a possible implementation, the first data to be stored is determined by the first data when the first data to be stored is the first type of data and the storage state of the first network element is the first state. The data received by the
其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件;所述第一类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第一待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attributes of the first data to be stored.
在一种可能的实施方式中,所述收发单元701,还用于发送所述数据存储装置的信息,所述数据存储装置的信息用于唯一标识所述数据存储装置。In a possible implementation, the
在一种可能的实施方式中,所述数据存储装置的信息包括以下至少一项:所述数据存储装置的标识、所述数据存储装置的地址。In a possible implementation, the information about the data storage device includes at least one of the following: an identification of the data storage device and an address of the data storage device.
在一种可能的实施方式中,所述数据存储装置的信息通过以下任一项方式发送:In a possible implementation, the information of the data storage device is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在一种可能的实施方式中,所述第一待存储数据为在所述数据存储装置的存储状态为第三状态的情况下确定由所述数据存储装置接收的数据,其中,所述第三状态表征所述数据存储装置的可用存储资源的大小满足第四条件,或所述数据存储装置的存储资源利用率满足第五条件。In a possible implementation, the first data to be stored is data determined to be received by the data storage device when the storage state of the data storage device is a third state, wherein the third The status represents that the size of the available storage resources of the data storage device satisfies the fourth condition, or the storage resource utilization of the data storage device satisfies the fifth condition.
在一种可能的实施方式中,所述收发单元701,还用于接收第一信息,所述第一信息包括所述第一网元的存储状态的信息。In a possible implementation, the
在一种可能的实施方式中,所述第一信息用于指示所述第一网元的可用存储资源的大小,或所述第一网元的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存 储数据传输至所述第一网元。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述第一网元的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the first network element.
在一种可能的实施方式中,所述收发单元701,还用于发送第二信息,所述第二信息包括所述数据存储装置的存储状态的信息,所述第二信息用于所述第一网元确定所述第一待存储数据的存储方式和/或所述第一待存储数据的存储网元。In a possible implementation, the
在一种可能的实施方式中,所述收发单元701,还用于在所述第一网元将所述第一待存储数据传输至所述数据存储装置的情况下,接收第三信息,所述第三信息用于指示所述第一待存储数据对应的存储网元或所述第一待存储数据未存储于所述第一网元。In a possible implementation, the
在一种可能的实施方式中,所述第三信息通过以下任一项方式接收:In a possible implementation, the third information is received in any of the following ways:
广播消息,或者,点对点接收。Broadcast messages, or receive them peer-to-peer.
在一种可能的实施方式中,所述收发单元701,还用于在接收所述第一网元发送的所述第一待存储数据的情况下,发送第一请求,所述第一请求用于请求访问所述第一待存储数据。In a possible implementation, the
在又一种可能的设计中,该数据存储装置70可对应于上述图3、图4、图5、图6所示的方法实施例中的第一网元,如该数据存储装置70可以是第一网元,也可以是第一网元中的芯片。该数据存储装置70可以包括用于执行上述图3、图4、图5、图6所示的方法实施例中由第一网元所执行的操作的单元,并且,该数据存储装置70中的各单元分别为了实现上述图3、图4、图5、图6所示的方法实施例中由第一网元所执行的操作。其中,各个单元的描述如下:In another possible design, the data storage device 70 may correspond to the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6. For example, the data storage device 70 may be The first network element may also be a chip in the first network element. The data storage device 70 may include a unit for performing operations performed by the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6, and the data storage device 70 Each unit is respectively intended to implement the operations performed by the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6. Among them, the descriptions of each unit are as follows:
收发单元701,用于发送第一消息,所述第一消息用于请求第二网元存储第二待存储数据,所述第二待存储数据为所述数据存储装置的数据;The
所述收发单元701,还用于接收第二消息;The
处理单元702,用于根据所述第二消息,确定对所述第二待存储数据的存储方式。The
在一种可能的实施方式中,所述收发单元701,还用于在所述第二消息指示所述第二网元允许存储所述第二待存储数据的情况下,向所述第二网元发送所述第二待存储数据;或者,In a possible implementation, the
所述处理单元702,具体用于在所述第二消息指示所述第二网元不允许存储所述第二待存储数据的情况下,将所述第二待存储数据存储至所述数据存储装置,或者,所述收发单元,还用于发送第三消息,所述第三消息用于请求第三网元存储所述第二待存储数据。The
在一种可能的实施方式中,所述处理单元702,还用于根据所述第二待存储数据的属性和所述数据存储装置的存储状态中的至少一项,确定发送所述第一消息。In a possible implementation, the
在一种可能的实施方式中,所述处理单元702,还用于在所述数据存储装置的存储状态为第一状态的情况下,确定发送所述第一消息,其中,所述第一状态表征所述数据存储装置的可用存储资源的大小满足第一条件,或所述数据存储装置的存储资源利用率满足第二条件。In a possible implementation, the
在一种可能的实施方式中,所述处理单元702,还用于在所述第二待存储数据为第一类型数据的情况下,确定发送所述第一消息,其中,所述第一类型数据的属性满足第三条件。In a possible implementation, the
在一种可能的实施方式中,所述处理单元702,还用于在所述第二待存储数据为第一类型数据且所述数据存储装置的存储状态为第一状态的情况下,确定发送所述第一消息;In a possible implementation, the
其中,所述第一状态表征所述数据存储装置的可用存储资源的大小满足第一条件,或所述数据存储装置的存储资源利用率满足第二条件;所述第一类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the data storage device satisfies the first condition, or the storage resource utilization rate of the data storage device satisfies the second condition; the attributes of the first type of data satisfy the second condition. Three conditions.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第二待 存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
在一种可能的实施方式中,所述处理单元702,还用于获取所述第二网元的信息,所述第二网元的信息用于唯一标识所述第二网元。In a possible implementation, the
在一种可能的实施方式中,所述第二网元的信息包括以下至少一项:所述第二网元的标识、所述第二网元的地址。In a possible implementation, the information about the second network element includes at least one of the following: an identifier of the second network element and an address of the second network element.
在一种可能的实施方式中,所述第二网元的信息通过以下任一项方式获取:In a possible implementation, the information of the second network element is obtained by any of the following methods:
广播消息,或者,预先配置,或者,点对点发送。Broadcast messages, either pre-configured or sent peer-to-peer.
在一种可能的实施方式中,所述处理单元702,还用于根据所述第二网元的存储状态,确定发送所述第一消息。In a possible implementation, the
在一种可能的实施方式中,所述处理单元702,还用于在所述数据存储装置的存储状态为所述第一状态,且所述第二网元的存储状态为第三状态的情况下,确定发送所述第一消息,其中,所述第三状态表征所述第二网元的可用存储资源的大小满足第四条件,或所述第二网元的存储资源利用率满足第五条件。In a possible implementation, the
在一种可能的实施方式中,所述收发单元701,还用于发送第一信息,所述第一信息包括所述数据存储装置的存储状态的信息。In a possible implementation, the
在一种可能的实施方式中,所述第一信息用于指示所述数据存储装置的可用存储资源的大小,或所述数据存储装置的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the data storage device, or the size of storage resource utilization of the data storage device.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存储数据传输至所述数据存储装置。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the data storage device.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述数据存储装置的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the data storage device.
在一种可能的实施方式中,所述收发单元701,还用于接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息,所述第二信息用于所述数据存储装置确定发送所述第一消息。In a possible implementation, the
在一种可能的实施方式中,所述收发单元701,还用于接收第二信息,所述第二信息包括至少一个第三网元的存储状态的信息;In a possible implementation, the
所述处理单元702,还用于根据所述第二信息,确定发送所述第一消息。The
在一种可能的实施方式中,所述收发单元701,还用于在所述数据存储装置向所述第二网元发送所述第二待存储数据的情况下,发送第四信息,所述第四信息用于指示所述第二待存储数据对应的存储网元或所述第二待存储数据未存储于所述数据存储装置。In a possible implementation, the
在一种可能的实施方式中,在一种可能的实施方式中,所述第四信息通过以下任一项方式发送:In a possible implementation, the fourth information is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在一种可能的实施方式中,所述收发单元701,还用于在所述数据存储装置向所述第二网元发送所述第二待存储数据的情况下,接收第二请求,所述第二请求用于请求访问所述第二待存储数据。In a possible implementation, the
在又一种可能的设计中,该数据存储装置70可对应于上述图5、图6所示的方法实施例中的第二网元,如该数据存储装置70可以是第二网元,也可以是第二网元中的芯片。该数据存储装置70可以包括用于执行上述图5、图6所示的方法实施例中由第二网元所执行的操作的单元,并且,该数据存储装置70中的各单元分别为了实现上述图5、图6所示的方法实施例中由第二网元所执行的操作。其中,各个单元的描述如下:In another possible design, the data storage device 70 may correspond to the second network element in the method embodiment shown in FIG. 5 and FIG. 6 , for example, the data storage device 70 may be the second network element, or It can be a chip in the second network element. The data storage device 70 may include units for performing operations performed by the second network element in the method embodiments shown in FIG. 5 and FIG. 6 , and each unit in the data storage device 70 is configured to implement the above-mentioned operations. Operations performed by the second network element in the method embodiments shown in FIG. 5 and FIG. 6 . Among them, the descriptions of each unit are as follows:
收发单元701,用于接收第一消息,所述第一消息用于请求所述数据存储装置存储第二待存储数据,所述第二待存储数据为第一网元的数据;
所述收发单元701,还用于发送第二消息,所述第二消息用于所述第一网元确定对所述第二待存储数据的存储方式。The
在一种可能的实施方式中,所述收发单元701,还用于在所述第二消息指示所述数据存储装置允许存储所述第二待存储数据的情况下,接收所述第一网元发送的所述第二待存储数据;或者,In a possible implementation, the
在所述第二消息指示所述数据存储装置不允许存储所述第二待存储数据的情况下,所述第二消息用于所述第一网元确定将所述第二待存储数据存储至所述第一网元,或者,发送第三消息,所述第三消息用于请求第三网元存储所述第二待存储数据。In the case where the second message indicates that the data storage device is not allowed to store the second data to be stored, the second message is used by the first network element to determine to store the second data to be stored in The first network element may, alternatively, send a third message, where the third message is used to request the third network element to store the second data to be stored.
在一种可能的实施方式中,所述第一消息为根据所述第二待存储数据的属性和所述第一网元的存储状态中的至少一项确定由所述收发单元701接收的消息。In a possible implementation, the first message is a message received by the
在一种可能的实施方式中,所述第一消息为在所述第一网元的存储状态为第一状态的情况下确定由所述收发单元701接收的消息,其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件。In a possible implementation, the first message is a message determined to be received by the
在一种可能的实施方式中,所述第一消息为在所述第二待存储数据为第一类型数据的情况下确定由所述收发单元701接收的消息,其中,所述第一类型数据的属性满足第三条件。In a possible implementation, the first message is a message determined to be received by the
在一种可能的实施方式中,所述第一消息为在所述第二待存储数据为第一类型数据且所述第一网元的存储状态为第一状态的情况下确定由所述收发单元701接收的消息;In a possible implementation, the first message is determined by the transceiver when the second data to be stored is the first type of data and the storage state of the first network element is the first state. Message received by
其中,所述第一状态表征所述第一网元的可用存储资源的大小满足第一条件,或所述第一网元的存储资源利用率满足第二条件;所述第一类型数据的属性满足第三条件。Wherein, the first state represents that the size of the available storage resources of the first network element satisfies the first condition, or the storage resource utilization of the first network element satisfies the second condition; the attributes of the first type of data satisfy the third condition.
在一种可能的实施方式中,所述第一条件包括可用存储资源的大小小于第一阈值,所述第二条件包括存储资源利用率小于第二阈值,所述第一阈值和/或所述第二阈值与所述第二待存储数据的属性相关。In a possible implementation, the first condition includes that the size of available storage resources is less than a first threshold, the second condition includes that storage resource utilization is less than a second threshold, the first threshold and/or the The second threshold is related to the attribute of the second data to be stored.
在一种可能的实施方式中,所述收发单元701,还用于发送所述数据存储装置的信息,所述数据存储装置的信息用于唯一标识所述数据存储装置。In a possible implementation, the
在一种可能的实施方式中,所述数据存储装置的信息包括以下至少一项:所述数据存储装置的标识、所述数据存储装置的地址。In a possible implementation, the information about the data storage device includes at least one of the following: an identification of the data storage device and an address of the data storage device.
在一种可能的实施方式中,所述数据存储装置的信息通过以下任一项方式发送:In a possible implementation, the information of the data storage device is sent in any of the following ways:
广播消息,或者,点对点发送。Broadcast messages, alternatively, sent point-to-point.
在一种可能的实施方式中,所述第一消息为根据所述数据存储装置的存储状态确定由所述收发单元701接收的消息。In a possible implementation, the first message is a message received by the
在一种可能的实施方式中,所述第一消息为在所述第一网元的存储状态为所述第一状态,且所述数据存储装置的存储状态为第三状态的情况下确定由所述收发单元701接收的消息,其中,所述第三状态表征所述数据存储装置的可用存储资源的大小满足第四条件,或所述数据存储装置的存储资源利用率满足第五条件。In a possible implementation, the first message is determined when the storage state of the first network element is the first state and the storage state of the data storage device is the third state. In the message received by the
在一种可能的实施方式中,所述收发单元701,还用于接收第一信息,所述第一信息包括所述第一网元的存储状态的信息。In a possible implementation, the
在一种可能的实施方式中,所述第一信息用于指示所述第一网元的可用存储资源的大小,或所述第一网元的存储资源利用率的大小。In a possible implementation, the first information is used to indicate the size of available storage resources of the first network element, or the size of storage resource utilization of the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否将所述第三网元的待存 储数据传输至所述第一网元。In a possible implementation, the first information is used by the third network element to select whether to transmit the data to be stored of the third network element to the first network element.
在一种可能的实施方式中,所述第一信息用于第三网元选择是否存储来自所述第一网元的待存储数据。In a possible implementation, the first information is used by the third network element to select whether to store the data to be stored from the first network element.
在一种可能的实施方式中,所述收发单元701,还用于发送第二信息,所述第二信息包括所述数据存储装置的存储状态的信息,所述第二信息用于所述第一网元确定发送所述第一消息。In a possible implementation, the
在一种可能的实施方式中,所述收发单元701,还用于在所述第一网元向所述数据存储装置发送所述第二待存储数据的情况下,接收第四信息,所述第四信息用于指示所述第二待存储数据对应的存储网元或所述第二待存储数据未存储于所述第一网元。In a possible implementation, the
在一种可能的实施方式中,所述第四信息通过以下任一项方式接收:In a possible implementation, the fourth information is received in any of the following ways:
广播消息,或者,点对点接收。Broadcast messages, or receive them peer-to-peer.
在一种可能的实施方式中,所述收发单元701,还用于在所述第一网元向所述数据存储装置发送所述第二待存储数据的情况下,发送第二请求,所述第二请求用于请求访问所述第二待存储数据。In a possible implementation, the
根据本申请实施例,图7所示的装置中的各个单元可以分别或全部合并为一个或若干个另外的单元来构成,或者其中的某个(些)单元还可以再拆分为功能上更小的多个单元来构成,这可以实现同样的操作,而不影响本申请的实施例的技术效果的实现。上述单元是基于逻辑功能划分的,在实际应用中,一个单元的功能也可以由多个单元来实现,或者多个单元的功能由一个单元实现。在本申请的其它实施例中,基于电子设备也可以包括其它单元,在实际应用中,这些功能也可以由其它单元协助实现,并且可以由多个单元协作实现。According to the embodiment of the present application, each unit in the device shown in Figure 7 can be separately or entirely combined into one or several additional units, or one (some) of the units can be further split into functionally more advanced units. It is composed of multiple small units, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above units are divided based on logical functions. In practical applications, the function of one unit can also be realized by multiple units, or the functions of multiple units can be realized by one unit. In other embodiments of the present application, the electronic device may also include other units. In practical applications, these functions may also be implemented with the assistance of other units, and may be implemented by multiple units in cooperation.
需要说明的是,各个单元的实现还可以对应参照上述图3、图4、图5、图6所示的方法实施例的相应描述。It should be noted that the implementation of each unit may also refer to the corresponding descriptions of the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6.
在图7所描述的数据存储装置70中,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。In the data storage device 70 depicted in FIG. 7 , multiple network elements are used to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of network elements, and reduce storage costs.
请参阅图8,图8为本申请实施例提供的一种电子设备80的结构示意图。该电子设备80可以包括存储器801、处理器802。进一步可选的,还可以包含通信接口803以及总线804,其中,存储器801、处理器802以及通信接口803通过总线804实现彼此之间的通信连接。通信接口803用于与上述数据存储装置70进行数据交互。Please refer to FIG. 8 , which is a schematic structural diagram of an electronic device 80 provided by an embodiment of the present application. The electronic device 80 may include a
其中,存储器801用于提供存储空间,存储空间中可以存储操作系统和计算机程序等数据。存储器801包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM)。Among them, the
处理器802是进行算术运算和逻辑运算的模块,可以是中央处理器(central processing unit,CPU)、显卡处理器(graphics processing unit,GPU)或微处理器(microprocessor unit,MPU)等处理模块中的一种或者多种的组合。The
在一种可能的设计中,该电子设备80可对应于上述图3、图4、图5、图6所示的方法实施例中的第一网元,如该电子设备80可以是第一网元,也可以是第一网元中的芯片。该电子设备80可以包括用于执行上述方法实施例中由第一网元所执行的操作的部件,并且,该电子设备80中的各部件分别为了实现上述方法实施例中由第一网元所执行的操作,处理器802调用存储器801中存储的计算机程序,以执行上述图3、图4、图5、图6所示的数据存储方 法,具体可以如下所示:In a possible design, the electronic device 80 may correspond to the first network element in the method embodiments shown in FIGS. 3, 4, 5, and 6. For example, the electronic device 80 may be the first network element. element, or it can be the chip in the first network element. The electronic device 80 may include components for performing the operations performed by the first network element in the above method embodiment, and each component in the electronic device 80 is respectively used to implement the operations performed by the first network element in the above method embodiment. To perform the operation, the
第一网元获取第一待存储数据;The first network element obtains the first data to be stored;
所述第一网元根据所述第一待存储数据的属性和所述第一网元的存储状态中的至少一项,确定所述第一待存储数据的存储方式。The first network element determines a storage manner of the first data to be stored based on at least one of an attribute of the first data to be stored and a storage status of the first network element.
上述处理器802执行方法的具体内容可参阅上述图3、图4、图5、图6,此处不再赘述。For the specific content of the method executed by the
相应的,处理器802调用存储器801中存储的计算机程序,还可以用于执行上述图7所示的数据存储装置70中的各个单元所执行的方法步骤,其具体内容可参阅上述图7,此处不再赘述。Correspondingly, the
在另一种可能的设计中,该电子设备80可对应于上述图5、图6所示的方法实施例中的第二网元,如该电子设备80可以是第二网元,也可以是第二网元中的芯片。该电子设备80可以包括用于执行上述方法实施例中由第二网元所执行的操作的部件,并且,该电子设备80中的各部件分别为了实现上述方法实施例中由第二网元所执行的操作,处理器802调用存储器801中存储的计算机程序,以执行上述图5、图6所示的数据存储方法,具体可以如下所示:In another possible design, the electronic device 80 may correspond to the second network element in the method embodiment shown in FIG. 5 and FIG. 6 , for example, the electronic device 80 may be the second network element, or it may be The chip in the second network element. The electronic device 80 may include components for performing the operations performed by the second network element in the above method embodiment, and each component in the electronic device 80 is respectively used to implement the operations performed by the second network element in the above method embodiment. To perform the operation, the
第二网元接收第一网元发送的第一待存储数据,其中,所述第一待存储数据为根据所述第一待存储数据的属性和所述第一网元的存储状态中的至少一项确定由所述第二网元接收的数据;The second network element receives the first data to be stored sent by the first network element, wherein the first data to be stored is based on at least one of the attributes of the first data to be stored and the storage status of the first network element. One item determines the data received by the second network element;
所述第二网元存储所述第一待存储数据。The second network element stores the first data to be stored.
上述处理器802执行方法的具体内容可参阅上述图5、图6,此处不再赘述。For the specific content of the method executed by the
相应的,处理器802调用存储器801中存储的计算机程序,还可以用于执行上述图7所示的数据存储装置70中的各个单元所执行的方法步骤,其具体内容可参阅上述图7,此处不再赘述。Correspondingly, the
在又一种可能的设计中,该电子设备80可对应于上述图3、图4、图5、图6所示的方法实施例中的第一网元,如该电子设备80可以是第一网元,也可以是第一网元中的芯片。该电子设备80可以包括用于执行上述方法实施例中由第一网元所执行的操作的部件,并且,该电子设备80中的各部件分别为了实现上述方法实施例中由第一网元所执行的操作,处理器802调用存储器801中存储的计算机程序,以执行上述图3、图4、图5、图6所示的数据存储方法,具体可以如下所示:In another possible design, the electronic device 80 may correspond to the first network element in the method embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6. For example, the electronic device 80 may be the first network element. The network element may also be a chip in the first network element. The electronic device 80 may include components for performing the operations performed by the first network element in the above method embodiment, and each component in the electronic device 80 is respectively used to implement the operations performed by the first network element in the above method embodiment. To perform the operation, the
第一网元发送第一消息,所述第一消息用于请求第二网元存储第二待存储数据,所述第二待存储数据为所述第一网元的数据;The first network element sends a first message, the first message is used to request the second network element to store second data to be stored, and the second data to be stored is the data of the first network element;
所述第一网元接收第二消息;The first network element receives the second message;
所述第一网元根据所述第二消息,确定对所述第二待存储数据的存储方式。The first network element determines a storage method for the second data to be stored based on the second message.
上述处理器802执行方法的具体内容可参阅上述图3、图4、图5、图6,此处不再赘述。For the specific content of the method executed by the
相应的,处理器802调用存储器801中存储的计算机程序,还可以用于执行上述图7所示的数据存储装置70中的各个单元所执行的方法步骤,其具体内容可参阅上述图7,此处不再赘述。Correspondingly, the
在又一种可能的设计中,该电子设备80可对应于上述图5、图6所示的方法实施例中的第二网元,如该电子设备80可以是第二网元,也可以是第二网元中的芯片。该电子设备80可以包括用于执行上述方法实施例中由第二网元所执行的操作的部件,并且,该电子设备80中的各部件分别为了实现上述方法实施例中由第二网元所执行的操作,处理器802调用存储器801中存储的计算机程序,以执行上述图5、图6所示的数据存储方法,具体可以如下所 示:In another possible design, the electronic device 80 may correspond to the second network element in the method embodiment shown in FIG. 5 and FIG. 6 , for example, the electronic device 80 may be the second network element or the second network element. The chip in the second network element. The electronic device 80 may include components for performing the operations performed by the second network element in the above method embodiment, and each component in the electronic device 80 is respectively used to implement the operations performed by the second network element in the above method embodiment. To perform the operation, the
第二网元接收第一消息,所述第一消息用于请求所述第二网元存储第二待存储数据,所述第二待存储数据为第一网元的数据;The second network element receives a first message, the first message is used to request the second network element to store second data to be stored, and the second data to be stored is the data of the first network element;
所述第二网元发送第二消息,所述第二消息用于所述第一网元确定对所述第二待存储数据的存储方式。The second network element sends a second message, and the second message is used by the first network element to determine a storage method for the second data to be stored.
上述处理器802执行方法的具体内容可参阅上述图5、图6,此处不再赘述。For the specific content of the method executed by the
相应的,处理器802调用存储器801中存储的计算机程序,还可以用于执行上述图7所示的数据存储装置70中的各个单元所执行的方法步骤,其具体内容可参阅上述图7,此处不再赘述。Correspondingly, the
在图8所描述的电子设备80中,利用多个网元协同完成数据存储,可以提高数据存储的稳定性,且提高了网元整体的存储可用性,降低了存储成本。In the electronic device 80 described in FIG. 8 , multiple network elements are used to collaboratively complete data storage, which can improve the stability of data storage, improve the overall storage availability of the network elements, and reduce storage costs.
对于电子设备可以是芯片或芯片系统的情况,可参阅图9所示的芯片的结构示意图。For the case where the electronic device may be a chip or a chip system, refer to the schematic structural diagram of the chip shown in FIG. 9 .
如图9所示,芯片90包括处理器901和接口902。其中,处理器901的数量可以是一个或多个,接口902的数量可以是多个。需要说明的,处理器901、接口902各自对应的功能既可以通过硬件设计实现,也可以通过软件设计来实现,还可以通过软硬件结合的方式来实现,这里不作限制。As shown in Figure 9, the chip 90 includes a processor 901 and an interface 902. The number of processors 901 may be one or more, and the number of interfaces 902 may be multiple. It should be noted that the corresponding functions of the processor 901 and the interface 902 can be realized through hardware design, software design, or a combination of software and hardware, which are not limited here.
可选的,芯片90还可以包括存储器903,存储器903用于存储必要的程序指令和数据。Optionally, the chip 90 may also include a memory 903, which is used to store necessary program instructions and data.
本申请中,处理器901可用于从存储器903中调用本申请的一个或多个实施例提供的数据存储方法在电子设备的实现程序,并执行该程序包含的指令。接口902可用于输出处理器901的执行结果。本申请中,接口902可具体用于输出处理器901的各个消息或信息。In this application, the processor 901 can be used to call the implementation program of the data storage method provided by one or more embodiments of this application in the electronic device from the memory 903, and execute the instructions contained in the program. The interface 902 can be used to output execution results of the processor 901. In this application, the interface 902 may be specifically used to output various messages or information from the processor 901.
关于本申请的一个或多个实施例提供的数据存储方法可参考上述图3、图4、图5以及图6所示各个实施例,这里不再赘述。Regarding the data storage method provided by one or more embodiments of the present application, reference may be made to the embodiments shown in FIG. 3, FIG. 4, FIG. 5, and FIG. 6, which will not be described again here.
本申请实施例中的处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor in the embodiment of this application can be a central processing unit (Central Processing Unit, CPU). The processor can also be other general-purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit (ASIC), off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
本申请实施例中的存储器用于提供存储空间,存储空间中可以存储操作系统和计算机程序等数据。存储器包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM)。The memory in the embodiment of the present application is used to provide storage space, and data such as operating systems and computer programs can be stored in the storage space. Memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable Read-only memory (compact disc read-only memory, CD-ROM).
根据本申请实施例提供的方法,本申请实施例还提供一种计算机可读存储介质,上述计算机可读存储介质中存储有计算机程序,当上述计算机程序在一个或多个处理器上运行时,可以实现上述图3、图4、图5以及图6所示的方法。According to the method provided by the embodiment of the present application, the embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the above-mentioned computer program is run on one or more processors, The methods shown in Figure 3, Figure 4, Figure 5 and Figure 6 can be implemented.
根据本申请实施例提供的方法,本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括计算机程序,当上述计算机程序在处理器上运行时,可以实现上述图3、图4、图5以及图6所示的方法。According to the method provided by the embodiment of the present application, the embodiment of the present application also provides a computer program product. The above-mentioned computer program product includes a computer program. When the above-mentioned computer program is run on a processor, the above-mentioned Figures 3, 4 and 4 can be realized. 5 and the method shown in Figure 6.
本申请实施例提供一种车端,该车端包括至少一个如上述数据存储装置70或电子设备80或芯片90。The embodiment of the present application provides a vehicle terminal, which includes at least one data storage device 70 or electronic device 80 or chip 90 as described above.
本申请实施例还提供了一种系统,该系统包括车端以及至少一个如上述数据存储装置70或电子设备80或芯片90,用于执行上述图3、图4、图5以及图6任一实施例中相应网元执 行的步骤。The embodiment of the present application also provides a system, which includes a vehicle terminal and at least one data storage device 70 or electronic device 80 or chip 90 as described above, for executing any one of the above-mentioned Figures 3, 4, 5 and 6. Steps performed by corresponding network elements in the embodiment.
本申请实施例还提供了一种系统,该系统包括第一网元和第二网元;其中,该第一网元用于执行上述图3、图4、图5以及图6任一实施例中第一网元执行的步骤,该第二网元用于执行上述图5以及图6任一实施例中第二网元执行的步骤。An embodiment of the present application also provides a system, which includes a first network element and a second network element; wherein the first network element is used to execute any one of the above embodiments of Figure 3, Figure 4, Figure 5 and Figure 6. The steps performed by the first network element in the second network element are used to perform the steps performed by the second network element in any of the embodiments of FIG. 5 and FIG. 6 .
本申请实施例还提供了一种处理装置,包括处理器和接口;所述处理器用于执行上述任一方法实施例中的方法。An embodiment of the present application also provides a processing device, including a processor and an interface; the processor is configured to execute the method in any of the above method embodiments.
应理解,上述处理装置可以是一个芯片。例如,该处理装置可以是现场可编程门阵列(field programmable gate array,FPGA),可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be understood that the above processing device may be a chip. For example, the processing device may be a field programmable gate array (FPGA), a general processor, a digital signal processor (DSP), or an application specific integrated circuit (ASIC). , off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, system on chip (SoC), or central processing unit It can be a central processor unit (CPU), a network processor (NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (micro controller unit, MCU). , it can also be a programmable logic device (PLD) or other integrated chip. Each method, step and logical block diagram disclosed in the embodiment of this application can be implemented or executed. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically removable memory. Erase electrically programmable read-only memory (EPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of illustration, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (direct rambus RAM, DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, without limitation, these and any other suitable types of memory.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介 质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disc,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The usable media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVD)), or semiconductor media (e.g., solid state disks, SSD)) etc.
上述各个装置实施例中的单元和方法实施例中的电子设备完全对应,由相应的模块或单元执行相应的步骤,例如通信单元(收发器)执行方法实施例中接收或发送的步骤,除发送、接收外的其它步骤可以由处理单元(处理器)执行。具体单元的功能可以参考相应的方法实施例。其中,处理器可以为一个或多个。The units in each of the above device embodiments correspond completely to the electronic equipment in the method embodiments, and the corresponding modules or units perform corresponding steps. For example, the communication unit (transceiver) performs the steps of receiving or sending in the method embodiments, except for sending. , other steps besides receiving may be performed by the processing unit (processor). For the functions of specific units, please refer to the corresponding method embodiments. There can be one or more processors.
可以理解的,本申请实施例中,电子设备可以执行本申请实施例中的部分或全部步骤,这些步骤或操作仅是示例,本申请实施例还可以执行其它操作或者各种操作的变形。此外,各个步骤可以按照本申请实施例呈现的不同的顺序来执行,并且有可能并非要执行本申请实施例中的全部操作。It can be understood that in the embodiments of the present application, the electronic device can perform some or all of the steps in the embodiments of the present application. These steps or operations are only examples. The embodiments of the present application can also perform other operations or variations of various operations. In addition, various steps may be performed in a different order than those presented in the embodiments of the present application, and it may not be necessary to perform all operations in the embodiments of the present application.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described 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 they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present application or the part that contributes or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions to A computer device (which may be a personal computer, a server, or a network device, etc.) is caused to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory ROM, random access memory RAM, magnetic disk or optical disk and other various media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application.
Claims (30)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202280085821.2A CN118489105A (en) | 2022-07-30 | 2022-07-30 | Data storage method and related device |
| PCT/CN2022/109301 WO2024026592A1 (en) | 2022-07-30 | 2022-07-30 | Data storage method and related apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2022/109301 WO2024026592A1 (en) | 2022-07-30 | 2022-07-30 | Data storage method and related apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024026592A1 true WO2024026592A1 (en) | 2024-02-08 |
Family
ID=89848256
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/109301 Ceased WO2024026592A1 (en) | 2022-07-30 | 2022-07-30 | Data storage method and related apparatus |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN118489105A (en) |
| WO (1) | WO2024026592A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119179446A (en) * | 2024-11-21 | 2024-12-24 | 浙江国利信安科技有限公司 | Method, computing device, storage medium and program product for storing data |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104346345A (en) * | 2013-07-24 | 2015-02-11 | 中兴通讯股份有限公司 | Data storage method and device |
| US9118695B1 (en) * | 2008-07-15 | 2015-08-25 | Pc-Doctor, Inc. | System and method for secure optimized cooperative distributed shared data storage with redundancy |
| CN108959463A (en) * | 2018-06-19 | 2018-12-07 | 广东美的厨房电器制造有限公司 | Information sharing method and household appliance and information sharing system and storage medium |
| CN109783576A (en) * | 2019-01-02 | 2019-05-21 | 佛山市顺德区美的洗涤电器制造有限公司 | Household appliance and its date storage method, device |
-
2022
- 2022-07-30 WO PCT/CN2022/109301 patent/WO2024026592A1/en not_active Ceased
- 2022-07-30 CN CN202280085821.2A patent/CN118489105A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9118695B1 (en) * | 2008-07-15 | 2015-08-25 | Pc-Doctor, Inc. | System and method for secure optimized cooperative distributed shared data storage with redundancy |
| CN104346345A (en) * | 2013-07-24 | 2015-02-11 | 中兴通讯股份有限公司 | Data storage method and device |
| CN108959463A (en) * | 2018-06-19 | 2018-12-07 | 广东美的厨房电器制造有限公司 | Information sharing method and household appliance and information sharing system and storage medium |
| CN109783576A (en) * | 2019-01-02 | 2019-05-21 | 佛山市顺德区美的洗涤电器制造有限公司 | Household appliance and its date storage method, device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118489105A (en) | 2024-08-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112817617B (en) | Software upgrade method, device and system | |
| CN113138864B (en) | Message communication method, computer system and agent device | |
| CN115129023A (en) | Controller system and control method | |
| WO2023023975A1 (en) | Chip, chip manufacturing method, and related apparatus | |
| CN107222637B (en) | Connection method and device, vehicle-mounted system, terminal and storage medium | |
| JP7645397B2 (en) | Terminal upgrade method and device | |
| US10673986B2 (en) | Operation method of communication node for selective wake-up in vehicle network | |
| EP4147915A1 (en) | Vehicle control system and control subunit | |
| CN115092068B (en) | Whole vehicle control system and vehicle | |
| CN115878343A (en) | Inter-process communication method and related device | |
| Kenjić et al. | Connectivity challenges in automotive solutions | |
| WO2021072647A1 (en) | Resource configuration method, device and system for in-vehicle service slices | |
| WO2024026592A1 (en) | Data storage method and related apparatus | |
| CN112671547B (en) | Resource allocation method, device and system for service slices in vehicle | |
| WO2024026593A1 (en) | Vehicle cooperative control method and related device | |
| CN117311237B (en) | Electric vehicle power domain controller, data communication method and domain control system | |
| Velusamy et al. | Automotive sensor infrastructure-challenges and opportunities | |
| CN116382744B (en) | Method, device, system and storage medium for parallel refreshing of multiple ECUs | |
| WO2025103105A1 (en) | Service management method and apparatus, electronic device, and storage medium | |
| CN104253727B (en) | Diagnosis method and system of vehicle LIN network | |
| CN116860265A (en) | SOA architecture deployment method and device based on multi-core heterogeneous platform | |
| KR101053503B1 (en) | Vehicle database management system and method | |
| CN116347041A (en) | Method and system for sharing vehicle image acquisition device data | |
| WO2023230820A1 (en) | Vehicle control method and apparatus | |
| CN115576742A (en) | Vehicle data redundancy backup method, device, equipment and medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22953409 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202280085821.2 Country of ref document: CN |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22953409 Country of ref document: EP Kind code of ref document: A1 |