WO2016082492A1 - Method for notifying original resource, and corresponding node - Google Patents

Method for notifying original resource, and corresponding node Download PDF

Info

Publication number
WO2016082492A1
WO2016082492A1 PCT/CN2015/079401 CN2015079401W WO2016082492A1 WO 2016082492 A1 WO2016082492 A1 WO 2016082492A1 CN 2015079401 W CN2015079401 W CN 2015079401W WO 2016082492 A1 WO2016082492 A1 WO 2016082492A1
Authority
WO
WIPO (PCT)
Prior art keywords
cse
response
remote
resource
timer
Prior art date
Application number
PCT/CN2015/079401
Other languages
French (fr)
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 中兴通讯股份有限公司
Publication of WO2016082492A1 publication Critical patent/WO2016082492A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W68/00User notification, e.g. alerting and paging, for incoming communication, change of service or the like

Definitions

  • This document relates to the field of Machine Type Communication (MTC), and more specifically, to a method for managing original resources and corresponding nodes.
  • MTC Machine Type Communication
  • FIG. 1 is a schematic diagram of the M2M system architecture.
  • the M2M communication network is composed 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 (AE) or one public service entity (CSE).
  • AE is the logical unit that performs the actual M2M application
  • CSE is the logical unit that manages and services the application.
  • the M2M node in the M2M system architecture includes an application node, an intermediate node, and a base node, wherein the application node is an end execution node, such as a smart meter, a temperature measurement and control sensor, a fire alarm, a smart home appliance, etc.; the intermediate node is a connection end execution The middleware of the node to the network side server, such as a gateway; the base node is the server on the network side.
  • the application node is an end execution node, such as a smart meter, a temperature measurement and control sensor, a fire alarm, a smart home appliance, etc.
  • the intermediate node is a connection end execution
  • the middleware of the node to the network side server such as a gateway
  • the base node is the server on the network side.
  • the communication between the M2M applications is realized through the interaction between the CSEs.
  • the M2M applications are connected to the CSE through the X interface, and the CSEs communicate through the Y interface.
  • the premise of the communication is that the M2M application first needs to be registered in the local CSE, and then In order to realize the interaction of M2M applications through communication between CSEs.
  • the AE needs to register with the CSE on the intermediate node to join the M2M network, thereby serving as an application node of the M2M system.
  • the CSE on the intermediate node is called the registration CSE of the AE or the local CSE
  • the CSE on the base node is called the remote CSE of the AE.
  • the AE related resources on the application node need to be registered to the CSE on the application node, and do not need to be registered to the CSE of the intermediate node and the CSE of the basic node.
  • the application on the basic node needs to find an application.
  • an application is applied to a node, it is necessary to send a request to all intermediate nodes connected to the base node, and the intermediate node forwards the query request to each application node, which not only consumes a large amount of network resources, but also takes a long time.
  • the technical problem to be solved by the present invention is to provide a method for original resource notification and corresponding nodes to avoid waste of resources.
  • a method of original resource notification including:
  • the local public service entity CSE sends a request for creating an announcement resource to the remote CSE that has not been advertised according to the notification request of the application entity AE to the original resource, and starts a timer;
  • the address of the advertisement resource included in the local CSE is added to the “advertisement to” attribute of the original resource;
  • the local CSE receives a response from all remote CSEs before the timer expires, and all of the responses include a successful response, stopping the timer and returning a first response to the AE, the first response Contains the current value of the "advertised to" attribute;
  • the local CSE receives a successful response from a partial remote CSE when the timer expires, a second response is returned to the AE, the second response containing the current value of the "advertised to" attribute.
  • the timing is stopped.
  • the second response indicating that the notification fails;
  • the local CSE does not receive any response from the remote CSE, or receives a response from some remote CSEs, but not all responses include a successful response or all responses do not include a successful response. Returning the second response to the AE, the second response indicating that the notification failed.
  • the timing duration of the timer is set by the local CSE.
  • the notification request includes a time parameter.
  • the method further includes the local CSE setting a timing duration of the timer according to a value of the time parameter.
  • the advertisement parameter in the advertisement request includes a list of remote CSE identifiers
  • the "advertised to" attribute includes address information of an advertisement resource created by each remote CSE successfully advertised for the original resource, where the address information includes a remote CSE identifier;
  • the local public service entity CSE Before the step of the local public service entity CSE transmitting an advertisement resource request to the remote CSE that has not been advertised, the local public service entity CSE further includes: the local CSE identifying the remote CSE in the local The remote CSE that exists in the list but does not exist in the "advertised to" attribute is determined to be the remote CSE that is not advertised.
  • a public service entity CSE the public service entity CSE includes a request module, a storage module, and a response module, where:
  • the requesting module is configured to: according to the notification request of the application entity AE registered by the CSE to the original resource, send a request for creating an advertisement resource to the remote CSE that has not been advertised, and start a timer;
  • the storage module is configured to: save a value of an "advertised to" attribute of the original resource;
  • the response module is configured to: when receiving a successful response indicating that the advertisement resource is successfully created, add an address of the advertisement resource included in the original resource to the “advertisement to” attribute of the original resource;
  • a successful response is returned from the partial remote CSE, and a second response is returned to the AE, the second response containing the current value of the "advertised to" attribute.
  • the response module is further configured to:
  • the AE returns the second response, the second response indicating that the notification failed.
  • the CSE further includes a configuration module, where
  • the configuration module is configured to: set a timing duration of the timer.
  • the configuration module is configured to set a timing duration of the timer as follows:
  • the "advertisement to" attribute of the original resource saved by the storage module includes address information of an advertisement resource created by the remote CSE for the original resource, and the address information includes a remote CSE identifier;
  • the announcement parameter in the notification request includes a list of remote CSE identifiers
  • the requesting module is further configured to: identify a remote CSE that exists in the list and that does not exist in the "advertised to" attribute, and determines the remote CSE that is not advertised.
  • a machine-to-machine M2M node including any of the above-described public service entities CSE.
  • a computer program comprising program instructions that, when executed by a public service entity CSE, cause the CSE to perform any of the methods of authenticating the original resource.
  • a carrier carrying the computer program A carrier carrying the computer program.
  • the method for the original resource advertisement and the corresponding node, the local CSE can advertise the original resource on the AE to the remote CSE, and return the notification result to the AE in time to avoid resource waste.
  • Figure 1 is an architectural diagram of an M2M system
  • FIG. 3 is a block diagram of an M2M node in accordance with an embodiment of the present invention.
  • the method for the original resource advertisement in this embodiment includes:
  • Step 110 The local CSE sends an advertisement resource request to the remote CSE that has not been advertised according to the notification request of the application entity AE to the original resource, and starts a timer.
  • the local CSE is the CSE registered by the AE.
  • the advertisement request sent by the AE carries an advertisement parameter, where the advertisement parameter includes a list of remote CSE identifiers, where the remote CSE identifier is an identifier of the remote CSE that the AE wishes to advertise.
  • An "advertisement to" attribute of the original resource is saved on the local CSE, and the address information of the advertisement resource created by the remote CSE for the original resource is successfully included, and the address information includes the remote CSE identifier (successfully notified to The identity of the remote CSE). These address information is the value of the "advertise to" attribute.
  • the local CSE may determine that the remote CSE that is present in the list and that does not exist in the "advertised to" attribute is determined to be the remote CSE that is not advertised.
  • the local CSE can set the timing duration of the timer by itself.
  • the notification request further includes a time parameter, and the local CSE sets the timing duration of the timer according to the value of the time parameter.
  • Step 120 If the local CSE receives a successful response indicating that the resource creation is successful, the local CSE adds the address of the advertisement resource included in the original resource to the “advertised to” attribute of the original resource.
  • the remote CSE After receiving the request for the advertised resource, the remote CSE creates an advertised resource for the original resource. If the advertised resource is successfully created, the remote CSE returns a successful response indicating that the advertised resource is successfully created. The successful response includes the remote CSE.
  • the address of the advertisement resource created by the original resource is a Uniform Resource Identifier ("URI"). If the CSE receives a successful response from the remote CSE, the original resource is successfully advertised to the remote CSE, and thus the "advertised to" attribute of the original resource needs to be updated.
  • URI Uniform Resource Identifier
  • Step 130 The local CSE returns a corresponding response to the AE according to the response of the received remote CSE.
  • the local CSE receives a response from all remote CSEs and includes a successful response before the timer expires, stopping the timer and returning a response to the AE, the response including the current value of the "advertised to" attribute;
  • the local CSE receives a successful response returned by the partial remote CSE when the timer expires, a response is returned to the AE, the response including the current value of the "advertised to" attribute;
  • the local CSE receives a response from all remote CSEs before the timer expires, but the response is not successful, the timer is stopped, and a response is returned to the AE, the response indicating that the notification fails, and the response may also include The current value of the "advertised to" attribute, except that the current value has not changed before the announcement;
  • the local CSE does not receive any response from the remote CSE or receives a response from the remote CSE but does not respond successfully, then returns a response to the AE indicating that the notification failed, at this time
  • the response may also contain the current value of the "advertised to" attribute, except that the current value does not change relative to this announcement.
  • the above process is that when the timer expires, the local CSE has not received a response from a remote CSE, and the advertisement of the remote CSE is considered to have failed.
  • the machine-to-machine M2M node provided by this embodiment includes a public service entity CSE
  • the public service entity CSE includes:
  • the requesting module 10 is configured to: according to the notification request of the application entity AE registered by the CSE to the original resource, send a request for creating an announcement resource to the remote CSE that has not been advertised, and start a timer;
  • the storage module 20 is configured to: save a value of an "announce to" attribute of the original resource;
  • the response module 30 is configured to: when receiving a successful response indicating that the advertisement resource is successfully created, add an address of the advertisement resource included in the original resource to the “advertisement to” attribute of the original resource, and set it to:
  • the local CSE receives a response from all remote CSEs and includes a successful response before the timer expires, stopping the timer and returning a response to the AE, the response including the current value of the "advertised to" attribute;
  • the local CSE receives a successful response from a partial remote CSE when the timer expires, a response is returned to the AE, the response including the current value of the "advertised to" attribute.
  • the response module 30 is further configured to:
  • the local CSE does not receive any response from the remote CSE or receives a response from the remote CSE but does not respond successfully, the response is returned to the AE, the response indicating that the notification failed or contains the The current value of the "advertise to" attribute.
  • the M2M node further includes: a configuration module, configured to: set a timing duration of the timer, or set a timing duration of the timer according to a value of a time parameter carried in the notification request.
  • a configuration module configured to: set a timing duration of the timer, or set a timing duration of the timer according to a value of a time parameter carried in the notification request.
  • the "advertisement to" attribute of the original resource saved by the storage module includes address information of an advertisement resource created by the remote CSE for the original resource, and the address information includes a remote CSE identifier;
  • the requesting module sends a request to create an announcement resource to the remote CSE that has not been advertised according to the notification request for the original resource, where the notification parameter in the notification request includes a list of remote CSE identifiers, and the request module will remote CSE A remote CSE that is identified in the list but does not exist in the "advertised to" attribute is determined to be the remote CSE that is not advertised.
  • the application entity AE1 sends an advertisement request to the local CSE, requesting to advertise the resource "Resource-AE1" to the designated remote CSE, the notification request includes:
  • This parameter contains a list of one or more remote CSE identifiers, for example:
  • the notification request may also include a time parameter.
  • the original resource "Resource-AE1" on the local CSE contains the attribute "advertised to", and the "advertised to” attribute is used to store the address information of the announcement resource created by the remote CSE successfully advertised for the original resource "Resource-AE1" (at the remote). The address on the CSE).
  • the value of the Announce To property of the original resource "Resource-AE1" is as follows:
  • URI1 CSE1-ID.m2mserviceprovider.com ⁇ Rsource-AE1-Annc (address of the resource advertised to CSE1),
  • URI2 CSE2-ID.m2mserviceprovider.com ⁇ Rsource-AE1-Annc (address of the resource advertised to CSE2)
  • the "CSE-ID” field is the "CSE1-ID” in the above URI1 and the “CSE2-ID” in the URI2, and the remote CSE identifier, that is, the identifier of the remote CSE1 and the identifier of the remote CSE2, are stored.
  • the local CSE After receiving the notification request of the AE1, the local CSE reads the list of remote CSE identifiers included in the advertisement parameter, and checks whether the attribute "advertisement to" of the local resource "Resource-AE1" contains the remote CSE identifier in the list, that is, the list is The remote CSE identifier is compared with the "cse-id” field of the URI in the attribute "advertised to" to see if the same value exists.
  • the remote CSE identifier that is not included in the attribute "advertised to” is the remote CSE that has not been successfully advertised.
  • the local CSE sends a request to create an advertisement resource to the remote CSE, where the creation advertisement resource request includes: the original resource "Resource- The URI of AE1"; and the search tag of the original resource "Resource-AE1".
  • the local CSE starts the timer T1 after sending the advertised resource request message. If the request message sent by the AE to the local CSE includes a time parameter, the value of T1 is set to the value of the time parameter, if the AE is sent to the local CSE. If the time parameter is not included in the request message, the local CSE sets the value of T1 by itself, for example, according to the default value set locally;
  • the remote CSE can verify whether the local CSE that sends the advertised resource request has the corresponding privilege. If the verification succeeds, the advertised resource "Resource-AE1-Annc" is created for the original resource "Resource-AE1". Set the attributes "original resource link” and “tag” for the resource, and save the received URI of the original resource "Resource-AE1" as the value of the attribute "original resource link", and the original resource "Resource-AE1" will be received. The search tag is saved as the value of the attribute "tag";
  • the remote CSE After the remote CSE creates the advertisement resource successfully, it returns a success response indicating that the advertisement resource is successfully created to the local CSE.
  • the success response includes the URI of the resource “Resource-AE1-Annc” on the remote CSE; if the remote CSE fails to create the advertisement resource, A failure response is returned to the local CSE.
  • the local CSE After receiving the successful response before T1 expires, the local CSE updates the "advertisement to" attribute of the resource "Resource-AE1", and adds the URI of the advertisement resource "Resource-AE1-Annc” included in the response message to the resource "Resource”. -AE1" in the "Notification to” attribute. For a remote CSE whose T1 has not received its successful response, the local CSE determines that the notification to the remote CSE has failed.
  • the timer T1 is stopped and a response is sent to the AE, the response including the current value of the "advertised to" attribute;
  • the timer T1 is stopped, and a response is sent to the AE, indicating that the notification fails;
  • the local CSE receives a successful response from a portion of the remote CSE when T1 expires, a response is sent to the AE, the response including the current value of the "advertised to" attribute;
  • the local CSE does not receive any response from the remote CSE or receives a response from a portion of the remote CSE but does not respond successfully, a response is sent to the AE indicating that the notification failed.
  • the embodiment of the invention further discloses a computer program, comprising program instructions, when the program instruction is executed by the public service entity CSE, so that the CSE can perform the method of any of the foregoing original resource notifications.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • the local CSE can advertise the original resource on the AE to the remote CSE, and return the notification result to the AE in time to avoid resource waste. Therefore, the present invention has strong industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method for notifying an original resource, and a corresponding node. A local common service entity (CSE) sends a notified resource creation request to remote CSEs which are not notified yet, according to a notification request of an application entity (AE) for the original resource, and starting a timer; if the local CSE receives a success response indicating the successful creation of the notified resource, the local CSE will add the address of the notified resource contained in the success response into a "notified" attribute of the original resource; if the local CSE receives the responses of all remote CSEs which include a success response before the timer is out of time, the timer will be stopped, and a response carrying a current value of the "notified" attribute will be returned to the AE; and if the local CSE receives the success responses of some of the remote CSEs when the timer is out of time, the response carrying a current value of the "notified" attribute will be sent to the AE. The local CSE of the technical solution of the present invention can notify an original resource on an AE onto a remote CSE and return a notification result to the AE in time, thereby avoiding the waste of resources.

