WO2015117391A1 - 一种实现资源属性通告的方法和公共业务实体 - Google Patents

一种实现资源属性通告的方法和公共业务实体 Download PDF

Info

Publication number
WO2015117391A1
WO2015117391A1 PCT/CN2014/089093 CN2014089093W WO2015117391A1 WO 2015117391 A1 WO2015117391 A1 WO 2015117391A1 CN 2014089093 W CN2014089093 W CN 2014089093W WO 2015117391 A1 WO2015117391 A1 WO 2015117391A1
Authority
WO
WIPO (PCT)
Prior art keywords
attribute
advertised
resource
cse
created
Prior art date
Application number
PCT/CN2014/089093
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 中兴通讯股份有限公司
Priority to EP14881987.3A priority Critical patent/EP3174318B1/en
Priority to US15/328,126 priority patent/US10051552B2/en
Publication of WO2015117391A1 publication Critical patent/WO2015117391A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/14Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]

Definitions

  • the present invention relates to the field of terminal communication technologies, and in particular, to a method and a public service entity for implementing resource attribute advertisement.
  • the M2M (machine-to-machine) communication network consists of various M2M nodes and bearer networks.
  • the M2M nodes communicate with each other through a bearer network.
  • An M2M node includes at least one Application Entity (AE) or a Common Service Entity (CSE).
  • AE Application Entity
  • CSE Common Service Entity
  • An application entity is a logical unit that executes an actual M2M application
  • a public service entity is a logical unit that manages and services an application.
  • the communication between the M2M applications is realized through the interaction between the public service entities CSE.
  • the M2M applications need to register with each other through the CSE, and the CSEs need to register with each other before the M2M application interaction can be realized through the communication between the CSEs.
  • the architecture diagram is shown in Figure 1.
  • the application node is the 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 middleware that connects the end execution node to the network side server, such as a gateway, and a base.
  • the node is a server on the network side, and the application registered to the base node may be a management platform of the M2M service provider.
  • the application entity AE on the application node needs to be registered to the public service entity on the application node without registering to the public service entity of the intermediate node and the public service entity of the base node.
  • the CSE registered by the application AE is called a local CSE, and the other CSEs are called remote CSEs.
  • the CSE should also be registered on the CSE that needs to communicate with it.
  • CSE1 is registered to CSE2
  • CSE2 is called the local CSE of CSE1.
  • the AE or CSE can create resources on its local CSE.
  • a created resource on a local CSE is called an original resource
  • a resource created on a remote CSE by means of an advertisement is called an announcement resource.
  • an application on a basic node needs to find an application on an application node, it sends a request to all intermediate nodes connected to the basic node, so that the intermediate node can find the intermediate node.
  • the resource on the application node uses the resource advertisement method to create an advertisement resource corresponding to the original resource on the application node on the intermediate node, and the notification resource has the same "search label" as the original resource, and can be linked to the "original resource”.
  • the intermediate node can conveniently search for the required resources and link to the "original resource address" according to the announcement resource to access the original resource.
  • the attribute "advertised to” created on the original resource is used to indicate to which remote CSE the original resource is advertised.
  • the application entity AE sends a create resource request to the local CSE, and the request message includes: a resource type parameter and an attribute parameter (attribute 1, attribute 2, ).
  • the local CSE creates an application type resource "AE1" for the AE, and creates each attribute according to the indication of the attribute parameter: for example, creating attribute 1, the attribute name of the attribute 1 is "application name”, attribute Set the value to "myApplication”; create attribute 2, attribute name of attribute 2 is "application ID”, attribute value is set to "AE-ID”; create attribute 3, attribute name of attribute 3 is "advertised to”, attribute value is After receiving the response returned by the remote CSE, the remote CSE address is first sent, and the remote CSE address is sent to the remote CSE address in the attribute parameter “advertised to” of the resource creation request.
  • the advertisement resource "AE1_Annc" is created on the remote CSE, and a response message is sent to the local CSE, and the response message contains the address of the advertisement resource "AE1_Annc".
  • the local CSE saves the address of the received advertisement resource in the attribute "advertised to" of the resource "AE1".
  • the advertisement resource is created on the remote CSE
  • the attribute of the resource is not created on the remote CSE. Therefore, if the attribute of the resource is queried on the remote CSE, the address of the original resource needs to be linked to complete the query.
  • the query speed is slower and less efficient.
  • the embodiment of the invention provides a method for implementing resource attribute advertisement and a public service entity, which can conveniently query the attributes of the resource remotely, and improve the speed and efficiency of the remote query.
  • a method for implementing resource attribute notification comprising:
  • the public service entity CSE receives an update resource request, where the update resource request includes an original resource address parameter and an advertised attribute parameter;
  • the CSE Determining, by the CSE, the locally created corresponding original resource and its attribute according to the original resource address parameter, and when determining that the advertised attribute parameter includes an attribute name of the advertised attribute, the original resource has been advertised to the remote CSE but the original When the resource has not created the "advertised attribute", the CSE sends an update resource request to the remote CSE, carrying the address of the advertised resource of the original resource on the remote CSE, the attribute name of the advertised attribute, and Locally saved property values.
  • the method further includes the following features:
  • the CSE determines that the advertised attribute parameter includes an attribute name of an advertised attribute, the original resource has been advertised to a remote CSE but the original resource has not created an "advertised attribute", the CSE is to the remote After the CSE sends an update resource request, the method further includes:
  • the method further includes the following features:
  • the method further includes:
  • the CSE creates an "advertised attribute” attribute for the original resource; when the response for indicating the successful creation of the attribute is received, the attribute name of the advertised attribute that is successfully created is saved in the original resource In the "Notified Properties” property.
  • the method further includes the following features:
  • the CSE further includes:
  • the CSE sends an update resource request to the remote CSE, carrying the original resource at the remote.
  • the address of the advertising resource on the CSE the name of the attribute saved in the "advertised attribute” attribute, and its attribute value, all of which are set to null.
  • the method further includes the following features:
  • the CSE determines that the value of the advertised attribute parameter is null, and the original resource has created an "advertised attribute” attribute
  • the CSE sends an update resource request to the remote CSE.
  • the method further comprises: deleting the "advertised attribute” attribute of the original resource.
  • the method further includes the following features:
  • the method further includes:
  • the method further includes the following features:
  • the method further includes:
  • the CSE feeds back to the sender of the update resource request a response message indicating that the resource update failed.
  • a method for implementing resource attribute notification comprising:
  • the public service entity CSE receives an update resource request, where the update advertisement resource request includes an attribute name and an attribute value of the advertisement resource address parameter and the advertised attribute;
  • the CSE finds a locally created corresponding advertisement resource according to the advertisement resource address parameter, and determines that the update resource request includes an attribute name of the advertised attribute and a non-empty attribute value, and the notification resource has not been created.
  • the attribute corresponding to the attribute is advertised, the attribute corresponding to the advertised attribute is created for the advertised resource.
  • the sender that updates the resource request feeds back a response indicating that the attribute is successfully created.
  • the method further includes:
  • the CSF determines that the update resource request includes an attribute name of the advertised attribute and an attribute value that is set to be empty, the attribute corresponding to the advertised attribute that has been created by the advertised resource is deleted, and after the deletion is successful, the resource request is updated.
  • the sender's feedback is used to indicate a response to the successful deletion of the attribute.
  • a public business entity that includes:
  • a request receiving module configured to: receive an update resource request, and the update resource request packet Contains original resource address parameters and advertised attribute parameters;
  • An attribute advertisement processing module is configured to: find a locally created corresponding original resource and an attribute thereof according to the original resource address parameter, and when the advertised attribute parameter includes an attribute name of the advertiseable attribute, the original resource is advertised to When the remote CSE has not created the "advertised attribute" attribute, the remote resource sends an update resource request to the remote CSE, and carries the address of the advertised resource of the original resource on the remote CSE, the advertised attribute The attribute name and the locally saved attribute value.
  • the public service entity further includes the following features:
  • the attribute advertisement processing module is further configured to: when it is determined that the advertised attribute parameter includes an attribute name of the advertised attribute, the original resource has been advertised to the remote CSE but the original resource has not created the “advertised attribute”, After the remote CSE sends an update resource request, when the CSE receives a response indicating that the attribute is successfully created, an "advertised attribute” attribute is created for the original resource, and the attribute of the advertised attribute that is successfully created is successfully created. The name is saved in the "advertised attribute” attribute of the original resource.
  • the public service entity further includes the following features:
  • the attribute advertisement processing module is further configured to: when it is determined that the advertised attribute parameter includes an attribute name of the advertised attribute, the original resource has been advertised to the remote CSE but the original resource has not created the “advertised attribute”, The "advertised attribute” attribute is created for the original resource at the same time as or after the remote CSE sends the update resource request; when the response for indicating the successful creation of the attribute is received, the advertised attribute to be successfully created The attribute name is saved in the "advertised attribute” attribute of the original resource.
  • the public service entity further includes the following features:
  • the attribute advertisement processing module is further configured to: after receiving the update resource request, when determining that the value of the advertised attribute parameter is null, and the original resource has created an “advertised attribute” attribute, The remote CSE sends an update resource request, carrying an address of the advertised resource of the original resource on the remote CSE, an attribute name saved in the “advertised attribute” attribute, and an attribute value thereof, and the attribute value is set to be empty. .
  • the public service entity further includes the following features:
  • the attribute advertisement processing module is further configured to: when it is determined that the value of the advertised attribute parameter is null, and the original resource has created the “advertised attribute” attribute, send the update resource request to the remote CSE simultaneously or after , delete the "advertised attribute” attribute of the original resource.
  • the public service entity further includes the following features:
  • the attribute advertisement processing module is further configured to: when it is determined that the value of the advertised attribute parameter is null, and the original resource has created the “advertised attribute” attribute, after receiving the update resource request to the remote CSE, receiving the update resource request When the response indicating the successful deletion of the attribute is used, the "advertised attribute" attribute of the original resource is deleted.
  • the public service entity further includes the following features:
  • a feedback module configured to: after the request receiving module receives the update resource request, when the original resource does not include the “advertised to” attribute, feed back to the sender of the update resource request to indicate a resource update failure response Message.
  • a public business entity that includes:
  • a request receiving module configured to: receive an update resource request, where the update resource request includes an attribute name and an attribute value of an advertisement resource address parameter and an advertised attribute;
  • An attribute creation and deletion processing module is configured to: find a locally created corresponding advertisement resource according to the advertisement resource address parameter, and determine that the update resource request includes an attribute name of the advertised attribute and a non-empty attribute value, and the When the advertised resource has not created the attribute corresponding to the advertiseable attribute, the Attribute corresponding to the advertised attribute is created for the advertised resource. After the creation is successful, the sender of the updated resource request feeds back a response indicating that the attribute is successfully created. .
  • the public service entity further includes the following features:
  • the attribute creation and deletion processing module is further configured to: after the request receiving module receives the update resource request, when determining that the update resource request includes an attribute name of the advertised attribute and an attribute value set to be empty, The attribute corresponding to the advertised attribute that has been created by the advertised resource is deleted. After the deletion is successful, the sender of the updated resource request feeds back a response indicating that the attribute is successfully deleted.
  • Embodiments of the present invention also provide a computer program, including program instructions, when the program instructions are When the public service entity executes, the public service entity is enabled to perform the method described above.
  • Embodiments of the present invention also provide a computer readable storage medium carrying the above computer program.
  • the method for implementing the resource attribute advertisement and the public service entity provided by the embodiment of the present invention, by advertising the attribute of the original resource to the remote CSE, creating a corresponding attribute on the advertisement resource, so that the query party only needs to query the attribute of the resource.
  • the query is directly performed on the remote CSE without linking to the original resource, the speed and efficiency of the remote query are improved, and the signaling generated by the query is reduced, thereby saving network resources.
  • FIG. 1 is a schematic diagram of a machine type communication system in the related art
  • FIG. 2 is a flowchart of a method (local CSE) for implementing resource attribute advertisement according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method (remote CSE) for implementing resource attribute advertisement according to an embodiment of the present invention
  • FIG. 4 is a structural diagram of a public service entity (local CSE) according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of a public service entity (remote CSE) according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for implementing resource attribute advertisement, where the method includes:
  • the public service entity CSE receives an update resource request, where the update resource request includes an original resource address parameter and an advertised attribute parameter.
  • the CSE finds a corresponding original resource that is locally created and an attribute thereof according to the original resource address parameter, and determines that the advertised attribute parameter includes an attribute name of the advertised attribute,
  • the original resource has been advertised to the remote CSE, but the original resource has not yet created an "advertised attribute”
  • the CSE sends an update resource request to the remote CSE, carrying the original resource on the remote CSE to advertise the resource.
  • the address, the attribute name of the advertised attribute, and the locally saved attribute value is the CSE finds a corresponding original resource that is locally created and an attribute thereof according to the original resource address parameter, and determines that the advertised attribute parameter includes an attribute name of the advertised attribute,
  • the original resource has been advertised to the remote CSE, but the original resource has not yet created an "advertised attribute”
  • the CSE sends an update resource request to the remote CSE, carrying the original resource on the remote CSE to advertise the resource.
  • the address, the attribute name of the advertised attribute, and the locally saved attribute value is the address, the attribute name
  • the CSE determines that the original resource has been advertised to the remote CSE, and includes: if the original resource includes an “advertised to” attribute, the CSE determines that the original resource has been advertised to the remote CSE.
  • the CSE if it is determined that the advertised attribute parameter includes an attribute name of an advertised attribute, the original resource has been advertised to a remote CSE but the original resource has not created an “advertised attribute”, then the CSE After sending the update resource request to the remote CSE, the method further includes:
  • the CSE receives a response indicating that the attribute is successfully created, creating an "advertised attribute" attribute for the original resource, and saving the attribute name of the successfully created advertised attribute in the original resource In the Notification Properties property.
  • the CSE if it is determined that the advertised attribute parameter includes an attribute name of an advertised attribute, the original resource has been advertised to a remote CSE but the original resource has not created an “advertised attribute”, then the CSE Simultaneously or after sending an update resource request to the remote CSE, the method further includes:
  • the CSE creates an "advertised attribute” attribute for the original resource; if the response for indicating the successful creation of the attribute is received, the attribute name of the successfully advertised attribute is saved in the original resource.
  • the "Notified Properties” property In the "Notified Properties” property.
  • the attribute name of the advertised attribute that is successfully created is saved in the “advertised attribute” attribute of the original resource, indicating that the advertised attribute has been advertised to the remote CSE.
  • the CSE further includes:
  • the CSE sends an update resource request to the remote CSE, carrying the original resource at the remote.
  • the address of the advertising resource on the CSE the name of the attribute saved in the "advertised attribute” attribute, and its attribute value, all of which are set to null.
  • the CSE sends an update resource request to the remote CSE or After that, the method further includes: deleting the "advertised attribute" attribute of the original resource.
  • the CSE sends an update resource request to the remote CSE, and further include:
  • the CSE further includes:
  • the CSE feeds back to the sender of the update resource request a response message indicating that the resource update failed.
  • an embodiment of the present invention provides a method for implementing resource attribute advertisement, where the method includes:
  • the public service entity CSE receives an update resource request, where the update advertisement resource request includes an attribute name and an attribute value of the advertisement resource address parameter and the advertiseable attribute.
  • the CSE finds a locally created corresponding advertisement resource according to the advertisement resource address parameter, and determines that the update resource request includes an attribute name of the advertised attribute and a non-empty attribute value, and the advertisement resource has not been created yet.
  • the attribute corresponding to the advertised attribute is used to create an attribute corresponding to the advertised attribute for the advertised resource. If the creation is successful, the sender of the update resource request feeds back a response indicating that the attribute is successfully created.
  • the CSE further includes:
  • the update resource request includes an attribute name of the advertised attribute and an attribute value that is set to be empty
  • the attribute corresponding to the advertised attribute that has been created by the advertised resource is deleted, and if the deletion is successful, the sender of the updated resource request is sent.
  • the feedback is used to indicate a response to the successful deletion of the attribute.
  • an embodiment of the present invention provides a public service entity, including:
  • the request receiving module is configured to: receive an update resource request, where the update resource request includes an original resource address parameter and an advertised attribute parameter;
  • the attribute advertisement processing module is configured to: find the corresponding original resource and its attribute locally created according to the original resource address parameter, and determine that the advertised attribute parameter includes an attribute name of the advertised attribute, and the original resource is advertised to the remote CSE but the original resource has not been created yet
  • the attribute attribute sends an update resource request to the remote CSE, carrying an address of the advertisement resource of the original resource on the remote CSE, an attribute name of the advertised attribute, and a locally saved attribute value.
  • the attribute advertisement processing module is further configured to: if it is determined that the advertised attribute parameter includes an attribute name of the advertised attribute, the original resource has been advertised to the remote CSE but the original resource has not yet created the “advertised attribute” After the update resource request is sent to the remote CSE, if the CSE receives a response indicating that the attribute is successfully created, the "advertised attribute" attribute is created for the original resource, and the successfully created The attribute name of the notification attribute is saved in the "advertised attribute” attribute of the original resource.
  • the attribute advertisement processing module is further configured to: if it is determined that the advertised attribute parameter includes an attribute name of the advertised attribute, the original resource has been advertised to the remote CSE but the original resource has not yet created the “advertised attribute” And transmitting the update resource request to the remote CSE simultaneously or after, further comprising: creating an "advertised attribute” attribute for the original resource; if receiving the response for indicating successful creation of the attribute, the success will be successful
  • the attribute name of the advertised attribute created is saved in the "advertised attribute" attribute of the original resource.
  • the attribute advertisement processing module is further configured to: after determining that the update resource request is received, if it is determined that the value of the advertised attribute parameter is null, and the original resource has created an “advertised attribute” attribute, And sending an update resource request to the remote CSE, carrying an address of the advertisement resource of the original resource on the remote CSE, an attribute name saved in the “advertised attribute” attribute, and an attribute value thereof, where the attribute value is Both are set to empty.
  • the attribute advertisement processing module is further configured to: if it is determined that the value of the advertised attribute parameter is null, and the original resource has created the “advertised attribute” attribute, send an update resource request to the remote CSE. At the same time or after, delete the "advertised attribute” attribute of the original resource.
  • the attribute advertisement processing module is further configured to: if it is determined that the value of the advertised attribute parameter is null, and the original resource has created the “advertised attribute” attribute, send an update resource request to the remote CSE. Thereafter, if a response is received indicating that the attribute was successfully deleted, the "advertised attribute" attribute of the original resource is deleted.
  • the public service entity further includes:
  • the feedback module is configured to: after the request receiving module receives the update resource request, if the original resource does not include the “advertised to” attribute, the sender of the update resource request feeds back a response message indicating that the resource update fails .
  • an embodiment of the present invention provides a public service entity, including:
  • a request receiving module configured to: receive an update resource request, where the update resource request includes an attribute name and an attribute value of an advertisement resource address parameter and an advertised attribute;
  • the attribute creation and deletion processing module is configured to: find a corresponding advertisement resource that is locally created according to the advertisement resource address parameter, and determine that the update resource request includes an attribute name of the advertised attribute and a non-empty attribute value, and the notification If the attribute has not been created, the attribute corresponding to the advertised attribute is created, and the attribute corresponding to the advertised attribute is created for the advertised resource. If the creation is successful, the sender of the updated resource request feeds back a response indicating that the attribute is successfully created.
  • the attribute creation and deletion processing module is further configured to: after the request receiving module receives the update resource request, determine that the update resource request includes an attribute name of the advertised attribute and an attribute that is set to be empty The value is deleted, and the attribute corresponding to the advertised attribute that has been created by the advertised resource is deleted. If the deletion is successful, the sender of the updated resource request feeds back a response indicating that the attribute is successfully deleted.
  • the application entity AE sends an update resource request to the local CSE, where the request message includes an original resource address parameter and an advertised attribute parameter, and the advertised attribute parameter includes an attribute name of the advertised attribute.
  • the value of the advertised attribute parameter includes attribute 1, the attribute name of attribute 1 is "application name”, and the attribute value is "myapplication”.
  • the original resource address is: LocalCSEroot/AE1.
  • the local CSE reads the original resource address, confirms that the resource of the resource address is “AE1”, checks the advertised attribute parameter, finds that the value is not empty, and checks whether the resource “AE1” has the attribute “advertised attribute”, and the check result is If not, the update resource request message is sent to the remote CSE, and the update resource request message includes the attribute name and the attribute value of the advertised resource address parameter and the advertised attribute;
  • the notification resource address is: RemoteCSEroot/AE1_Annc; the attribute parameter can be advertised.
  • the value includes attribute 1, the attribute name of attribute 1 is "application name”, and the attribute value is "myapplication”.
  • the announcement resource address is obtained from the "advertisement to" attribute of the original resource.
  • the remote CSE After receiving the update resource request message, the remote CSE confirms that the resource to be updated is “AE1-Annc” according to the “resource address”, creates the attribute “application name” in the resource “AE1-Annc”, and sets the value to "myapplication”. That is, the attribute value of the attribute created on the advertisement resource is the same as the attribute value of the advertised attribute of the original resource.
  • the remote CSE sends a response message to the local CSE, where the response message includes an indication that the attribute has been successfully created.
  • the local CSE may also create an attribute “advertised attribute” for the resource “AE1” after receiving the update resource request message, and then successfully notify the attribute after receiving the response message sent by the remote CSE.
  • the attribute name is saved in the attribute "advertised attribute" of the resource "AE1".
  • the application entity AE sends an update resource request to the local CSE, where the request message includes an original resource address parameter and an advertised attribute parameter, and the value of the advertised attribute parameter is null;
  • the original resource address is, for example, LocalCSEroot/AE1.
  • the local CSE reads the original resource address, confirms that the resource of the resource address is “AE1”, checks the advertised attribute parameter, and finds that the value is empty, and the local CSE further checks whether the resource “AE1” includes the attribute “advertised attribute”. If the check result is yes, the update resource request message is sent to the remote CSE, and the update resource request message includes the attribute name of the advertisement resource address parameter and the advertised attribute and the attribute value set to be empty, that is, the update resource request message includes The name of the attribute saved in the "advertised attribute" attribute of the original resource, and the attribute value of each attribute is set to null;
  • the notification resource address is, for example, RemoteCSEroot/AE1_Annc;
  • the remote CSE After receiving the update resource request message, the remote CSE confirms that the resource to be updated according to the “resource address” is “AE1-Annc”, and deletes the attribute from the resource “AE1-Annc”;
  • the remote CSE sends a response message to the local CSE, where the response message includes an indication that the attribute has been successfully deleted.
  • the local CSE deletes the attribute after receiving the response of successfully deleting the attribute.
  • the local CSE may delete the attribute "advertised attribute" of the resource "AE1" after sending an update resource request to the address in "advertised to”.
  • the method for implementing the resource attribute advertisement and the public service entity provided by the foregoing embodiment, by advertising the attribute of the original resource to the remote CSE, creating a corresponding attribute on the advertisement resource, so that the query party only needs to query the attribute of the resource.
  • the query is directly performed on the remote CSE without linking to the original resource, which improves the speed and efficiency of the remote query, reduces the signaling generated by the query, and saves network resources.
  • the method for implementing the resource attribute advertisement and the public service entity provided by the embodiment of the present invention, by advertising the attribute of the original resource to the remote CSE, creating a corresponding attribute on the advertisement resource, so that the query party only needs to query the attribute of the resource.
  • the query is directly performed on the remote CSE without linking to the original resource, the speed and efficiency of the remote query are improved, and the signaling generated by the query is reduced, thereby saving network resources.

