WO2016095472A1 - 资源操作请求的处理方法及装置 - Google Patents

资源操作请求的处理方法及装置 Download PDF

Info

Publication number
WO2016095472A1
WO2016095472A1 PCT/CN2015/082382 CN2015082382W WO2016095472A1 WO 2016095472 A1 WO2016095472 A1 WO 2016095472A1 CN 2015082382 W CN2015082382 W CN 2015082382W WO 2016095472 A1 WO2016095472 A1 WO 2016095472A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
entity
operation request
execution time
request
Prior art date
Application number
PCT/CN2015/082382
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 EP15868984.4A priority Critical patent/EP3236633A4/en
Priority to US15/537,572 priority patent/US20180270324A1/en
Publication of WO2016095472A1 publication Critical patent/WO2016095472A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for processing a resource operation request.
  • the Machine-to-Machine/Man (M2M) communication system consists of various M2M nodes and a basic network.
  • the M2M nodes communicate with each other through an underlying network.
  • An M2M node includes at least one Application Entity (AE) or a Common 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 Network Service Entity (NSE) provides services such as device management, location service, and device triggering for the CSE, such as Home Subscriber Server (HSS) and Machine Type Communication (Machine Type Communication).
  • HSS Home Subscriber Server
  • Machine Type Communication Machine Type Communication
  • It is an MTC) interactive function (MTC-IWF, MTC-InterWorking Function) entity.
  • the communication between the M2M applications is realized through the interaction between the CSEs.
  • the M2M applications need to be registered to the CSE, and the CSEs need to be registered with each other in order to realize the interaction of the M2M applications through communication between the CSEs.
  • the M2M system architecture is as follows. Figure 1 shows.
  • 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.; an intermediate node (Middle Node, MN for short) is a connection end execution node to a network side server.
  • the middleware such as the gateway;
  • the infrastructure node infrastructure node, referred to as IN
  • the application registered to the base node, that is, the IN-AE can be an M2M service provider (M2M (Service Provider, SP for short) )) Management platform.
  • M2M Service Provider, SP for short
  • Application nodes can be divided into two categories according to their functions: nodes that contain CSE and nodes that do not contain CSE.
  • the Application Dedicated Node (ADN) contains at least one AE and does not include the CSE.
  • the Application Service Node (ASN) contains at least one AE and one CSE.
  • an AE or CSE when an AE or CSE needs to perform an operation such as acquiring or updating a resource on a target CSE, it is required to send an operation request to the target CSE, and the request message includes an “operation execution time” parameter indicating the execution time of the operation.
  • the resource on the target CSE contains the "valid time” attribute, indicating the effective time of the resource. Then, there must be a case where the resource has expired and the operation request has not been executed, which will cause the execution of the operation request to fail.
  • the embodiment of the invention provides a method and a device for processing a resource operation request, so as to at least solve the problem that confusion occurs between the effective time of the resource and the operation execution time in the related art.
  • a method for processing a resource operation request includes: receiving, by a first entity, a resource operation request of a second entity, where the resource operation request is used to request operation on a specified resource,
  • the resource operation request carries an operation execution time for performing operation on the specified resource;
  • the first entity acquires a valid time duration of the specified resource; and the first entity determines that the operation execution time does not belong to the
  • the first entity sends a feedback message to the second entity, where the feedback message is used to indicate a processing basis of the resource operation request by the second entity.
  • the resource operation request includes an acquisition operation request for the specified resource or an update operation request for the specified resource.
  • the feedback message carries at least one of the following information: indication information indicating that the specified resource fails to be obtained, and the reason for indicating that the specified resource fails to be obtained is that the operation execution time is an invalid operation execution time. Or the indication information for indicating that the specified resource is not confirmed, and is used to indicate that the reason for updating the specified resource is not confirmed is that the operation execution time is the indication information of the invalid operation execution time.
  • the first entity receives the updated resource operation request by the second entity, where the updated resource operation request carries There is an operation execution time after updating the operation execution time.
  • the validity time length of the first resource for acquiring the specified resource includes: the first entity retrieving a valid time attribute of the specified resource, and obtaining an effective time duration of the specified resource from the valid time attribute.
  • the first entity is a public service entity CSE
  • the second entity is an application entity AE or a public service entity CSE.
  • a method for processing another resource operation request is further provided, that the second entity sends a resource operation request to a first entity, where the resource operation request is used to request a specified resource.
  • An operation is performed, where the resource operation request carries an operation execution time for performing operation on the specified resource; the second entity receives a feedback message of the first entity, where the feedback message is used to indicate the a processing basis of the resource operation request by the second entity, where the feedback message is when the first entity determines that the operation execution time does not belong to the valid time duration of the specified resource, the first entity is to the first entity
  • the second entity sends the resource operation request according to the processing according to the processing.
  • the resource operation request includes an acquisition operation request for the specified resource or an update operation request for the specified resource.
  • the feedback message carries at least one of the following information: indication information indicating that the specified resource fails to be obtained, and the reason for indicating that the specified resource fails to be obtained is that the operation execution time is an invalid operation execution time. Or the indication information for indicating that the specified resource is not confirmed, and is used to indicate that the reason for updating the specified resource is not confirmed is that the operation execution time is an invalid operation execution time.
  • the second entity cancels sending the resource operation request to the first entity; or An entity sends an updated resource operation request, wherein the updated resource operation request includes an operation execution time after the operation execution time is updated.
  • the first entity is a public service entity CSE
  • the second entity is an application entity AE or a public service entity CSE.
  • a processing apparatus for a resource operation request is provided, where the apparatus is applied to a first entity, the apparatus includes: a first receiving module, configured to receive a resource operation request of a second entity, The resource operation request is used to request an operation on a specified resource, where the resource operation request carries an operation execution time for performing operation on the specified resource, and the obtaining module is configured to acquire an effective time duration of the specified resource.
  • a sending module configured to: when the determining that the operation execution time does not belong to the valid time duration, the first entity sends a feedback message to the second entity, where the feedback message is used to indicate the second The processing basis of the entity for the resource operation request.
  • the resource operation request includes an acquisition operation request for the specified resource or an update operation request for the specified resource.
  • the feedback message carries at least one of the following information: indication information indicating that the specified resource fails to be obtained, and the reason for indicating that the specified resource fails to be obtained is that the operation execution time is an invalid operation execution time. Or the indication information for indicating that the specified resource is not confirmed, and is used to indicate that the reason for updating the specified resource is not confirmed is that the operation execution time is an invalid operation execution time.
  • the device further includes: a second receiving module, configured to receive the updated resource operation request by the second entity, where the updated resource operation request carries an update to the operation execution time Operation execution time.
  • the obtaining module is further configured to retrieve a valid time attribute of the specified resource, and obtain a valid time duration of the specified resource from the valid time attribute.
  • the first entity is a public service entity CSE
  • the second entity is an application entity AE or a public service entity CSE.
  • another processing device for resource operation request comprising: a first sending module, configured to send a resource to a first entity An operation request, wherein the resource operation request is used to request an operation on a specified resource, where the resource operation request carries an operation execution time for performing operation on the specified resource; and the receiving module is configured to receive the first entity a feedback message, where the feedback message is used to indicate a processing basis of the resource operation request by the second entity, where the feedback message is that the first entity determines that the operation execution time does not belong to the specified
  • the processing module is configured to process the resource operation request according to the processing basis when the validity time of the resource is long, and the first entity sends the second entity to the second entity.
  • the resource operation request includes an acquisition operation request for the specified resource or an update operation request for the specified resource.
  • the feedback message carries at least one of the following information: indication information indicating that the specified resource fails to be obtained, and the reason for indicating that the specified resource fails to be obtained is that the operation execution time is an invalid operation execution time. Or the indication information for indicating that the specified resource is not confirmed, and is used to indicate that the reason for updating the specified resource is not confirmed is that the operation execution time is the indication information of the invalid operation execution time.
  • the device further includes: a canceling module, configured to cancel sending the resource operation request to the first entity; or, the first sending module is configured to send an update to the first entity a subsequent resource operation request, wherein the updated resource operation request includes an operation execution time after the operation execution time is updated.
  • the first entity is a public service entity CSE
  • the second entity is an application entity AE or a public service entity CSE.
  • the first entity receives a resource operation request of the second entity, where the resource operation request is used to request operation on the specified resource, and the resource operation request carries an operation execution time for performing operation on the specified resource;
  • An entity obtains a valid time duration of the specified resource.
  • the first entity sends a feedback message to the second entity when the first entity determines that the operation execution time does not belong to the effective time.
  • the feedback message is used to indicate that the second entity requests the resource operation.
  • the basis for processing The problem that the effective time of the resource in the related art and the execution time of the operation are confusing is solved, and the confusion between the effective time of the resource and the execution time of the operation is avoided, thereby ensuring the effective execution of the operation request of the resource.
  • Figure 1 is an M2M system architecture diagram
  • FIG. 2 is a flowchart of a method for processing a resource operation request according to an embodiment of the present invention
  • FIG. 3 is a structural block diagram of a processing apparatus for a resource operation request according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram (1) of a processing apparatus for a resource operation request according to an embodiment of the present invention
  • FIG. 5 is a flowchart (1) of a method for processing a resource operation request according to an embodiment of the present invention
  • FIG. 6 is a structural block diagram (2) of a processing apparatus for a resource operation request according to an embodiment of the present invention
  • FIG. 7 is a structural block diagram (3) of a processing apparatus for a resource operation request according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for processing a resource operation request according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 The first entity receives a resource operation request of the second entity, where the resource operation request is used to request an operation on the specified resource, where the resource operation request carries an operation execution time for performing operation on the specified resource.
  • Step S204 the first entity obtains a valid time duration of the specified resource
  • Step S206 When the first entity determines that the operation execution time does not belong to the effective time duration, the first entity sends a feedback message to the second entity, where the feedback message is used to indicate the processing basis of the resource operation request by the second entity.
  • the first entity compares the effective time duration of the specified resource with the operation execution time of the second entity to operate the specified resource, where the effective time duration of the specified resource is online, offline, and standby.
  • the length of time of the state When the execution time of the operation does not belong to the effective time duration, the first entity feeds back information that does not operate on the specified resource to the second entity, which solves the problem that the effective time of the resource in the related art and the execution time of the operation may be confused.
  • the confusion between the effective time of the resource and the execution time of the operation is avoided, thereby ensuring the effective execution of the operation request of the resource.
  • the resource operation request includes a get operation request for the specified resource or an update operation request for the specified resource.
  • the second entity determines the operation mode of the acquisition operation request for the specified resource or the update operation request for the specified resource.
  • the feedback message may include indication information indicating that the acquisition of the specified resource failed. In another optional embodiment, the feedback message may further include: indication information that the reason for the failure to acquire the specified resource is that the operation execution time is an invalid operation execution time.
  • the feedback message may include indication information for indicating that the specified resource is not confirmed. In another optional embodiment, the feedback message may further include: indication information indicating that the update of the specified resource is not confirmed, and the operation execution time is an invalid operation execution time.
  • the first entity sends a feedback message to the second entity, and the first entity receives the updated resource operation request of the second entity, where the update
  • the subsequent resource operation request carries the operation execution time after the operation execution time is updated. Therefore, the first entity may perform corresponding operations on the specified resource according to the updated resource operation request.
  • step S204 relates to the effective time duration for the first entity to obtain the specified resource. It should be noted that the effective time duration of the specified resource can be obtained in multiple manners. In an optional In the embodiment, the first entity retrieves the valid time attribute of the specified resource, and obtains the effective time duration of the specified resource from the valid time attribute.
  • the first entity is a public service entity CSE and the second entity is an application entity AE or a public service entity CSE.
  • a processing device for the resource operation request is provided, and the device is configured to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 3 is a structural block diagram of a processing apparatus for a resource operation request according to an embodiment of the present invention.
  • the apparatus is applied to a first entity.
  • the apparatus includes: a first receiving module 32 configured to receive a second entity. a resource operation request, where the resource operation request is used to request an operation on a specified resource, where the resource operation request carries an operation execution time for performing operation on the specified resource; and the obtaining module 34 is configured to acquire a valid time duration of the specified resource;
  • the module 36 is configured to: when determining that the operation execution time does not belong to the effective time duration, the first entity sends a feedback message to the second entity, where the feedback message is used to indicate the processing basis of the resource operation request by the second entity.
  • the resource operation request includes a get operation request for the specified resource or an update operation request for the specified resource.
  • the feedback message carries at least one of the following information: indication information for indicating that the specified resource fails to be obtained, and is used to indicate that the reason for the failure of acquiring the specified resource is the indication that the operation execution time is the execution time of the invalid operation; or The indication information indicating that the update resource is not confirmed is used to indicate that the reason for updating the specified resource is not confirmed is that the operation execution time is the instruction information of the invalid operation execution time.
  • the device includes: a second receiving module 42 in addition to all the modules shown in FIG. And being configured to receive the resource operation request after the second entity is updated, where the updated resource operation request carries an operation execution time after the operation execution time is updated.
  • the obtaining module 34 is configured to retrieve a valid time attribute of the specified resource, and obtain a valid time duration of the specified resource from the valid time attribute.
  • the first entity is a public service entity CSE
  • the second entity is an application entity AE or a public service entity CSE.
  • FIG. 5 is a flowchart (1) of a method for processing a resource operation request according to an embodiment of the present invention. As shown in FIG. 5, the process includes the following steps. step:
  • Step S502 The second entity sends a resource operation request to the first entity, where the resource operation request is used to request an operation on the specified resource, where the resource operation request carries an operation execution time for performing operation on the specified resource.
  • Step S504 the second entity receives the feedback message of the first entity, where the feedback message is used to indicate the operation mode of the second entity to the resource operation request, and the feedback message is that the first entity determines that the operation execution time does not belong to the specified When the resource is valid for a long time, the first entity sends the second entity to the second entity;
  • Step S506 the second entity processes the resource operation request according to the processing basis.
  • the operation execution time of the operation of the specified resource sent by the second entity is compared with the effective time duration of the specified resource, and when the execution time of the operation does not fall within the effective time duration, the first entity will not specify the resource.
  • the information of the operation is fed back to the second entity, which solves the problem that the effective time of the resource in the related art and the execution time of the operation may be confusing, thereby avoiding the confusion between the effective time of the resource and the execution time of the operation, thereby ensuring the The efficient execution of a resource's operational request.
  • the resource operation request includes a get operation request for the specified resource or an update operation request for the specified resource.
  • the second entity determines the operation mode of the acquisition operation request for the specified resource or the update operation request for the specified resource.
  • the feedback message may include indication information indicating that the acquisition of the specified resource fails. In another optional embodiment, the feedback message may further include: indication information indicating that the failure to acquire the designated resource is that the operation execution time is an invalid operation execution time.
  • the feedback message may include indication information for indicating that the specified resource is not confirmed. In another optional embodiment, the feedback message may further include: indication information indicating that the reason for updating the specified resource is not confirmed is that the operation execution time is an invalid operation execution time.
  • the resource operation request is an update operation request for the specified resource
  • the second entity cancels sending the resource operation request to the first entity; or, the second The entity sends an updated resource operation request to the first entity, where the updated resource operation request includes an operation execution time after the operation execution time is updated.
  • the first entity is a public service entity CSE and the second entity is an application entity AE or a public service entity CSE.
  • a processing device for the resource operation request is further provided, and the device is configured to implement the foregoing embodiment and the preferred embodiment, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 6 is a structural block diagram (2) of a processing apparatus for a resource operation request according to an embodiment of the present invention.
  • the apparatus is applied to a second entity.
  • the apparatus includes: a first sending module 62, configured to be An entity sends a resource operation request, where the resource operation request is used to request an operation on the specified resource, and the resource operation request carries an operation execution time for performing operation on the specified resource; and the receiving module 64 is configured to receive the feedback message of the first entity.
  • the feedback message is used to indicate a mode of operation of the resource operation request by the second entity, where the feedback message is sent by the first entity to the second entity when the first entity determines that the operation execution time does not belong to the valid time duration of the specified resource.
  • the processing module 66 is configured to process the resource operation request according to the operation mode.
  • the resource operation request includes a get operation request for the specified resource or an update operation request for the specified resource.
  • the feedback message carries at least one of the following information: indication information for indicating that the specified resource fails to be obtained, and is used to indicate that the reason for the failure to obtain the specified resource is that the operation execution time is the indication information of the invalid operation execution time; or The indication information for indicating that the specified resource is not confirmed is used to indicate that the reason for updating the specified resource is not confirmed is that the operation execution time is the indication information of the invalid operation execution time.
  • FIG. 7 is a structural block diagram (3) of a processing apparatus for a resource operation request according to an embodiment of the present invention.
  • the apparatus includes, in addition to all the modules shown in FIG. 6, a canceling module 72, which is set to The sending of the resource operation request to the first entity is cancelled; or the first sending module 74 is configured to send the updated resource operation request to the first entity, where the updated resource operation request includes the operation after the operation execution time is updated. execution time.
  • the first entity is a public service entity CSE
  • the second entity is an application entity AE or a public service entity CSE.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are respectively located.
  • the first processor, the second processor, and the third processor In the first processor, the second processor, and the third processor.
  • the following is an example in which the first entity is the public service entity CSE and the second entity is the application entity AE or the public service entity CSE.
  • the application entity AE or the public service entity CSE sends a resource operation request to the target CSE, where the request message includes:
  • the local CSE checks whether the resource operation request message includes an "operation execution time” parameter, and if so, retrieves the "effective time” attribute of the target resource, and determines whether the effective time of the resource is earlier than the operation execution time. If it is earlier than the local CSE feedback operation request response to the AE or CSE, the response message includes:
  • the application entity AE or the public service entity CSE sends a resource operation request to the target CSE, where the request message includes:
  • the local CSE checks whether the resource operation request message includes an "operation execution time” parameter, and if so, retrieves the "effective time” attribute of the target resource, and determines whether the effective time of the resource is earlier than the operation execution time. If it is earlier than the local CSE feedback operation request response to the AE or CSE, the response message includes:
  • the AE or CSE updates the "Operation Execution Time” parameter and sends it to the target CSE through an operation request.
  • the target CSE updates the "operation execution time" parameter in the resource operation request according to the resource operation request message.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the resource operation request is sent to the target CSE, and the request message includes:
  • Operation execution time indicating the time at which the target CSE performs the acquisition operation on the resource "Resource1".
  • the target CSE authenticates the AE or CSE
  • the address of the resource "Resource 1" is read, and the request message contains the "operation execution time” parameter.
  • the target CSE retrieves the "effective time” attribute of the resource "Resource1" according to the address of the resource "Resource1", reads the attribute value, and determines whether the effective time of the resource is earlier than the execution time of the operation.
  • the check result is earlier than the target CSE feedback operation request response to the AE or CSE, and the response message includes:
  • the response status code parameter is read, and the result is “failure”, and the content parameter is read, and the reason is “invalid operation execution time”.
  • the AE or CSE retrieves and cancels the acquisition operation request for the resource “Resource1” according to the request identification parameter in the response message, and records the operation result.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the resource operation request is sent to the target CSE, and the request message includes:
  • Operation execution time indicating the time when the target CSE performs an update operation on the resource "Resource2".
  • the target CSE authenticates the AE or CSE
  • the address of the resource "Resource2" is read, and the request message contains the "operation execution time” parameter.
  • the target CSE retrieves the "valid time” attribute of the resource "Resource2" according to the address of the resource "Resource2", reads the attribute value, and determines whether the valid time of the resource is earlier than the execution time of the operation.
  • the check result is earlier than the target CSE feedback operation request response to the AE or CSE, and the response message includes:
  • the response status code parameter is read, and the result is “unconfirmed”, and the content parameter is read, and the reason is “invalid operation execution time”.
  • the AE or CSE parses the attribute value of the "valid time” attribute of the resource “Resource2" in the content parameter, and retrieves and updates the "operation execution time” of the update operation of the resource "Resource2" according to the request identification parameter in the response message.
  • the parameter is sent to the target CSE through a resource operation request, and the request message includes:
  • the target CSE After receiving the resource operation request, the target CSE reads the address of the resource “Resource2”, retrieves and updates the “operation execution time” parameter of the update operation of the resource “Resource2” according to the request identifier parameter, and feeds back the operation request response.
  • the response message contains:
  • the AE or CSE retrieves and updates an update operation request for the resource "Resource1" according to the request identification parameter in the response message, and records the operation status.
  • the target CSE performs the update operation on the resource "Resource 2" according to the updated "Operation Execution Time” parameter, and responds to the operation execution result to the AE or CSE through the resource operation request.
  • the processing method of the resource operation request avoids confusion between the effective time of the resource and the execution time of the operation, thereby ensuring effective execution of the operation request for the resource.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the method and apparatus for processing a resource operation request provided by the embodiment of the present invention have the following beneficial effects: avoiding confusion between the effective time of the resource and the execution time of the operation, thereby ensuring effective operation request for the resource. carried out.