Description

一种原始资源通告的方法及相应的节点Method for original resource notification and corresponding node 技术领域Technical field
本文涉及机器类型通信(MTC:Machine Type Communication)领域,更具体地,涉及到一种原始资源的管理方法及相应的节点。This document relates to the field of Machine Type Communication (MTC), and more specifically, to a method for managing original resources and corresponding nodes.
背景技术Background technique
图1是M2M系统架构图,如图所示,M2M通信网络由各个M2M节点和承载网络组成。M2M节点通过承载网络实现互相通信,一个M2M节点至少包含一个应用实体(AE)或者一个公共业务实体(CSE)。AE是执行实际M2M应用的逻辑单元,CSE是对应用进行管理和服务的逻辑单元。Figure 1 is a schematic diagram of the M2M system architecture. As shown in the figure, the M2M communication network is composed 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 (AE) or one public service entity (CSE). AE is the logical unit that performs the actual M2M application, and CSE is the logical unit that manages and services the application.
M2M系统架构中的M2M节点包括应用节点、中间节点和基础节点,其中,应用节点是末端的执行节点,例如智能电表,温度测控传感器,火警报警器,智能家电等等;中间节点是连接末端执行节点到网络侧服务器的中间件,例如网关;基础节点是网络侧的服务器。The M2M node in the M2M system architecture includes an application node, an intermediate node, and a base node, wherein the application node is an end execution node, such as a smart meter, a temperature measurement and control sensor, a fire alarm, a smart home appliance, etc.; the intermediate node is a connection end execution The middleware of the node to the network side server, such as a gateway; the base node is the server on the network side.
M2M应用之间的通信是通过CSE之间的交互来实现,M2M应用通过X接口连接到CSE,CSE之间通过Y接口进行通信,而通信的前提是M2M应用首先需要在本地CSE进行注册,然后才能通过CSE之间的通信实现M2M应用的交互。The communication between the M2M applications is realized through the interaction between the CSEs. The M2M applications are connected to the CSE through the X interface, and the CSEs communicate through the Y interface. The premise of the communication is that the M2M application first needs to be registered in the local CSE, and then In order to realize the interaction of M2M applications through communication between CSEs.
AE需要在中间节点上的CSE进行注册才能加入M2M网络,从而作为M2M系统的应用节点进行服务。此时,中间节点上的CSE称为AE的注册CSE或本地CSE,基础节点上的CSE称为AE的远程CSE。The AE needs to register with the CSE on the intermediate node to join the M2M network, thereby serving as an application node of the M2M system. At this time, the CSE on the intermediate node is called the registration CSE of the AE or the local CSE, and the CSE on the base node is called the remote CSE of the AE.
在实际应用中,应用节点上的AE相关资源需要注册到应用节点上的CSE,而不需要注册到中间节点的CSE和基础节点的CSE,在相关技术中,例如基础节点上的应用需要查找应用节点上的应用时,需要发送请求到所有连接到该基础节点的中间节点,并由中间节点将查询请求转发到各个应用节点,不仅消耗了大量的网络资源,也耗费较长的时间。 In practical applications, the AE related resources on the application node need to be registered to the CSE on the application node, and do not need to be registered to the CSE of the intermediate node and the CSE of the basic node. In related technologies, for example, the application on the basic node needs to find an application. When an application is applied to a node, it is necessary to send a request to all intermediate nodes connected to the base node, and the intermediate node forwards the query request to each application node, which not only consumes a large amount of network resources, but also takes a long time.
发明内容Summary of the invention
有鉴于此,本发明要解决的技术问题是提供一种原始资源通告的方法及相应的节点,以避免资源浪费。In view of this, the technical problem to be solved by the present invention is to provide a method for original resource notification and corresponding nodes to avoid waste of resources.
为解决上述问题,采用如下技术方案:In order to solve the above problems, the following technical solutions are adopted:
一种原始资源通告的方法,包括:A method of original resource notification, including:
本地公共业务实体CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;The local public service entity CSE sends a request for creating an announcement resource to the remote CSE that has not been advertised according to the notification request of the application entity AE to the original resource, and starts a timer;
本地CSE如收到指示通告资源创建成功的成功响应,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中;If the local CSE receives a successful response indicating that the resource creation success is successful, the address of the advertisement resource included in the local CSE is added to the “advertisement to” attribute of the original resource;
如果所述定时器到时前,本地CSE收到所有远程CSE的响应,且所有的响应中均包含成功响应,则停止所述定时器,并向所述AE返回第一响应,该第一响应包含所述“通告到”属性的当前值;If the local CSE receives a response from all remote CSEs before the timer expires, and all of the responses include a successful response, stopping the timer and returning a first response to the AE, the first response Contains the current value of the "advertised to" attribute;
如果所述定时器到时时,本地CSE收到部分远程CSE返回的成功响应,则向所述AE返回第二响应,该第二响应包含所述“通告到”属性的当前值。If the local CSE receives a successful response from a partial remote CSE when the timer expires, a second response is returned to the AE, the second response containing the current value of the "advertised to" attribute.
可选地,如果所述定时器到时前,本地CSE收到所有远程CSE的响应,但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则停止所述定时器,向所述AE返回所述第二响应,该第二响应指示通告失败;Optionally, if the local CSE receives a response from all remote CSEs before the timer expires, but not all of the responses include a successful response or none of the responses include a successful response, the timing is stopped. Returning the second response to the AE, the second response indicating that the notification fails;
如果所述定时器到时时,本地CSE没有收到任何远程CSE返回的响应,或者收到部分远程CSE的响应但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则向所述AE返回所述第二响应,该第二响应指示通告失败。If the timer expires, the local CSE does not receive any response from the remote CSE, or receives a response from some remote CSEs, but not all responses include a successful response or all responses do not include a successful response. Returning the second response to the AE, the second response indicating that the notification failed.
可选地,所述定时器的定时时长是由本地CSE自行设置的。Optionally, the timing duration of the timer is set by the local CSE.
可选地,所述通告请求中包含一时间参数,Optionally, the notification request includes a time parameter.
该方法还包括:本地CSE根据所述时间参数的值设置所述定时器的定时时长。The method further includes the local CSE setting a timing duration of the timer according to a value of the time parameter.
可选地,所述通告请求中的通告参数包含远程CSE标识的列表; Optionally, the advertisement parameter in the advertisement request includes a list of remote CSE identifiers;
所述“通告到”属性包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识;The "advertised to" attribute includes address information of an advertisement resource created by each remote CSE successfully advertised for the original resource, where the address information includes a remote CSE identifier;
所述本地公共业务实体CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求的步骤之前,该方法还包括:所述本地CSE将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。Before the step of the local public service entity CSE transmitting an advertisement resource request to the remote CSE that has not been advertised, the local public service entity CSE further includes: the local CSE identifying the remote CSE in the local The remote CSE that exists in the list but does not exist in the "advertised to" attribute is determined to be the remote CSE that is not advertised.
一种公共业务实体CSE,所述公共业务实体CSE包括请求模块、存储模块和响应模块,其中:A public service entity CSE, the public service entity CSE includes a request module, a storage module, and a response module, where:
所述请求模块设置成:根据在本CSE注册的应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;The requesting module is configured to: according to the notification request of the application entity AE registered by the CSE to the original resource, send a request for creating an advertisement resource to the remote CSE that has not been advertised, and start a timer;
所述存储模块设置成:保存原始资源的“通告到”属性的值;The storage module is configured to: save a value of an "advertised to" attribute of the original resource;
所述响应模块设置成:在收到指示通告资源创建成功的成功响应时,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中;且,The response module is configured to: when receiving a successful response indicating that the advertisement resource is successfully created, add an address of the advertisement resource included in the original resource to the “advertisement to” attribute of the original resource;
如果所述定时器到时前,收到所有远程CSE的响应,且所有的响应中均包含成功响应,则停止所述定时器,并向所述AE返回第一响应,该第一响应包含所述“通告到”属性的当前值;If the response of all remote CSEs is received before the timer expires, and all responses include a successful response, stopping the timer and returning a first response to the AE, the first response including The current value of the "advertise to" attribute;
如果所述定时器到时时,收到部分远程CSE返回的成功响应,则向所述AE返回第二响应,该第二响应包含所述“通告到”属性的当前值。If the timer expires, a successful response is returned from the partial remote CSE, and a second response is returned to the AE, the second response containing the current value of the "advertised to" attribute.
可选地,所述响应模块还设置成:Optionally, the response module is further configured to:
如果所述定时器到时前,收到所有远程CSE的响应,但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则停止所述定时器,向所述AE返回所述第二响应,该第二响应指示通告失败;If the response of all remote CSEs is received before the timer expires, but not all responses include a successful response or all responses do not include a successful response, then the timer is stopped, to the AE Returning the second response, the second response indicating that the notification failed;
如果所述定时器到时时,没有收到任何远程CSE返回的响应,或者收到部分远程CSE的响应但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则向所述AE返回所述第二响应,该第二响应指示通告失败。 If the timer expires, no response received by any remote CSE is received, or a response from a remote CSE is received, but not all responses include a successful response or all responses do not include a successful response, then The AE returns the second response, the second response indicating that the notification failed.
可选地,该CSE还包括配置模块,其中Optionally, the CSE further includes a configuration module, where
所述配置模块设置成:设置所述定时器的定时时长。The configuration module is configured to: set a timing duration of the timer.
可选地,所述配置模块设置成按照如下方式设置所述定时器的定时时长:Optionally, the configuration module is configured to set a timing duration of the timer as follows:
根据所述通告请求中携带的时间参数的值设置所述定时器的定时时长。And setting a timing duration of the timer according to a value of a time parameter carried in the notification request.
可选地,Optionally,
所述存储模块保存的所述原始资源的“通告到”属性包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识;The "advertisement to" attribute of the original resource saved by the storage module includes address information of an advertisement resource created by the remote CSE for the original resource, and the address information includes a remote CSE identifier;
所述通告请求中的通告参数包含远程CSE标识的列表;The announcement parameter in the notification request includes a list of remote CSE identifiers;
所述请求模块还设置成:将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。The requesting module is further configured to: identify a remote CSE that exists in the list and that does not exist in the "advertised to" attribute, and determines the remote CSE that is not advertised.
一种机器对机器M2M节点,包括上述任意的公共业务实体CSE。A machine-to-machine M2M node, including any of the above-described public service entities CSE.
一种计算机程序,包括程序指令,当该程序指令被公共业务实体CSE执行时,使得该CSE可执行上述任意的原始资源通告的方法。A computer program comprising program instructions that, when executed by a public service entity CSE, cause the CSE to perform any of the methods of authenticating the original resource.
一种载有所述计算机程序的载体。A carrier carrying the computer program.
上述原始资源通告的方法及相应的节点,本地CSE可以将AE上的原始资源通告到远程CSE上,并及时将通告结果返回AE,避免资源浪费。The method for the original resource advertisement and the corresponding node, the local CSE can advertise the original resource on the AE to the remote CSE, and return the notification result to the AE in time to avoid resource waste.
附图概述BRIEF abstract
图1是M2M系统的架构图;Figure 1 is an architectural diagram of an M2M system;
图2是本发明实施例的原始资源通告方法的流程图;及2 is a flowchart of an original resource notification method according to an embodiment of the present invention; and
图3是本发明实施例的M2M节点的模块图。 3 is a block diagram of an M2M node in accordance with an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
如图2所示,本实施例原始资源通告的方法包括:As shown in FIG. 2, the method for the original resource advertisement in this embodiment includes:
步骤110,本地CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;Step 110: The local CSE sends an advertisement resource request to the remote CSE that has not been advertised according to the notification request of the application entity AE to the original resource, and starts a timer.
本地CSE即所述AE注册的CSE。所述AE发送的通告请求中会携带通告参数,通告参数包含远程CSE标识的列表,其中的远程CSE标识是所述AE希望通告到的远程CSE的标识。The local CSE is the CSE registered by the AE. The advertisement request sent by the AE carries an advertisement parameter, where the advertisement parameter includes a list of remote CSE identifiers, where the remote CSE identifier is an identifier of the remote CSE that the AE wishes to advertise.
本地CSE上保存有原始资源的“通告到”属性,其中包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识(成功通告到的远程CSE的标识)。这些地址信息即“通告到”属性的值。An "advertisement to" attribute of the original resource is saved on the local CSE, and the address information of the advertisement resource created by the remote CSE for the original resource is successfully included, and the address information includes the remote CSE identifier (successfully notified to The identity of the remote CSE). These address information is the value of the "advertise to" attribute.
所述本地CSE可以将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。The local CSE may determine that the remote CSE that is present in the list and that does not exist in the "advertised to" attribute is determined to be the remote CSE that is not advertised.
较佳地,本地CSE可以自行设置所述定时器的定时时长。较佳地,所述通告请求中还包含一时间参数,本地CSE根据所述时间参数的值设置所述定时器的定时时长。Preferably, the local CSE can set the timing duration of the timer by itself. Preferably, the notification request further includes a time parameter, and the local CSE sets the timing duration of the timer according to the value of the time parameter.
步骤120,本地CSE如收到指示通告资源创建成功的成功响应,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中;Step 120: If the local CSE receives a successful response indicating that the resource creation is successful, the local CSE adds the address of the advertisement resource included in the original resource to the “advertised to” attribute of the original resource.
远程CSE收到创建通告资源请求后,会为所述原始资源创建通告资源,如创建通告资源成功,则向本地CSE返回指示通告资源创建成功的成功响应,成功响应中包含该远程CSE为所述原始资源创建的通告资源的地址如通用资源标识符(Uniform Resource Identifier,简称"URI")。如果CSE收到远程CSE返回的成功响应,说明所述原始资源成功通告到所述远程CSE,因而需要对所述原始资源的“通告到”属性进行更新。 After receiving the request for the advertised resource, the remote CSE creates an advertised resource for the original resource. If the advertised resource is successfully created, the remote CSE returns a successful response indicating that the advertised resource is successfully created. The successful response includes the remote CSE. The address of the advertisement resource created by the original resource is a Uniform Resource Identifier ("URI"). If the CSE receives a successful response from the remote CSE, the original resource is successfully advertised to the remote CSE, and thus the "advertised to" attribute of the original resource needs to be updated.
步骤130,本地CSE根据收到的远程CSE的响应,向所述AE返回相应的响应。Step 130: The local CSE returns a corresponding response to the AE according to the response of the received remote CSE.
具体地:specifically:
如果所述定时器到时前,本地CSE收到所有远程CSE的响应且其中包含成功响应,则停止定时器,向所述AE返回响应,该响应包含所述“通告到”属性的当前值;If the local CSE receives a response from all remote CSEs and includes a successful response before the timer expires, stopping the timer and returning a response to the AE, the response including the current value of the "advertised to" attribute;
如果所述定时器到时时,本地CSE收到部分远程CSE返回的成功响应,则向所述AE返回响应,该响应包含所述“通告到”属性的当前值;If the local CSE receives a successful response returned by the partial remote CSE when the timer expires, a response is returned to the AE, the response including the current value of the "advertised to" attribute;
如果所述定时器到时前,本地CSE收到所有远程CSE的响应但其中没有成功响应,则停止定时器,向所述AE返回响应,该响应指示通告失败,此时该响应也可以包含所述“通告到”属性的当前值,只是该当前值相对于此次通告之前并没有变化;If the local CSE receives a response from all remote CSEs before the timer expires, but the response is not successful, the timer is stopped, and a response is returned to the AE, the response indicating that the notification fails, and the response may also include The current value of the "advertised to" attribute, except that the current value has not changed before the announcement;
如果所述定时器到时时,本地CSE没有收到任何远程CSE返回的响应或者收到部分远程CSE的响应但其中没有成功响应,则向所述AE返回响应,该响应指示通告失败,此时该响应也可以包含所述“通告到”属性的当前值,只是该当前值相对于此次通告之前并没有变化。If the timer expires, the local CSE does not receive any response from the remote CSE or receives a response from the remote CSE but does not respond successfully, then returns a response to the AE indicating that the notification failed, at this time The response may also contain the current value of the "advertised to" attribute, except that the current value does not change relative to this announcement.
上述处理对于所述定时器到时时,本地CSE还没有接收到某一远程CSE返回的响应,也认为对该远程CSE的通告失败。The above process is that when the timer expires, the local CSE has not received a response from a remote CSE, and the advertisement of the remote CSE is considered to have failed.
相应地,本实施例提供的机器对机器M2M节点包括公共业务实体CSE,所述公共业务实体CSE包括:Correspondingly, the machine-to-machine M2M node provided by this embodiment includes a public service entity CSE, and the public service entity CSE includes:
请求模块10,设置成:根据在本CSE注册的应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;The requesting module 10 is configured to: according to the notification request of the application entity AE registered by the CSE to the original resource, send a request for creating an announcement resource to the remote CSE that has not been advertised, and start a timer;
存储模块20,设置成:保存原始资源的“通告到”属性的值;The storage module 20 is configured to: save a value of an "announce to" attribute of the original resource;
响应模块30,设置成:在收到指示通告资源创建成功的成功响应时,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中,及设置成: The response module 30 is configured to: when receiving a successful response indicating that the advertisement resource is successfully created, add an address of the advertisement resource included in the original resource to the “advertisement to” attribute of the original resource, and set it to:
如果所述定时器到时前,本地CSE收到所有远程CSE的响应且其中包含成功响应,则停止定时器,向所述AE返回响应,该响应包含所述“通告到”属性的当前值;If the local CSE receives a response from all remote CSEs and includes a successful response before the timer expires, stopping the timer and returning a response to the AE, the response including the current value of the "advertised to" attribute;
如果所述定时器到时时,本地CSE收到部分远程CSE返回的成功响应,则向所述AE返回响应,该响应包含所述“通告到”属性的当前值。If the local CSE receives a successful response from a partial remote CSE when the timer expires, a response is returned to the AE, the response including the current value of the "advertised to" attribute.
较佳地,所述响应模块30还设置成:Preferably, the response module 30 is further configured to:
如果所述定时器到时前,本地CSE收到所有远程CSE的响应但其中没有成功响应,则停止定时器,向所述AE返回响应,该响应指示通告失败或包含所述“通告到”属性的当前值;If the local CSE receives a response from all remote CSEs but does not respond successfully before the timer expires, stopping the timer and returning a response to the AE indicating that the advertisement failed or contains the "advertised to" attribute Current value
如果所述定时器到时时,本地CSE没有收到任何远程CSE返回的响应或者收到部分远程CSE的响应但其中没有成功响应,则向所述AE返回响应,该响应指示通告失败或包含所述“通告到”属性的当前值。If the local CSE does not receive any response from the remote CSE or receives a response from the remote CSE but does not respond successfully, the response is returned to the AE, the response indicating that the notification failed or contains the The current value of the "advertise to" attribute.
较佳地,Preferably,
所述M2M节点还包括:配置模块,设置成:设置所述定时器的定时时长,或根据所述通告请求中携带的时间参数的值设置所述定时器的定时时长。The M2M node further includes: a configuration module, configured to: set a timing duration of the timer, or set a timing duration of the timer according to a value of a time parameter carried in the notification request.
较佳地,Preferably,
所述存储模块保存的所述原始资源的“通告到”属性包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识;The "advertisement to" attribute of the original resource saved by the storage module includes address information of an advertisement resource created by the remote CSE for the original resource, and the address information includes a remote CSE identifier;
所述请求模块根据对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,其中,所述通告请求中的通告参数包含远程CSE标识的列表,所述请求模块将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。The requesting module sends a request to create an announcement resource to the remote CSE that has not been advertised according to the notification request for the original resource, where the notification parameter in the notification request includes a list of remote CSE identifiers, and the request module will remote CSE A remote CSE that is identified in the list but does not exist in the "advertised to" attribute is determined to be the remote CSE that is not advertised.
下面用一个示例进行说明:Here is an example to illustrate:
应用实体AE1向本地CSE发送通告请求,请求将资源“Resource-AE1”通告到指定的远程CSE上,该通告请求中包含: The application entity AE1 sends an advertisement request to the local CSE, requesting to advertise the resource "Resource-AE1" to the designated remote CSE, the notification request includes:
通告参数:该参数包含一个或多个远程CSE标识的列表,例如:Notification parameters: This parameter contains a list of one or more remote CSE identifiers, for example:
{{
CSE1,CSE1,
CSE2,CSE2,
CSE3,CSE3,
CSE4,CSE4,
CSE5CSE5
}}
该通告请求还可以包括一时间参数。The notification request may also include a time parameter.
本地CSE上的原始资源“Resource-AE1”包含属性“通告到”,“通告到”属性用来保存成功通告到的远程CSE为原始资源“Resource-AE1”创建的通告资源的地址信息(在远程CSE上的地址)。The original resource "Resource-AE1" on the local CSE contains the attribute "advertised to", and the "advertised to" attribute is used to store the address information of the announcement resource created by the remote CSE successfully advertised for the original resource "Resource-AE1" (at the remote). The address on the CSE).
本示例中,原始资源“Resource-AE1”的“通告到”属性的值如下:In this example, the value of the Announce To property of the original resource "Resource-AE1" is as follows:
通告到Notice to
{{
URI1:CSE1-ID.m2mserviceprovider.com\Rsource-AE1-Annc(通告到CSE1的资源的地址),URI1: CSE1-ID.m2mserviceprovider.com\Rsource-AE1-Annc (address of the resource advertised to CSE1),
URI2:CSE2-ID.m2mserviceprovider.com\Rsource-AE1-Annc(通告到CSE2的资源的地址)URI2: CSE2-ID.m2mserviceprovider.com\Rsource-AE1-Annc (address of the resource advertised to CSE2)
};};
本示例中,“CSE-ID”域即上述URI1中的“CSE1-ID”和URI2中的“CSE2-ID”,保存的即远程CSE标识,即远程CSE1的标识和远程CSE2的标识。In this example, the "CSE-ID" field is the "CSE1-ID" in the above URI1 and the "CSE2-ID" in the URI2, and the remote CSE identifier, that is, the identifier of the remote CSE1 and the identifier of the remote CSE2, are stored.
本地CSE接收到AE1的通告请求后,读取其通告参数包含的远程CSE标识的列表,检查本地资源“Resource-AE1”的属性“通告到”中是否包含列表中的远程CSE标识,即将列表的远程CSE标识和属性“通告到”中的URI的“cse-id”域进行比较,看是否存在相同的值。 After receiving the notification request of the AE1, the local CSE reads the list of remote CSE identifiers included in the advertisement parameter, and checks whether the attribute "advertisement to" of the local resource "Resource-AE1" contains the remote CSE identifier in the list, that is, the list is The remote CSE identifier is compared with the "cse-id" field of the URI in the attribute "advertised to" to see if the same value exists.
对属性“通告到”中不包含的远程CSE标识,即为还没有成功通告到的远程CSE,本地CSE向这些远程CSE发送创建通告资源请求,该创建通告资源请求中包含:原始资源“Resource-AE1”的URI;及,原始资源“Resource-AE1”的搜索标签。The remote CSE identifier that is not included in the attribute "advertised to" is the remote CSE that has not been successfully advertised. The local CSE sends a request to create an advertisement resource to the remote CSE, where the creation advertisement resource request includes: the original resource "Resource- The URI of AE1"; and the search tag of the original resource "Resource-AE1".
本地CSE在发送创建通告资源请求消息后,启动定时器T1,如果AE发送给本地CSE的请求消息中包含时间参数,则将T1的值设置为该时间参数的值,如果AE发送给本地CSE的请求消息中不包含时间参数,则本地CSE自行设置T1的值,例如根据本地设置的缺省值;The local CSE starts the timer T1 after sending the advertised resource request message. If the request message sent by the AE to the local CSE includes a time parameter, the value of T1 is set to the value of the time parameter, if the AE is sent to the local CSE. If the time parameter is not included in the request message, the local CSE sets the value of T1 by itself, for example, according to the default value set locally;
远程CSE接收到创建通告资源请求消息后,可以验证发送创建通告资源请求的本地CSE是否具有相应的权限,如验证通过,则为原始资源“Resource-AE1”创建通告资源“Resource-AE1-Annc”,为资源设置属性“原始资源链接”和“标签”,将接收到的原始资源“Resource-AE1”的URI作为属性“原始资源链接”的值保存,将接收到的原始资源“Resource-AE1”的搜索标签作为属性“标签”的值保存;After receiving the advertised resource request message, the remote CSE can verify whether the local CSE that sends the advertised resource request has the corresponding privilege. If the verification succeeds, the advertised resource "Resource-AE1-Annc" is created for the original resource "Resource-AE1". Set the attributes "original resource link" and "tag" for the resource, and save the received URI of the original resource "Resource-AE1" as the value of the attribute "original resource link", and the original resource "Resource-AE1" will be received. The search tag is saved as the value of the attribute "tag";
远程CSE创建通告资源成功后,向本地CSE返回指示通告资源创建成功的成功响应,成功响应中包含通告资源“Resource-AE1-Annc”在该远程CSE上的URI;远程CSE如创建通告资源失败,则向本地CSE返回失败响应。After the remote CSE creates the advertisement resource successfully, it returns a success response indicating that the advertisement resource is successfully created to the local CSE. The success response includes the URI of the resource “Resource-AE1-Annc” on the remote CSE; if the remote CSE fails to create the advertisement resource, A failure response is returned to the local CSE.
本地CSE在T1到时前接收到成功响应后,更新资源“Resource-AE1”的“通告到”属性,即将在响应消息中包含的通告资源“Resource-AE1-Annc”的URI添加到资源“Resource-AE1”的“通告到”属性中。对于T1到时时仍没有接收到其成功响应的远程CSE,本地CSE判定对该远程CSE的通告失败。After receiving the successful response before T1 expires, the local CSE updates the "advertisement to" attribute of the resource "Resource-AE1", and adds the URI of the advertisement resource "Resource-AE1-Annc" included in the response message to the resource "Resource". -AE1" in the "Notification to" attribute. For a remote CSE whose T1 has not received its successful response, the local CSE determines that the notification to the remote CSE has failed.
如果在T1到时前,本地CSE接收到所有远程CSE的响应且其中包含成功响应,则停止定时器T1,向AE发送响应,该响应包含“通告到”属性的当前值;If the local CSE receives a response from all remote CSEs and contains a successful response before T1 expires, the timer T1 is stopped and a response is sent to the AE, the response including the current value of the "advertised to" attribute;
如果在T1到时前,本地CSE接收到所有远程CSE的响应但其中没有成功响应,则停止定时器T1,向AE发送响应,该响应指示通告失败;If the local CSE receives all the responses of the remote CSE but does not respond successfully before T1 expires, the timer T1 is stopped, and a response is sent to the AE, indicating that the notification fails;
如果在T1到时时,本地CSE接收到部分远程CSE的成功响应,则向AE发送响应,该响应包含“通告到”属性的当前值; If the local CSE receives a successful response from a portion of the remote CSE when T1 expires, a response is sent to the AE, the response including the current value of the "advertised to" attribute;
如果在T1到时时,本地CSE没有接收到任何远程CSE的响应或者收到部分远程CSE的响应但其中没有成功响应,向AE发送响应,该响应指示通告失败。If, at time T1, the local CSE does not receive any response from the remote CSE or receives a response from a portion of the remote CSE but does not respond successfully, a response is sent to the AE indicating that the notification failed.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被公共业务实体CSE执行时,使得该CSE可执行上述任意的原始资源通告的方法。The embodiment of the invention further discloses a computer program, comprising program instructions, when the program instruction is executed by the public service entity CSE, so that the CSE can perform the method of any of the foregoing original resource notifications.
本发明实施例还公开了一种载有所述计算机程序的载体。The embodiment of the invention also discloses a carrier carrying the computer program.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the steps described above can be accomplished by a program that instructs the associated hardware, such as a read-only memory, a magnetic or optical disk, and the like. Optionally, all or part of the steps of the foregoing embodiments may also be implemented by using one or more integrated circuits. Accordingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented by using a software function module. Formal realization. The invention is not limited to any specific form of combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
上述原始资源通告的方法及相应的节点,本地CSE可以将AE上的原始资源通告到远程CSE上,并及时将通告结果返回AE,避免资源浪费。因此本发明具有很强的工业实用性。 The method for the original resource advertisement and the corresponding node, the local CSE can advertise the original resource on the AE to the remote CSE, and return the notification result to the AE in time to avoid resource waste. Therefore, the present invention has strong industrial applicability.

