WO2016082492A1 - 一种原始资源通告的方法及相应的节点 - Google Patents

一种原始资源通告的方法及相应的节点 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
English (en)
French (fr)
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/zh

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种原始资源通告的方法及相应的节点,本地CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;本地CSE如收到指示通告资源创建成功的成功响应,将其中包含的通告资源的地址添加到原始资源的"通告到"属性中;如定时器到时前,本地CSE收到所有远程CSE的响应且其中包含成功响应,则停止定时器,向AE返回响应,携带"通告到"属性的当前值;如定时器到时时,本地CSE收到部分远程CSE返回的成功响应,则向AE返回响应,携带"通告到"属性的当前值。本发明技术方案的本地CSE可以将AE上的原始资源通告到远程CSE上,并及时将通告结果返回AE,避免资源浪费。

Description

一种原始资源通告的方法及相应的节点 技术领域
本文涉及机器类型通信(MTC:Machine Type Communication)领域,更具体地,涉及到一种原始资源的管理方法及相应的节点。
背景技术
图1是M2M***架构图,如图所示,M2M通信网络由各个M2M节点和承载网络组成。M2M节点通过承载网络实现互相通信,一个M2M节点至少包含一个应用实体(AE)或者一个公共业务实体(CSE)。AE是执行实际M2M应用的逻辑单元,CSE是对应用进行管理和服务的逻辑单元。
M2M***架构中的M2M节点包括应用节点、中间节点和基础节点,其中,应用节点是末端的执行节点,例如智能电表,温度测控传感器,火警报警器,智能家电等等;中间节点是连接末端执行节点到网络侧服务器的中间件,例如网关;基础节点是网络侧的服务器。
M2M应用之间的通信是通过CSE之间的交互来实现,M2M应用通过X接口连接到CSE,CSE之间通过Y接口进行通信,而通信的前提是M2M应用首先需要在本地CSE进行注册,然后才能通过CSE之间的通信实现M2M应用的交互。
AE需要在中间节点上的CSE进行注册才能加入M2M网络,从而作为M2M***的应用节点进行服务。此时,中间节点上的CSE称为AE的注册CSE或本地CSE,基础节点上的CSE称为AE的远程CSE。
在实际应用中,应用节点上的AE相关资源需要注册到应用节点上的CSE,而不需要注册到中间节点的CSE和基础节点的CSE,在相关技术中,例如基础节点上的应用需要查找应用节点上的应用时,需要发送请求到所有连接到该基础节点的中间节点,并由中间节点将查询请求转发到各个应用节点,不仅消耗了大量的网络资源,也耗费较长的时间。
发明内容
有鉴于此,本发明要解决的技术问题是提供一种原始资源通告的方法及相应的节点,以避免资源浪费。
为解决上述问题,采用如下技术方案:
一种原始资源通告的方法,包括:
本地公共业务实体CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;
本地CSE如收到指示通告资源创建成功的成功响应,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中;
如果所述定时器到时前,本地CSE收到所有远程CSE的响应,且所有的响应中均包含成功响应,则停止所述定时器,并向所述AE返回第一响应,该第一响应包含所述“通告到”属性的当前值;
如果所述定时器到时时,本地CSE收到部分远程CSE返回的成功响应,则向所述AE返回第二响应,该第二响应包含所述“通告到”属性的当前值。
可选地,如果所述定时器到时前,本地CSE收到所有远程CSE的响应,但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则停止所述定时器,向所述AE返回所述第二响应,该第二响应指示通告失败;
如果所述定时器到时时,本地CSE没有收到任何远程CSE返回的响应,或者收到部分远程CSE的响应但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则向所述AE返回所述第二响应,该第二响应指示通告失败。
可选地,所述定时器的定时时长是由本地CSE自行设置的。
可选地,所述通告请求中包含一时间参数,
该方法还包括:本地CSE根据所述时间参数的值设置所述定时器的定时时长。
可选地,所述通告请求中的通告参数包含远程CSE标识的列表;
所述“通告到”属性包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识;
所述本地公共业务实体CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求的步骤之前,该方法还包括:所述本地CSE将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。
一种公共业务实体CSE,所述公共业务实体CSE包括请求模块、存储模块和响应模块,其中:
所述请求模块设置成:根据在本CSE注册的应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;
所述存储模块设置成:保存原始资源的“通告到”属性的值;
所述响应模块设置成:在收到指示通告资源创建成功的成功响应时,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中;且,
如果所述定时器到时前,收到所有远程CSE的响应,且所有的响应中均包含成功响应,则停止所述定时器,并向所述AE返回第一响应,该第一响应包含所述“通告到”属性的当前值;
如果所述定时器到时时,收到部分远程CSE返回的成功响应,则向所述AE返回第二响应,该第二响应包含所述“通告到”属性的当前值。
可选地,所述响应模块还设置成:
如果所述定时器到时前,收到所有远程CSE的响应,但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则停止所述定时器,向所述AE返回所述第二响应,该第二响应指示通告失败;
如果所述定时器到时时,没有收到任何远程CSE返回的响应,或者收到部分远程CSE的响应但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则向所述AE返回所述第二响应,该第二响应指示通告失败。
可选地,该CSE还包括配置模块,其中
所述配置模块设置成:设置所述定时器的定时时长。
可选地,所述配置模块设置成按照如下方式设置所述定时器的定时时长:
根据所述通告请求中携带的时间参数的值设置所述定时器的定时时长。
可选地,
所述存储模块保存的所述原始资源的“通告到”属性包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识;
所述通告请求中的通告参数包含远程CSE标识的列表;
所述请求模块还设置成:将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。
一种机器对机器M2M节点,包括上述任意的公共业务实体CSE。
一种计算机程序,包括程序指令,当该程序指令被公共业务实体CSE执行时,使得该CSE可执行上述任意的原始资源通告的方法。
一种载有所述计算机程序的载体。
上述原始资源通告的方法及相应的节点,本地CSE可以将AE上的原始资源通告到远程CSE上,并及时将通告结果返回AE,避免资源浪费。
附图概述
图1是M2M***的架构图;
图2是本发明实施例的原始资源通告方法的流程图;及
图3是本发明实施例的M2M节点的模块图。
本发明的较佳实施方式
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
如图2所示,本实施例原始资源通告的方法包括:
步骤110,本地CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;
本地CSE即所述AE注册的CSE。所述AE发送的通告请求中会携带通告参数,通告参数包含远程CSE标识的列表,其中的远程CSE标识是所述AE希望通告到的远程CSE的标识。
本地CSE上保存有原始资源的“通告到”属性,其中包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识(成功通告到的远程CSE的标识)。这些地址信息即“通告到”属性的值。
所述本地CSE可以将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。
较佳地,本地CSE可以自行设置所述定时器的定时时长。较佳地,所述通告请求中还包含一时间参数,本地CSE根据所述时间参数的值设置所述定时器的定时时长。
步骤120,本地CSE如收到指示通告资源创建成功的成功响应,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中;
远程CSE收到创建通告资源请求后,会为所述原始资源创建通告资源,如创建通告资源成功,则向本地CSE返回指示通告资源创建成功的成功响应,成功响应中包含该远程CSE为所述原始资源创建的通告资源的地址如通用资源标识符(Uniform Resource Identifier,简称"URI")。如果CSE收到远程CSE返回的成功响应,说明所述原始资源成功通告到所述远程CSE,因而需要对所述原始资源的“通告到”属性进行更新。
步骤130,本地CSE根据收到的远程CSE的响应,向所述AE返回相应的响应。
具体地:
如果所述定时器到时前,本地CSE收到所有远程CSE的响应且其中包含成功响应,则停止定时器,向所述AE返回响应,该响应包含所述“通告到”属性的当前值;
如果所述定时器到时时,本地CSE收到部分远程CSE返回的成功响应,则向所述AE返回响应,该响应包含所述“通告到”属性的当前值;
如果所述定时器到时前,本地CSE收到所有远程CSE的响应但其中没有成功响应,则停止定时器,向所述AE返回响应,该响应指示通告失败,此时该响应也可以包含所述“通告到”属性的当前值,只是该当前值相对于此次通告之前并没有变化;
如果所述定时器到时时,本地CSE没有收到任何远程CSE返回的响应或者收到部分远程CSE的响应但其中没有成功响应,则向所述AE返回响应,该响应指示通告失败,此时该响应也可以包含所述“通告到”属性的当前值,只是该当前值相对于此次通告之前并没有变化。
上述处理对于所述定时器到时时,本地CSE还没有接收到某一远程CSE返回的响应,也认为对该远程CSE的通告失败。
相应地,本实施例提供的机器对机器M2M节点包括公共业务实体CSE,所述公共业务实体CSE包括:
请求模块10,设置成:根据在本CSE注册的应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;
存储模块20,设置成:保存原始资源的“通告到”属性的值;
响应模块30,设置成:在收到指示通告资源创建成功的成功响应时,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中,及设置成:
如果所述定时器到时前,本地CSE收到所有远程CSE的响应且其中包含成功响应,则停止定时器,向所述AE返回响应,该响应包含所述“通告到”属性的当前值;
如果所述定时器到时时,本地CSE收到部分远程CSE返回的成功响应,则向所述AE返回响应,该响应包含所述“通告到”属性的当前值。
较佳地,所述响应模块30还设置成:
如果所述定时器到时前,本地CSE收到所有远程CSE的响应但其中没有成功响应,则停止定时器,向所述AE返回响应,该响应指示通告失败或包含所述“通告到”属性的当前值;
如果所述定时器到时时,本地CSE没有收到任何远程CSE返回的响应或者收到部分远程CSE的响应但其中没有成功响应,则向所述AE返回响应,该响应指示通告失败或包含所述“通告到”属性的当前值。
较佳地,
所述M2M节点还包括:配置模块,设置成:设置所述定时器的定时时长,或根据所述通告请求中携带的时间参数的值设置所述定时器的定时时长。
较佳地,
所述存储模块保存的所述原始资源的“通告到”属性包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识;
所述请求模块根据对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,其中,所述通告请求中的通告参数包含远程CSE标识的列表,所述请求模块将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。
下面用一个示例进行说明:
应用实体AE1向本地CSE发送通告请求,请求将资源“Resource-AE1”通告到指定的远程CSE上,该通告请求中包含:
通告参数:该参数包含一个或多个远程CSE标识的列表,例如:
{
CSE1,
CSE2,
CSE3,
CSE4,
CSE5
}
该通告请求还可以包括一时间参数。
本地CSE上的原始资源“Resource-AE1”包含属性“通告到”,“通告到”属性用来保存成功通告到的远程CSE为原始资源“Resource-AE1”创建的通告资源的地址信息(在远程CSE上的地址)。
本示例中,原始资源“Resource-AE1”的“通告到”属性的值如下:
通告到
{
URI1:CSE1-ID.m2mserviceprovider.com\Rsource-AE1-Annc(通告到CSE1的资源的地址),
URI2:CSE2-ID.m2mserviceprovider.com\Rsource-AE1-Annc(通告到CSE2的资源的地址)
};
本示例中,“CSE-ID”域即上述URI1中的“CSE1-ID”和URI2中的“CSE2-ID”,保存的即远程CSE标识,即远程CSE1的标识和远程CSE2的标识。
本地CSE接收到AE1的通告请求后,读取其通告参数包含的远程CSE标识的列表,检查本地资源“Resource-AE1”的属性“通告到”中是否包含列表中的远程CSE标识,即将列表的远程CSE标识和属性“通告到”中的URI的“cse-id”域进行比较,看是否存在相同的值。
对属性“通告到”中不包含的远程CSE标识,即为还没有成功通告到的远程CSE,本地CSE向这些远程CSE发送创建通告资源请求,该创建通告资源请求中包含:原始资源“Resource-AE1”的URI;及,原始资源“Resource-AE1”的搜索标签。
本地CSE在发送创建通告资源请求消息后,启动定时器T1,如果AE发送给本地CSE的请求消息中包含时间参数,则将T1的值设置为该时间参数的值,如果AE发送给本地CSE的请求消息中不包含时间参数,则本地CSE自行设置T1的值,例如根据本地设置的缺省值;
远程CSE接收到创建通告资源请求消息后,可以验证发送创建通告资源请求的本地CSE是否具有相应的权限,如验证通过,则为原始资源“Resource-AE1”创建通告资源“Resource-AE1-Annc”,为资源设置属性“原始资源链接”和“标签”,将接收到的原始资源“Resource-AE1”的URI作为属性“原始资源链接”的值保存,将接收到的原始资源“Resource-AE1”的搜索标签作为属性“标签”的值保存;
远程CSE创建通告资源成功后,向本地CSE返回指示通告资源创建成功的成功响应,成功响应中包含通告资源“Resource-AE1-Annc”在该远程CSE上的URI;远程CSE如创建通告资源失败,则向本地CSE返回失败响应。
本地CSE在T1到时前接收到成功响应后,更新资源“Resource-AE1”的“通告到”属性,即将在响应消息中包含的通告资源“Resource-AE1-Annc”的URI添加到资源“Resource-AE1”的“通告到”属性中。对于T1到时时仍没有接收到其成功响应的远程CSE,本地CSE判定对该远程CSE的通告失败。
如果在T1到时前,本地CSE接收到所有远程CSE的响应且其中包含成功响应,则停止定时器T1,向AE发送响应,该响应包含“通告到”属性的当前值;
如果在T1到时前,本地CSE接收到所有远程CSE的响应但其中没有成功响应,则停止定时器T1,向AE发送响应,该响应指示通告失败;
如果在T1到时时,本地CSE接收到部分远程CSE的成功响应,则向AE发送响应,该响应包含“通告到”属性的当前值;
如果在T1到时时,本地CSE没有接收到任何远程CSE的响应或者收到部分远程CSE的响应但其中没有成功响应,向AE发送响应,该响应指示通告失败。
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被公共业务实体CSE执行时,使得该CSE可执行上述任意的原始资源通告的方法。
本发明实施例还公开了一种载有所述计算机程序的载体。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
上述原始资源通告的方法及相应的节点,本地CSE可以将AE上的原始资源通告到远程CSE上,并及时将通告结果返回AE,避免资源浪费。因此本发明具有很强的工业实用性。