Abstract

本发明公开了一种资源操作请求的处理方法及装置,其中,该方法包括:第一实体接收第二实体的资源操作请求,其中,资源操作请求用于请求对指定资源进行操作,资源操作请求中携带有对指定资源进行操作的操作执行时间;第一实体获取指定资源的有效时间时长;第一实体在确定操作执行时间不属于有效时间时长时,第一实体向第二实体发送反馈消息,其中,反馈消息用于指示第二实体对资源操作请求的处理依据。通过本发明解决了相关技术中资源的有效时间与操作执行时间之间会出现混乱的问题,避免了资源的有效时间与操作执行时间之间的混乱,从而保证了对资源的操作请求的有效执行。

Description

资源操作请求的处理方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及资源操作请求的处理方法及装置。
背景技术
机器与机器/人(Machine-to-Machine/Man,简称为M2M)通信系统由各个M2M节点和基础网络组成。M2M节点通过基础网络(Underlying Network)实现互相通信,一个M2M节点至少包含一个应用实体(Application Entity,简称为AE)或者一个公共业务实体(Common Services Entity,简称为CSE)。AE是执行实际M2M应用的逻辑单元,CSE是对应用进行管理和服务的逻辑单元。基础网络业务实体(Network Services Entity,简称为NSE)为CSE提供设备管理、位置服务、设备触发等业务,例如归属用户服务器(Home Subscriber Server,简称为HSS)、机器类型通信(Machine Type Communication,简称为MTC)交互功能(MTC-IWF,MTC-InterWorking Function)实体等。
M2M应用之间的通信是通过CSE之间的交互来实现的,M2M应用需要注册到CSE,CSE之间也需要相互注册,进而才能通过CSE之间的通信实现M2M应用的交互,M2M系统架构如图1所示。
在M2M系统架构中,应用节点是末端的执行节点,例如智能电表,温度测控传感器,火警报警器,智能家电等等;中间节点(Middle Node,简称为MN)是连接末端执行节点到网络侧服务器的中间件,例如网关;基础节点(Infrastructure Node,简称为IN)是网络侧的服务器,注册到基础节点上的应用,即IN-AE可以是M2M服务提供商(M2M(Service Provider,简称为SP))的管理平台。
应用节点根据功能不同可以划分为两类:包含CSE的节点和不包含CSE的节点。其中,应用专有节点(Application Dedicated Node,简称为ADN)至少包含一个AE,不包含CSE;应用业务节点(Application Service Node,简称为ASN)至少包含一个AE和一个CSE。
在相关技术中,当AE或CSE需要对目标CSE上的资源进行获取或更新等操作时,需要发送操作请求到目标CSE,在请求消息中,包含“操作执行时间”参数,指示操作的执行时间;另一方面,在目标CSE上的资源中,包含“有效时间”属性,指示资源的有效时间。那么,必然存在资源已经失效而操作请求仍然没有被执行的情况,这就将导致操作请求的执行失败。
针对相关技术中,资源的有效时间与操作执行时间之间会出现混乱的问题,还未提出有效的解决方案。
发明内容
本发明实施例提供了一种资源操作请求的处理方法及装置,以至少解决相关技术中资源的有效时间与操作执行时间之间会出现混乱的问题。
根据本发明实施例的一个方面,提供了一种资源操作请求的处理方法,包括:第一实体接收第二实体的资源操作请求,其中,所述资源操作请求用于请求对指定资源进行操作,所述资源操作请求中携带有对所述指定资源进行操作的操作执行时间;所述第一实体获取所述指定资源的有效时间时长;所述第一实体在确定所述操作执行时间不属于所述有效时间时长时,所述第一实体向所述第二实体发送反馈消息,其中,所述反馈消息用于指示所述第二实体对所述资源操作请求的处理依据。
进一步地,所述资源操作请求包括对所述指定资源的获取操作请求或者对所述指定资源的更新操作请求。
进一步地,所述反馈消息携带有以下至少之一信息:用于指示获取所述指定资源失败的指示信息,用于指示获取所述指定资源失败的原因是所述操作执行时间为无效操作执行时间的指示信息;或者,进一步地,用于指示更新所述指定资源未确认的指示信息,用于指示更新所述指定资源未确认的原因为所述操作执行时间为无效操作执行时间的指示信息。
进一步地,所述第一实体向所述第二实体发送所述反馈消息之后包括:所述第一实体接收所述第二实体更新后的资源操作请求,其中所述更新后的资源操作请求携带有对所述操作执行时间进行更新后的操作执行时间。
进一步地,所述第一实体获取所述指定资源的有效时间时长包括:所述第一实体检索所述指定资源的有效时间属性,从该有效时间属性中获取所述指定资源的有效时间时长。
进一步地,所述第一实体为公共业务实体CSE,所述第二实体为应用实体AE或者公共业务实体CSE。
根据本发明实施例的另一方面,还提供了另一种资源操作请求的处理方法,包括:第二实体向第一实体发送资源操作请求,其中,所述资源操作请求用于请求对指定资源进行操作,所述资源操作请求中携带有对所述指定资源进行操作的操作执行时间;所述第二实体接收所述第一实体的反馈消息,其中,所述反馈消息用于指示所述第二实体对所述资源操作请求的处理依据,所述反馈消息是在所述第一实体确定所述操作执行时间不属于所述指定资源的有效时间时长时,所述第一实体向所述第二实体发送的;所述第二实体依据所述处理依据对所述资源操作请求进行处理。
进一步地,所述资源操作请求包括对所述指定资源的获取操作请求或者对所述指定资源的更新操作请求。
进一步地,所述反馈消息携带有以下至少之一信息:用于指示获取所述指定资源失败的指示信息,用于指示获取所述指定资源失败的原因是所述操作执行时间为无效操作执行时间的指示信息;或者,用于指示更新所述指定资源未确认的指示信息,用于指示更新所述指定资源未确认的原因为所述操作执行时间为无效操作执行时间的指示信息。
进一步地,所述第二实体接收所述第一实体的反馈消息之后包括:所述第二实体取消向所述第一实体发送所述资源操作请求;或者,所述第二实体向所述第一实体发送更新后的资源操作请求,其中所述更新后的资源操作请求包含对所述操作执行时间进行更新后的操作执行时间。
进一步地,所述第一实体为公共业务实体CSE,所述第二实体为应用实体AE或者公共业务实体CSE。
根据本发明实施例的一个方面,提供了一种资源操作请求的处理装置,所述装置应用于第一实体,所述装置包括:第一接收模块,设置为接收第二实体的资源操作请求,其中,所述资源操作请求用于请求对指定资源进行操作,所述资源操作请求中携带有对所述指定资源进行操作的操作执行时间;获取模块,设置为获取所述指定资源的有效时间时长;发送模块,设置为在确定所述操作执行时间不属于所述有效时间时长时,所述第一实体向所述第二实体发送反馈消息,其中,所述反馈消息用于指示所述第二实体对所述资源操作请求的处理依据。
进一步地,所述资源操作请求包括对所述指定资源的获取操作请求或者对所述指定资源的更新操作请求。
进一步地,所述反馈消息携带有以下至少之一信息:用于指示获取所述指定资源失败的指示信息,用于指示获取所述指定资源失败的原因是所述操作执行时间为无效操作执行时间的指示信息;或者,用于指示更新所述指定资源未确认的指示信息,用于指示更新所述指定资源未确认的原因为所述操作执行时间为无效操作执行时间的指示信息。
进一步地,所述装置还包括:第二接收模块,设置为接收所述第二实体更新后的资源操作请求,其中所述更新后的资源操作请求携带有对所述操作执行时间进行更新后的操作执行时间。
进一步地,所述获取模块还设置为检索所述指定资源的有效时间属性,从该有效时间属性中获取所述指定资源的有效时间时长。
进一步地,所述第一实体为公共业务实体CSE,所述第二实体为应用实体AE或者公共业务实体CSE。
根据本发明实施例的另一个方面,还提供了另一种资源操作请求的处理装置,所述装置应用于第二实体,所述装置包括:第一发送模块,设置为向第一实体发送资源操作请求,其中,所述资源操作请求用于请求对指定资源进行操作,所述资源操作请求中携带有对所述指定资源进行操作的操作执行时间;接收模块,设置为接收所述第一实体的反馈消息,其中,所述反馈消息用于指示所述第二实体对所述资源操作请求的处理依据,所述反馈消息是在所述第一实体确定所述操作执行时间不属于所述指定资源的有效时间时长时,所述第一实体向所述第二实体发送的;处理模块,设置为依据所述处理依据对所述资源操作请求进行处理。
进一步地,所述资源操作请求包括对所述指定资源的获取操作请求或者对所述指定资源的更新操作请求。
进一步地,所述反馈消息携带有以下至少之一信息:用于指示获取所述指定资源失败的指示信息,用于指示获取所述指定资源失败的原因是所述操作执行时间为无效操作执行时间的指示信息;或者,进一步地,用于指示更新所述指定资源未确认的指示信息,用于指示更新所述指定资源未确认的原因为所述操作执行时间为无效操作执行时间的指示信息。进一步地,所述装置还包括:取消模块,设置为取消向所述第一实体发送所述资源操作请求;或者,第一发送模块,设置为向所述第一实体发送更新 后的资源操作请求,其中所述更新后的资源操作请求包含对所述操作执行时间进行更新后的操作执行时间。
进一步地,所述第一实体为公共业务实体CSE,所述第二实体为应用实体AE或者公共业务实体CSE。
通过本发明实施例,采用第一实体接收第二实体的资源操作请求,其中,资源操作请求用于请求对指定资源进行操作,资源操作请求中携带有对指定资源进行操作的操作执行时间;第一实体获取指定资源的有效时间时长;第一实体在确定操作执行时间不属于有效时间时长时,第一实体向第二实体发送反馈消息,其中,反馈消息用于指示第二实体对资源操作请求的处理依据。解决了相关技术中资源的有效时间与操作执行时间之间会出现混乱的问题,避免了资源的有效时间与操作执行时间之间的混乱,从而保证了对资源的操作请求的有效执行。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是M2M系统架构图;
图2是根据本发明实施例的资源操作请求的处理方法的流程图;
图3是根据本发明实施例的资源操作请求的处理装置的结构框图;
图4是根据本发明实施例的资源操作请求的处理装置的结构框图(1);
图5是根据本发明实施例的资源操作请求的处理方法的流程图(1);
图6是根据本发明实施例的资源操作请求的处理装置的结构框图(2);
图7是根据本发明实施例的资源操作请求的处理装置的结构框图(3)。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种资源操作请求的处理方法,图2是根据本发明实施例的资源操作请求的处理方法的流程图,如图2所示,该流程包括如下步骤:
步骤S202,第一实体接收第二实体的资源操作请求,其中,该资源操作请求用于请求对指定资源进行操作,资源操作请求中携带有对指定资源进行操作的操作执行时间;
步骤S204,第一实体获取指定资源的有效时间时长;
步骤S206,第一实体在确定操作执行时间不属于有效时间时长时,第一实体向第二实体发送反馈消息,其中,反馈消息用于指示第二实体对资源操作请求的处理依据。
通过上述步骤,第一实体将指定资源的有效时间时长与第二实体发送的对指定资源进行操作的操作执行时间进行比较,其中,指定资源的有效时间时长为该指定资源处于在线、离线、待机状态的时间时长。在该操作执行时间不属于有效时间时长时,第一实体将未对指定资源进行操作的信息反馈给第二实体,解决了相关技术中资源的有效时间与操作执行时间之间会出现混乱的问题,避免了资源的有效时间与操作执行时间之间的混乱,从而保证了对资源的操作请求的有效执行。
在一个可选实施例中,资源操作请求包括对指定资源的获取操作请求或者对指定资源的更新操作请求。从而第二实体确定对指定资源的获取操作请求或者对指定资源的更新操作请求的操作方式。
在一个可选实施例中,反馈消息可以包括用于指示获取指定资源失败的指示信息。在另一个可选实施例中,反馈消息还可以包括,用于指示获取指定资源失败的原因是该操作执行时间为无效操作执行时间的指示信息。
在一个可选实施例中,反馈消息可以包括,用于指示更新该指定资源未确认的指示信息。在另一个可选实施例中,反馈消息还可以包括,用于指示更新指定资源未确认的原因为操作执行时间为无效操作执行时间的指示信息。
在资源操作请求为对该指定资源的更新操作请求时,在一个可选实施例中,第一实体向第二实体发送反馈消息,第一实体接收第二实体更新后的资源操作请求,其中更新后的资源操作请求携带有对操作执行时间进行更新后的操作执行时间。从而第一实体可以根据更新后的资源操作请求对指定资源进行相应的操作。
上述步骤S204涉及第一实体获取指定资源的有效时间时长,需要说明的是,可以通过多种方式获取指定资源的有效时间时长,下面对此进行举例说明。在一个可选实 施例中,第一实体检索指定资源的有效时间属性,从有效时间属性中获取指定资源的有效时间时长。
在一个可选实施例中,第一实体为公共业务实体CSE,第二实体为应用实体AE或者公共业务实体CSE。
在本实施例中还提供了一种资源操作请求的处理装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图3是根据本发明实施例的资源操作请求的处理装置的结构框图,该装置应用于第一实体,如图3所示,该装置包括:第一接收模块32,设置为接收第二实体的资源操作请求,其中,该资源操作请求用于请求对指定资源进行操作,资源操作请求中携带有对指定资源进行操作的操作执行时间;获取模块34,设置为获取指定资源的有效时间时长;发送模块36,设置为在确定该操作执行时间不属于有效时间时长时,第一实体向第二实体发送反馈消息,其中,反馈消息用于指示第二实体对该资源操作请求的处理依据。
可选地,资源操作请求包括对指定资源的获取操作请求或者对指定资源的更新操作请求。
可选地,反馈消息携带有以下至少之一信息:用于指示获取指定资源失败的指示信息,用于指示获取指定资源失败的原因是操作执行时间为无效操作执行时间的指示信息;或者,用于指示更新指定资源未确认的指示信息,用于指示更新指定资源未确认的原因为操作执行时间为无效操作执行时间的指示信息。
图4是根据本发明实施例的资源操作请求的处理装置的结构框图(1),如图4所示,该装置除包括图3所示的所有模块外,还包括:第二接收模块42,设置为接收第二实体更新后的资源操作请求,其中更新后的资源操作请求携带有对操作执行时间进行更新后的操作执行时间。
可选地,所述获取模块34设置为检索该指定资源的有效时间属性,从有效时间属性中获取指定资源的有效时间时长。
可选地,第一实体为公共业务实体CSE,第二实体为应用实体AE或者公共业务实体CSE。
在另一个实施例中提供了另一种资源操作请求的处理方法,图5是根据本发明实施例的资源操作请求的处理方法的流程图(1),如图5所示,该流程包括如下步骤:
步骤S502,第二实体向第一实体发送资源操作请求,其中,资源操作请求用于请求对指定资源进行操作,资源操作请求中携带有对该指定资源进行操作的操作执行时间;
步骤S504,第二实体接收第一实体的反馈消息,其中,反馈消息用于指示该第二实体对该资源操作请求的操作方式,反馈消息是在该第一实体确定该操作执行时间不属于指定资源的有效时间时长时,第一实体向第二实体发送的;
步骤S506,第二实体依据处理依据对资源操作请求进行处理。
通过上述步骤,将第二实体发送的对指定资源进行操作的操作执行时间与指定资源的有效时间时长进行比较,在该操作执行时间未落入有效时间时长时,第一实体将未对指定资源进行操作的信息反馈给第二实体,解决了相关技术中资源的有效时间与操作执行时间之间会出现混乱的问题,避免了资源的有效时间与操作执行时间之间的混乱,从而保证了对资源的操作请求的有效执行。
在一个可选实施例中,该资源操作请求包括对该指定资源的获取操作请求或者对该指定资源的更新操作请求。从而第二实体确定对指定资源的获取操作请求或者对指定资源的更新操作请求的操作方式。
在一个可选实施例中,反馈消息可以包括,用于指示获取该指定资源失败的指示信息。在另一个可选实施例中,反馈消息还可以包括,用于指示获取该指定资源失败的原因是该操作执行时间为无效操作执行时间的指示信息。
在一个可选实施例中,反馈消息可以包括,用于指示更新该指定资源未确认的指示信息。在另一个可选实施例中,反馈消息还可以包括,用于指示更新该指定资源未确认的原因为该操作执行时间为无效操作执行时间的指示信息。在资源操作请求为对该指定资源的更新操作请求时,在一个可选实施例中,在第二实体接收到反馈信息之后,第二实体取消向第一实体发送资源操作请求;或者,第二实体向第一实体发送更新后的资源操作请求,其中更新后的资源操作请求包含对操作执行时间进行更新后的操作执行时间。
在一个可选实施例中,第一实体为公共业务实体CSE,第二实体为应用实体AE或者公共业务实体CSE。
在本实施例中还提供了另一种资源操作请求的处理装置,该装置设置为实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图6是根据本发明实施例的资源操作请求的处理装置的结构框图(2),该装置应用于第二实体,如图6所示,该装置包括:第一发送模块62,设置为向第一实体发送资源操作请求,其中,资源操作请求用于请求对指定资源进行操作,资源操作请求中携带有对指定资源进行操作的操作执行时间;接收模块64,设置为接收第一实体的反馈消息,其中,反馈消息用于指示第二实体对该资源操作请求的操作方式,反馈消息是在第一实体确定该操作执行时间不属于指定资源的有效时间时长时,第一实体向第二实体发送的;处理模块66,设置为依据操作方式对资源操作请求进行处理。
可选地,资源操作请求包括对指定资源的获取操作请求或者对指定资源的更新操作请求。
可选地,反馈消息携带有以下至少之一信息:用于指示获取该指定资源失败的指示信息,用于指示获取指定资源失败的原因是操作执行时间为无效操作执行时间的指示信息;或者,用于指示更新该指定资源未确认的指示信息,用于指示更新指定资源未确认的原因为操作执行时间为无效操作执行时间的指示信息。
图7是根据本发明实施例的资源操作请求的处理装置的结构框图(3),如图7所示,该装置除包括图6所示的所有模块外,还包括:取消模块72,设置为取消向第一实体发送资源操作请求;或者,第一发送模块74,设置为向第一实体发送更新后的资源操作请求,其中更新后的资源操作请求包含对该操作执行时间进行更新后的操作执行时间。
可选地,第一实体为公共业务实体CSE,第二实体为应用实体AE或者公共业务实体CSE。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述各个模块均位于同一处理器中;或者,上述各个模块分别位于第一处理器、第二处理器和第三处理器…中。
下面以第一实体为公共业务实体CSE,第二实体为应用实体AE或者公共业务实体CSE为例进行说明。
本可选实施例的方法包括:
1、应用实体AE或公共业务实体CSE发送资源操作请求到目标CSE,请求消息中包含:
1)“操作执行时间”参数,指示操作的执行时间。
2、本地CSE检查资源操作请求消息中是否包含“操作执行时间”参数,结果是有,则检索目标资源的“有效时间”属性,并判断资源的有效时间是否早于操作执行时间到期。如果是早于,则本地CSE反馈操作请求响应给所述AE或CSE,响应消息中包含:
1)“响应状态码”参数,其值设置为“失败”;
2)“内容”参数,其值设置为“无效操作执行时间”。
3、所述AE或CSE取消所述对资源的操作请求。
另一个可选实施例的方法包括:
1、应用实体AE或公共业务实体CSE发送资源操作请求到目标CSE,请求消息中包含:
1)“操作执行时间”参数,指示操作的执行时间;
2、本地CSE检查资源操作请求消息中是否包含“操作执行时间”参数,结果是有,则检索目标资源的“有效时间”属性,并判断资源的有效时间是否早于操作执行时间到期。如果是早于,则本地CSE反馈操作请求响应给所述AE或CSE,响应消息中包含:
1)“响应状态码”参数,其值设置为“未确认”;
2)“内容”参数,其值包括资源的“有效时间”属性。
3、所述AE或CSE更新所述“操作执行时间”参数,并通过操作请求发送给目标CSE。
4、目标CSE根据资源操作请求消息更新所述资源操作请求中的“操作执行时间”参数。
实施例一:
1、应用实体AE或公共业务实体CSE需要对目标CSE上的资源“Resource1”进行获取操作时,发送资源操作请求到目标CSE,请求消息中包含:
1)地址,其值设置为目标资源“Resource1”的统一资源标识URI;
2)请求标识,标识所述对资源“Resource1”请求的操作;
3)操作,指示目标CSE对资源“Resource1”执行的操作类型为“获取”;
4)操作执行时间,指示目标CSE执行对资源“Resource1”的获取操作的时间。
2、目标CSE通过对所述AE或CSE的授权认证后,读取资源“Resource 1”的地址,并检查请求消息中是否包含“操作执行时间”参数。
3、检查结果是有,则目标CSE根据资源“Resource1”的地址检索资源“Resource1”的“有效时间”属性,读取属性值,并判断资源的有效时间是否早于操作执行时间到期。
4、检查结果是早于,则目标CSE反馈操作请求响应给所述AE或CSE,响应消息中包含:
1)“请求标识”,其值设置为资源操作请求消息中请求标识参数的参数值;
2)“响应状态码”,其值设置为“失败”,指示资源操作请求的结果;
3)“内容”,其值设置为“无效操作执行时间”,指示资源操作请求失败的原因。
5、所述AE或CSE接收操作请求响应后,读取响应状态码参数,结果为“失败”,并读取内容参数,原因为“无效操作执行时间”。
6、所述AE或CSE根据响应消息中的请求标识参数检索并取消对资源“Resource1”的获取操作请求,记录操作结果。
实施例二:
1、应用实体AE或公共业务实体CSE需要对目标CSE上的资源“Resource2”进行更新操作时,发送资源操作请求到目标CSE,请求消息中包含:
1)地址,其值设置为目标资源“Resource 2”的统一资源标识URI;
2)请求标识,标识所述对资源“Resource1”请求的操作;
3)操作,指示目标CSE对资源“Resource2”执行的操作类型为“更新”;
4)操作执行时间,指示目标CSE执行对资源“Resource2”的更新操作的时间。
2、目标CSE通过对所述AE或CSE的授权认证后,读取资源“Resource2”的地址,并检查请求消息中是否包含“操作执行时间”参数。
3、检查结果是有,则目标CSE根据资源“Resource2”的地址检索资源“Resource2”的“有效时间”属性,读取属性值,并判断资源的有效时间是否早于操作执行时间到期。
4、检查结果是早于,则目标CSE反馈操作请求响应给所述AE或CSE,响应消息中包含:
1)“请求标识”,其值设置为资源操作请求消息中请求标识参数的参数值;
2)“响应状态码”,其值设置为“未确认”;指示资源操作请求的结果
3)“内容”,其值包括“无效操作执行时间”,指示资源操作请求未确认的原因,并包括资源“Resource2”的“有效时间”属性。
5、所述AE或CSE接收操作请求响应后,读取响应状态码参数,结果为“未确认”,并读取内容参数,原因为“无效操作执行时间”。
6、所述AE或CSE解析内容参数中资源“Resource2”的“有效时间”属性的属性值,根据响应消息中的请求标识参数检索并更新对资源“Resource2”的更新操作的“操作执行时间”参数,并通过资源操作请求发送给目标CSE,请求消息中包含:
1)地址,其值设置为目标资源“Resource 2”的统一资源标识URI;
2)请求标识,其值设置为资源操作响应消息中请求标识参数的参数值;
3)操作执行时间,更新后的目标CSE执行对资源“Resource2”的更新操作的时间。
7、目标CSE收到资源操作请求后,读取资源“Resource2”的地址,根据请求标识参数检索并更新所述对资源“Resource2”的更新操作的“操作执行时间”参数,并反馈操作请求响应给所述AE或CSE,响应消息中包含:
1)“请求标识”,其值设置为资源操作请求消息中请求标识参数的参数值;
2)“响应状态码”,其值设置为“确认”。
8、所述AE或CSE根据响应消息中的请求标识参数检索并更新对资源“Resource1”的更新操作请求,并记录操作状态。
9、目标CSE根据更新后的“操作执行时间”参数执行所述对资源“Resource 2”的更新操作,并通过资源操作请求响应反馈操作执行结果给所述AE或CSE。
综上所述,通过本发明提供的一种资源操作请求的处理方法,避免了资源的有效时间与操作执行时间之间的混乱,从而保证了对资源的操作请求的有效执行。
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,本发明实施例提供的一种资源操作请求的处理方法及装置具有以下有益效果:避免了资源的有效时间与操作执行时间之间的混乱,从而保证了对资源的操作请求的有效执行。