Claims (13)

  1. 一种原始资源通告的方法,包括:A method of original resource notification, including:
    本地公共业务实体CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;The local public service entity CSE sends a request for creating an announcement resource to the remote CSE that has not been advertised according to the notification request of the application entity AE to the original resource, and starts a timer;
    本地CSE如收到指示通告资源创建成功的成功响应,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中;If the local CSE receives a successful response indicating that the resource creation success is successful, the address of the advertisement resource included in the local CSE is added to the “advertisement to” attribute of the original resource;
    如果所述定时器到时前,本地CSE收到所有远程CSE的响应,且所有的响应中均包含成功响应,则停止所述定时器,并向所述AE返回第一响应,该第一响应包含所述“通告到”属性的当前值;If the local CSE receives a response from all remote CSEs before the timer expires, and all of the responses include a successful response, stopping the timer and returning a first response to the AE, the first response Contains the current value of the "advertised to" attribute;
    如果所述定时器到时时,本地CSE收到部分远程CSE返回的成功响应,则向所述AE返回第二响应,该第二响应包含所述“通告到”属性的当前值。If the local CSE receives a successful response from a partial remote CSE when the timer expires, a second response is returned to the AE, the second response containing the current value of the "advertised to" attribute.
  2. 如权利要求1所述的原始资源通告的方法,其中:The method of claim 1 of claim 1 wherein:
    如果所述定时器到时前,本地CSE收到所有远程CSE的响应,但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则停止所述定时器,向所述AE返回所述第二响应,该第二响应指示通告失败;If the local CSE receives a response from all remote CSEs before the timer expires, but not all responses include a successful response or all responses do not include a successful response, then the timer is stopped. Said AE returns said second response, said second response indicating that the notification failed;
    如果所述定时器到时时,本地CSE没有收到任何远程CSE返回的响应,或者收到部分远程CSE的响应但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则向所述AE返回所述第二响应,该第二响应指示通告失败。If the timer expires, the local CSE does not receive any response from the remote CSE, or receives a response from some remote CSEs, but not all responses include a successful response or all responses do not include a successful response. Returning the second response to the AE, the second response indicating that the notification failed.
  3. 如权利要求1或2所述的原始资源通告的方法,其中:A method of original resource notification according to claim 1 or 2, wherein:
    所述定时器的定时时长是由本地CSE自行设置的。The timer duration of the timer is set by the local CSE.
  4. 如权利要求1或2所述的原始资源通告的方法,其中:A method of original resource notification according to claim 1 or 2, wherein:
    所述通告请求中包含一时间参数,The notification request includes a time parameter,
    该方法还包括:本地CSE根据所述时间参数的值设置所述定时器的定时时长。 The method further includes the local CSE setting a timing duration of the timer according to a value of the time parameter.
  5. 如权利要求1或2所述的原始资源通告的方法,其中:A method of original resource notification according to claim 1 or 2, wherein:
    所述通告请求中的通告参数包含远程CSE标识的列表;The announcement parameter in the notification request includes a list of remote CSE identifiers;
    所述“通告到”属性包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识;The "advertised to" attribute includes address information of an advertisement resource created by each remote CSE successfully advertised for the original resource, where the address information includes a remote CSE identifier;
    所述本地公共业务实体CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求的步骤之前,该方法还包括:所述本地CSE将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。Before the step of the local public service entity CSE transmitting an advertisement resource request to the remote CSE that has not been advertised, the local public service entity CSE further includes: the local CSE identifying the remote CSE in the local The remote CSE that exists in the list but does not exist in the "advertised to" attribute is determined to be the remote CSE that is not advertised.
  6. 一种公共业务实体CSE,所述公共业务实体CSE包括请求模块、存储模块和响应模块,其中:A public service entity CSE, the public service entity CSE includes a request module, a storage module, and a response module, where:
    所述请求模块设置成:根据在本CSE注册的应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;The requesting module is configured to: according to the notification request of the application entity AE registered by the CSE to the original resource, send a request for creating an advertisement resource to the remote CSE that has not been advertised, and start a timer;
    所述存储模块设置成:保存原始资源的“通告到”属性的值;The storage module is configured to: save a value of an "advertised to" attribute of the original resource;
    所述响应模块设置成:在收到指示通告资源创建成功的成功响应时,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中;且,The response module is configured to: when receiving a successful response indicating that the advertisement resource is successfully created, add an address of the advertisement resource included in the original resource to the “advertisement to” attribute of the original resource;
    如果所述定时器到时前,收到所有远程CSE的响应,且所有的响应中均包含成功响应,则停止所述定时器,并向所述AE返回第一响应,该第一响应包含所述“通告到”属性的当前值;If the response of all remote CSEs is received before the timer expires, and all responses include a successful response, stopping the timer and returning a first response to the AE, the first response including The current value of the "advertise to" attribute;
    如果所述定时器到时时,收到部分远程CSE返回的成功响应,则向所述AE返回第二响应,该第二响应包含所述“通告到”属性的当前值。If the timer expires, a successful response is returned from the partial remote CSE, and a second response is returned to the AE, the second response containing the current value of the "advertised to" attribute.
  7. 如权利要求5所述的CSE,其中,所述响应模块还设置成:The CSE of claim 5 wherein said response module is further configured to:
    如果所述定时器到时前,收到所有远程CSE的响应,但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则停止所述定时器,向所述AE返回所述第二响应,该第二响应指示通告失败;If the response of all remote CSEs is received before the timer expires, but not all responses include a successful response or all responses do not include a successful response, then the timer is stopped, to the AE Returning the second response, the second response indicating that the notification failed;
    如果所述定时器到时时,没有收到任何远程CSE返回的响应,或者收到部分远程CSE的响应但并不是所有的响应中都包括成功响应或者所有的响应 中都不包括成功响应,则向所述AE返回所述第二响应,该第二响应指示通告失败。If the timer expires, no response received by any remote CSE is received, or a response from a remote CSE is received, but not all responses include a successful response or all responses. None of the successful responses are included, and the second response is returned to the AE, the second response indicating that the notification failed.
  8. 如权利要求6或7所述的CSE,该CSE还包括配置模块,其中The CSE of claim 6 or 7, the CSE further comprising a configuration module, wherein
    所述配置模块设置成:设置所述定时器的定时时长。The configuration module is configured to: set a timing duration of the timer.
  9. 如权利要求8所述的CSE,其中,所述配置模块设置成按照如下方式设置所述定时器的定时时长:The CSE of claim 8 wherein said configuration module is configured to set a timing duration of said timer as follows:
    根据所述通告请求中携带的时间参数的值设置所述定时器的定时时长。And setting a timing duration of the timer according to a value of a time parameter carried in the notification request.
  10. 如权利要求6或7所述的CSE,其中:The CSE of claim 6 or 7, wherein:
    所述存储模块保存的所述原始资源的“通告到”属性包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识;The "advertisement to" attribute of the original resource saved by the storage module includes address information of an advertisement resource created by the remote CSE for the original resource, and the address information includes a remote CSE identifier;
    所述通告请求中的通告参数包含远程CSE标识的列表;The announcement parameter in the notification request includes a list of remote CSE identifiers;
    所述请求模块还设置成:将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。The requesting module is further configured to: identify a remote CSE that exists in the list and that does not exist in the "advertised to" attribute, and determines the remote CSE that is not advertised.
  11. 一种机器对机器M2M节点,包括如权利要求6-10中任一项所述的公共业务实体CSE。A machine-to-machine M2M node comprising a public service entity CSE as claimed in any one of claims 6-10.
  12. 一种计算机程序,包括程序指令,当该程序指令被公共业务实体CSE执行时,使得该CSE可执行如权利要求1-5中任一项所述的原始资源通告的方法。A computer program comprising program instructions that, when executed by a public service entity CSE, cause the CSE to perform the method of authenticating resource information as claimed in any one of claims 1-5.
  13. 一种载有如权利要求12所述计算机程序的载体。 A carrier carrying a computer program as claimed in claim 12.