Claims (13)

  1. 一种原始资源通告的方法,包括:
    本地公共业务实体CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;
    本地CSE如收到指示通告资源创建成功的成功响应,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中;
    如果所述定时器到时前,本地CSE收到所有远程CSE的响应,且所有的响应中均包含成功响应,则停止所述定时器,并向所述AE返回第一响应,该第一响应包含所述“通告到”属性的当前值;
    如果所述定时器到时时,本地CSE收到部分远程CSE返回的成功响应,则向所述AE返回第二响应,该第二响应包含所述“通告到”属性的当前值。
  2. 如权利要求1所述的原始资源通告的方法,其中:
    如果所述定时器到时前,本地CSE收到所有远程CSE的响应,但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则停止所述定时器,向所述AE返回所述第二响应,该第二响应指示通告失败;
    如果所述定时器到时时,本地CSE没有收到任何远程CSE返回的响应,或者收到部分远程CSE的响应但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则向所述AE返回所述第二响应,该第二响应指示通告失败。
  3. 如权利要求1或2所述的原始资源通告的方法,其中:
    所述定时器的定时时长是由本地CSE自行设置的。
  4. 如权利要求1或2所述的原始资源通告的方法,其中:
    所述通告请求中包含一时间参数,
    该方法还包括:本地CSE根据所述时间参数的值设置所述定时器的定时时长。
  5. 如权利要求1或2所述的原始资源通告的方法,其中:
    所述通告请求中的通告参数包含远程CSE标识的列表;
    所述“通告到”属性包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识;
    所述本地公共业务实体CSE根据应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求的步骤之前,该方法还包括:所述本地CSE将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。
  6. 一种公共业务实体CSE,所述公共业务实体CSE包括请求模块、存储模块和响应模块,其中:
    所述请求模块设置成:根据在本CSE注册的应用实体AE对原始资源的通告请求,向还没有通告到的远程CSE发送创建通告资源请求,并启动一定时器;
    所述存储模块设置成:保存原始资源的“通告到”属性的值;
    所述响应模块设置成:在收到指示通告资源创建成功的成功响应时,将其中包含的通告资源的地址添加到所述原始资源的“通告到”属性中;且,
    如果所述定时器到时前,收到所有远程CSE的响应,且所有的响应中均包含成功响应,则停止所述定时器,并向所述AE返回第一响应,该第一响应包含所述“通告到”属性的当前值;
    如果所述定时器到时时,收到部分远程CSE返回的成功响应,则向所述AE返回第二响应,该第二响应包含所述“通告到”属性的当前值。
  7. 如权利要求5所述的CSE,其中,所述响应模块还设置成:
    如果所述定时器到时前,收到所有远程CSE的响应,但并不是所有的响应中都包括成功响应或者所有的响应中都不包括成功响应,则停止所述定时器,向所述AE返回所述第二响应,该第二响应指示通告失败;
    如果所述定时器到时时,没有收到任何远程CSE返回的响应,或者收到部分远程CSE的响应但并不是所有的响应中都包括成功响应或者所有的响应 中都不包括成功响应,则向所述AE返回所述第二响应,该第二响应指示通告失败。
  8. 如权利要求6或7所述的CSE,该CSE还包括配置模块,其中
    所述配置模块设置成:设置所述定时器的定时时长。
  9. 如权利要求8所述的CSE,其中,所述配置模块设置成按照如下方式设置所述定时器的定时时长:
    根据所述通告请求中携带的时间参数的值设置所述定时器的定时时长。
  10. 如权利要求6或7所述的CSE,其中:
    所述存储模块保存的所述原始资源的“通告到”属性包含成功通告到的每一远程CSE为所述原始资源创建的通告资源的地址信息,所述地址信息中包含远程CSE标识;
    所述通告请求中的通告参数包含远程CSE标识的列表;
    所述请求模块还设置成:将远程CSE标识在所述列表中存在而在所述“通告到”属性中不存在的远程CSE,确定为所述没有通告到的远程CSE。
  11. 一种机器对机器M2M节点,包括如权利要求6-10中任一项所述的公共业务实体CSE。
  12. 一种计算机程序,包括程序指令,当该程序指令被公共业务实体CSE执行时,使得该CSE可执行如权利要求1-5中任一项所述的原始资源通告的方法。
  13. 一种载有如权利要求12所述计算机程序的载体。