Claims (22)

  1. 一种资源操作请求的处理方法,包括:
    第一实体接收第二实体的资源操作请求,其中,所述资源操作请求用于请求对指定资源进行操作,所述资源操作请求中携带有对所述指定资源进行操作的操作执行时间;
    所述第一实体获取所述指定资源的有效时间时长;所述第一实体在确定所述操作执行时间不属于所述有效时间时长时,所述第一实体向所述第二实体发送反馈消息,其中,所述反馈消息用于指示所述第二实体对所述资源操作请求的处理依据。
  2. 根据权利要求1所述的方法,其中,所述资源操作请求包括对所述指定资源的获取操作请求或者对所述指定资源的更新操作请求。
  3. 根据权利要求2所述的方法,其中,所述反馈消息携带有以下至少之一信息:
    用于指示获取所述指定资源失败的指示信息,用于指示获取所述指定资源失败的原因是所述操作执行时间为无效操作执行时间的指示信息;或者,
    用于指示更新所述指定资源未确认的指示信息,用于指示更新所述指定资源未确认的原因为所述操作执行时间为无效操作执行时间的指示信息。
  4. 根据权利要求3所述的方法,其中,所述第一实体向所述第二实体发送所述反馈消息之后包括:
    所述第一实体接收所述第二实体更新后的资源操作请求,其中所述更新后的资源操作请求携带有对所述操作执行时间进行更新后的操作执行时间。
  5. 根据权利要求1所述的方法,其中,所述第一实体获取对所述指定资源进行操作的有效时间时长包括:
    所述第一实体检索所述指定资源的有效时间属性,从该有效时间属性中获取所述指定资源的有效时间时长。
  6. 根据权利要求1至5中任一项所述的方法,其中,所述第一实体为公共业务实体CSE,所述第二实体为应用实体AE或者公共业务实体CSE。
  7. 一种资源操作请求的处理方法,包括:
    第二实体向第一实体发送资源操作请求,其中,所述资源操作请求用于请求对指定资源进行操作,所述资源操作请求中携带有对所述指定资源进行操作的操作执行时间;
    所述第二实体接收所述第一实体的反馈消息,其中,所述反馈消息用于指示所述第二实体对所述资源操作请求的处理依据,所述反馈消息是在所述第一实体确定所述操作执行时间不属于所述指定资源的有效时间时长时,所述第一实体向所述第二实体发送的;
    所述第二实体根据所述处理依据对所述资源操作请求进行处理。
  8. 根据权利要求7所述的方法,其中,所述资源操作请求包括对所述指定资源的获取操作请求或者对所述指定资源的更新操作请求。
  9. 根据权利要求8所述的方法,其中,所述反馈消息携带有以下至少之一信息:
    用于指示获取所述指定资源失败的指示信息,用于指示获取所述指定资源失败的原因是所述操作执行时间为无效操作执行时间的指示信息;或者,
    用于指示更新所述指定资源未确认的指示信息,用于指示更新所述指定资源未确认的原因为所述操作执行时间为无效操作执行时间的指示信息。
  10. 根据权利要求9所述的方法,其中,所述第二实体接收所述第一实体的反馈消息之后包括:
    所述第二实体取消向所述第一实体发送所述资源操作请求;或者,
    所述第二实体向所述第一实体发送更新后的资源操作请求,其中所述更新后的资源操作请求包含对所述操作执行时间进行更新后的操作执行时间。
  11. 根据权利要求7至10中任一项所述的方法,其中,所述第一实体为公共业务实体CSE,所述第二实体为应用实体AE或者公共业务实体CSE。
  12. 一种资源操作请求的处理装置,所述装置应用于第一实体,所述装置包括:
    第一接收模块,设置为接收第二实体的资源操作请求,其中,所述资源操作请求用于请求对指定资源进行操作,所述资源操作请求中携带有对所述指定资源进行操作的操作执行时间;
    获取模块,设置为获取所述指定资源的有效时间时长;
    发送模块,设置为在确定所述操作执行时间不属于所述有效时间时长时,所述第一实体向所述第二实体发送反馈消息,其中,所述反馈消息用于指示所述第二实体对所述资源操作请求的处理依据。
  13. 根据权利要求12所述的装置,其中,所述资源操作请求包括对所述指定资源的获取操作请求或者对所述指定资源的更新操作请求。
  14. 根据权利要求13所述的装置,其中,所述反馈消息携带有以下至少之一信息:
    用于指示获取所述指定资源失败的指示信息,用于指示获取所述指定资源失败的原因是所述操作执行时间为无效操作执行时间的指示信息;或者,
    用于指示更新所述指定资源未确认的指示信息,用于指示更新所述指定资源未确认的原因为所述操作执行时间为无效操作执行时间的指示信息。
  15. 根据权利要求14所述的装置,其中,所述装置还包括:
    第二接收模块,设置为接收所述第二实体更新后的资源操作请求,其中所述更新后的资源操作请求携带有对所述操作执行时间进行更新后的操作执行时间。
  16. 根据权利要求12所述的装置,其中,所述获取模块设置为检索所述指定资源的有效时间属性,从该有效时间属性中获取所述指定资源的有效时间时长。
  17. 根据权利要求12至16中任一项所述的装置,其中,所述第一实体为公共业务实体CSE,所述第二实体为应用实体AE或者公共业务实体CSE。
  18. 一种资源操作请求的处理装置,所述装置应用于第二实体,所述装置包括:
    第一发送模块,设置为向第一实体发送资源操作请求,其中,所述资源操作请求用于请求对指定资源进行操作,所述资源操作请求中携带有对所述指定资源进行操作的操作执行时间;
    接收模块,设置为接收所述第一实体的反馈消息,其中,所述反馈消息用于指示所述第二实体对所述资源操作请求的处理依据,所述反馈消息是在所述第一实体确定所述操作执行时间不属于所述指定资源的有效时间时长时,所述第一实体向所述第二实体发送的;
    处理模块,设置为根据所述处理依据对所述资源操作请求进行处理。
  19. 根据权利要求18所述的装置,其中,所述资源操作请求包括对所述指定资源的获取操作请求或者对所述指定资源的更新操作请求。
  20. 根据权利要求19所述的装置,其中,所述反馈消息携带有以下至少之一信息:
    用于指示获取所述指定资源失败的指示信息,用于指示获取所述指定资源失败的原因是所述操作执行时间为无效操作执行时间的指示信息;或者,
    用于指示更新所述指定资源未确认的指示信息;
    用于指示更新所述指定资源未确认的原因为所述操作执行时间为无效操作执行时间的指示信息。
  21. 根据权利要求20所述的装置,其中,所述装置还包括:
    取消模块,设置为取消向所述第一实体发送所述资源操作请求;或者,
    第一发送模块,设置为向所述第一实体发送更新后的资源操作请求,其中所述更新后的资源操作请求包含对所述操作执行时间进行更新后的操作执行时间。
  22. 根据权利要求18至21中任一项所述的装置,其中,所述第一实体为公共业务实体CSE,所述第二实体为应用实体AE或者公共业务实体CSE。