Landscapes

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

Abstract

本发明实施例公开了一种实现资源属性通告的方法和公共业务实体,该方法包括:公共业务实体CSE接收更新资源请求,所述更新资源请求中包含原始资源地址参数和可通告属性参数;所述CSE根据所述原始资源地址参数找到本地创建的相应原始资源及其属性,如判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建"已通告属性",则所述CSE向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述可通告属性的属性名称和本地保存的属性值。

Description

一种实现资源属性通告的方法和公共业务实体 技术领域
本发明涉及终端通信技术领域,尤其涉及的是一种实现资源属性通告的方法和公共业务实体。
背景技术
M2M(machine-to-machine,机器对机器)通信网络由各个M2M节点和承载网络组成。M2M节点通过承载网络实现互相通信,一个M2M节点至少包含一个应用实体(Application Entity,AE)或者一个公共业务实体(Common Service Entity,CSE)。应用实体是执行实际M2M应用的逻辑单元,公共业务实体是对应用进行管理和服务的逻辑单元。
M2M应用之间的通信是通过公共业务实体CSE之间的交互来实现,M2M应用通过注册到CSE,CSE之间也需要相互注册,然后才能通过CSE之间的通信实现M2M应用的交互,M2M系统架构图如图1所示。在M2M系统架构中,应用节点是末端的执行节点,例如智能电表,温度测控传感器,火警报警器,智能家电等等,中间节点是连接末端执行节点到网络侧服务器的中间件,例如网关,基础节点是网络侧的服务器,注册到基础节点上的应用可以是M2M服务商的管理平台。
在实际应用中,应用节点上的应用实体AE需要注册到应用节点上的公共业务实体,而不需要注册到中间节点的公共业务实体和基础节点的公共业务实体。应用AE所注册的CSE称为本地CSE,除此以外的CSE称为远程CSE。为了实现CSE与CSE之间的通信,CSE也应该在需要与之进行通信的CSE上注册,当CSE1注册到CSE2上,CSE2称为CSE1的本地CSE。在注册完成后,AE或CSE可以在其本地CSE上创建资源。通常,在本地CSE上的创建资源被称为原始资源,通过通告的方式在远程CSE上创建的资源叫做通告资源。在相关技术中,基础节点上的应用需要查找应用节点上的应用时,发送请求到所有连接到该基础节点的中间节点,为了方便中间节点能查找到 应用节点上的资源,使用了资源通告的方式,在中间节点上创建与应用节点上的原始资源相应的通告资源,通告资源有着跟原始资源相同的“搜索标签”,并且可以链接到“原始资源地址”,因此,中间节点可以方便地搜索到需要的资源,并根据通告资源链接到“原始资源地址”以访问原始资源。相应的,在原始资源上创建的属性“通告到”用于指示原始资源被通告到了哪些远程CSE上。
举个例子,应用实体AE发送创建资源请求给本地CSE,请求消息中包含:资源类型参数和属性参数(属性1,属性2,…)。本地CSE接收到创建资源请求后,为AE创建应用类型的资源“AE1”,并根据所述属性参数的指示创建各属性:比如,创建属性1,属性1的属性名称为“应用名称”,属性值设置为“myApplication”;创建属性2,属性2的属性名称为“应用标识”,属性值设置为“AE-ID”;创建属性3,属性3的属性名称为“通告到”,属性值在收到远程CSE返回的响应后再设置,也即,首先发送创建通告资源请求消息给所述创建资源请求的属性参数“通告到”中给出的远程CSE地址,远程CSE接收到创建通告资源请求消息后,在远程CSE上创建通告资源“AE1_Annc”,发送响应消息给本地CSE,响应消息中包含通告资源“AE1_Annc”的地址。本地CSE接收到响应消息后,将接收到的通告资源的地址保存在资源“AE1”的属性“通告到”中。
相关技术中,虽然在远程CSE上创建了通告资源,但是,并未在远程CSE上创建资源的属性,因此,如果在远程CSE上查询资源的属性,则需要链接到原始资源的地址来完成查询,查询速度较慢、效率较低。
发明内容
本发明实施例提供一种实现资源属性通告的方法和公共业务实体,能够方便远程查询资源的属性,提高远程查询的速度和效率。
一种实现资源属性通告的方法,该方法包括:
公共业务实体CSE接收更新资源请求,所述更新资源请求中包含原始资源地址参数和可通告属性参数;
所述CSE根据所述原始资源地址参数找到本地创建的相应原始资源及其属性,当判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”时,所述CSE向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述可通告属性的属性名称和本地保存的属性值。
可选地,该方法还包括下述特点:
当所述CSE判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”时,所述CSE向所述远程CSE发送更新资源请求后,该方法还包括:
当所述CSE接收到用于指示成功创建属性的响应时,为所述原始资源创建“已通告属性”属性,将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
可选地,该方法还包括下述特点:
当所述CSE判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”时,所述CSE向所述远程CSE发送更新资源请求的同时或之后,该方法还包括:
所述CSE为所述原始资源创建“已通告属性”属性;当接收到所述用于指示成功创建属性的响应时,将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
可选地,该方法还包括下述特点:
所述CSE接收到所述更新资源请求后,还包括:
当判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,所述CSE向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述“已通告属性”属性中保存的属性名称及其属性值,所述属性值均置为空。
可选地,该方法还包括下述特点:
当所述CSE判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,所述CSE向所述远程CSE发送更新资源请求的同时 或之后,该方法还包括:删除所述原始资源的“已通告属性”属性。
可选地,该方法还包括下述特点:
当所述CSE判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,所述CSE向所述远程CSE发送更新资源请求后,该方法还包括:
当接收到用于指示成功删除属性的响应时,删除所述原始资源的“已通告属性”属性。
可选地,该方法还包括下述特点:
所述CSE接收更新资源请求后,该方法还包括:
当所述原始资源不包括“通告到”属性时,所述CSE向更新资源请求的发送方反馈用于指示资源更新失败的响应消息。
一种实现资源属性通告的方法,该方法包括:
公共业务实体CSE接收更新资源请求,所述更新通告资源请求中包含通告资源地址参数和可通告属性的属性名称和属性值;
所述CSE根据所述通告资源地址参数找到本地创建的相应通告资源,当判断所述更新资源请求包含可通告属性的属性名称和非空的属性值,且所述通告资源还未创建所述可通告属性对应的属性时,为所述通告资源创建所述可通告属性对应的属性,创建成功后,向更新资源请求的发送方反馈用于指示成功创建属性的响应。
9、如权利要求8所述的方法,其中:
所述CSE接收到所述更新资源请求后,该方法还包括:
当所述CSF判断所述更新资源请求包含可通告属性的属性名称和设置为空的属性值时,将所述通告资源已创建的可通告属性对应的属性删除,删除成功后,向更新资源请求的发送方反馈用于指示成功删除属性的响应。
一种公共业务实体,包括:
请求接收模块,其设置为:接收更新资源请求,所述更新资源请求中包 含原始资源地址参数和可通告属性参数;以及
属性通告处理模块,其设置为:根据所述原始资源地址参数找到本地创建的相应原始资源及其属性,当判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”属性时,向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述可通告属性的属性名称和本地保存的属性值。
可选地,该公共业务实体还包括下述特点:
属性通告处理模块,还设置为:当判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”时,向所述远程CSE发送更新资源请求后,当所述CSE接收到用于指示成功创建属性的响应,则为所述原始资源创建“已通告属性”属性,将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
可选地,该公共业务实体还包括下述特点:
属性通告处理模块,还设置为:当判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”时,向所述远程CSE发送更新资源请求的同时或之后,为所述原始资源创建“已通告属性”属性;当接收到所述用于指示成功创建属性的响应时,将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
可选地,该公共业务实体还包括下述特点:
属性通告处理模块,还设置为:在接收到所述更新资源请求后,当判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述“已通告属性”属性中保存的属性名称及其属性值,所述属性值均置为空。
可选地,该公共业务实体还包括下述特点:
属性通告处理模块,还设置为:当判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,向所述远程CSE发送更新资源请求的同时或之后,删除所述原始资源的“已通告属性”属性。
可选地,该公共业务实体还包括下述特点:
属性通告处理模块,还设置为:当判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,向所述远程CSE发送更新资源请求后,接收到用于指示成功删除属性的响应时,删除所述原始资源的“已通告属性”属性。
可选地,该公共业务实体还包括下述特点:
反馈模块,其设置为:在所述请求接收模块接收到更新资源请求后,当所述原始资源不包括“通告到”属性时,向更新资源请求的发送方反馈用于指示资源更新失败的响应消息。
一种公共业务实体,包括:
请求接收模块,其设置为:接收更新资源请求,所述更新资源请求中包含通告资源地址参数和可通告属性的属性名称和属性值;以及
属性创建及删除处理模块,其设置为:根据所述通告资源地址参数找到本地创建的相应通告资源,当判断所述更新资源请求包含可通告属性的属性名称和非空的属性值,且所述通告资源还未创建所述可通告属性对应的属性时,为所述通告资源创建所述可通告属性对应的属性,创建成功后,向更新资源请求的发送方反馈用于指示成功创建属性的响应。
可选地,该公共业务实体还包括下述特点:
属性创建及删除处理模块,还设置为:在所述请求接收模块接收到所述更新资源请求后,当判断所述更新资源请求包含可通告属性的属性名称和设置为空的属性值时,将所述通告资源已创建的可通告属性对应的属性删除,删除成功后,向更新资源请求的发送方反馈用于指示成功删除属性的响应。
本发明实施例还提供一种计算机程序,包括程序指令,当该程序指令被 公共业务实体执行时,使得该公共业务实体可执行上面所述的方法。
本发明实施例还提供一种载有上述计算机程序的计算机可读存储介质。
本发明实施例提供的一种实现资源属性通告的方法和公共业务实体,通过将原始资源的属性通告到远程CSE上,在通告资源上创建相应的属性,使得查询方在仅需要查询资源的属性时,直接在远程CSE上进行查询而无需链接到原始资源上,提高了远程查询的速度和效率,减少了查询产生的信令,从而节省了网络资源。
附图概述
图1为相关技术中的机器类型通信系统的示意图;
图2为本发明实施例的一种实现资源属性通告的方法(本地CSE)的流程图;
图3为本发明实施例的一种实现资源属性通告的方法(远程CSE)的流程图;
图4为本发明实施例的一种公共业务实体(本地CSE)的结构图;
图5为本发明实施例的一种公共业务实体(远程CSE)的结构图。
本发明的较佳实施方式
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
如图2所示,本发明实施例提供了一种实现资源属性通告的方法,该方法包括:
S10,公共业务实体CSE接收更新资源请求,所述更新资源请求中包含原始资源地址参数和可通告属性参数;
S20,所述CSE根据所述原始资源地址参数找到本地创建的相应原始资源及其属性,如判断所述可通告属性参数包含可通告属性的属性名称,所述 原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”,则所述CSE向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述可通告属性的属性名称和本地保存的属性值。
其中,所述CSE判断所述原始资源已通告到远程CSE,包括:如所述原始资源包括“通告到”属性,则所述CSE判断所述原始资源已通告到远程CSE。
可选地,所述CSE如判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”,则所述CSE向所述远程CSE发送更新资源请求后,还包括:
如所述CSE接收到用于指示成功创建属性的响应,则为所述原始资源创建“已通告属性”属性,将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
可选地,所述CSE如判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”,则所述CSE向所述远程CSE发送更新资源请求的同时或之后,还包括:
所述CSE为所述原始资源创建“已通告属性”属性;如接收到所述用于指示成功创建属性的响应,则将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
其中,将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中,表示所述可通告属性已通告给远程CSE。
可选地,所述CSE接收到所述更新资源请求后,还包括:
如判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性,则所述CSE向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述“已通告属性”属性中保存的属性名称及其属性值,所述属性值均置为空。
可选地,所述CSE如判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性,则所述CSE向所述远程CSE发送更新资源请求的同时或之后,还包括:删除所述原始资源的“已通告属性”属性。
可选地,所述CSE如判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性,则所述CSE向所述远程CSE发送更新资源请求后,还包括:
如接收到用于指示成功删除属性的响应,则删除所述原始资源的“已通告属性”属性。
可选地,所述CSE接收更新资源请求后,还包括:
如所述原始资源不包括“通告到”属性,则所述CSE向更新资源请求的发送方反馈用于指示资源更新失败的响应消息。
如图3所示,本发明实施例提供了一种实现资源属性通告的方法,该方法包括:
S10,公共业务实体CSE接收更新资源请求,所述更新通告资源请求中包含通告资源地址参数和可通告属性的属性名称和属性值;
S20,所述CSE根据所述通告资源地址参数找到本地创建的相应通告资源,如判断所述更新资源请求包含可通告属性的属性名称和非空的属性值,且所述通告资源还未创建所述可通告属性对应的属性,则为所述通告资源创建所述可通告属性对应的属性,如创建成功,向更新资源请求的发送方反馈用于指示成功创建属性的响应。
可选地,所述CSE接收到所述更新资源请求后,还包括:
如判断所述更新资源请求包含可通告属性的属性名称和设置为空的属性值,则将所述通告资源已创建的可通告属性对应的属性删除,如删除成功,向更新资源请求的发送方反馈用于指示成功删除属性的响应。
如图4所示,本发明实施例提供了一种公共业务实体,包括:
请求接收模块,设置为:接收更新资源请求,所述更新资源请求中包含原始资源地址参数和可通告属性参数;
属性通告处理模块,设置为:根据所述原始资源地址参数找到本地创建的相应原始资源及其属性,如判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告 属性”属性,则向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述可通告属性的属性名称和本地保存的属性值。
可选地,属性通告处理模块,还设置为:如判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”,则向所述远程CSE发送更新资源请求后,如所述CSE接收到用于指示成功创建属性的响应,则为所述原始资源创建“已通告属性”属性,将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
可选地,属性通告处理模块,还设置为:如判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”,则向所述远程CSE发送更新资源请求的同时或之后,还包括:为所述原始资源创建“已通告属性”属性;如接收到所述用于指示成功创建属性的响应,则将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
可选地,属性通告处理模块,还设置为:在接收到所述更新资源请求后,如判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性,则向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述“已通告属性”属性中保存的属性名称及其属性值,所述属性值均置为空。
可选地,属性通告处理模块,还设置为:如判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性,则向所述远程CSE发送更新资源请求的同时或之后,删除所述原始资源的“已通告属性”属性。
可选地,属性通告处理模块,还设置为:如判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性,则向所述远程CSE发送更新资源请求后,如接收到用于指示成功删除属性的响应,则删除所述原始资源的“已通告属性”属性。
可选地,所述公共业务实体还包括:
反馈模块,设置为:在所述请求接收模块接收到更新资源请求后,如所述原始资源不包括“通告到”属性,则向更新资源请求的发送方反馈用于指示资源更新失败的响应消息。
如图5所示,本发明实施例提供了一种公共业务实体,包括:
请求接收模块,设置为:接收更新资源请求,所述更新资源请求中包含通告资源地址参数和可通告属性的属性名称和属性值;
属性创建及删除处理模块,设置为:根据所述通告资源地址参数找到本地创建的相应通告资源,如判断所述更新资源请求包含可通告属性的属性名称和非空的属性值,且所述通告资源还未创建所述可通告属性对应的属性,则为所述通告资源创建所述可通告属性对应的属性,如创建成功,向更新资源请求的发送方反馈用于指示成功创建属性的响应。
可选地,属性创建及删除处理模块,还设置为:在所述请求接收模块接收到所述更新资源请求后,如判断所述更新资源请求包含可通告属性的属性名称和设置为空的属性值,则将所述通告资源已创建的可通告属性对应的属性删除,如删除成功,向更新资源请求的发送方反馈用于指示成功删除属性的响应。
应用示例1
S101,应用实体AE发送更新资源请求给本地CSE,请求消息中包含原始资源地址参数和可通告属性参数,可通告属性参数包含可通告属性的属性名称;
比如,可通告属性参数的值包括属性1,属性1的属性名称为“应用名称”,属性值为“myapplication”。原始资源地址为:LocalCSEroot/AE1。
S102,本地CSE读取原始资源地址,确认该资源地址的资源是“AE1”,检查可通告属性参数,发现其值非空,检查资源“AE1”是否有属性“已通告属性”,检查结果是没有,则发送更新资源请求消息给远程CSE,在更新资源请求消息中包含通告资源地址参数和可通告属性的属性名称和属性值;
比如,通告资源地址为:RemoteCSEroot/AE1_Annc;可通告属性参数的 值包括属性1,属性1的属性名称为“应用名称”,属性值为“myapplication”。所述通告资源地址从原始资源的“通告到”属性中获得。
S103,远程CSE在接收到更新资源请求消息后,根据“资源地址”确认需要更新的资源是“AE1-Annc”,在资源“AE1-Annc”中创建属性“应用名称”,并将值设置为“myapplication”。也即,在通告资源上创建的属性的属性值与原始资源的可通告属性的属性值相同。
S104,远程CSE发送响应消息给本地CSE,响应消息中包含已成功创建属性的指示。
S105,本地CSE接收到远程CSE发送的响应消息后,创建原始资源的“已通告属性”,将已成功通告的属性的属性名称保存在资源“AE1”的属性“已通告属性”中。
在其他的实施方式中,本地CSE也可以在接收到更新资源请求消息后为资源“AE1”创建属性“已通告属性”,然后在接收到远程CSE发送的响应消息后,将已成功通告的属性的属性名称保存在资源“AE1”的属性“已通告属性”中。
应用示例2
S101,应用实体AE发送更新资源请求给本地CSE,请求消息中包含原始资源地址参数和可通告属性参数,可通告属性参数的值为空;
其中,原始资源地址比如:LocalCSEroot/AE1。
S102,本地CSE读取原始资源地址,确认该资源地址的资源是“AE1”,检查可通告属性参数,发现其值为空,本地CSE进一步检查资源“AE1”是否包含属性“已通告属性”,检查结果是有,则发送更新资源请求消息给远程CSE,在更新资源请求消息中包含通告资源地址参数和可通告属性的属性名称和设置为空的属性值,也即,更新资源请求消息中包括原始资源的“已通告属性”属性中保存的属性名称,每一个属性的属性值均设置为空;
其中,通告资源地址比如:RemoteCSEroot/AE1_Annc;
S103,远程CSE在接收到更新资源请求消息后,根据“资源地址”确认需要更新的资源是“AE1-Annc”,从资源“AE1-Annc”中删除属性;
S104,远程CSE发送响应消息给本地CSE,响应消息中包含已成功删除属性的指示。
S105,本地CSE在接收到成功删除属性的响应后删除该属性。
在其他的实施方式中,本地CSE可以在向“通告到”中的地址发送更新资源请求后删除资源“AE1”的属性“已通告属性”。
上述实施例提供的一种实现资源属性通告的方法和公共业务实体,通过将原始资源的属性通告到远程CSE上,在通告资源上创建相应的属性,使得查询方在仅需要查询资源的属性时,直接在远程CSE上进行查询而无需链接到原始资源上,提高了远程查询的速度和效率,减少了查询产生的信令,从而节省了网络资源。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。
需要说明的是,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。
工业实用性
本发明实施例提供的一种实现资源属性通告的方法和公共业务实体,通过将原始资源的属性通告到远程CSE上,在通告资源上创建相应的属性,使得查询方在仅需要查询资源的属性时,直接在远程CSE上进行查询而无需链接到原始资源上,提高了远程查询的速度和效率,减少了查询产生的信令,从而节省了网络资源。

