WO2017193622A1 - 数据传输方法、装置及计算机存储介质 - Google Patents
数据传输方法、装置及计算机存储介质 Download PDFInfo
- Publication number
- WO2017193622A1 WO2017193622A1 PCT/CN2017/070851 CN2017070851W WO2017193622A1 WO 2017193622 A1 WO2017193622 A1 WO 2017193622A1 CN 2017070851 W CN2017070851 W CN 2017070851W WO 2017193622 A1 WO2017193622 A1 WO 2017193622A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- resource
- request message
- address
- node
- target
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
Definitions
- the present invention relates to the field of communications, and in particular to a data transmission method, apparatus, and computer storage medium.
- the Machine to Machine (M2M) communication network consists of various M2M nodes and bearer networks.
- the M2M nodes communicate with each other through a bearer network.
- An M2M node includes at least one application entity or one public service entity.
- An application entity is a logical unit that executes an actual M2M application
- a public service entity is a logical unit that manages and services an application.
- FIG. 1 is a schematic diagram of an M2M system architecture in the related art. As shown in FIG. 1 , communication between M2M applications is implemented through interaction between a Common Channel Signaling Equipment (CSE), and an M2M application passes through an interface. Connect to the CSE and then perform data interaction between application entities (AEs) through communication between the CSEs.
- CSE Common Channel Signaling Equipment
- AEs application entities
- the intermediate node and the gateway only provide the service for data transfer, that is, the data between the application node and the base node is transparently transmitted, and the application node and the base node cannot track the status of the sent data, for sending errors. The data cannot be cancelled.
- embodiments of the present invention provide a data transmission method, apparatus, and computer storage medium.
- a data transmission method including:
- the request message is sent to the destination node by the intermediate node, and the destination node operates on the target resource according to the request message.
- the method further includes:
- the operation on the target resource includes at least one of the following: reading a resource, creating a resource, updating a resource, and deleting a resource.
- the created resource includes at least the following attributes:
- a neighboring node address for storing an address of a delivery resource on a neighboring node, and following attribute information of the delivered resource on the adjacent node
- the destination address used to save the identifier or address of the destination node
- the transfer status used to save the status of data delivery.
- Another aspect of the embodiments of the present invention provides a data transmission method, including:
- a request message for operating on the target resource where the request message is sent by the source node after receiving the request message that the target resource is not on the source node, where the request
- the message carries the identifier of the destination node, the address, and/or the address of the target data
- the method further includes:
- the method after forwarding the request message to the destination node, the method further includes:
- the operation on the target resource includes at least one of the following: reading a resource, creating a resource, updating a resource, and deleting a resource.
- the created resource includes at least the following attributes:
- a neighboring node address for storing an address of a delivery resource on a neighboring node, and following attribute information of the delivered resource on the adjacent node
- the destination address used to save the identifier or address of the destination node
- the transfer status used to save the status of data delivery.
- Another aspect of the embodiments of the present invention provides a data transmission method, including:
- the intermediate node Receiving, by the intermediate node, a request message for performing operation on the target resource, where the request message is sent by the source node to the intermediate node after receiving the request message that the target resource is not on the source node, where The request message carries an identifier, an address, and/or an address of the target data of the destination node;
- the target resource is operated according to the request message.
- the method further includes:
- the operation on the target resource includes at least one of the following: reading a resource, creating a resource, updating a resource, and deleting a resource.
- the created resource includes at least the following attributes:
- a neighboring node address for storing an address of a delivery resource on a neighboring node, and following attribute information of the delivered resource on the adjacent node
- the destination address used to save the identifier or address of the destination node
- the transfer status used to save the status of data delivery.
- a data transmission apparatus including:
- the first receiving module is configured to receive a request message for operating the target resource, where the request message carries an identifier, an address, and/or an address of the target resource;
- a first creating module configured to create a resource for storing the request message and tracking a transmission status of the request message if the target resource is not on the source node;
- the sending module is configured to send the request message to the destination node by using the intermediate node, where the destination node operates the target resource according to the request message.
- a data transmission apparatus including:
- a second receiving module configured to receive a request message sent by the source node to operate on the target resource, where the request message is sent by the source node after receiving the request message that the target resource is not on the source node
- the request message carries an identifier of an destination node, an address, and/or an address of the target data
- a second creating module configured to create a resource for storing the request message and tracking a transmission status of the request message
- a forwarding module configured to forward the request message to the destination node, where the destination node operates the target resource according to the request message.
- a further aspect of the embodiments of the present invention provides a data transmission apparatus, including:
- the third receiving module is configured to receive the operation of the target resource forwarded by the intermediate node. And the request message is sent by the source node to the intermediate node after receiving the request message that the target resource is not on the source node, where the request message carries the identifier of the destination node. Address, and/or address of the target data;
- a third creation module configured to create a resource for storing the request message and tracking a transmission status of the request message
- the operation module is configured to operate on the target resource according to the request message.
- a computer storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the data transmission method described above.
- the embodiment of the present invention by creating a resource for storing the request message and tracking the transmission status of the request message, the problem that the state of the transmitted data cannot be tracked in the related art can be solved, and the status of the data delivered to each intermediate node can be The execution status is tracked.
- FIG. 2 is a flowchart 1 of a data transmission method according to an embodiment of the present invention.
- FIG. 3 is a second flowchart of a data transmission method according to an embodiment of the present invention.
- FIG. 4 is a third flowchart of a data transmission method according to an embodiment of the present invention.
- FIG. 5 is a block diagram 1 of a data transmission apparatus according to an embodiment of the present invention.
- FIG. 6 is a block diagram 2 of a data transmission apparatus according to an embodiment of the present invention.
- FIG. 7 is a block diagram 3 of a data transmission apparatus according to an embodiment of the present invention.
- FIG. 8 is a flow chart of a data delivery method in accordance with an embodiment of the present invention.
- FIG. 2 is a flowchart 1 of a data transmission method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
- Step S202 receiving a request message for operating a target resource, where the request message carries an identifier, an address, and/or an address of the target resource;
- Step S204 if the target resource is not on the source node, create a resource for storing the request message and tracking the transmission status of the request message;
- Step S206 Send the request message to the destination node by using the intermediate node, where the destination node operates the target resource according to the request message.
- the method may further include: receiving a first response message fed back by the intermediate node; updating the request in the resource according to the first response message. The transmission status of the message.
- the operation on the target resource may include at least one of: reading a resource, creating a resource, updating a resource, deleting a resource.
- the created resource may include at least the following attributes: a neighbor node address, an address for saving the resource on the neighboring node, and attribute information of the delivery resource on the neighboring node; data for saving the delivery Data; destination address, used to save the identity or address of the destination node; transmission status, used to save the state of data delivery.
- FIG. 3 is an embodiment according to the present invention.
- Flowchart 2 of the data transmission method, as shown in FIG. 3, the process includes the following steps:
- Step S302 receiving a request message that is sent by the source node to operate on the target resource, where the request message is sent by the source node after receiving the request message that the target resource is not on the source node, where the request message is sent. Carrying the identity, address, and/or address of the target data of the destination node;
- Step S304 creating a resource for storing the request message and tracking the transmission status of the request message
- Step S306 forwarding the request message to the destination node, where the destination node operates the target resource according to the request message.
- the response message updates the transmission status of the request message in the resource.
- the operation on the target resource may include at least one of: reading a resource, creating a resource, updating a resource, deleting a resource.
- the created resource may include at least the following attributes: a neighbor node address, an address for saving the resource on the neighboring node, and attribute information of the delivery resource on the neighboring node; data for saving the delivery Data; destination address, used to save the identity or address of the destination node; transmission status, used to save the state of data delivery.
- FIG. 4 is a flowchart 3 of a data transmission method according to an embodiment of the present invention. As shown in FIG. 4, the process includes the following steps:
- Step S402 receiving a request message for performing operation on the target resource forwarded by the intermediate node, where the request message is sent by the source node to the intermediate node after receiving the request message that the target resource is not on the source node, where The request message carries the identifier, address, and/or address of the target data of the destination node;
- Step S404 creating a resource for storing the request message and tracking the transmission status of the request message.
- Step S406 operating on the target resource according to the request message.
- the second response message is fed back to the intermediate node, where the intermediate node updates the transmission status of the request message in the resource according to the second response message.
- the second response message carries a result of performing operations on the target resource.
- the operation on the target resource may include at least one of: reading a resource, creating a resource, updating a resource, deleting a resource.
- the created resource may include at least the following attributes: a neighbor node address, an address for storing the resource on the neighboring node, and attribute information of the delivery resource on the neighboring node; and data for saving the delivered data;
- the destination address is used to save the identity or address of the destination node; the transmission status is used to save the state of data delivery.
- FIG. 5 is a block diagram of a data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 5, the method includes:
- the first receiving module 52 is configured to receive a request message for operating the target resource, where the request message carries an identifier, an address, and/or an address of the target resource;
- the first creating module 54 is configured to create a resource for storing the request message and tracking the transmission status of the request message if the target resource is not on the source node;
- the sending module 56 is configured to send the request message to the destination node by using the intermediate node, where the destination node operates the target resource according to the request message.
- the first receiving module 52 and the transmitting module 53 may be implemented by a communication chip in the data transmission device; the first creating module 54 may be implemented by a processor in the data transmission device.
- FIG. 6 is a block diagram 2 of a data transmission device according to an embodiment of the present invention. As shown in FIG. 6, the method includes:
- the second receiving module 62 is configured to receive a request message that is sent by the source node to operate on the target resource, where the request message is sent by the source node after receiving the request message that the target resource is not on the source node, where The request message carries an identifier, an address, and/or an address of the target data of the destination node;
- a second creating module 64 configured to create a resource for storing the request message and tracking a transmission status of the request message
- the forwarding module 66 is configured to forward the request message to the destination node, where the destination node operates the target resource according to the request message.
- the second receiving module 62 and the forwarding module 66 may be implemented by a communication chip in the data transmission device; the second creation module 64 may be implemented by a processor in the data transmission device.
- FIG. 7 is a block diagram 3 of a data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 7, the method includes:
- the third receiving module 72 is configured to receive a request message that is forwarded by the intermediate node to operate on the target resource, where the request message is sent by the source node to the intermediate node after receiving the request message that the target resource is not on the source node.
- the request message carries an identifier of an destination node, an address, and/or an address of the target data;
- a third creating module 74 configured to create a resource for storing the request message and tracking a transmission status of the request message
- the operation module 76 is configured to operate on the target resource according to the request message.
- the third receiving module 72 can be implemented by a communication chip in the data transmission device; the third creation module 74 and the operation module 76 can be implemented by a processor in the data transmission device.
- Embodiments of the present invention also provide a computer storage medium.
- the above computer storage medium may be configured to store program code for performing the following steps:
- Step S1 Receive a request message for operating on a target resource, where the request message carries an identifier, an address, and/or an address of the target resource;
- Step S2 in the case that the target resource is not on the source node, create a resource for storing the request message and tracking the transmission status of the request message;
- Step S3 Send the request message to the destination node by using the intermediate node, where the destination node operates the target resource according to the request message.
- the above computer storage medium may also be configured to store program code for performing the following steps:
- Step S1 receiving a request message sent by the source node to perform operation on the target resource, where The request message is sent by the source node after receiving the request message that the target resource is not on the source node, where the request message carries the identifier, address, and/or address of the target data of the destination node;
- Step S2 creating a resource for storing the request message and tracking the transmission status of the request message
- Step S3 Forward the request message to the destination node, where the destination node operates the target resource according to the request message.
- the above computer storage medium may also be configured to store program code for performing the following steps:
- Step S1 receiving a request message that is forwarded by the intermediate node to operate on the target resource, where the request message is sent by the source node to the intermediate node after receiving the request message that the target resource is not on the source node, where The request message carries the identifier, address, and/or address of the target data of the destination node;
- Step S2 creating a resource for storing the request message and tracking the transmission status of the request message
- Step S3 Perform operation on the target resource according to the request message.
- the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
- ROM Read-Only Memory
- RAM Random Access Memory
- Embodiments of the present invention provide a traceable data delivery method.
- the state of delivery to each intermediate node the execution state of the data may be tracked, or may be performed by the initiator.
- the delivery task is deleted, modified, and provides users with a more flexible operation mode and further improves the user experience.
- the local CSE of the application entity (Application Entity, referred to as AE1) is CSE1;
- AE3 application data is stored in CSE3's AE3 resources
- AE1 needs to read the application data of AE3;
- FIG. 8 is a flowchart of a data delivery method according to an embodiment of the present invention. As shown in FIG.
- AE1 sends a resource request message to CSE1, and the resource request message includes:
- the get resource request message contains:
- CSE1 After receiving the request message, CSE1 checks the address of the target resource. If the target resource is not on CSE1, create resource "delivery 1" and set the following attribute for resource "delivery 1":
- Next-URI used to save the address of the delivery resource on the next node
- target the identifier or address of the target CSE used to save the data delivery
- the ID or address of the target CSE is parsed according to the address of the target resource, as follows:
- the address of the target resource is composed of two parts.
- the front end part is the address of the CSE where the resource is located, and the other part is the relative address of the resource inside the CSE. Therefore, the address of the target CSE can be obtained through the address of the target resource.
- delivery-status used to save the status of data delivery
- the CSE1 sends a request to create a delivery resource to the next node CSE2, where the request message includes:
- target the identifier or address of the data delivery target CSE, set to the value of the attribute "target" of the resource "delivery 1";
- CSE2 verifies that CSE1 has the permission to create a delivery resource, creates the resource "delivery 2", and sets the following attributes for the resource "delivery 2":
- Next-URI used to save the address of the delivery resource on the next node
- target an identifier of the target CSE for saving data delivery, set to the value of the target in the request message;
- delivery-status used to save the status of data delivery.
- the CSE2 After the CSE2 creates the delivery resource, it sends a response message to CSE1, and the response message includes:
- resource-URI the address of the delivery resource created on CSE2, this embodiment is the address of the resource "delivery 2";
- CSE1 After receiving the response message sent by CSE2, CSE1 sets the attribute of the resource “delivery 1”;
- Next-URI Set to the value of the resource-URI in the response message.
- delivery-status set to have been delivered to CSE2, or set to CSE2 has been accepted for delivery.
- the CSE2 After receiving the request for creating the delivery resource, the CSE2 checks whether the identifier of the target entity in the "target" attribute is the identifier of the CSE2. If not, the CSE2 sends a request to create a delivery resource to the next node CSE3, where the request message includes:
- target the identifier or address of the data delivery target CSE, set to the value of the attribute "target" of the resource "delivery 2";
- CSE3 verifies that CSE2 has the permission to create a delivery resource, creates the resource "delivery 3", and sets the following attributes for the resource "delivery 3":
- Next-URI used to save the address of the delivery resource on the next node
- target an identifier of the target CSE for saving data delivery, set to the value of the target in the request message;
- delivery-status used to save the status of data delivery
- the CSE3 After the CSE3 creates the delivery resource, it sends a response message to CSE2, and the response message includes:
- resource-URI the address of the delivery resource created on CSE3, this embodiment is the address of the resource "delivery 3";
- CSE2 After receiving the response message sent by CSE3, CSE2 sets the attribute of the resource “delivery 2”;
- Next-URI Set to the value of the resource-URI in the response message.
- delivery-status set to have been delivered to CSE3, or set to CSE3 has accepted delivery.
- CSE3 After receiving the request for creating the delivery resource, CSE3 checks whether the identifier of the target entity in the "target" attribute is the identifier of CSE3, and if so, performs the operations included in "data".
- the CSE1 sends an update resource request to the CSE2 according to the attribute "Next-URI” of the resource "delivery 1", requesting to update the corresponding delivery resource in the CSE2, which will be required
- the updated information is included in the request message.
- the CSE2 After receiving the update resource request message, the CSE2 updates the resource "delivery 2" information according to the information in the update resource request, and sends an update resource request to the CSE3 according to the attribute "Next-URI" of the resource "delivery 2". Request to update the corresponding delivery resources in CSE3.
- the CSE1 sends a delete resource request to the CSE2 according to the attribute "Next-URI” of the resource "delivery 1", requesting to delete the corresponding delivery resource in the CSE2.
- the CSE2 After receiving the request for deleting the resource, the CSE2 sends a delete resource request to the CSE3 according to the attribute "Next-URI" of the resource "delivery 2", requesting to delete the corresponding delivery resource in the CSE3.
- the following takes the attribute of the resource as an example to save the address of the last node to deliver the resource. As shown in FIG. 8 , the following steps are specifically included:
- AE1 sends a resource request message to CSE1, and the resource request message includes:
- the get resource request message contains:
- CSE1 After receiving the request message, CSE1 checks the address of the target resource. If the target resource is not on CSE1, create resource "delivery 1" and set the following attribute for resource "delivery 1":
- Prev-URI The address used to save the last node delivery resource.
- the current delivery resource belongs to the originating entity, it can be set to null or set to the identity of the associated "request" resource;
- the CSE when the CSE receives the request message of the AE, it can create a resource "request" for the request, and save information related to the request message, such as the requested operation execution status.
- target the identifier or address of the target CSE used to save the data delivery
- the ID or address of the target CSE is parsed according to the address of the target resource, as follows:
- the address of the target resource is composed of two parts.
- the front end part is the address of the CSE where the resource is located, and the other part is the relative address of the resource inside the CSE. Therefore, the address of the target CSE can be obtained through the address of the target resource.
- delivery-status used to save the status of data delivery
- the CSE1 sends a request to create a delivery resource to the next node CSE2, where the request message includes:
- target the identifier or address of the data delivery target CSE, set to the value of the attribute "target" of the resource "delivery 1";
- resource-URI the address of the resource on the CSE, this embodiment is the address of the resource "delivery 1";
- CSE2 verifies that CSE1 has the permission to create a delivery resource, creates the resource "delivery 2", and sets the following attributes for the resource "delivery 2":
- Prev-URI The address used to save the last node delivery resource, set to the value of the resource-URI in the request message.
- target an identifier of the target CSE for saving data delivery, set to the value of the target in the request message;
- delivery-status used to save the status of data delivery.
- the CSE2 After the CSE2 creates the delivery resource, it sends a response message to CSE1, and the response message indicates “success”;
- CSE1 After receiving the response message sent by CSE2, CSE1 sets the attribute of the resource “delivery 1”;
- delivery-status set to have been delivered to CSE2, or set to CSE2 has been accepted for delivery.
- the CSE2 After receiving the request for creating the delivery resource, the CSE2 checks whether the identifier of the target entity in the "target" attribute is the identifier of the CSE2. If not, the CSE2 sends a request to create a delivery resource to the next node CSE3, where the request message includes:
- target the identifier or address of the data delivery target CSE, set to the value of the attribute "target" of the resource "delivery 2";
- resource-URI the address of the resource delivered on the CSE, this embodiment is the address of the resource "delivery 2";
- CSE3 verifies that CSE2 has the permission to create a delivery resource, creates the resource "delivery 3", and sets the following attributes for the resource "delivery 3":
- Prev-URI The address used to save the last node delivery resource, set to the value of the resource-URI in the request message.
- target an identifier of the target CSE for saving data delivery, set to the value of the target in the request message;
- delivery-status used to save the status of data delivery
- the CSE3 After the CSE3 creates the delivery resource, it sends a response message to CSE2, indicating "success" in the response message;
- CSE2 After receiving the response message sent by CSE3, CSE2 sets the attribute of the resource “delivery 2”;
- delivery-status is set to have been delivered to CSE3, or set to CSE3 has accepted delivery.
- the CSE2 sends an update resource request message to CSE1 according to the attribute "Prev-URI" of the resource "delivery 2", and the attribute "delivery-status” of the resource "delivery 2" is included in the update resource request message.
- CSE1 After receiving the update resource request, CSE1 updates the value of the attribute "delivery-status" of the resource "delivery 1" to the value of the received "delivery-status".
- the CSE3 After receiving the request for creating the delivery resource, the CSE3 checks whether the identifier of the target entity in the "target" attribute is the identifier of the CSE3, and if so, performs the operations included in the "data".
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the solution provided by the embodiment of the present invention can track the execution status of the data delivered to each intermediate node by creating a resource for storing the request message and tracking the transmission status of the request message.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供了数据传输方法、装置及计算机存储介质,其中,所述方法包括:接收对目标资源进行操作的请求消息,其中,该请求消息中携带有目的节点的标识、地址,和/或目标资源的地址;在该目标资源不在源节点上的情况下,创建用于存储该请求消息和跟踪该请求消息传输状态的资源;通过中间节点将该请求消息发送给目的节点,供该目的节点根据该请求消息对目标资源进行操作。
Description
本发明涉及通信领域,具体而言,涉及数据传输方法、装置及计算机存储介质。
机器对机器(Machine to Machine,简称为M2M)通信网络由各个M2M节点和承载网络组成。M2M节点通过承载网络实现互相通信,一个M2M节点至少包含一个应用实体或者一个公共业务实体。
应用实体是执行实际M2M应用的逻辑单元,公共业务实体是对应用进行管理和服务的逻辑单元。
图1是相关技术中的M2M系统架构图,如图1所示,M2M应用之间的通信是通过公共业务实体(Common channel Signaling Equipment,简称为CSE)之间的交互来实现,M2M应用通过接口连接到CSE,然后通过CSE之间的通信进行应用实体(AE)之间的数据交互。
在现有技术中,中间节点,及网关仅提供对数据中转的服务,即透传应用节点和基础节点之间的数据,应用节点和基础节点都无法对发送的数据状态进行跟踪,对于发送错误的数据也无法取消。
针对相关技术中无法对发送的数据状态进行跟踪的问题,还未提出有效的解决方案。
发明内容
为解决现有存在的技术问题,本发明实施例提供一种数据传输方法、装置及计算机存储介质。
根据本发明的一个实施例,提供了一种数据传输方法,包括:
接收对目标资源进行操作的请求消息,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标资源的地址;
在所述目标资源不在源节点上的情况下,创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;
通过中间节点将所述请求消息发送给目的节点,供所述目的节点根据所述请求消息对目标资源进行操作。
上述方案中,在通过中间节点将所述请求消息发送给目的节点之后,所述方法还包括:
接收所述中间节点反馈的第一响应消息;
根据所述第一响应消息在所述资源中更新所述请求消息的传输状态。
上述方案中,对目标资源的操作包括以下至少之一:读取资源、创建资源、更新资源、删除资源。
上述方案中,创建的资源至少包括以下属性:
相邻节点地址,用于保存相邻节点上递送资源的地址,以及追随相邻节点上递送资源的属性信息;
数据,用于保存递送的数据;
目标地址,用于保存目的节点的标识或地址;
传输状态,用于保存数据递送的状态。
本发明实施例的另一方面,提供了一种数据传输方法,包括:
接收源节点发送的对目标资源进行操作的请求消息,其中,所述请求消息是所述源节点在接收到所述目标资源不在所述源节点上的请求消息之后发送的,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;
创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;
将所述请求消息转发给目的节点,供所述目的节点根据所述请求消息对目标资源进行操作。
上述方案中,在创建用于存储所述请求消息和跟踪所述请求消息传输
状态的资源之后,所述方法还包括:
向所述源节点反馈第一响应消息,供所述源节点根据所述第一响应消息在所述资源中更新所述请求消息的传输状态。
上述方案中,在将所述请求消息转发给目的节点之后,所述方法还包括:
接收所述目的节点反馈的第二响应消息,其中,所述第二响应消息中携带有对目标资源进行操作的结果;
根据所述第二响应消息在所述资源中更新所述请求消息的传输状态。
上述方案中,对目标资源的操作包括以下至少之一:读取资源、创建资源、更新资源、删除资源。
上述方案中,创建的资源至少包括以下属性:
相邻节点地址,用于保存相邻节点上递送资源的地址,以及追随相邻节点上递送资源的属性信息;
数据,用于保存递送的数据;
目标地址,用于保存目的节点的标识或地址;
传输状态,用于保存数据递送的状态。
本发明实施例的另一方面,还提供了一种数据传输方法,包括:
接收中间节点转发的对目标资源进行操作的请求消息,其中,所述请求消息是源节点在接收到所述目标资源不在所述源节点上的请求消息之后发送给所述中间节点的,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;
创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;
根据所述请求消息对目标资源进行操作。
上述方案中,在根据所述请求消息对目标资源进行操作之后,所述方法还包括:
向所述中间节点反馈第二响应消息,供所述中间节点根据所述第二响应消息在所述资源中更新所述请求消息的传输状态,其中,所述第二响应
消息中携带有对目标资源进行操作的结果。
上述方案中,对目标资源的操作包括以下至少之一:读取资源、创建资源、更新资源、删除资源。
上述方案中,创建的资源至少包括以下属性:
相邻节点地址,用于保存相邻节点上递送资源的地址,以及追随相邻节点上递送资源的属性信息;
数据,用于保存递送的数据;
目标地址,用于保存目的节点的标识或地址;
传输状态,用于保存数据递送的状态。
本发明实施例的另一方面,还提供了一种数据传输装置,包括:
第一接收模块,配置为接收对目标资源进行操作的请求消息,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标资源的地址;
第一创建模块,配置为在所述目标资源不在源节点上的情况下,创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;
发送模块,配置为通过中间节点将所述请求消息发送给目的节点,供所述目的节点根据所述请求消息对目标资源进行操作。
本发明实施例的再一方面,提供了一种数据传输装置,包括:
第二接收模块,配置为接收源节点发送的对目标资源进行操作的请求消息,其中,所述请求消息是所述源节点在接收到所述目标资源不在所述源节点上的请求消息之后发送的,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;
第二创建模块,配置为创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;
转发模块,配置为将所述请求消息转发给目的节点,供所述目的节点根据所述请求消息对目标资源进行操作。
本发明实施例的再一方面,还提供了一种数据传输装置,包括:
第三接收模块,配置为接收中间节点转发的对目标资源进行操作的请
求消息,其中,所述请求消息是源节点在接收到所述目标资源不在所述源节点上的请求消息之后发送给所述中间节点的,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;
第三创建模块,配置为创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;
操作模块,配置为根据所述请求消息对目标资源进行操作。
本发明实施例的再一方面,还提供了一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上述的数据传输方法。
通过本发明实施例,通过创建存储该请求消息和跟踪该请求消息传输状态的资源,解决了相关技术中无法对发送的数据状态进行跟踪的问题,可以对递送到各个中间节点的状态,数据的执行状态进行跟踪。
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是相关技术中的M2M系统架构图;
图2是根据本发明实施例的数据传输方法的流程图一;
图3是根据本发明实施例的数据传输方法的流程图二;
图4是根据本发明实施例的数据传输方法的流程图三;
图5是根据本发明实施例的数据传输装置的框图一;
图6是根据本发明实施例的数据传输装置的框图二;
图7是根据本发明实施例的数据传输装置的框图三;
图8是根据本发明实施例的数据递送方法的流程图。
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
在本实施例中提供了一种数据传输方法,图2是根据本发明实施例的数据传输方法的流程图一,如图2所示,该流程包括如下步骤:
步骤S202,接收对目标资源进行操作的请求消息,其中,该请求消息中携带有目的节点的标识、地址,和/或目标资源的地址;
步骤S204,在该目标资源不在源节点上的情况下,创建用于存储该请求消息和跟踪该请求消息传输状态的资源;
步骤S206,通过中间节点将该请求消息发送给目的节点,供该目的节点根据该请求消息对目标资源进行操作。
通过上述步骤,由于创建了存储该请求消息和跟踪该请求消息传输状态的资源,解决了相关技术中无法对发送的数据状态进行跟踪的问题,可以对递送到各个中间节点的状态,数据的执行状态进行跟踪。
在一实施例中,在通过中间节点将该请求消息发送给目的节点之后,该方法还可以包括:接收该中间节点反馈的第一响应消息;根据该第一响应消息在该资源中更新该请求消息的传输状态。
在一实施例中,对目标资源的操作可以包括以下至少之一:读取资源、创建资源、更新资源、删除资源。
在一实施例中,创建的资源至少可以包括以下属性:相邻节点地址,用于保存相邻节点上递送资源的地址,以及追随相邻节点上递送资源的属性信息;数据,用于保存递送的数据;目标地址,用于保存目的节点的标识或地址;传输状态,用于保存数据递送的状态。
本发明实施例还提供了一种数据传输方法,图3是根据本发明实施例
的数据传输方法的流程图二,如图3所示,该流程包括如下步骤:
步骤S302,接收源节点发送的对目标资源进行操作的请求消息,其中,该请求消息是该源节点在接收到该目标资源不在该源节点上的请求消息之后发送的,其中,该请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;
步骤S304,创建用于存储该请求消息和跟踪该请求消息传输状态的资源;
步骤S306,将该请求消息转发给目的节点,供该目的节点根据该请求消息对目标资源进行操作。
在一实施例中,在创建用于存储该请求消息和跟踪该请求消息传输状态的资源之后,向该源节点反馈第一响应消息,供该源节点根据该第一响应消息在该资源中更新该请求消息的传输状态。
在一实施例中,在将该请求消息转发给目的节点之后,接收该目的节点反馈的第二响应消息,其中,该第二响应消息中携带有对目标资源进行操作的结果;根据该第二响应消息在该资源中更新该请求消息的传输状态。
在一实施例中,对目标资源的操作可以包括以下至少之一:读取资源、创建资源、更新资源、删除资源。
在一实施例中,创建的资源至少可以包括以下属性:相邻节点地址,用于保存相邻节点上递送资源的地址,以及追随相邻节点上递送资源的属性信息;数据,用于保存递送的数据;目标地址,用于保存目的节点的标识或地址;传输状态,用于保存数据递送的状态。
本发明实施例还提供了一种数据传输方法,图4是根据本发明实施例的数据传输方法的流程图三,如图4所示,该流程包括如下步骤:
步骤S402,接收中间节点转发的对目标资源进行操作的请求消息,其中,该请求消息是源节点在接收到该目标资源不在该源节点上的请求消息之后发送给该中间节点的,其中,该请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;
步骤S404,创建用于存储该请求消息和跟踪该请求消息传输状态的资
源;
步骤S406,根据该请求消息对目标资源进行操作。
在一实施例中,在根据该请求消息对目标资源进行操作之后,向该中间节点反馈第二响应消息,供该中间节点根据该第二响应消息在该资源中更新该请求消息的传输状态,其中,该第二响应消息中携带有对目标资源进行操作的结果。
在一实施例中,对目标资源的操作可以包括以下至少之一:读取资源、创建资源、更新资源、删除资源。
进一步地,创建的资源至少可以包括以下属性:相邻节点地址,用于保存相邻节点上递送资源的地址,以及追随相邻节点上递送资源的属性信息;数据,用于保存递送的数据;目标地址,用于保存目的节点的标识或地址;传输状态,用于保存数据递送的状态。
本发明实施例提供了一种数据传输装置,图5是根据本发明实施例的数据传输装置的框图一,如图5所示,包括:
第一接收模块52,配置为接收对目标资源进行操作的请求消息,其中,该请求消息中携带有目的节点的标识、地址,和/或目标资源的地址;
第一创建模块54,配置为在该目标资源不在源节点上的情况下,创建用于存储该请求消息和跟踪该请求消息传输状态的资源;
发送模块56,配置为通过中间节点将该请求消息发送给目的节点,供该目的节点根据该请求消息对目标资源进行操作。
实际应用时,第一接收模块52及发送模块53可由数据传输装置中的通信芯片实现;第一创建模块54可由数据传输装置中的处理器实现。
本发明实施例还提供了一种数据传输装置,图6是根据本发明实施例的数据传输装置的框图二,如图6所示,包括:
第二接收模块62,配置为接收源节点发送的对目标资源进行操作的请求消息,其中,该请求消息是该源节点在接收到该目标资源不在该源节点上的请求消息之后发送的,其中,该请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;
第二创建模块64,配置为创建用于存储该请求消息和跟踪该请求消息传输状态的资源;
转发模块66,配置为将该请求消息转发给目的节点,供该目的节点根据该请求消息对目标资源进行操作。
实际应用时,第二接收模块62及转发模块66可由数据传输装置中的通信芯片实现;第二创建模块64可由数据传输装置中的处理器实现。
本发明实施例还提供了一种数据传输装置,图7是根据本发明实施例的数据传输装置的框图三,如图7所示,包括:
第三接收模块72,配置为接收中间节点转发的对目标资源进行操作的请求消息,其中,该请求消息是源节点在接收到该目标资源不在该源节点上的请求消息之后发送给该中间节点的,其中,该请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;
第三创建模块74,配置为创建用于存储该请求消息和跟踪该请求消息传输状态的资源;
操作模块76,配置为根据该请求消息对目标资源进行操作。
实际应用时,第三接收模块72可由数据传输装置中的通信芯片实现;第三创建模块74及操作模块76可由数据传输装置中的处理器实现。
本发明的实施例还提供了一种计算机存储介质。可选地,在本实施例中,上述计算机存储介质可以被设置为存储用于执行以下步骤的程序代码:
步骤S1,接收对目标资源进行操作的请求消息,其中,该请求消息中携带有目的节点的标识、地址,和/或目标资源的地址;
步骤S2,在该目标资源不在源节点上的情况下,创建用于存储该请求消息和跟踪该请求消息传输状态的资源;
步骤S3,通过中间节点将该请求消息发送给目的节点,供该目的节点根据该请求消息对目标资源进行操作。
可选地,在本实施例中,上述计算机存储介质也可以被设置为存储用于执行以下步骤的程序代码:
步骤S1,接收源节点发送的对目标资源进行操作的请求消息,其中,
该请求消息是该源节点在接收到该目标资源不在该源节点上的请求消息之后发送的,其中,该请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;
步骤S2,创建用于存储该请求消息和跟踪该请求消息传输状态的资源;
步骤S3,将该请求消息转发给目的节点,供该目的节点根据该请求消息对目标资源进行操作。
可选地,在本实施例中,上述计算机存储介质还可以被设置为存储用于执行以下步骤的程序代码:
步骤S1,接收中间节点转发的对目标资源进行操作的请求消息,其中,该请求消息是源节点在接收到该目标资源不在该源节点上的请求消息之后发送给该中间节点的,其中,该请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;
步骤S2,创建用于存储该请求消息和跟踪该请求消息传输状态的资源;
步骤S3,根据该请求消息对目标资源进行操作。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。也就是说,上述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上述的数据传输方法。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
本发明实施例提供了一种可跟踪的数据递送方法,在递送过程中除实现正常的递送业务以外,可以对递送到各个中间节点的状态,数据的执行状态进行跟踪,还可以由发起者对递送任务进行删除,修改操作,为用户提供了更灵活的操作方式,并进一步提高用户体验。
应用场景:
应用实体(Application Entity,简称为AE1)的本地CSE是CSE1;
CSE1和CSE2相互注册;
CSE2和CSE3相互注册;
CSE3上有应用实体AE3的资源信息;
AE3的应用数据存储在CSE3的AE3的资源中
AE1需要读取AE3的应用数据;
假定CSE1通过CSE2发送到CSE3的路径是预先配置在CSE1中。
假定AE1已知AE3的资源地址。
实施例一
以下以资源的属性为保存下一个节点递送资源的地址为例,进行进一步说明,图8是根据本发明实施例的数据递送方法的流程图,如图8所示,具体包括以下步骤:
1、AE1发送获取资源请求消息给CSE1,获取资源请求消息中包含:
1)目标资源的地址,即AE3的资源地址;
或者,获取资源请求消息中包含:
1)目标资源的地址;
2)目标CSE的标识或地址;
2、CSE1接收到请求消息后,检查目标资源的地址,如果目标资源不在CSE1上,则创建资源“递送1”,为资源“递送1”设置以下属性:
1)Next-URI:用于保存下一个节点上递送资源的地址;
2)data:用于保存递送的数据,本实施例中即AE1发送的获取资源请求消息;
3)target:用于保存数据递送的目标CSE的标识或地址;
注:如果在AE1发送给CSE1的请求消息中不包含目标CSE的标识或地址,则根据目标资源的地址解析出目标CSE的标识或地址,方法如下:
通常目标资源的地址由两个部分组成,前端部分是资源所在CSE的地址,其他部分是资源在该CSE内部的相对地址,因此可以通过目标资源的地址获得目标CSE的地址。
4)delivery-status:用于保存数据递送的状态;
3、CSE1发送创建递送资源请求给下一个节点CSE2,请求消息中包含:
1)data:需要递送的数据,设置为资源“递送1”的属性“data”的值;
2)target:数据递送目标CSE的标识或地址,设置为资源“递送1”的属性“target”的值;
4、CSE2验证CSE1具有创建递送资源的权限后,创建资源“递送2”,为资源“递送2”设置以下属性:
1)Next-URI:用于保存下一个节点上递送资源的地址;
2)data:用于保存递送的数据,设置为请求消息中data的值;
3)target:用于保存数据递送的目标CSE的标识,设置为请求消息中target的值;
4)delivery-status:用于保存数据递送的状态。
5、CSE2创建递送资源后,发送响应消息给CSE1,响应消息中包含:
1)resource-URI:在CSE2上创建的递送资源的地址,本实施例即资源“递送2”的地址;
6、CSE1接收到CSE2发送的响应消息后,设置资源“递送1”的属性;
1)Next-URI:设置为响应消息中的resource-URI的值。
2)delivery-status:设置为已递送到CSE2,或设置为CSE2已接受递送.
7、CSE2接收到创建递送资源的请求后,检查“target”属性中的目标实体的标识是不是CSE2的标识,如果不是,则CSE2发送创建递送资源请求给下一个节点CSE3,请求消息中包含:
1)data:需要递送的数据,设置为资源“递送2”的属性“data”的值;
2)target:数据递送目标CSE的标识或地址,设置为资源“递送2”的属性“target”的值;
8、CSE3验证CSE2具有创建递送资源的权限后,创建资源“递送3”,为资源“递送3”设置以下属性:
1)Next-URI:用于保存下一个节点上递送资源的地址;
2)data:用于保存递送的数据,设置为请求消息中data的值;
3)target:用于保存数据递送的目标CSE的标识,设置为请求消息中target的值;
4)delivery-status:用于保存数据递送的状态;
9、CSE3创建递送资源后,发送响应消息给CSE2,响应消息中包含:
1)resource-URI:在CSE3上创建的递送资源的地址,本实施例为资源“递送3”的地址;
10、CSE2接收到CSE3发送的响应消息后,设置资源“递送2”的属性;
1)Next-URI:设置为响应消息中的resource-URI的值。
2)delivery-status:设置为已递送到CSE3,或设置为CSE3已接受递送。
11、CSE3接收到创建递送资源的请求后,检查“target”属性中的目标实体的标识是不是CSE3的标识,如果是,则执行“data”中所包含的操作。
12、当CSE1上的资源“递送1”的信息需要更新时,CSE1根据资源“递送1”的属性“Next-URI”,发送更新资源请求给CSE2,请求更新CSE2中相应的递送资源,将需要更新的信息包含在请求消息中。
13、在CSE2接收到更新资源请求消息后,根据更新资源请求中的信息更新资源“递送2”的信息,并根据资源“递送2”的属性“Next-URI”,发送更新资源请求给CSE3,请求更新CSE3中相应的递送资源。
14、当CSE1上的资源“递送1”需要删除时,CSE1根据资源“递送1”的属性“Next-URI”,发送删除资源请求给CSE2,请求删除CSE2中相应的递送资源。
15、在CSE2接收到删除资源请求后,根据资源“递送2”的属性“Next-URI”,发送删除资源请求给CSE3,请求删除CSE3中相应的递送资源。
实施例二
以下以资源的属性为保存上一个节点递送资源的地址为例,进行进一步说明,如图8所示,具体包括以下步骤:
1、AE1发送获取资源请求消息给CSE1,获取资源请求消息中包含:
1)目标资源的地址,即AE3的资源地址;
或者,获取资源请求消息中包含:
1)目标资源的地址;
2)目标CSE的标识或地址;
2、CSE1接收到请求消息后,检查目标资源的地址,如果目标资源不在CSE1上,则创建资源“递送1”,为资源“递送1”设置以下属性:
1)Prev-URI:用于保存上一个节点递送资源的地址。
注:如果当前的递送资源属于发起实体,则可以设置为空或设置为有关联的“请求”资源的标识;
关于“请求”资源,当CSE接收到AE的请求消息后,可以为该请求创建资源“请求”,保存该请求消息相关的信息,例如请求的操作执行状态。
2)data:用于保存递送的数据,本实施例中即AE1发送的获取资源请求消息;
3)target:用于保存数据递送的目标CSE的标识或地址;
注:如果在AE1发送给CSE1的请求消息中不包含目标CSE的标识或地址,则根据目标资源的地址解析出目标CSE的标识或地址,方法如下:
通常目标资源的地址由两个部分组成,前端部分是资源所在CSE的地址,其他部分是资源在该CSE内部的相对地址,因此可以通过目标资源的地址获得目标CSE的地址。
4)delivery-status:用于保存数据递送的状态;
3、CSE1发送创建递送资源请求给下一个节点CSE2,请求消息中包含:
1)data:需要递送的数据,设置为资源“递送1”的属性“data”的值;
2)target:数据递送目标CSE的标识或地址,设置为资源“递送1”的属性“target”的值;
3)resource-URI:本CSE上递送资源的地址,本实施例即资源“递送1”的地址;
4、CSE2验证CSE1具有创建递送资源的权限后,创建资源“递送2”,为资源“递送2”设置以下属性:
1)Prev-URI:用于保存上一个节点递送资源的地址,设置为请求消息中resource-URI的值。
2)data:用于保存递送的数据,设置为请求消息中data的值;
3)target:用于保存数据递送的目标CSE的标识,设置为请求消息中target的值;
4)delivery-status:用于保存数据递送的状态。
5、CSE2创建递送资源后,发送响应消息给CSE1,响应消息中指示“成功”;
6、CSE1接收到CSE2发送的响应消息后,设置资源“递送1”的属性;
1)delivery-status:设置为已递送到CSE2,或设置为CSE2已接受递送.
7、CSE2接收到创建递送资源的请求后,检查“target”属性中的目标实体的标识是不是CSE2的标识,如果不是,则CSE2发送创建递送资源请求给下一个节点CSE3,请求消息中包含:
1)data:需要递送的数据,设置为资源“递送2”的属性“data”的值;
2)target:数据递送目标CSE的标识或地址,设置为资源“递送2”的属性“target”的值;
3)resource-URI:本CSE上递送资源的地址,本实施例即资源“递送2”的地址;
8、CSE3验证CSE2具有创建递送资源的权限后,创建资源“递送3”,为资源“递送3”设置以下属性:
1)Prev-URI:用于保存上一个节点递送资源的地址,设置为请求消息中resource-URI的值。
2)data:用于保存递送的数据,设置为请求消息中data的值;
3)target:用于保存数据递送的目标CSE的标识,设置为请求消息中target的值;
4)delivery-status:用于保存数据递送的状态;
9、CSE3创建递送资源后,发送响应消息给CSE2,响应消息中指示“成功”;
10、CSE2接收到CSE3发送的响应消息后,设置资源“递送2”的属性;
具体地,delivery-status:设置为已递送到CSE3,或设置为CSE3已接受递送。
11、CSE2按照资源“递送2”的属性“Prev-URI”,发送更新资源请求消息给CSE1,更新资源请求消息中包含资源“递送2”的属性“delivery-status”。
12、CSE1接收到更新资源请求后,将资源“递送1”的属性“delivery-status”的值更新为接收到的“delivery-status”的值。
13、CSE3接收到创建递送资源的请求后,检查“target”属性中的目标实体的标识是不是CSE3的标识,如果是,则执行“data”中所包含的操作。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
本发明实施例提供的方案,通过创建用于存储请求消息和跟踪该请求消息传输状态的资源,可以对递送到各个中间节点的状态,数据的执行状态进行跟踪。
Claims (17)
- 一种数据传输方法,包括:接收对目标资源进行操作的请求消息,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标资源的地址;在所述目标资源不在源节点上的情况下,创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;通过中间节点将所述请求消息发送给目的节点,供所述目的节点根据所述请求消息对目标资源进行操作。
- 根据权利要求1所述的方法,其中,在通过中间节点将所述请求消息发送给目的节点之后,所述方法还包括:接收所述中间节点反馈的第一响应消息;根据所述第一响应消息在所述资源中更新所述请求消息的传输状态。
- 根据权利要求1所述的方法,其中,对目标资源的操作包括以下至少之一:读取资源、创建资源、更新资源、删除资源。
- 根据权利要求1至3中任一项所述的方法,其中,创建的资源至少包括以下属性:相邻节点地址,用于保存相邻节点上递送资源的地址,以及追随相邻节点上递送资源的属性信息;数据,用于保存递送的数据;目标地址,用于保存目的节点的标识或地址;传输状态,用于保存数据递送的状态。
- 一种数据传输方法,包括:接收源节点发送的对目标资源进行操作的请求消息,其中,所述请求消息是所述源节点在接收到所述目标资源不在所述源节点上的请求消息之后发送的,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;将所述请求消息转发给目的节点,供所述目的节点根据所述请求消息对目标资源进行操作。
- 根据权利要求5所述的方法,其中,在创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源之后,所述方法还包括:向所述源节点反馈第一响应消息,供所述源节点根据所述第一响应消息在所述资源中更新所述请求消息的传输状态。
- 根据权利要求5所述的方法,其中,在将所述请求消息转发给目的节点之后,所述方法还包括:接收所述目的节点反馈的第二响应消息,其中,所述第二响应消息中携带有对目标资源进行操作的结果;根据所述响应消息在所述资源中更新所述请求消息的传输状态。
- 根据权利要求5所述的方法,其中,对目标资源的操作包括以下至少之一:读取资源、创建资源、更新资源、删除资源。
- 根据权利要求5至8中任一项所述的方法,其中,创建的资源至少包括以下属性:相邻节点地址,用于保存相邻节点上递送资源的地址,以及追随相邻节点上递送资源的属性信息;数据,用于保存递送的数据;目标地址,用于保存目的节点的标识或地址;传输状态,用于保存数据递送的状态。
- 一种数据传输方法,包括:接收中间节点转发的对目标资源进行操作的请求消息,其中,所述请求消息是源节点在接收到所述目标资源不在所述源节点上的请求消息之后发送给所述中间节点的,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;根据所述请求消息对目标资源进行操作。
- 根据权利要求10所述的方法,其中,在根据所述请求消息对目标资源进行操作之后,所述方法还包括:向所述中间节点反馈第二响应消息,供所述中间节点根据所述第二响应消息在所述资源中更新所述请求消息的传输状态,其中,所述第二响应消息中携带有对目标资源进行操作的结果。
- 根据权利要求10所述的方法,其中,对目标资源的操作包括以下至少之一:读取资源、创建资源、更新资源、删除资源。
- 根据权利要求10至12中任一项所述的方法,其中,创建的资源至少包括以下属性:相邻节点地址,用于保存相邻节点上递送资源的地址,以及追随相邻节点上递送资源的属性信息;数据,用于保存递送的数据;目标地址,用于保存目的节点的标识或地址;传输状态,用于保存数据递送的状态。
- 一种数据传输装置,包括:第一接收模块,配置为接收对目标资源进行操作的请求消息,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标资源的地址;第一创建模块,配置为在所述目标资源不在源节点上的情况下,创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;发送模块,配置为通过中间节点将所述请求消息发送给目的节点,供所述目的节点根据所述请求消息对目标资源进行操作。
- 一种数据传输装置,包括:第二接收模块,配置为接收源节点发送的对目标资源进行操作的请求消息,其中,所述请求消息是所述源节点在接收到所述目标资源不在所述源节点上的请求消息之后发送的,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;第二创建模块,配置为创建用于存储所述请求消息和跟踪所述请求消 息传输状态的资源;转发模块,配置为将所述请求消息转发给目的节点,供所述目的节点根据所述请求消息对目标资源进行操作。
- 一种数据传输装置,包括:第三接收模块,配置为接收中间节点转发的对目标资源进行操作的请求消息,其中,所述请求消息是源节点在接收到所述目标资源不在所述源节点上的请求消息之后发送给所述中间节点的,其中,所述请求消息中携带有目的节点的标识、地址,和/或目标数据的地址;第三创建模块,配置为创建用于存储所述请求消息和跟踪所述请求消息传输状态的资源;操作模块,配置为根据所述请求消息对目标资源进行操作。
- 一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行如权利要求1至4任一项所述的数据传输方法,或者执行如权利要求5至9任一项所述的数据传输方法,或者执行如权利要求10至13任一项所述的数据传输方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610317228.2A CN107371151A (zh) | 2016-05-12 | 2016-05-12 | 数据传输方法及装置 |
CN201610317228.2 | 2016-05-12 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017193622A1 true WO2017193622A1 (zh) | 2017-11-16 |
Family
ID=60267748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/070851 WO2017193622A1 (zh) | 2016-05-12 | 2017-01-11 | 数据传输方法、装置及计算机存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107371151A (zh) |
WO (1) | WO2017193622A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190327747A1 (en) * | 2016-11-25 | 2019-10-24 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Data Transmission Method and Apparatus |
CN111200622A (zh) * | 2018-11-16 | 2020-05-26 | 腾讯科技(深圳)有限公司 | 一种资源传输方法及装置、存储介质 |
CN112052074A (zh) * | 2020-09-29 | 2020-12-08 | 上海兆芯集成电路有限公司 | 处理器建模系统及处理器建模方法 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259599B (zh) * | 2018-01-12 | 2021-03-19 | 上海瀚银信息技术有限公司 | 一种文件数据传输系统 |
CN110582065B (zh) * | 2019-08-29 | 2021-07-23 | 武汉赛可锐信息技术有限公司 | 基于大数据的消息跟踪方法、装置、终端设备及存储介质 |
CN112714146B (zh) * | 2019-10-25 | 2023-01-13 | 中国移动通信有限公司研究院 | 一种资源调度方法、装置、设备及计算机可读存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104093118A (zh) * | 2014-03-05 | 2014-10-08 | 中兴通讯股份有限公司 | 一种资源通告的方法、机器对机器节点和系统 |
CN105208654A (zh) * | 2014-06-20 | 2015-12-30 | 中兴通讯股份有限公司 | 一种通知消息发送方法及装置 |
WO2016007813A1 (en) * | 2014-07-10 | 2016-01-14 | Convida Wireless, Llc | Layered management server delegation |
CN105281941A (zh) * | 2014-07-23 | 2016-01-27 | 中兴通讯股份有限公司 | 一种数据传输方法、第一cse、中间cse和第二cse |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105491620A (zh) * | 2014-09-19 | 2016-04-13 | 中兴通讯股份有限公司 | 一种m2m中管理应用资源的方法和注册节点 |
-
2016
- 2016-05-12 CN CN201610317228.2A patent/CN107371151A/zh active Pending
-
2017
- 2017-01-11 WO PCT/CN2017/070851 patent/WO2017193622A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104093118A (zh) * | 2014-03-05 | 2014-10-08 | 中兴通讯股份有限公司 | 一种资源通告的方法、机器对机器节点和系统 |
CN105208654A (zh) * | 2014-06-20 | 2015-12-30 | 中兴通讯股份有限公司 | 一种通知消息发送方法及装置 |
WO2016007813A1 (en) * | 2014-07-10 | 2016-01-14 | Convida Wireless, Llc | Layered management server delegation |
CN105281941A (zh) * | 2014-07-23 | 2016-01-27 | 中兴通讯股份有限公司 | 一种数据传输方法、第一cse、中间cse和第二cse |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190327747A1 (en) * | 2016-11-25 | 2019-10-24 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Data Transmission Method and Apparatus |
US11147074B2 (en) * | 2016-11-25 | 2021-10-12 | Guangdong Oppo Mobile | Data transmission method and apparatus |
CN111200622A (zh) * | 2018-11-16 | 2020-05-26 | 腾讯科技(深圳)有限公司 | 一种资源传输方法及装置、存储介质 |
CN111200622B (zh) * | 2018-11-16 | 2022-04-08 | 腾讯科技(深圳)有限公司 | 一种资源传输方法及装置、存储介质 |
CN112052074A (zh) * | 2020-09-29 | 2020-12-08 | 上海兆芯集成电路有限公司 | 处理器建模系统及处理器建模方法 |
CN112052074B (zh) * | 2020-09-29 | 2024-05-03 | 上海兆芯集成电路股份有限公司 | 处理器建模系统及处理器建模方法 |
Also Published As
Publication number | Publication date |
---|---|
CN107371151A (zh) | 2017-11-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017193622A1 (zh) | 数据传输方法、装置及计算机存储介质 | |
JP7183416B2 (ja) | 時間依存ネットワーキング通信方法及び装置 | |
WO2018082490A1 (zh) | 用户终端位置区域更新方法、接入网实体、用户终端及核心网实体 | |
CN112448875B (zh) | 通信处理方法、通信处理装置以及系统 | |
CN110602724B (zh) | 网络配置的方法和通信装置 | |
JP6494150B2 (ja) | ルーティング規則取得方法、デバイス、およびシステム | |
WO2018059284A1 (zh) | 一种数据传输的方法及网络设备 | |
CN110650168B (zh) | 一种通信方法及其装置 | |
CN109429221A (zh) | 数据传输方法、设备及系统 | |
US8903972B2 (en) | Method and apparatus for sharing contents using information of group change in content oriented network environment | |
US20200229035A1 (en) | Steering rule provision method for traffic distribution in network and network entity performing the same | |
JP7294578B2 (ja) | ユーザプレーンのリルーティング方法および装置 | |
US20140341113A1 (en) | Apparatus and method for forwarding data based on software defined network in communication network | |
WO2021018242A1 (zh) | 一种数据转发方法、装置及系统 | |
JP2006217617A (ja) | アドレス割当方法 | |
CN102724651A (zh) | 数据直通处理方法、设备和系统 | |
CN107801187A (zh) | 加解密方法、装置及系统 | |
CN105281941B (zh) | 一种数据传输方法、第一cse、中间cse和第二cse | |
US20150095469A1 (en) | Identifier-based communication method using application program interface | |
WO2019101101A1 (zh) | 一种通信方法及装置 | |
CN102984813A (zh) | 数据直通处理方法、设备和系统 | |
CN102882906A (zh) | 受限应用协议中数据通信的方法和装置 | |
US11337038B2 (en) | Method, device and system for transmitting multicast group information | |
WO2023016258A1 (zh) | 终端接入方法、装置、终端及存储介质 | |
US20200162351A1 (en) | Anonymous integration of cloud based applications and on-premise network analytics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17795249 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17795249 Country of ref document: EP Kind code of ref document: A1 |