PCT/CN2015/082382 2014-12-18 2015-06-25 资源操作请求的处理方法及装置 WO2016095472A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP15868984.4A EP3236633A4 (en) 2014-12-18 2015-06-25 Method and apparatus for processing resource operation request
US15/537,572 US20180270324A1 (en) 2014-12-18 2015-06-25 Methods and devices for processing resource operation request

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410802096.3 2014-12-18
CN201410802096.3A CN105791339B (zh) 2014-12-18 2014-12-18 资源操作请求的处理方法及装置

Publications (1)

Publication Number Publication Date
WO2016095472A1 true WO2016095472A1 (zh) 2016-06-23

Family

ID=56125797

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/082382 WO2016095472A1 (zh) 2014-12-18 2015-06-25 资源操作请求的处理方法及装置

Country Status (4)

Country Link
US (1) US20180270324A1 (zh)
EP (1) EP3236633A4 (zh)
CN (1) CN105791339B (zh)
WO (1) WO2016095472A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108112007B (zh) * 2016-11-25 2020-08-11 京东方科技集团股份有限公司 信息通知方法、装置及系统
US10669122B2 (en) * 2017-07-17 2020-06-02 Otis Elevator Company Service tool location-based function availability

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047908A (zh) * 2006-05-31 2007-10-03 华为技术有限公司 一种即按即通会话中的角色评估方法
CN101404575A (zh) * 2008-11-06 2009-04-08 阿里巴巴集团控股有限公司 一种更新签名算法的方法和系统
CN102263689A (zh) * 2010-05-26 2011-11-30 中兴通讯股份有限公司 资源接纳控制系统的策略交互方法、装置及系统

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5920701A (en) * 1995-01-19 1999-07-06 Starburst Communications Corporation Scheduling data transmission
EP0952510A4 (en) * 1997-11-14 2006-05-31 Mitsubishi Electric Corp SCHEME AND METHOD FOR DATA UPDATE
US20070162593A1 (en) * 2006-01-09 2007-07-12 Microsoft Corporation Abstracting help calls using a documentation abstraction layer
US8661120B2 (en) * 2010-09-21 2014-02-25 Amazon Technologies, Inc. Methods and systems for dynamically managing requests for computing capacity
CN101997878A (zh) * 2010-11-23 2011-03-30 蓝汛网络科技(北京)有限公司 一种验证域名链接的方法、装置及系统
CN102647461B (zh) * 2012-03-29 2016-05-04 北京奇虎科技有限公司 基于超文本传输协议的通信方法、服务器、终端
CN103763340B (zh) * 2013-12-24 2017-07-04 新华三技术有限公司 一种Web访问优化的装置和方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047908A (zh) * 2006-05-31 2007-10-03 华为技术有限公司 一种即按即通会话中的角色评估方法
CN101404575A (zh) * 2008-11-06 2009-04-08 阿里巴巴集团控股有限公司 一种更新签名算法的方法和系统
CN102263689A (zh) * 2010-05-26 2011-11-30 中兴通讯股份有限公司 资源接纳控制系统的策略交互方法、装置及系统

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
EP3236633A4 (en) 2017-11-15
CN105791339A (zh) 2016-07-20
EP3236633A1 (en) 2017-10-25
CN105791339B (zh) 2020-03-31
US20180270324A1 (en) 2018-09-20