Claims (20)

  1. 一种实现资源属性通告的方法,该方法包括:
    公共业务实体CSE接收更新资源请求,所述更新资源请求中包含原始资源地址参数和可通告属性参数;
    所述CSE根据所述原始资源地址参数找到本地创建的相应原始资源及其属性,当判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”时,所述CSE向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述可通告属性的属性名称和本地保存的属性值。
  2. 如权利要求1所述的方法,其中:
    当所述CSE判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”时,所述CSE向所述远程CSE发送更新资源请求后,该方法还包括:
    当所述CSE接收到用于指示成功创建属性的响应时,为所述原始资源创建“已通告属性”属性,将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
  3. 如权利要求1所述的方法,其中:
    当所述CSE判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”时,所述CSE向所述远程CSE发送更新资源请求的同时或之后,该方法还包括:
    所述CSE为所述原始资源创建“已通告属性”属性;当接收到所述用于指示成功创建属性的响应时,将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
  4. 如权利要求2或3所述的方法,其中:
    所述CSE接收到所述更新资源请求后,还包括:
    当判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,所述CSE向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述“已通告属性”属性中保存的属性名称及其属性值,所述属性值均置为空。
  5. 如权利要求4所述的方法,其中:
    当所述CSE判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,所述CSE向所述远程CSE发送更新资源请求的同时或之后,该方法还包括:删除所述原始资源的“已通告属性”属性。
  6. 如权利要求4所述的方法,其中:
    当所述CSE判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,所述CSE向所述远程CSE发送更新资源请求后,该方法还包括:
    当接收到用于指示成功删除属性的响应时,删除所述原始资源的“已通告属性”属性。
  7. 如权利要求1所述的方法,其中:
    所述CSE接收更新资源请求后,该方法还包括:
    当所述原始资源不包括“通告到”属性时,所述CSE向更新资源请求的发送方反馈用于指示资源更新失败的响应消息。
  8. 一种实现资源属性通告的方法,该方法包括:
    公共业务实体CSE接收更新资源请求,所述更新通告资源请求中包含通告资源地址参数和可通告属性的属性名称和属性值;
    所述CSE根据所述通告资源地址参数找到本地创建的相应通告资源,当判断所述更新资源请求包含可通告属性的属性名称和非空的属性值,且所述通告资源还未创建所述可通告属性对应的属性时,为所述通告资源创建所述可通告属性对应的属性,创建成功后,向更新资源请求的发送方反馈用于指示成功创建属性的响应。
  9. 如权利要求8所述的方法,其中:
    所述CSE接收到所述更新资源请求后,该方法还包括:
    当所述CSF判断所述更新资源请求包含可通告属性的属性名称和设置为空的属性值时,将所述通告资源已创建的可通告属性对应的属性删除,删除成功后,向更新资源请求的发送方反馈用于指示成功删除属性的响应。
  10. 一种公共业务实体,包括:
    请求接收模块,其设置为:接收更新资源请求,所述更新资源请求中包含原始资源地址参数和可通告属性参数;以及
    属性通告处理模块,其设置为:根据所述原始资源地址参数找到本地创建的相应原始资源及其属性,当判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”属性时,向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述可通告属性的属性名称和本地保存的属性值。
  11. 如权利要求10所述的公共业务实体,其中:
    属性通告处理模块,还设置为:当判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”时,向所述远程CSE发送更新资源请求后,当所述CSE接收到用于指示成功创建属性的响应,则为所述原始资源创建“已通告属性”属性,将成功创建的所述可通告属性的属性名称保存在所述原始资源的“已通告属性”属性中。
  12. 如权利要求10所述的公共业务实体,其中:
    属性通告处理模块,还设置为:当判断所述可通告属性参数包含可通告属性的属性名称,所述原始资源已通告到远程CSE但所述原始资源还未创建“已通告属性”时,向所述远程CSE发送更新资源请求的同时或之后,为所述原始资源创建“已通告属性”属性;当接收到所述用于指示成功创建属性的响应时,将成功创建的所述可通告属性的属性名称保存在所述原始资源的 “已通告属性”属性中。
  13. 如权利要求11或12所述的公共业务实体,其中:
    属性通告处理模块,还设置为:在接收到所述更新资源请求后,当判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,向所述远程CSE发送更新资源请求,携带所述原始资源在所述远程CSE上的通告资源的地址、所述“已通告属性”属性中保存的属性名称及其属性值,所述属性值均置为空。
  14. 如权利要求13所述的公共业务实体,其中:
    属性通告处理模块,还设置为:当判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,向所述远程CSE发送更新资源请求的同时或之后,删除所述原始资源的“已通告属性”属性。
  15. 如权利要求14所述的公共业务实体,其中:
    属性通告处理模块,还设置为:当判断所述可通告属性参数的值为空,且所述原始资源已创建“已通告属性”属性时,向所述远程CSE发送更新资源请求后,接收到用于指示成功删除属性的响应时,删除所述原始资源的“已通告属性”属性。
  16. 如权利要求10所述的公共业务实体,其中,还包括:
    反馈模块,其设置为:在所述请求接收模块接收到更新资源请求后,当所述原始资源不包括“通告到”属性时,向更新资源请求的发送方反馈用于指示资源更新失败的响应消息。
  17. 一种公共业务实体,包括:
    请求接收模块,其设置为:接收更新资源请求,所述更新资源请求中包含通告资源地址参数和可通告属性的属性名称和属性值;以及
    属性创建及删除处理模块,其设置为:根据所述通告资源地址参数找到本地创建的相应通告资源,当判断所述更新资源请求包含可通告属性的属性名称和非空的属性值,且所述通告资源还未创建所述可通告属性对应的属性 时,为所述通告资源创建所述可通告属性对应的属性,创建成功后,向更新资源请求的发送方反馈用于指示成功创建属性的响应。
  18. 如权利要求17所述的公共业务实体,其中:
    属性创建及删除处理模块,还设置为:在所述请求接收模块接收到所述更新资源请求后,当判断所述更新资源请求包含可通告属性的属性名称和设置为空的属性值时,将所述通告资源已创建的可通告属性对应的属性删除,删除成功后,向更新资源请求的发送方反馈用于指示成功删除属性的响应。
  19. 一种计算机程序,包括程序指令,当该程序指令被公共业务实体执行时,使得该公共业务实体可执行权利要求1-9任一项所述的方法。
  20. 一种载有权利要求19所述计算机程序的计算机可读存储介质。
