Search

CN-122001891-A - Data transmission method and device

CN122001891ACN 122001891 ACN122001891 ACN 122001891ACN-122001891-A

Abstract

The application provides a data transmission method and a data transmission device, which relate to the technical field of communication, and can transmit data in one distributed account book to another distributed account book, so that information interaction among different distributed account books is realized, and user experience is improved. The method comprises the steps that a first node determines a first message, sends the first message to a second node and further receives a second message, wherein the first message is used for indicating first identification, second identification and information of first data, the first identification is identification of a first distributed account book, the second identification is identification of a second distributed account book, the first distributed account book and the second distributed account book belong to different operators, the first data are data in the first distributed account book, the information of the first data comprises the first data or the identification of the first data, the second node is a node in the second distributed account book, and the second message is used for indicating whether the first data are successfully stored in the second distributed account book.

Inventors

  • SONG YURONG
  • WANG DONGHUI
  • LIU FEI
  • XIAO XUN

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260508
Application Date
20241104

Claims (20)

  1. 1. A data transmission method, wherein the method is applied to a first node, the first node being a node in a first distributed ledger, the method comprising: Determining a first message, where the first message is used for indicating first identification, second identification and information of first data, the first identification is identification of a first distributed ledger, the second identification is identification of a second distributed ledger, the first distributed ledger and the second distributed ledger belong to different operators, the first data is data in the first distributed ledger, and the information of the first data includes the first data or the identification of the first data; Sending the first message to a second node, wherein the second node is a node in the second distributed ledger; And receiving a second message, wherein the second message is used for indicating whether the first data is successfully stored in the second distributed account book.
  2. 2. The method of claim 1, wherein when the second message indicates that the first data was successfully stored in the second distributed ledger, the method further comprises: Signing the information of the first data, the first identifier and the second identifier to generate a data output transaction; and storing the data output transaction in the first distributed ledger.
  3. 3. The method of claim 2, wherein the second message is further used to indicate a second validation path, the second validation path being a validation path of the first data in the second distributed ledger; The signing the information of the first data, the first identifier and the second identifier generates a data output transaction, which comprises the following steps: when the first data is determined to be stored in the second distributed account book based on the second verification path, signing the information of the first data, the first identifier and the second identifier to generate the data output transaction.
  4. 4. The method of claim 1, wherein prior to said determining the first message, the method further comprises: Signing the information of the first data, the first identifier and the second identifier to generate a data output transaction; and determining a first verification path according to the data output transaction, wherein the first verification path is a verification path of the first data in the first distributed account book, and the first message is further used for indicating the first verification path.
  5. 5. The method according to claim 4, wherein the method further comprises: and storing the data output transaction in the first distributed ledger.
  6. 6. The method according to any one of claim 2 to 5, wherein, The first distributed account book comprises a first blockchain and a first database, the data output transaction is stored in the first blockchain, the first database comprises information of the first data and a first time stamp, the first time stamp is a time stamp of a node to which the first data belongs to join the first distributed account book, and the method further comprises: Deleting information of the first data in the first database, or Updating the first timestamp to an output indication that indicates that the first data has been output from the first distributed ledger.
  7. 7. The method of any of claims 1-6, wherein when the information of the first data includes an identification of the first data, the method further comprises, prior to the receiving the second message: and sending the first data to the second node.
  8. 8. The method according to any one of claims 1-7, wherein the first message is further used to indicate one or more of a reason for outputting the first data, an identification of a node to which the first data belongs, and a signature of the first node; the output reason of the first data includes that the node to which the first data belongs joins the second distributed ledger or the second distributed ledger subscribes to the data in the first distributed ledger.
  9. 9. The method of any of claims 1-8, wherein the determining the first message comprises: Determining whether to allow the first data to be output from the first distributed ledger; the first message is determined when it is determined that the first data is allowed to be output from the first distributed ledger.
  10. 10. The method of claim 9, wherein the data access policy of the first distributed ledger indicates that data in the first distributed ledger is allowed to be output, representing that the first data is allowed to be output from the first distributed ledger.
  11. 11. The method of claim 9 or 10, wherein the determining whether to allow the first data to be output from the first distributed ledger is preceded by: receiving a third message, wherein the third message is used for indicating the identification of the first data; the determining whether to allow the first data to be output from the first distributed ledger includes: When the first data exists in the first distributed ledger, determining to allow the first data to be output from the first distributed ledger.
  12. 12. The method of claim 11, wherein the third message further indicates the second identification, and/or a reason for outputting the first data, the reason for outputting the first data including whether the node to which the first data belongs joins the second distributed ledger or whether the second distributed ledger subscribes to data in the first distributed ledger.
  13. 13. The method according to any one of claims 9 to 12, wherein, The time difference between the first timestamp and the current time being less than a first threshold value, representing that the first data is allowed to be output from the first distributed ledger; the first timestamp is a timestamp of adding the first distributed account book to the node to which the first data belongs.
  14. 14. The method of claim 13, wherein when the reason for the output of the first data is that the node to which the first data belongs joins the second distributed ledger, a time difference between the first timestamp and a current time is less than a first threshold value, indicating that the first data is allowed to be output from the first distributed ledger.
  15. 15. The method of any of claims 9-14, wherein the second identification is present in the first distributed ledger, indicating that the first data is allowed to be output from the first distributed ledger.
  16. 16. The method according to any one of claims 1-15, wherein prior to said determining said first message, said method further comprises: receiving a fourth message, wherein the fourth message is used for indicating the identification of the first data and the second identification; the determining the first message includes: And determining the first message according to the fourth message.
  17. 17. The method of claim 16, wherein the fourth message is further used to indicate a reason for outputting the first data, where the reason for outputting the first data includes that the node to which the first data belongs joins the second distributed ledger or that the second distributed ledger subscribes to data in the first distributed ledger.
  18. 18. The method of claim 16 or 17, wherein the fourth message is used to indicate that the second distributed ledger has rights to obtain the first data.
  19. 19. A data transmission method, wherein the method is applied to a second node, the second node being a node in a second distributed ledger, the method comprising: Receiving a first message from a first node, wherein the first message comprises information for indicating a first identifier, a second identifier and first data, the first node is a node in a first distributed ledger, the first identifier is an identifier of the first distributed ledger, the second identifier is an identifier of a second distributed ledger, the first distributed ledger and the second distributed ledger belong to different operators, the first data is data in the first distributed ledger, and the information of the first data comprises the first data or the identifier of the first data; Determining whether the second distributed ledger allows the first data input according to the first identification; When the second distributed account book allows the first data to be input, signing the first identifier, the second identifier, the information of the first data and a second timestamp, and generating a data input transaction, wherein the second timestamp is a timestamp of adding the node to which the first data belongs into the second distributed account book; Storing the data input transaction in the second distributed ledger; And sending a second message to the first node, wherein the second message is used for indicating whether the first data is successfully stored in the second distributed account book.
  20. 20. The method of claim 19, wherein the first message is further for indicating a signature of the first node; the method further includes verifying a signature of the first node; When it is determined that the second distributed ledger allows the first data to be input, signing the first identifier, the second identifier, information of the first data, and a second timestamp, generating a data input transaction, including: When it is determined that the second distributed ledger allows the first data to be input and the signature of the first node is verified, signing the first identifier, the second identifier, the information of the first data, the signature of the first node and the second timestamp to generate a data input transaction.

