CN111193805B - Resource discovery method and device - Google Patents

Resource discovery method and device Download PDF

Info

Publication number
CN111193805B
CN111193805B CN202010008393.6A CN202010008393A CN111193805B CN 111193805 B CN111193805 B CN 111193805B CN 202010008393 A CN202010008393 A CN 202010008393A CN 111193805 B CN111193805 B CN 111193805B
Authority
CN
China
Prior art keywords
resource
resource discovery
group
request message
uri
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202010008393.6A
Other languages
Chinese (zh)
Other versions
CN111193805A (en
Inventor
高莹
张永靖
殷佳欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010008393.6A priority Critical patent/CN111193805B/en
Publication of CN111193805A publication Critical patent/CN111193805A/en
Application granted granted Critical
Publication of CN111193805B publication Critical patent/CN111193805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms

Abstract

The invention discloses a method and a device for discovering resources, relates to the technical field of communication networks, and can solve the problem of high network overhead. The method comprises the steps of receiving a first resource discovery request message sent by a client through a server, searching resources according to the first resource discovery request message, creating a static group when a group creation indication indicates that the static group is created, taking the searched resources as members of the static group, creating a dynamic group when the group creation indication indicates that the dynamic group is created, setting a filtering condition in the first resource discovery request message as a filtering condition for determining the dynamic group, taking the searched resources meeting the filtering condition as members of the dynamic group, and finally sending a first response message carrying a URI of the created group to the client. The scheme provided by the embodiment of the invention is suitable for the process of resource discovery.

Description

Resource discovery method and device
Technical Field
The present invention relates to the field of communications network technologies, and in particular, to a method and an apparatus for resource discovery.
Background
With the rapid development of the internet of things technology, M2M (Machine-to-Machine Communications) has been abundantly applied in more and more industries and fields, and in order to meet the needs of application services in different industries, a unified M2M platform is developed to realize partial public capabilities, such as a resource discovery function.
The M2M platform may be a oneM2M platform, and a method for performing Resource discovery in a oneM2M architecture at present is that when a CSE (Common service Entity) in the oneM2M system receives a Resource discovery request message, a Resource discovery range is determined according to a destination address of the request message, and then resources meeting a filtering condition are searched for, and a URI (Universal Resource Identifier) of the Resource meeting the condition is returned in a response message, and then a requester sends a specific operation request to each Resource according to the URI, and the requester needs to send an operation request to each Resource each time when needing to operate the resources. Or the requester can send the request for creating the group after receiving the URI, and the requester sends the operation request to the group after creating the group by taking the resource meeting the condition as the group member. Whether a group is created or not, information interaction between the requester and the CSE needs to be performed for many times, resulting in large network overhead.
Disclosure of Invention
The embodiment of the invention provides a method and a device for discovering resources, which can solve the problem of high network overhead in the resource discovery process in the prior art.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for resource discovery, including:
a server receives a first resource discovery request message sent by a client, wherein the first resource discovery request message carries a group creation instruction and a filtering condition;
the server searches resources according to the first resource discovery request message;
when the created group indication is the created static group, creating the static group, and taking the searched resource as a member of the static group;
when the created group indication is a created dynamic group, creating the dynamic group, setting the filtering condition in the first resource discovery request message as a filtering condition for determining the dynamic group members, and taking the searched resources meeting the filtering condition as the dynamic group members;
and the server sends a first response message to the client, wherein the first response message carries the Universal Resource Identifier (URI) of the created group.
In a first possible embodiment, with reference to the first aspect, the method further includes:
and when the group creating indication indicates that the group is not created, the server sends a second response message to the client, wherein the second response message carries the found URI of the resource.
In a second possible embodiment, with reference to the first possible embodiment of the first aspect, the sending, by the server, a first response message to the client includes:
the server judges whether a result type parameter exists in the first resource discovery request message or not;
when a result type parameter exists and the result type parameter is a URI, the server sends a first response message carrying the URI of the created group and the URI of the searched resource to the client;
when a result type parameter exists and the result type parameter is content, the server sends a first response message carrying the URI of the created group and the content of the searched resource to the client;
and when the result type parameter does not exist in the first resource discovery request message, the server sends a first response message carrying the URI of the created group to the client.
In a third possible embodiment, with reference to the second possible embodiment of the first aspect, the sending, by the server, a second response message to the client includes:
the server judges whether a result type parameter exists in the first resource discovery request message or not;
when the result type parameter exists and the result type parameter is content, the server sends a second response message carrying the searched content of the resource to the client;
and when the result type parameter exists and is the URI, or the result type parameter does not exist in the first resource discovery request message, the server sends a second response message carrying the URI of the searched resource to the client.
In a fourth possible embodiment, with reference to the third possible embodiment of the first aspect, the first resource discovery request message further includes a resource discovery range, and the server searches for a resource according to the first resource discovery request message, including:
the server determines a resource discovery range according to the first resource discovery request message;
when the resource discovery range comprises a local address, the server searches for the resource meeting the filtering condition in the local range;
executing the operation specified by the first resource discovery request message on the resources meeting the filtering condition;
when the resource discovery range comprises a remote address, the server sends a second resource discovery request message to a remote address server, wherein the filtering condition in the second resource discovery request message is the same as the filtering condition in the first resource discovery request;
the server receives a third response message sent by the remote server, where the third response message carries a remote resource discovery result, and the remote resource discovery result includes the URI of the group created by the remote server and/or the URI of the resource found by the remote server, or the remote resource discovery result includes the URI of the group created by the remote server and/or the content of the resource found by the remote server.
In a fifth possible embodiment, with reference to the fourth possible embodiment of the first aspect, the determining, by the server, a resource discovery range according to the first resource discovery request message includes:
when the server determines that the first resource discovery request message comprises a range parameter, determining that the resource discovery range is a range specified by the range parameter;
when the server determines that the first resource discovery request message does not include the scope parameter, determining that the resource discovery scope is a scope included in a destination address of the first resource discovery request message.
In a sixth possible embodiment, with reference to the first aspect or any one of the above possible embodiments of the first aspect, the attributes of the dynamic group include at least any one of the following attributes:
a designated range for instructing the server to search for dynamic group members within the designated range;
the filtering condition is used for indicating a condition which should be met by the dynamic group member;
a refresh period for instructing the server to search and update the dynamic group members once every other refresh period;
and the group member list is used for storing the URI of the dynamic group member searched each time.
In a second aspect, an embodiment of the present invention provides an apparatus for resource discovery, including:
a receiving unit, configured to receive a first resource discovery request message sent by a client, where the first resource discovery request message carries a group creation instruction and a filtering condition;
a searching unit, configured to search for a resource according to the first resource discovery request message received by the receiving unit;
the creating unit is used for creating the static group when the creating group indicates that the static group is created, and taking the resource searched by the searching unit as a member of the static group; when the created group indication is a created dynamic group, creating the dynamic group, setting the filtering condition in the first resource discovery request message received by the receiving unit as a filtering condition for determining the dynamic group members, and taking the resources which are searched by the searching unit and meet the filtering condition as the dynamic group members;
a sending unit, configured to send a first response message to the client, where the first response message carries the universal resource identifier URI of the created group.
In a first possible embodiment, in combination with the second aspect,
the creating unit is further configured to send a second response message to the client when the created group indicates that the group is not created, where the second response message carries the found URI of the resource.
In a second possible embodiment, in combination with the first possible embodiment of the second aspect,
the sending unit is further configured to determine whether a result type parameter exists in the first resource discovery request message; when a result type parameter exists and the result type parameter is a URI, sending a first response message carrying the URI of the created group and the URI of the searched resource to the client; when a result type parameter exists and the result type parameter is content, sending a first response message carrying the URI of the created group and the content of the searched resource; and when the result type parameter does not exist in the first resource discovery request message, sending a first response message carrying the URI of the created group to the client.
In a third possible embodiment, in combination with the second possible embodiment of the second aspect,
the sending unit is further configured to determine whether a result type parameter exists in the first resource discovery request message; when the result type parameter exists and the result type parameter is content, sending a second response message carrying the content of the searched resource to the client; and when the result type parameter exists and is the URI, or the result type parameter does not exist in the first resource discovery request message, sending a second response message carrying the URI of the searched resource to the client.
In a fourth possible embodiment, with reference to the third possible embodiment of the second aspect, the first resource discovery request message further includes a resource discovery range; the search unit includes:
a determining module, configured to determine a resource discovery range according to the first resource discovery request message;
the searching module is used for searching the resources meeting the filtering condition in the local range when the resource discovery range comprises the local address;
the execution module is used for executing the operation specified by the first resource discovery request message on the resources meeting the filtering condition;
a sending module, configured to send a second resource discovery request message to a remote address server when the resource discovery range includes a remote address, where a filtering condition in the second resource discovery request message is the same as a filtering condition in the first resource discovery request;
a receiving module, configured to receive a third response message sent by the remote server, where the third response message carries a remote resource discovery result, and the remote resource discovery result includes a URI of a group created by the remote server and/or a URI of a resource found by the remote server, or the remote resource discovery result includes a URI of a group created by the remote server and/or content of a resource found by the remote server.
In a fifth possible embodiment, in combination with the fourth possible embodiment of the second aspect,
the determining module is further configured to determine, when the first resource discovery request message includes a range parameter, that the resource discovery range is a range specified by the range parameter; when the first resource discovery request message does not include the scope parameter, determining that the resource discovery scope is a scope included in a destination address of the first resource discovery request message.
In a sixth possible embodiment, in combination with the second aspect or any one of the above possible embodiments of the second aspect, the attributes of the dynamic group include at least any one of the following attributes:
a designated range for instructing the server to search for dynamic group members within the designated range;
the filtering condition is used for indicating a condition which should be met by the dynamic group member;
a refresh period for instructing the server to search and update the dynamic group members once every other refresh period;
and the group member list is used for storing the URI of the dynamic group member searched each time.
In a third aspect, an embodiment of the present invention provides an apparatus for resource discovery, where the apparatus is a server or is integrated in a server, and the apparatus includes:
a memory for storing information including program instructions;
the system comprises a receiver and a server, wherein the receiver is used for receiving a first resource discovery request message sent by a client, and the first resource discovery request message carries a group creation instruction and a filtering condition;
a processor, coupled to the memory, the receiver and the transmitter, for controlling execution of the program instructions, in particular for looking up resources according to the first resource discovery request message; when the created group indication is the created static group, creating the static group, and taking the searched resource as a member of the static group; when the created group indication is a created dynamic group, creating the dynamic group, setting the filtering condition in the first resource discovery request message as a filtering condition for determining the dynamic group members, and taking the searched resources meeting the filtering condition as the dynamic group members;
the sender is configured to send a first response message to the client, where the first response message carries the universal resource identifier URI of the created group.
In a first possible embodiment, in combination with the third aspect,
the sender is further configured to send a second response message to the client when the creation group indicates that the group is not created, where the second response message carries the found URI of the resource.
In a second possible embodiment, in combination with the first possible embodiment of the third aspect,
the processor is further configured to determine whether a result type parameter exists in the first resource discovery request message, and send a determination result to the sender;
the sender is further configured to send a first response message carrying the URI of the created group and the URI of the found resource to the client when the result type parameter exists and the result type parameter is the URI; when a result type parameter exists and the result type parameter is content, sending a first response message carrying the URI of the created group and the content of the searched resource; and when the result type parameter does not exist in the first resource discovery request message, sending a first response message carrying the URI of the created group to the client.
In a third possible embodiment, in combination with the second possible embodiment of the third aspect,
the processor is further configured to determine whether a result type parameter exists in the first resource discovery request message, and send a determination result to the sender;
the transmitter is further configured to send a second response message carrying the content of the found resource to the client when a result type parameter exists and the result type parameter is content; and when the result type parameter exists and is the URI, or the result type parameter does not exist in the first resource discovery request message, sending a second response message carrying the URI of the searched resource to the client.
In a fourth possible embodiment, with reference to the third possible embodiment of the third aspect, the first resource discovery request message further includes a resource discovery range;
the processor is further configured to determine a resource discovery range according to the first resource discovery request message; when the resource discovery range comprises a local address, searching for the resource meeting the filtering condition in the local range; executing the operation specified by the first resource discovery request message on the resources meeting the filtering condition;
the transmitter is further configured to transmit a second resource discovery request message to a remote address server when a remote address is included in the resource discovery range, where a filtering condition in the second resource discovery request message is the same as a filtering condition in the first resource discovery request;
the receiver is further configured to receive a third response message sent by the remote server, where the third response message carries a remote resource discovery result, and the remote resource discovery result includes a URI of a group created by the remote server and/or a URI of a resource found by the remote server, or the remote resource discovery result includes a URI of a group created by the remote server and/or content of a resource found by the remote server.
In a fifth possible embodiment, in combination with the fourth possible embodiment of the third aspect,
the processor is further configured to determine, when the first resource discovery request message includes a scope parameter, that the resource discovery scope is a scope specified by the scope parameter; when the first resource discovery request message does not include the scope parameter, determining that the resource discovery scope is a scope included in a destination address of the first resource discovery request message.
In a sixth possible embodiment, with reference to the third aspect or any one of the above possible embodiments of the third aspect, the attributes of the dynamic group include at least any one of the following attributes:
a designated range for instructing the server to search for dynamic group members within the designated range;
the filtering condition is used for indicating a condition which should be met by the dynamic group member;
a refresh period for instructing the server to search and update the dynamic group members once every other refresh period;
and the group member list is used for storing the URI of the dynamic group member searched each time.
In the method and the device for discovering the resource, provided by the embodiment of the invention, the server receives a first resource discovery request message sent by the client, searches for the resource according to the first resource discovery request message, creates a static group when the creation group indicates that the static group is created, takes the searched resource as a member of the static group, creates a dynamic group when the creation group indicates that the dynamic group is created, sets a filtering condition in the first resource discovery request message as a filtering condition for determining the dynamic group, and finally sends a first response message carrying the URI of the created group to the client. Compared with the prior art that the network overhead is large due to multiple information interactions, the embodiment of the invention can complete the work of resource discovery and group creation according to the first resource discovery request message, does not need to perform information interaction between the server and the client for multiple times, and can save the network overhead.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for resource discovery according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for resource discovery according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for resource discovery according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for resource discovery according to an embodiment of the present invention;
fig. 5 is a schematic logic diagram of an apparatus for resource discovery according to an embodiment of the present invention;
fig. 6 is a schematic logic diagram of another apparatus for resource discovery according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a logic structure of a server in the resource discovery method according to the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to reduce network overhead in the resource discovery process, an embodiment of the present invention provides a method for resource discovery, where the method is applied in a process in which a server in an oneM2M system discovers a resource according to a request of a client, and as shown in fig. 1, the method includes:
101. the server receives a first resource discovery request message sent by the client.
The first resource discovery request message includes a create group indication and a filter condition. The create group indication indicates whether to create a group, and whether to create a dynamic group or a static group. The filtering condition is used for resource discovery, and the server needs to discover the resources meeting the filtering condition.
It should be noted that, when the request message received by the server carries a filter Usage parameter, it may be determined that the request message is a first resource discovery request message, or the first resource discovery request message is a request message sent to a discovery resource.
102. And the server searches the resource according to the first resource discovery request message.
103. And when the group creating indication is static group creating, the static group is created, and the searched resources are used as members of the static group.
The method comprises the steps of loading a creation group indication by expanding a filter Usage parameter, wherein when the filter Usage parameter value is create Grp or create DycGrp, the server is indicated to need to further create a creation group after executing a resource discovery operation, the create Grp represents that a static group needs to be created, and the create DycGrp represents that a dynamic group needs to be created.
Or, the embodiment of the present invention may further add an Is Create Grp parameter in the first resource discovery request message, and when the value of the Is Create Grp parameter Is true, the representing server needs to further Create a group after performing the resource discovery operation.
In addition, by adding a Group Type parameter in the first resource discovery request message, it may be indicated that a static Group is created when the Group Type parameter is a static Group, and a dynamic Group is created when the Group Type is a dynamic Group.
104. And when the group creating indication is that the dynamic group is created, creating the dynamic group, setting the filtering condition in the first resource discovery request message as the filtering condition for determining the dynamic group members, and taking the searched resources meeting the filtering condition as the dynamic group members.
It should be noted that, because the dynamic group is not defined in the existing oneM2M standard, the embodiment of the present invention may add a filter criterion attribute on the basis of the existing group resource to identify the dynamic group resource, and when the group resource includes the filter criterion attribute, the group is represented as a dynamic group.
Wherein the attributes of the dynamic group at least comprise any one of the following attributes:
and the specified range is used for instructing the server to search the dynamic group members in the specified range.
A filter condition for indicating a condition that the dynamic group member should satisfy.
And the refreshing period is used for indicating the server to search and update the dynamic group members once every refreshing period.
And the group member list is used for storing the URI of the dynamic group member searched each time.
It is further noted that the dynamic group members are the resources that satisfy the filtering condition and are found in the specified range, and then the resources are taken as the members of the dynamic group.
105. And the server sends a first response message to the client, wherein the first response message carries the universal resource identifier URI of the created group.
It should be noted that, when the result type parameter exists in the first resource discovery request message, the server needs to send the first response message to the client according to the result type parameter. The specific implementation mode is as follows:
the server judges whether the result type parameter exists in the first resource discovery request message or not.
When the result type parameter exists and is a URI, the server sends a first response message carrying the URI of the created group and the URI of the searched resource to the client;
when the result type parameter exists and the result type parameter is the content, the server sends a first response message carrying the URI of the created group and the content of the searched resource to the client;
and when the result type parameter does not exist in the first resource discovery request message, the server sends a first response message carrying the URI of the created group to the client.
In the method for discovering resources provided by the embodiment of the present invention, a server receives a first resource discovery request message sent by a client, searches for resources according to the first resource discovery request message, creates a static group when a group creation instruction is to create the static group, uses the searched resources as members of the static group, creates a dynamic group when the group creation instruction is to create the dynamic group, sets a filtering condition in the first resource discovery request message as a filtering condition for determining the dynamic group, and finally sends a first response message carrying a URI of the created group to the client. Compared with the prior art that the network overhead is large due to multiple information interactions, the embodiment of the invention can complete the work of resource discovery and group creation according to the first resource discovery request message, does not need to perform information interaction between the server and the client for multiple times, and can save the network overhead.
With reference to the method flow shown in fig. 1, in another implementation manner of the embodiment of the present invention, an operation that should be performed by a server when a group does not need to be created is further provided, as shown in fig. 2, on the basis of fig. 1, the method further includes step 106.
106. And when the group creating indication is that the group is not created, the server sends a second response message to the client, wherein the second response message carries the found URI of the resource.
It should be noted that this step may be implemented by another implementation manner, when a group does not need to be created, the server does not receive a group creation instruction sent by the client, that is, after the server receives the first resource discovery request message sent by the client, it is detected whether the first resource discovery request message includes the group creation instruction, if so, the above step 103 or 104 is executed, a corresponding group is created according to the group creation instruction, and if not, a second response message is sent to the client.
When the result type parameter exists in the first resource discovery request message, the server needs to send a second response message to the client according to the result type parameter. The specific implementation mode is as follows:
the server judges whether a result type parameter exists in the first resource discovery request message or not;
when the result type parameter exists and the result type parameter is content, the server sends a second response message carrying the searched content of the resource to the client;
and when the result type parameter exists and is the URI, or the result type parameter does not exist in the first resource discovery request message, the server sends a second response message carrying the URI of the searched resource to the client.
With reference to fig. 1 or fig. 2, in order to provide a method for a server to discover resources according to a first resource discovery request message, in another implementation manner provided in an embodiment of the present invention, the first resource discovery request message further includes a resource discovery range, as shown in fig. 3, the step 102 may be specifically implemented as step 301 to step 304.
301. The server determines a resource discovery range according to the first resource discovery request message.
When the server determines that the first resource discovery request message comprises the range parameter, determining that the resource discovery range is a range specified by the range parameter;
when the server determines that the scope parameter is not included in the first resource discovery request message, the server determines that the resource discovery scope is a scope included in a destination address of the first resource discovery request message.
302. When the local address is included in the resource discovery range, the server searches the resource meeting the filtering condition in the local range.
Assuming that the filter condition is create and Resource Type is Container, the server will find the Resource meeting the conditions of create attribute being SAM and Resource Type being Container in the specified local scope according to the request message. When the filtering condition is empty, all resources within the resource discovery range are eligible resources.
It should be noted that the filtering condition in this step may be a filtering condition in the first resource discovery request message, or when the destination address of the first resource discovery request message is a dynamic group, the filtering condition may be a combination of the filtering condition carried in the first resource discovery request message and the filtering condition of the dynamic group.
303. And executing the operation specified by the first resource discovery request message on the qualified resource.
The operation specified by the first resource discovery request message includes any one of resource acquisition, resource update, resource deletion, and resource creation, when the specified operation is resource acquisition, the step 105 may be directly performed, and when the specified operation is resource update, resource deletion, or resource creation, the operation of updating, deleting, or resource creation of a sub-resource is performed on the resource meeting the filtering condition.
304. When the remote address is included in the resource discovery range, the server sends a second resource discovery request message to the remote address server, wherein the filtering condition in the second resource discovery request message is the same as the filtering condition in the first discovery request.
The remote address server is a server corresponding to the remote address, and the destination address of the second resource discovery request message is the remote address.
It should be noted that, in another implementation manner of this step, when it is determined that the resource discovery range includes the remote address, it is further required to further determine whether remote resource discovery needs to be performed according to the filtering condition, for example, when it is indicated that at most two resources meeting the filtering condition are needed in the filtering condition, if two resources meeting the filtering condition have been found in step 302, the server does not need to send a second resource discovery request message to the remote address server. Furthermore, if both the local address and the remote address are included in the resource discovery range, the server needs to both discover the resource within the local range and send a second resource discovery request message to the remote address server.
It should be further noted that, when the first resource discovery request message includes the result type parameter and the group creation instruction, the second resource discovery request message needs to include the same result type parameter and the same group creation instruction.
When the remote address server receives the second resource discovery request message, the method is the same as the method for discovering resources by the server according to the first resource discovery request message.
305. And the server receives a third response message sent by the remote server, wherein the third response message carries the remote resource discovery result.
The remote resource discovery result comprises the URI of the group created by the remote server and/or the URI of the resource found by the remote server, or the remote resource discovery result comprises the URI of the group created by the remote server and/or the content of the resource found by the remote server.
When the result type parameter is not contained in the second resource discovery request message and the contained group creation indication is to create a dynamic group or to create a static group, the remote resource discovery result is the URI of the created group.
When the second resource discovery request message does not contain the result type parameter and contains a group creation indication that no group is created or does not contain a group creation indication, the remote resource discovery result is the URI of the discovered resource.
When the second resource discovery request includes the result type parameter, the method for determining the remote resource discovery result carried in the third response message is the same as the method described in the above step 105 and step 106, and is not described herein again.
According to the resource discovery method provided by the embodiment of the invention, the server determines the resource discovery range according to the first resource discovery request message, searches the resource meeting the condition in the resource discovery range, further executes the operation specified by the first resource discovery request on the resource meeting the condition, and when the resource discovery range contains the remote address, the server can also send the second resource discovery request to the remote address server, so that the resource discovery and the operation on the resource can be completed only by receiving one message of the client, multiple times of information interaction is not needed, and the network overhead can be saved.
The method for discovering resources provided by the embodiment of the present invention is described below by taking a flow of requesting resource discovery from a server CSE1 by a client as an example, as shown in fig. 4, and the method includes:
401. the client sends a first resource discovery request message to CSE1.
Wherein, the destination address carried in the first resource discovery request message is: http:// cse1.example. org/myGroup, with the range parameters: http:// cse1.example. org/myGroup, http:// cse2.example. org/myAPP1, http:// cse3.example. org/smartaPP, filtration conditions were: creator SAM, createdbeore 2014-12-20, and filterUsage CreateGrp. From the filter criteria and scope parameters, it may be determined that the client wishes to discover the resources that the SAM created before 2014-12-20 within the mygroup of CSE1, the myAPP1 of CSE2, and the smartPP scope of CSE3.
Since the client sends the first resource discovery request message to the CSE1, for CSE1, the address of CSE1 is a local address and the addresses of CSE2 and CSE3 are remote addresses.
402. The CSE1 sends a second resource discovery request message to the CSE2 and CSE3, respectively.
403. The CSE1, CSE2, and CSE3 respectively search for resources according to the respectively received resource discovery request message.
The process of searching for resources refers to the method flow shown in fig. 3, and is not described herein again.
It should be noted that the process of searching for resources by the CSE1 may also be performed before step 402 or simultaneously with step 402, which is not limited by the present invention.
404. And the CSE2 and the CSE3 respectively send a third response message to the CSE1, wherein the third response message carries the resource discovery result.
For example, the resources discovered by CSE1 are CSE 1/smarttApp/A, the resources discovered by CSE2 are CSE2/myAPP1/a, CSE2/myAPP1/B, and the resources discovered by CSE3 are CSE 3/smarttApp/B, CSE 3/smarttApp/C.
When the second resource discovery request message does not carry the create group indication, the third response message received by the CSE1 carries the URI of the resource discovered by the CSE2 and the CSE2.
When the second resource discovery request message carries the create group indication, the third response messages sent by the CSE2 and the CSE3 received by the CSE1 both carry the group URI, for example, the group URI in the CSE2 is CSE2/myAPP1/< groupName >, and the group URI in the CSE3 is CSE 3/smarttapp/< groupName >.
405. The CSE1 creates a group according to the group creation indication in the first resource discovery request message.
Taking the group creation indication as an example of creating a static group, in conjunction with the description in step 404, when no group is created by CSE2 and CSE3, the group resource created by CSE1 includes 5 group members, which are: CSE 1/smartTAPP/A, CSE2/myAPP1/a, CSE2/myAPP1/B, CSE 3/smartTAPP/B, CSE 3/smartTAPP. The URI of the group is http:// cse1.example. org/myGroup/< groupName >.
When a group has been created by CSE2 and CSE3, the group resource created by CSE1 includes two subgroup members, in addition to group member CSE1/smartAPP/a, respectively: CSE2/myAPP1/< groupName >, CSE 3/smarttAPPP/< groupName >.
406. The CSE1 sends a first response message to the client, where the URI of the group created by the CSE1 is carried in the first response message.
In the method for discovering resources provided by the embodiment of the present invention, a server receives a first resource discovery request message sent by a client, searches for resources according to the first resource discovery request message, creates a static group when a group creation instruction is to create the static group, uses the searched resources as members of the static group, creates a dynamic group when the group creation instruction is to create the dynamic group, sets a filtering condition in the first resource discovery request message as a filtering condition for determining the dynamic group, and finally sends a first response message carrying a URI of the created group to the client. Compared with the prior art that the network overhead is large due to multiple information interactions, the embodiment of the invention can complete the work of resource discovery and group creation according to the first resource discovery request message, does not need to perform information interaction between the server and the client for multiple times, and can save the network overhead.
With reference to the above method flow, an embodiment of the present invention further provides an apparatus for resource discovery, where the apparatus is applied in a server, and as shown in fig. 5, the apparatus includes: a receiving unit 501, a searching unit 502, a creating unit 503 and a sending unit 504.
A receiving unit 501, configured to receive a first resource discovery request message sent by a client, where the first resource discovery request message carries a group creation instruction and a filtering condition;
a searching unit 502, configured to search for a resource according to the first resource discovery request message received by the receiving unit 501;
a creating unit 503, configured to create a static group when the creating group indicates that the static group is created, and use the resource found by the searching unit 502 as a member of the static group; when the creating group indicates that the creating of the dynamic group is performed, the dynamic group is created, the filtering condition in the first resource discovery request message received by the receiving unit 501 is set as the filtering condition for determining the dynamic group members, and the resource meeting the filtering condition found by the searching unit 502 is used as the dynamic group member;
the attributes of the dynamic group include at least any one of the following attributes:
the appointed range is used for indicating the server to search the dynamic group members in the appointed range;
a filtering condition for indicating a condition that a dynamic group member should satisfy;
a refresh period for instructing the server to search and update the dynamic group members once every other refresh period;
and the group member list is used for storing the URI of the dynamic group member searched each time.
A sending unit 504, configured to send a first response message to the client, where the first response message carries the universal resource identifier URI of the created group.
In another embodiment of the present invention, the sending unit 504 is further configured to send a second response message to the client when the group creation instruction indicates that the group is not created, where the second response message carries the URI of the found resource.
In another embodiment of the present invention, the sending unit 504 is further configured to determine whether a result type parameter exists in the first resource discovery request message; when the result type parameter exists and is a URI, sending a first response message carrying the URI of the created group and the URI of the searched resource to the client; when the result type parameter exists and the result type parameter is the content, sending a first response message carrying the URI of the created group and the content of the searched resource; and when the result type parameter does not exist in the first resource discovery request message, sending a first response message carrying the URI of the created group to the client.
In another embodiment of the present invention, the sending unit 504 is further configured to determine whether a result type parameter exists in the first resource discovery request message; when the result type parameter exists and the result type parameter is content, sending a second response message carrying the searched content of the resource to the client; and when the result type parameter exists and is the URI, or the result type parameter does not exist in the first resource discovery request message, sending a second response message carrying the URI of the searched resource to the client.
In another embodiment of the present invention, as shown in fig. 6, the first resource discovery request message further includes a resource discovery range; the search unit 502 includes: the determining module 5021, the searching module 5022, the executing module 5023, the sending module 5024, and the receiving module 5025.
A determining module 5021, configured to determine a resource discovery range according to the first resource discovery request message;
a searching module 5022, configured to search a resource meeting a filtering condition in the local range when the resource discovery range determined by the determining module 5021 includes the local address;
an executing module 5023, configured to execute the operation specified by the first resource discovery request message on the resource meeting the filtering condition;
a sending module 5024, configured to send a second resource discovery request message to the remote address server when the remote address is included in the resource discovery range determined by the determining module 5021, where a filtering condition in the second resource discovery request message is the same as a filtering condition in the first resource discovery request;
the receiving module 5025 is configured to receive a third response message sent by the remote server, where the third response message carries a remote resource discovery result, and the remote resource discovery result includes a URI of a group created by the remote server and/or a URI of a resource found by the remote server, or the remote resource discovery result includes a URI of a group created by the remote server and/or content of a resource found by the remote server.
A determining module 5021, configured to determine, when the first resource discovery request message includes the range parameter, that the resource discovery range is a range specified by the range parameter; when the scope parameter is not included in the first resource discovery request message, it is determined that the resource discovery scope is a scope included in a destination address of the first resource discovery request message.
In the device for discovering resources provided in the embodiments of the present invention, the receiving unit receives a first resource discovery request message sent by a client, the searching unit searches for resources according to the first resource discovery request message, when a group creation instruction indicates that a static group is created, the creating unit creates the static group, uses the searched resources as members of the static group, when the group creation instruction indicates that a dynamic group is created, the creating unit creates the dynamic group, sets a filtering condition in the first resource discovery request message as a filtering condition for determining the dynamic group, and finally, the sending unit sends a first response message carrying a URI of the created group to the client. Compared with the prior art that the network overhead is large due to multiple information interactions, the embodiment of the invention can complete the work of resource discovery and group creation according to the first resource discovery request message, does not need to perform information interaction between the server and the client for multiple times, and can save the network overhead.
An embodiment of the present invention further provides a device for discovering a resource, as shown in fig. 7, where fig. 7 is a schematic diagram of a hardware structure of a server described in fig. 5. The server may include a memory 701, a transmitter 702, a processor 703, a bus 704, and a receiver 705, wherein the memory 701, the transmitter 702, the processor 703, and the receiver 705 are communicatively connected via the bus 704.
The Memory 701 may be a Read Only Memory (ROM), a static Memory device, a dynamic Memory device, or a Random Access Memory (RAM). The memory 701 may store an operating system and other application programs. When the technical solution provided by the embodiment of the present invention is implemented by software or firmware, a program code for implementing the technical solution provided by the embodiment of the present invention is stored in the memory 701 and executed by the processor 703.
The transmitter 702 and the receiver 705 are used for communication between the apparatus and other devices or communication networks (such as, but not limited to, ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.).
The processor 703 may be a general-purpose Central Processing Unit (CPU), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, configured to execute related programs to implement the technical solutions provided by the embodiments of the present invention.
It should be noted that although the hardware shown in fig. 7 only shows the memory 701, the transmitter 702, the receiver 705 and the processor 703 as well as the bus 704, in a specific implementation, a person skilled in the art will understand that the first base station also contains other components necessary for achieving a normal operation. Also, hardware components for performing other functions may be included, as would be apparent to one skilled in the art, according to particular needs.
Specifically, when the server shown in fig. 7 is used to implement the apparatus shown in the embodiment of fig. 5, the memory 701 in the apparatus is used to store information including program instructions;
a receiver 705, configured to receive a first resource discovery request message sent by a client, where the first resource discovery request message carries a create group indication and a filtering condition;
a processor 703, coupled to the memory 701, the receiver 705, and the transmitter 702, for controlling execution of program instructions, in particular for searching for resources according to the first resource discovery request message; when the group creating indication is static group creating, the static group is created, and the searched resources are used as members of the static group; when the group creating indication is that a dynamic group is created, creating the dynamic group, setting the filtering condition in the first resource discovery request message as a filtering condition for determining dynamic group members, and taking the searched resources meeting the filtering condition as the dynamic group members;
wherein the attributes of the dynamic group at least comprise any one of the following attributes:
the appointed range is used for indicating the server to search the dynamic group members in the appointed range;
a filtering condition for indicating a condition that a dynamic group member should satisfy;
a refresh period for instructing the server to search and update the dynamic group members once every other refresh period;
and the group member list is used for storing the URI of the dynamic group member searched each time.
A sender 702, configured to send a first response message to the client, where the first response message carries the universal resource identifier URI of the created group.
In another embodiment of the present invention, the sender 702 is further configured to send a second response message to the client when the group creation indication indicates that the group is not created, where the second response message carries the URI of the found resource.
In another embodiment of the present invention, the processor 703 is further configured to determine whether a result type parameter exists in the first resource discovery request message, and send the determination result to the transmitter 702;
the sender 702 is further configured to send, to the client, a first response message carrying the URI of the created group and the URI of the found resource when the result type parameter exists and the result type parameter is the URI; when the result type parameter exists and the result type parameter is the content, sending a first response message carrying the URI of the created group and the content of the searched resource; and when the result type parameter does not exist in the first resource discovery request message, sending a first response message carrying the URI of the created group to the client.
In another embodiment of the present invention, the processor 703 is further configured to determine whether a result type parameter exists in the first resource discovery request message, and send the determination result to the transmitter 702;
the transmitter 702 is further configured to send, to the client, a second response message carrying the content of the found resource when the result type parameter exists and the result type parameter is content; and when the result type parameter exists and is the URI, or the result type parameter does not exist in the first resource discovery request message, sending a second response message carrying the URI of the searched resource to the client.
In another embodiment of the present invention, the first resource discovery request message further includes a resource discovery range;
the processor 703 is further configured to determine a resource discovery range according to the first resource discovery request message; when the resource discovery range comprises a local address, searching for the resource meeting the filtering condition in the local range; executing the operation specified by the first resource discovery request message on the resources meeting the filtering condition;
a transmitter 702, configured to transmit a second resource discovery request message to the remote address server when the remote address is included in the resource discovery range, where a filtering condition in the second resource discovery request message is the same as a filtering condition in the first resource discovery request;
the receiver 705 is further configured to receive a third response message sent by the remote server, where the third response message carries a remote resource discovery result, and the remote resource discovery result includes a URI of a group created by the remote server and/or a URI of a resource found by the remote server, or the remote resource discovery result includes a URI of a group created by the remote server and/or content of a resource found by the remote server.
In another embodiment of the present invention, the processor 703 is further configured to determine, when the first resource discovery request message includes a scope parameter, that the resource discovery scope is a scope specified by the scope parameter; when the scope parameter is not included in the first resource discovery request message, it is determined that the resource discovery scope is a scope included in a destination address of the first resource discovery request message.
In the device for resource discovery provided in the embodiment of the present invention, the receiver receives a first resource discovery request message sent by the client, the processor searches for a resource according to the first resource discovery request message, creates a static group when a group creation instruction indicates that a static group is created, takes the searched resource as a member of the static group, creates a dynamic group when the group creation instruction indicates that a dynamic group is created, sets a filtering condition in the first resource discovery request message as a filtering condition for determining the dynamic group, and finally sends a first response message carrying a URI of the created group to the client. Compared with the prior art that the network overhead is large due to multiple information interactions, the embodiment of the invention can complete the work of resource discovery and group creation according to the first resource discovery request message, does not need to perform information interaction between the server and the client for multiple times, and can save the network overhead.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part of the technical solutions contributing to the prior art may be embodied in the form of a software product, which is stored in a readable storage medium, such as a floppy disk, a hard disk, or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (24)

1. A method of resource discovery, comprising:
a server receives a first resource discovery request message sent by a client, wherein the first resource discovery request message carries a group creation instruction and a filtering condition;
the server searches resources according to the first resource discovery request message;
when the created group indication is a created dynamic group, creating the dynamic group, setting the filtering condition in the first resource discovery request message as a filtering condition for determining the dynamic group members, and taking the searched resources meeting the filtering condition as the dynamic group members;
and the server sends a first response message to the client, wherein the first response message carries the Universal Resource Identifier (URI) of the created group.
2. The method of resource discovery according to claim 1, further comprising:
and when the group creating indication indicates that the group is not created, the server sends a second response message to the client, wherein the second response message carries the found URI of the resource.
3. The method of claim 2, wherein the server sends a first response message to the client, comprising:
the server judges whether a result type parameter exists in the first resource discovery request message or not;
when a result type parameter exists and the result type parameter is a URI, the server sends a first response message carrying the URI of the created group and the URI of the searched resource to the client;
when a result type parameter exists and the result type parameter is content, the server sends a first response message carrying the URI of the created group and the content of the searched resource to the client;
and when the result type parameter does not exist in the first resource discovery request message, the server sends a first response message carrying the URI of the created group to the client.
4. The method of claim 3, wherein the server sends a second response message to the client, comprising:
the server judges whether a result type parameter exists in the first resource discovery request message or not;
when the result type parameter exists and the result type parameter is content, the server sends a second response message carrying the searched content of the resource to the client;
and when the result type parameter exists and is the URI, or the result type parameter does not exist in the first resource discovery request message, the server sends a second response message carrying the URI of the searched resource to the client.
5. The method of claim 4, wherein the first resource discovery request message further includes a resource discovery range, and the server searches for resources according to the first resource discovery request message, including:
the server determines a resource discovery range according to the first resource discovery request message;
when the resource discovery range comprises a local address, the server searches for the resource meeting the filtering condition in the local range;
executing the operation specified by the first resource discovery request message on the resources meeting the filtering condition;
when the resource discovery range comprises a remote address, the server sends a second resource discovery request message to a remote address server, wherein the filtering condition in the second resource discovery request message is the same as the filtering condition in the first resource discovery request;
the server receives a third response message sent by the remote server, where the third response message carries a remote resource discovery result, and the remote resource discovery result includes the URI of the group created by the remote server and/or the URI of the resource found by the remote server, or the remote resource discovery result includes the URI of the group created by the remote server and/or the content of the resource found by the remote server.
6. The method of claim 5, wherein the server determines the resource discovery range according to the first resource discovery request message, and comprises:
when the server determines that the first resource discovery request message comprises a range parameter, determining that the resource discovery range is a range specified by the range parameter;
when the server determines that the first resource discovery request message does not include the scope parameter, determining that the resource discovery scope is a scope included in a destination address of the first resource discovery request message.
7. The method of any of claims 1 to 6, wherein the attributes of the dynamic group comprise at least any of the following attributes:
a designated range for instructing the server to search for dynamic group members within the designated range;
the filtering condition is used for indicating a condition which should be met by the dynamic group member;
a refresh period for instructing the server to search and update the dynamic group members once every other refresh period;
and the group member list is used for storing the URI of the dynamic group member searched each time.
8. An apparatus for resource discovery, comprising:
a receiving unit, configured to receive a first resource discovery request message sent by a client, where the first resource discovery request message carries a group creation instruction and a filtering condition;
a searching unit, configured to search for a resource according to the first resource discovery request message received by the receiving unit;
a creating unit, configured to create a dynamic group when the created group indicates that the created group is a created dynamic group, set a filtering condition in the first resource discovery request message received by the receiving unit as a filtering condition for determining a dynamic group member, and use the resource that meets the filtering condition and is found by the searching unit as the dynamic group member;
a sending unit, configured to send a first response message to the client, where the first response message carries the universal resource identifier URI of the created group.
9. The apparatus for resource discovery according to claim 8,
the sending unit is further configured to send a second response message to the client when the created group indicates that the group is not created, where the second response message carries the found URI of the resource.
10. The apparatus for resource discovery according to claim 9,
the sending unit is further configured to determine whether a result type parameter exists in the first resource discovery request message; when a result type parameter exists and the result type parameter is a URI, sending a first response message carrying the URI of the created group and the URI of the searched resource to the client; when a result type parameter exists and the result type parameter is content, sending a first response message carrying the URI of the created group and the content of the searched resource; and when the result type parameter does not exist in the first resource discovery request message, sending a first response message carrying the URI of the created group to the client.
11. The apparatus for resource discovery according to claim 10,
the sending unit is further configured to determine whether a result type parameter exists in the first resource discovery request message; when the result type parameter exists and the result type parameter is content, sending a second response message carrying the content of the searched resource to the client; and when the result type parameter exists and is the URI, or the result type parameter does not exist in the first resource discovery request message, sending a second response message carrying the URI of the searched resource to the client.
12. The apparatus for resource discovery according to claim 11, wherein the first resource discovery request message further includes a resource discovery scope; the search unit includes:
a determining module, configured to determine a resource discovery range according to the first resource discovery request message;
the searching module is used for searching the resources meeting the filtering condition in the local range when the resource discovery range comprises the local address;
the execution module is used for executing the operation specified by the first resource discovery request message on the resources meeting the filtering condition;
a sending module, configured to send a second resource discovery request message to a remote address server when the resource discovery range includes a remote address, where a filtering condition in the second resource discovery request message is the same as a filtering condition in the first resource discovery request;
a receiving module, configured to receive a third response message sent by the remote server, where the third response message carries a remote resource discovery result, and the remote resource discovery result includes a URI of a group created by the remote server and/or a URI of a resource found by the remote server, or the remote resource discovery result includes a URI of a group created by the remote server and/or content of a resource found by the remote server.
13. The apparatus for resource discovery according to claim 12,
the determining module is further configured to determine, when the first resource discovery request message includes a range parameter, that the resource discovery range is a range specified by the range parameter; when the first resource discovery request message does not include the scope parameter, determining that the resource discovery scope is a scope included in a destination address of the first resource discovery request message.
14. The apparatus of any of claims 8 to 13, wherein the attributes of the dynamic group comprise at least any of the following attributes:
the appointed range is used for indicating the server to search the dynamic group members in the appointed range;
the filtering condition is used for indicating a condition which should be met by the dynamic group member;
a refresh period for instructing the server to search and update the dynamic group members once every other refresh period;
and the group member list is used for storing the URI of the dynamic group member searched each time.
15. A method of resource discovery, comprising:
a server receives a first resource discovery request message sent by a client, wherein the first resource discovery request message carries a group creation instruction;
the server searches resources according to the first resource discovery request message;
when the created group indication is the created static group, creating the static group, and taking the searched resource as a member of the static group;
and the server sends a first response message to the client, wherein the first response message carries the Universal Resource Identifier (URI) of the created group.
16. The method of resource discovery according to claim 15, further comprising:
and when the group creating indication indicates that the group is not created, the server sends a second response message to the client, wherein the second response message carries the found URI of the resource.
17. The method of claim 16, wherein the server sends a first response message to the client, comprising:
the server judges whether a result type parameter exists in the first resource discovery request message or not;
when a result type parameter exists and the result type parameter is a URI, the server sends a first response message carrying the URI of the created group and the URI of the searched resource to the client;
when a result type parameter exists and the result type parameter is content, the server sends a first response message carrying the URI of the created group and the content of the searched resource to the client;
and when the result type parameter does not exist in the first resource discovery request message, the server sends a first response message carrying the URI of the created group to the client.
18. The method of claim 17, wherein the server sends a second response message to the client, comprising:
the server judges whether a result type parameter exists in the first resource discovery request message or not;
when the result type parameter exists and the result type parameter is content, the server sends a second response message carrying the searched content of the resource to the client;
and when the result type parameter exists and is the URI, or the result type parameter does not exist in the first resource discovery request message, the server sends a second response message carrying the URI of the searched resource to the client.
19. An apparatus for resource discovery, comprising:
a receiving unit, configured to receive a first resource discovery request message sent by a client, where the first resource discovery request message carries a group creation instruction and a filtering condition;
a searching unit, configured to search for a resource according to the first resource discovery request message received by the receiving unit;
the creating unit is used for creating the static group when the creating group indicates that the static group is created, and taking the resource searched by the searching unit as a member of the static group;
a sending unit, configured to send a first response message to the client, where the first response message carries the universal resource identifier URI of the created group.
20. The apparatus for resource discovery according to claim 19,
the sending unit is further configured to send a second response message to the client when the created group indicates that the group is not created, where the second response message carries the found URI of the resource.
21. The apparatus for resource discovery according to claim 20,
the sending unit is further configured to determine whether a result type parameter exists in the first resource discovery request message; when a result type parameter exists and the result type parameter is a URI, sending a first response message carrying the URI of the created group and the URI of the searched resource to the client; when a result type parameter exists and the result type parameter is content, sending a first response message carrying the URI of the created group and the content of the searched resource; and when the result type parameter does not exist in the first resource discovery request message, sending a first response message carrying the URI of the created group to the client.
22. The apparatus for resource discovery according to claim 21,
the sending unit is further configured to determine whether a result type parameter exists in the first resource discovery request message; when the result type parameter exists and the result type parameter is content, sending a second response message carrying the content of the searched resource to the client; and when the result type parameter exists and is the URI, or the result type parameter does not exist in the first resource discovery request message, sending a second response message carrying the URI of the searched resource to the client.
23. A server, comprising a processor and a memory, wherein:
the memory has program code stored therein;
the processor executes the program code to implement the method of any of claims 1 to 7 or the method of any of claims 15 to 18.
24. A computer-readable storage medium having stored therein at least one instruction which, when executed on a computer, causes the computer to perform the method of any one of claims 1 to 7 or the method of any one of claims 15 to 18.
CN202010008393.6A 2015-11-19 2015-11-19 Resource discovery method and device Active CN111193805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010008393.6A CN111193805B (en) 2015-11-19 2015-11-19 Resource discovery method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510808314.9A CN106790323B (en) 2015-11-19 2015-11-19 Resource discovery method and device
CN202010008393.6A CN111193805B (en) 2015-11-19 2015-11-19 Resource discovery method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510808314.9A Division CN106790323B (en) 2015-11-19 2015-11-19 Resource discovery method and device

Publications (2)

Publication Number Publication Date
CN111193805A CN111193805A (en) 2020-05-22
CN111193805B true CN111193805B (en) 2021-12-31

Family

ID=58717372

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510808314.9A Active CN106790323B (en) 2015-11-19 2015-11-19 Resource discovery method and device
CN202010008393.6A Active CN111193805B (en) 2015-11-19 2015-11-19 Resource discovery method and device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201510808314.9A Active CN106790323B (en) 2015-11-19 2015-11-19 Resource discovery method and device

Country Status (2)

Country Link
CN (2) CN106790323B (en)
WO (1) WO2017084584A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819006B (en) * 2017-11-22 2022-08-09 京东方科技集团股份有限公司 Method for operating target resource, node equipment and terminal device
CN113875209A (en) * 2019-05-13 2021-12-31 现代自动车株式会社 Method and device for deleting resources in M2M system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098267A (en) * 2006-06-28 2008-01-02 华为技术有限公司 Method and system for establishing cluster conversation
US8392567B2 (en) * 2009-03-16 2013-03-05 International Business Machines Corporation Discovering and identifying manageable information technology resources
CN103200209A (en) * 2012-01-06 2013-07-10 华为技术有限公司 Access method of member resources, group server and member devices
CN103327568A (en) * 2012-03-21 2013-09-25 中国移动通信集团公司 Resource allocation message sending method, equipment discovering method and related equipment
CN103518350A (en) * 2012-05-14 2014-01-15 华为技术有限公司 Method and system for group communication, group server and group member device
CN102256211B (en) * 2010-05-19 2014-04-30 中兴通讯股份有限公司 Group-based method and system for application realization of M2M terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873542B (en) * 2009-04-21 2012-12-19 华为技术有限公司 Selecting method of URI (Uniform Resource Identifiers) based on conditions, server and communication system
EP2829084B1 (en) * 2012-03-22 2021-05-05 Iot Holdings, Inc. Method and apparatus for supporting machine-to-machine caching at a service capability layer
JP6260131B2 (en) * 2013-07-26 2018-01-17 株式会社リコー Communication management system, communication terminal, communication system, and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098267A (en) * 2006-06-28 2008-01-02 华为技术有限公司 Method and system for establishing cluster conversation
US8392567B2 (en) * 2009-03-16 2013-03-05 International Business Machines Corporation Discovering and identifying manageable information technology resources
CN102256211B (en) * 2010-05-19 2014-04-30 中兴通讯股份有限公司 Group-based method and system for application realization of M2M terminal
CN103200209A (en) * 2012-01-06 2013-07-10 华为技术有限公司 Access method of member resources, group server and member devices
CN103327568A (en) * 2012-03-21 2013-09-25 中国移动通信集团公司 Resource allocation message sending method, equipment discovering method and related equipment
CN103518350A (en) * 2012-05-14 2014-01-15 华为技术有限公司 Method and system for group communication, group server and group member device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Discovery for Public Safety;Intel;《SA WG2 Meeting #101bis》;20140221;全文 *

Also Published As

Publication number Publication date
CN106790323B (en) 2020-02-14
WO2017084584A1 (en) 2017-05-26
CN111193805A (en) 2020-05-22
CN106790323A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
KR102116401B1 (en) Cross resource subscription to M2M service layer
CN110149616B (en) Lightweight IOT information model
US11070433B2 (en) Network function NF management method and NF management device
CN109964507B (en) Network function management method, management unit and system
KR20210119504A (en) Communication method and apparatus, entity and computer readable storage medium
US11307914B2 (en) Method and device for managing application program
CN112261094B (en) Message processing method and proxy server
CN110413845B (en) Resource storage method and device based on Internet of things operating system
US10674349B2 (en) Subscription update method, device, and system
US20160241635A1 (en) M2m data querying and invoking methods, querying and invoking devices, and system
CN110474960B (en) Method and device for service deployment in virtual network
US10715628B2 (en) Attribute operating method and device
JP2017506480A (en) Information processing method and apparatus in M2M
KR20200047720A (en) Service layer message templates in telecommunication networks
CN111193805B (en) Resource discovery method and device
KR102631288B1 (en) Subscription server, subscription terminal, information subscription method, and system
EP3174322A1 (en) Method for deleting notification resource, and common service entity
WO2020009797A1 (en) Efficient resource representation exchange between service layers
CN108112007B (en) Information notification method, device and system
CN116761206B (en) Data transmission method, apparatus, communication device, medium, and program product
CN104967967B (en) Method and device for multi-hop resource discovery
CN116647594A (en) Information carrier access method and device and electronic equipment
WO2020097884A1 (en) Method, device, and system for querying capability information of terminal
CN117750394A (en) Target information and information acquisition method, device and equipment
CN116405505A (en) Management method, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220221

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.