PCT/CN2015/079401 2014-11-28 2015-05-20 Method for notifying original resource, and corresponding node WO2016082492A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410712258.4A CN105635936A (en) 2014-11-28 2014-11-28 Method for annunciating original resource and corresponding node
CN201410712258.4 2014-11-28

Publications (1)

Publication Number Publication Date
WO2016082492A1 true WO2016082492A1 (en) 2016-06-02

Family

ID=56050346

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079401 WO2016082492A1 (en) 2014-11-28 2015-05-20 Method for notifying original resource, and corresponding node

Country Status (2)

Country Link
CN (1) CN105635936A (en)
WO (1) WO2016082492A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107567006A (en) * 2016-06-30 2018-01-09 中兴通讯股份有限公司 Information approach, CSE and the AE of M2M applications
CN108093380B (en) * 2016-11-22 2022-11-08 中兴通讯股份有限公司 Registration state determining method, device and system and CSE

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420287A (en) * 2007-10-22 2009-04-29 中兴通讯股份有限公司 Method for enhancing timer efficiency
CN101848488A (en) * 2009-03-27 2010-09-29 华为技术有限公司 Method, system and equipment for processing connectionless information
CN104093118A (en) * 2014-03-05 2014-10-08 中兴通讯股份有限公司 Resource notification method, machine-to-machine nodes and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420287A (en) * 2007-10-22 2009-04-29 中兴通讯股份有限公司 Method for enhancing timer efficiency
CN101848488A (en) * 2009-03-27 2010-09-29 华为技术有限公司 Method, system and equipment for processing connectionless information
CN104093118A (en) * 2014-03-05 2014-10-08 中兴通讯股份有限公司 Resource notification method, machine-to-machine nodes and system