PCT/CN2014/089093 2014-07-25 2014-10-21 一种实现资源属性通告的方法和公共业务实体 WO2015117391A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14881987.3A EP3174318B1 (en) 2014-07-25 2014-10-21 Method for realizing resource attribute notification, and common service entity
US15/328,126 US10051552B2 (en) 2014-07-25 2014-10-21 Method for realizing resource attribute notification, and common service entity

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410360834.3A CN105282682B (zh) 2014-07-25 2014-07-25 一种实现资源属性通告的方法和公共业务实体
CN201410360834.3 2014-07-25

Publications (1)

Publication Number Publication Date
WO2015117391A1 true WO2015117391A1 (zh) 2015-08-13

Family

ID=53777209

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089093 WO2015117391A1 (zh) 2014-07-25 2014-10-21 一种实现资源属性通告的方法和公共业务实体

Country Status (4)

Country Link
US (1) US10051552B2 (zh)
EP (1) EP3174318B1 (zh)
CN (1) CN105282682B (zh)
WO (1) WO2015117391A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681210A (zh) * 2014-11-14 2016-06-15 中兴通讯股份有限公司 组资源更新处理方法、装置、系统及cse
CN107181777A (zh) * 2016-03-10 2017-09-19 中兴通讯股份有限公司 控制消息的发送方法及装置
CN107426667B (zh) * 2016-05-24 2021-08-24 中兴通讯股份有限公司 资源属性的更新方法及装置、CSE、oneM2M系统
CN108093380B (zh) * 2016-11-22 2022-11-08 中兴通讯股份有限公司 注册状态的确定方法、装置及系统、cse
CN108206985A (zh) * 2017-09-04 2018-06-26 中兴通讯股份有限公司 管理属性通告的方法、装置、设备和计算机存储介质
CN112689300B (zh) * 2021-03-16 2021-06-11 成都极米科技股份有限公司 管理应用和执行单元的方法、装置、系统及介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090217348A1 (en) * 2008-02-22 2009-08-27 Patrik Mikael Salmela Methods and Apparatus for Wireless Device Registration
CN103299601A (zh) * 2010-11-19 2013-09-11 交互数字专利控股公司 用于资源通告及去通告的机器对机器(m2m)接口过程
CN103618800A (zh) * 2013-12-05 2014-03-05 华为技术有限公司 订阅通知的实现方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7962125B2 (en) * 2006-03-27 2011-06-14 Research In Motion Limited Wireless email communications system providing resource updating features and related methods
EP3127354B1 (en) * 2014-04-01 2018-05-09 Telefonaktiebolaget LM Ericsson (publ) Loop avoidance in middle-node-to-middle-node registration in m2m networks
WO2016011373A1 (en) * 2014-07-18 2016-01-21 Convida Wireless, Llc Enhanced operations between service layer and management layer in an m2m system by allowing the execution of a plurality of commands on a plurality of devices
JP6434611B2 (ja) * 2014-07-22 2018-12-05 コンヴィーダ ワイヤレス, エルエルシー デバイス管理プロトコルを用いるインターワーキングライトウェイトマシンツーマシンプロトコル

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090217348A1 (en) * 2008-02-22 2009-08-27 Patrik Mikael Salmela Methods and Apparatus for Wireless Device Registration
CN103299601A (zh) * 2010-11-19 2013-09-11 交互数字专利控股公司 用于资源通告及去通告的机器对机器(m2m)接口过程
CN103618800A (zh) * 2013-12-05 2014-03-05 华为技术有限公司 订阅通知的实现方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3174318A4 *