PCT/CN2015/079401 2014-11-28 2015-05-20 一种原始资源通告的方法及相应的节点 WO2016082492A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410712258.4A CN105635936A (zh) 2014-11-28 2014-11-28 一种原始资源通告的方法及相应的节点
CN201410712258.4 2014-11-28

Publications (1)

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

Family

ID=56050346

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/079401 WO2016082492A1 (zh) 2014-11-28 2015-05-20 一种原始资源通告的方法及相应的节点

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107567006A (zh) 2016-06-30 2018-01-09 中兴通讯股份有限公司 M2m应用的信息方法、cse及ae
CN108093380B (zh) * 2016-11-22 2022-11-08 中兴通讯股份有限公司 注册状态的确定方法、装置及***、cse

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420287A (zh) * 2007-10-22 2009-04-29 中兴通讯股份有限公司 一种提高定时器效率的方法
CN101848488A (zh) * 2009-03-27 2010-09-29 华为技术有限公司 处理无连接消息的方法、***和设备
CN104093118A (zh) * 2014-03-05 2014-10-08 中兴通讯股份有限公司 一种资源通告的方法、机器对机器节点和***

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420287A (zh) * 2007-10-22 2009-04-29 中兴通讯股份有限公司 一种提高定时器效率的方法
CN101848488A (zh) * 2009-03-27 2010-09-29 华为技术有限公司 处理无连接消息的方法、***和设备
CN104093118A (zh) * 2014-03-05 2014-10-08 中兴通讯股份有限公司 一种资源通告的方法、机器对机器节点和***