Also Published As

Publication number Publication date
CN105635936A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
US9894166B2 (en) Registration method and system for common service entity
US10085244B2 (en) Method for guaranteeing operation of control message in wireless communication system and device for same
US9420044B2 (en) Leveraging system signaling service advertisements for application-layer discovery and connection management in an internet of things (IoT) environment
CN106790676B (en) Method and device for realizing subscription notification
JP5805873B2 (en) Method and apparatus for M2M device subscription
US10231107B2 (en) Resource subscription processing method and device
CN107404512B (en) Resource subscription method, resource subscription device and resource subscription system
CN104093118A (en) Resource notification method, machine-to-machine nodes and system
WO2015117391A1 (en) Method for realizing resource attribute notification, and common service entity
WO2014183668A1 (en) Method, node and system for managing resources of machine type communication application
WO2014180438A1 (en) M2m application remote registration method, device, system and storage medium
US20170126828A1 (en) Sending Method and Apparatus and Computer Storage Medium of Notification Message
WO2018000653A1 (en) Information processing method for m2m application, cse and ae
US20160241635A1 (en) M2m data querying and invoking methods, querying and invoking devices, and system
WO2015117446A1 (en) Method and device for sending control resource change notification message
WO2015168981A1 (en) Attribute operating method and apparatus
CN107770754A (en) A kind of notice sending method, device and system
WO2016115885A1 (en) Method and apparatus for processing resource operation request
WO2015117482A1 (en) Update resource notification method, local common service entity and system
WO2015192466A1 (en) Notification message transmission method and device, and computer storage medium
WO2015117342A1 (en) Notification message sending method, device and system
US20170295452A1 (en) Method and Registration Node for Managing Application Resource in Machine to Machine (M2M)
KR102423812B1 (en) Enabling stable decentralized M2M/IoT services
WO2016082492A1 (en) Method for notifying original resource, and corresponding node
WO2015117330A1 (en) Method for deleting notification resource, and common service entity

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: 15863044

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15863044

Country of ref document: EP

Kind code of ref document: A1