Similar Documents

Publication Publication Date Title
US11582306B2 (en) Subscription and notification service
KR102605458B1 (ko) 분석 기능 발견 방법 및 장치
US10506432B2 (en) Method and apparatus for authenticating access authority for specific resource in wireless communication system
EP3057281B1 (en) M2m application remote registration method, device, system and storage medium
US11096051B2 (en) Connection establishment method, device, and system
US20150296470A1 (en) Method and apparatus for notifying information change in wireless communication system
US10142805B2 (en) Method for managing child resource of group member in wireless communication system and device for same
EP3185598B1 (en) Application registration method and apparatus
US20180176745A1 (en) M2m group and notification resource creation and information exchange methods therefor, and storage medium
WO2015149531A1 (zh) 物联网终端的固件管理方法、装置及通用服务实体
CN105871963B (zh) 资源操作请求的处理方法及装置
EP3128715B1 (en) Resource creation method and apparatus
WO2016095472A1 (zh) 资源操作请求的处理方法及装置
CN104955153A (zh) 一种发现资源的方法、装置及设备
WO2017136979A1 (zh) 一种远程访问的实现方法、装置和系统
WO2017000640A1 (zh) 一种实现成员资源处理的方法及装置
US10659938B2 (en) Registration method and communication method for application dedicated node (ADN), and nodes
EP3451602A1 (en) Registration management method and device
WO2016074455A1 (zh) 组资源更新处理方法、装置、系统及cse
WO2015149530A1 (zh) M2m应用服务方法、装置及系统
WO2015169055A1 (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: 15868984

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 15537572

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2015868984

Country of ref document: EP