Data transmission method, system and apparatus, and non-transitory readable storage medium and electronic device
View Patent ↗The present disclosure provides a data transmission method. The method includes: receiving a data transmission request of a first transmission protocol sent by a data request device, where the data transmission request is configured to indicate that a transmission operation is to be performed on data in a first storage space of a data response device, and a second storage space is deployed on the data response device, the second storage space is configured to store partial data in the first storage space; performing data synchronization on the second storage space and the first storage space according to first protocol information of a second transmission protocol on the data response device in response to the data transmission request, the second transmission protocol is configured to maintain data synchronization between the second storage space and the first storage space; and performing the transmission operation on the first storage space.
1 . A data transmission method, comprising:
receiving a data transmission request of a first transmission protocol sent by a data request device, wherein the data transmission request is configured to indicate that a transmission operation is to be performed on data in a first storage space of a data response device, and a second storage space is further deployed on the data response device, wherein the second storage space is configured to store partial data in the first storage space;
performing data synchronization on the second storage space and the first storage space according to first protocol information of a second transmission protocol on the data response device in response to the data transmission request, wherein the second transmission protocol is configured to maintain data synchronization between the second storage space and the first storage space, and the first protocol information is configured to indicate a data synchronization situation between the second storage space and the first storage space; and
performing the transmission operation on the first storage space,
wherein the performing data synchronization on the second storage space and the first storage space according to the first protocol information of the second transmission protocol on the data response device comprises: querying a target storage state of the target data from a storage state of the second transmission protocol recorded on the data response device in response to target data of a storage location where the transmission operation is to be performed indicated by the data transmission request being stored in the second storage space, wherein the first protocol information comprises the storage state, and the storage state is configured to indicate a synchronization state of data stored in the second storage space; and synchronizing the target data to the first storage space in response to the target storage state being a target state, wherein the target state is configured to indicate that the target data is modified but not synchronized.
2 . The method according to claim 1 , wherein the querying the target storage state of the target data from the storage state of the second transmission protocol recorded on the data response device comprises:
requesting to invoke the first protocol information of the second transmission protocol to the data response device; and
querying the target storage state of the target data from the first protocol information of the second transmission protocol in response to the data response device allowing the first protocol information of the second transmission protocol to be invoked.
3 . The method according to claim 1 , wherein the synchronizing the target data to the first storage space comprises:
triggering a synchronization operation of the second transmission protocol for the target data in the second storage space; and
converting the target state into a non-target state in response to the target data being synchronized to the first storage space, wherein the non-target state is configured to indicate that the target data has been synchronized.
4 . The method according to claim 1 , wherein the querying the target storage state of the target data from the storage state of the second transmission protocol recorded on the data response device comprises:
querying a target cache state label of the target data from a cache state label of a compute express link protocol recorded on the data response device, wherein the second transmission protocol comprises the compute express link protocol, the storage state comprises the cache state label, the first storage space is a memory space on the data response device, and the second storage space is a cache space on the data response device; and
the synchronizing the target data to the first storage space in response to the target storage state being a target state comprises:
triggering a cache consistency operation of the compute express link protocol for the target data in the cache space in response to the target cache state label being a modified label.
5 . The method according to claim 1 , wherein the performing data synchronization on the second storage space and the first storage space according to the first protocol information of the second transmission protocol on the data response device comprises:
detecting transmission protocols supported by the data response device;
selecting the second transmission protocol whose function conforms to storage types of the first storage space and the second storage space from the transmission protocols supported by the data response device; and
performing data synchronization on the second storage space and the first storage space according to the first protocol information of the second transmission protocol.
6 . The method according to claim 1 , wherein the performing data synchronization on the second storage space and the first storage space according to the first protocol information of the second transmission protocol on the data response device comprises:
performing data synchronization on the data response device according to the first protocol information of the second transmission protocol on the data response device, and performing data synchronization on one or more protocol devices connected to the data response device through the second transmission protocol.
7 . The method according to claim 6 , wherein the performing data synchronization on the data response device according to the first protocol information of the second transmission protocol on the data response device, and performing data synchronization on the one or more protocol devices connected to the data response device through the second transmission protocol comprises:
performing data synchronization on the data response device according to first protocol information of the compute express link protocol on the data response device, and performing data synchronization on one or more compute express link devices connected to the data response device through the compute express link protocol.
8 . The method according to claim 1 , wherein the receiving the data transmission request of the first transmission protocol sent by the data request device comprises:
receiving a first request of the first transmission protocol sent by the data request device, wherein the first request is configured to indicate the data response device to perform data synchronization on data at a target location in the first storage space, and the data transmission request comprises the first request.
9 . The method according to claim 8 , wherein the performing the transmission operation on the first storage space comprises:
receiving a second request of the first transmission protocol sent by the data request device, wherein the second request is configured to request to perform the transmission operation on the data at the target location in the first storage space; and
performing the transmission operation on the data at the target location in the first storage space in response to the second request.
10 . A data transmission method, comprising:
sending a data transmission request of a first transmission protocol to a data response device, wherein the data transmission request is configured to indicate that a transmission operation is to be performed on data in a first storage space of a data response device, and a second storage space is further deployed on the data response device, wherein the second storage space is configured to store partial data in the first storage space, and the data response device is configured to perform the transmission operation on the first storage space after performing data synchronization on the second storage space and the first storage space according to first protocol information of a second transmission protocol on the data response device in response to the data transmission request, wherein the second transmission protocol is configured to maintain data synchronization between the second storage space and the first storage space, and the first protocol information is configured to indicate a data synchronization situation between the second storage space and the first storage space, and the data response device is further configured to query a target storage state of the target data from a storage state of the second transmission protocol recorded on the data response device in response to target data of a storage location where the transmission operation is to be performed indicated by the data transmission request being stored in the second storage space, wherein the first protocol information comprises the storage state, and the storage state is configured to indicate a synchronization state of data stored in the second storage space; and synchronize the target data to the first storage space in response to the target storage state being a target state, wherein the target state is configured to indicate that the target data is modified but not synchronized; and
receiving information returned by the data response device after performing the transmission operation on the first storage space.
11 . The method according to claim 10 , wherein the sending the data transmission request of the first transmission protocol to the data response device comprises:
sending a first request of the first transmission protocol to the data response device, wherein the first request is configured to indicate the data response device to perform data synchronization on data at a target location in the first storage space, and the data transmission request comprises the first request.
12 . The method according to claim 11 , wherein the sending the first request of the first transmission protocol to the data response device comprises:
creating the first request carrying the target location; and
sending the first request to the data response device through a bus of the first transmission protocol connected to the data response device.
13 . The method according to claim 12 , wherein the sending the first request to the data response device through the bus of the first transmission protocol connected to the data response device comprises:
broadcasting the first request to the data response device and one or more protocol devices connected to the data response device through the second transmission protocol through the bus of the first transmission protocol connected to the data response device, wherein the data response device and the one or more protocol devices are configured to perform data synchronization on the data at the target location in response to the first request.
14 . The method according to claim 10 , wherein the receiving the information returned by the data response device after performing the transmission operation on the first storage space comprises:
sending a second request of the first transmission protocol to the data response device, wherein the second request is configured to request to perform the transmission operation on data at a target location in the first storage space; and
receiving the information returned by the data response device in response to the second request.
15 . The method according to claim 14 , wherein before sending the second request of the first transmission protocol to the data response device, the method further comprises:
performing data synchronization on a third storage space and a fourth storage space in response to the transmission operation comprising a data write operation, wherein the third storage space is configured to store data on which the data write operation is performed, and the fourth storage space is configured to store partial data in the third storage space.
16 . The method according to claim 15 , wherein the performing data synchronization on the third storage space and the fourth storage space comprises:
obtaining second protocol information of the second transmission protocol in response to the data on which the data write operation is performed being stored in the fourth storage space, wherein the second protocol information is configured to indicate a data synchronization situation between the third storage space and the fourth storage space; and
performing data synchronization on the third storage space and the fourth storage space according to the second protocol information.
17 . A data transmission system, comprising: a data request device and a data response device, wherein a first storage space and a second storage space are deployed on the data response device, both the data request device and the data response device support a first transmission protocol, and the data response device further supports a second transmission protocol, wherein the second transmission protocol is configured to maintain data synchronization between the second storage space and the first storage space;
the data request device is configured to perform steps of the method described in claim 10 ; and
the data response device is configured to perform steps of the method described in claim 1 .
18 . A non-transitory readable storage medium, wherein the non-transitory readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements steps of the method described in claim 1 .
19 . An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, causes the processor to implement steps of the method described in claim 1 .
20 . The electronic device according to claim 19 , wherein the processor is further configured to implement operations comprising:
requesting to invoke the first protocol information of the second transmission protocol to the data response device; and
querying the target storage state of the target data from the first protocol information of the second transmission protocol in response to the data response device allowing the first protocol information of the second transmission protocol to be invoked.