WO2024026592A1 - Procédé de stockage de données et appareil associé - Google Patents

Procédé de stockage de données et appareil associé Download PDF

Info

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
Application number
PCT/CN2022/109301
Other languages
English (en)
Chinese (zh)
Inventor
许利霞
徐松松
靳栋栋
Original Assignee
华为技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2022/109301 priority Critical patent/WO2024026592A1/fr
Publication of WO2024026592A1 publication Critical patent/WO2024026592A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, 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

Procédé de stockage de données et appareil associé, qui concernent le domaine technique de la conduite intelligente. Le procédé comprend les étapes suivantes : un premier élément de réseau acquiert les premières données à stocker; et le premier élément de réseau détermine un mode de stockage pour lesdites premières données selon au moins un des attributs desdites premières données et l'état de stockage du premier élément de réseau. Dans le procédé, une pluralité d'éléments de réseau sont utilisés pour effectuer de manière coopérative un stockage de données, de sorte que la stabilité de stockage de données peut être améliorée, la disponibilité de stockage globale des éléments de réseau est améliorée, et le coût de stockage est réduit.
PCT/CN2022/109301 2022-07-30 2022-07-30 Procédé de stockage de données et appareil associé WO2024026592A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/109301 WO2024026592A1 (fr) 2022-07-30 2022-07-30 Procédé de stockage de données et appareil associé

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/109301 WO2024026592A1 (fr) 2022-07-30 2022-07-30 Procédé de stockage de données et appareil associé

Publications (1)

Publication Number Publication Date
WO2024026592A1 true WO2024026592A1 (fr) 2024-02-08

Family

ID=89848256

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/109301 WO2024026592A1 (fr) 2022-07-30 2022-07-30 Procédé de stockage de données et appareil associé

Country Status (1)

Country Link
WO (1) WO2024026592A1 (fr)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346345A (zh) * 2013-07-24 2015-02-11 中兴通讯股份有限公司 数据的存储方法及装置
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 (zh) * 2018-06-19 2018-12-07 广东美的厨房电器制造有限公司 信息共享方法和家电设备及信息共享系统和存储介质
CN109783576A (zh) * 2019-01-02 2019-05-21 佛山市顺德区美的洗涤电器制造有限公司 家电设备及其数据存储方法、装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
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 (zh) * 2013-07-24 2015-02-11 中兴通讯股份有限公司 数据的存储方法及装置
CN108959463A (zh) * 2018-06-19 2018-12-07 广东美的厨房电器制造有限公司 信息共享方法和家电设备及信息共享系统和存储介质
CN109783576A (zh) * 2019-01-02 2019-05-21 佛山市顺德区美的洗涤电器制造有限公司 家电设备及其数据存储方法、装置

Similar Documents

Publication Publication Date Title
WO2020216235A1 (fr) Procédé de communication de passerelle embarquée, passerelle embarquée, et véhicule intelligent
CN109474912B (zh) 一种车载网关系统以及车载子系统的监控方法和装置
US9813525B2 (en) In-vehicle apparatus for signal conversion between ethernet and CAN communication and control method thereof
US20190250610A1 (en) Systems and methods for scalable electrical engineering (ee) architecture in vehicular environments
WO2023023975A1 (fr) Puce, procédé de fabrication de puce et appareil associé
CN107222637B (zh) 一种连接方法和装置、车载系统、终端、存储介质
WO2021098212A1 (fr) Procédé de mise à niveau de logiciel et appareil et système associés
WO2019174504A1 (fr) Procédé et dispositif d'établissement d'un canal logique et interface de communication de véhicule (vci)
US10673986B2 (en) Operation method of communication node for selective wake-up in vehicle network
US10050864B2 (en) Operation mode transition method in network
CN115129023A (zh) 控制器系统及控制方法
WO2021143190A1 (fr) Procédé de communication de message, système informatique et dispositif agent
CN113141306A (zh) 一种诊断报文路由方法及其总线路由设备
JP2024510518A (ja) 端末アップグレード方法および装置
US8996248B2 (en) Virtual sensor network system and method for convergence of heterogeneous sensors
CN114879551A (zh) 一种基于cpu硬隔离系统设计方法的智能座舱域控制器
US10764210B2 (en) Operation method of communication node for mirroring in vehicle network
EP4246844A1 (fr) Procédé et appareil de traitement de paquet de données
WO2024026592A1 (fr) Procédé de stockage de données et appareil associé
WO2021243602A1 (fr) Système de commande de véhicule et sous-unité de commande
KR101612834B1 (ko) 차량 내 lin 통신에서의 lin id 자동 할당 및 설정 방법 및 그를 위한 장치
WO2024026593A1 (fr) Procédé de commande coopérative de véhicule et dispositif associé
Velusamy et al. Automotive sensor infrastructure-challenges and opportunities
US20210136151A1 (en) Control communication system
CN104253727A (zh) 车辆lin网络的诊断方法及其系统

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