Also Published As

Publication number Publication date
CN105635936A (zh) 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 (zh) 订阅通知的实现方法和装置
JP5805873B2 (ja) M2mデバイスサブスクリプションのための方法及び装置
CN104618312B (zh) 一种m2m应用的远程注册方法、装置和***
US10231107B2 (en) Resource subscription processing method and device
CN107404512B (zh) 资源订阅方法、资源订阅装置和资源订阅系統
CN104093118A (zh) 一种资源通告的方法、机器对机器节点和***
WO2015117391A1 (zh) 一种实现资源属性通告的方法和公共业务实体
WO2014183668A1 (zh) 一种机器类型通信应用的资源管理方法、节点和***
US20170126828A1 (en) Sending Method and Apparatus and Computer Storage Medium of Notification Message
WO2018000653A1 (zh) M2m应用的信息方法、cse及ae
WO2015117446A1 (zh) 控制资源变更通知消息发送方法及装置
WO2015168981A1 (zh) 属性的操作方法及装置
WO2015154459A1 (zh) 订阅资源变更通知的方法及装置
CN107770754A (zh) 一种通知发送方法、装置和***
WO2016115885A1 (zh) 资源操作请求的处理方法及装置
WO2015117482A1 (zh) 更新资源通告的方法、本地公共业务实体及***
WO2015192466A1 (zh) 一种通知消息发送方法及装置、计算机存储介质
WO2015117342A1 (zh) 一种通知消息的发送方法、装置和***
US20170295452A1 (en) Method and Registration Node for Managing Application Resource in Machine to Machine (M2M)
KR102423812B1 (ko) 안정적인 분산형 M2M/IoT 서비스들의 가능화
WO2016082492A1 (zh) 一种原始资源通告的方法及相应的节点
WO2015117330A1 (zh) 一种删除通告资源的方法和公共业务实体

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