Description

Data transmission method and device Technical Field The present application relates to the field of communications technologies, and in particular, to a data transmission method and apparatus. Background A distributed ledger (distributed ledger, DL) is a database that is shared, replicated, and synchronized among the network members. The distributed ledger may record transactions between network members, such as exchanges of assets or data. Essentially, the distributed ledger is a shared database, and the data or information stored in the shared database has the characteristics of non-falsifiability, whole trace, traceability, openness, transparency, collective maintenance and the like. Therefore, the distributed ledger technique is very likely to be introduced into the communication network in the future to improve the security of the communication network. If the distributed ledger technique is introduced into a communication network, multiple operators may build a distributed ledger based on devices in the communication network, such as access network devices or core network devices. Information (e.g., data, etc.) of nodes of a distributed ledger may be stored on the distributed ledger. But if information interaction cannot be performed between different distributed accounts, user experience can be affected. Disclosure of Invention The application provides a data transmission method and a data transmission device, which can transmit data in one distributed account book to another distributed account book, realize information interaction among different distributed account books and improve user experience. In order to achieve the above purpose, the application adopts the following technical scheme: In a first aspect, a data transmission method is provided, which may be performed by a first node. The first node may refer to the first node itself, or a processor, a circuit, a module, a logic node, a chip, or a system-on-chip that implements the method in the first node. Illustratively, the first node is any one of the first distributed ledgers, such as a distributed ledger enabled (distributed ledger enabler, DLE) network element, which can be deployed in a terminal, a radio access network (radio access network, RAN) node, or a network element in the core network. Or the first node is a node related to the first distributed ledger, such as a distributed ledger anchoring function (distributed ledger anchor function, DLAF) network element, or the first node may also have both DLE and DLAF functions. The method comprises the steps of determining a first message, sending the first message to a second node, and further receiving a second message, wherein the first message is used for indicating first identification, second identification and information of first data, the first identification is identification of a first distributed account book, the second identification is identification of a second distributed account book, the first distributed account book and the second distributed account book belong to different operators, the first data are data in the first distributed account book, the information of the first data comprises the first data or the identification of the first data, the second node is a node in the second distributed account book, and the second message is used for indicating whether the first data are successfully stored in the second distributed account book. Based on the method provided in the first aspect, when there is a trans-ledger transmission requirement of data between distributed ledgers constructed by different operators (for example, data (such as first data) stored in a first distributed ledger needs to be transmitted to a second distributed ledger and the first distributed ledger and the second distributed ledger are constructed by different operators), a node in the first distributed ledger (i.e. a first node) may send an identifier of the first distributed ledger (i.e. a first identifier), an identifier of the second distributed ledger (a second identifier) and information of the data (i.e. first data) to be transmitted to the node in the second distributed ledger (i.e. a second node), that is, the first node may send a first message to the second node, where the first message is used to indicate the first identifier, the second identifier and the information of the first data. It can be understood that the information interaction between different operators is realized through the SEPP to ensure the safety of the information interaction between the operators, so that the first node can send the first message to the SEPP of the operator to which the first distributed ledger belongs, and then the SEPP of the operator to which the first distributed ledger belongs sends the first message to the SEPP of the operator to which the second distributed ledger belongs to ensure the safety of the transmission of the first message between the two operators. In addition, the first m