Also Published As

Publication number Publication date
US20170318521A1 (en) 2017-11-02
EP3174318B1 (en) 2019-12-04
CN105282682B (zh) 2020-06-30
EP3174318A4 (en) 2017-08-02
EP3174318A1 (en) 2017-05-31
CN105282682A (zh) 2016-01-27
US10051552B2 (en) 2018-08-14

Similar Documents

Publication Publication Date Title
EP3043530B1 (en) Method and apparatus for implementing subscription notification
US11716669B2 (en) Internet of things service routing method
WO2015117391A1 (zh) 一种实现资源属性通告的方法和公共业务实体
US10231107B2 (en) Resource subscription processing method and device
US9894166B2 (en) Registration method and system for common service entity
US9930632B2 (en) M2M application remote registration method, device, system and storage medium
CN104093118A (zh) 一种资源通告的方法、机器对机器节点和系统
US20170126828A1 (en) Sending Method and Apparatus and Computer Storage Medium of Notification Message
WO2014183668A1 (zh) 一种机器类型通信应用的资源管理方法、节点和系统
WO2018000653A1 (zh) M2m应用的信息方法、cse及ae
US7746809B2 (en) Method for making correspondence between a maintenance point identifier and a media access control address
WO2015168981A1 (zh) 属性的操作方法及装置
WO2015117482A1 (zh) 更新资源通告的方法、本地公共业务实体及系统
WO2016115885A1 (zh) 资源操作请求的处理方法及装置
WO2015117330A1 (zh) 一种删除通告资源的方法和公共业务实体
WO2016082492A1 (zh) 一种原始资源通告的方法及相应的节点
WO2015139364A1 (zh) 一种资源通告管理的方法及公共业务实体
WO2016062119A1 (zh) 一种应用专有节点的注册方法、通信方法和节点
WO2016090933A1 (zh) 应用通告资源的创建方法及装置
WO2015161571A1 (zh) 资源通告方法及系统、本地cse、远程cse、存储介质
WO2017143677A1 (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: 14881987

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014881987

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014881987

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 15328126

Country of ref document: US