WO2020119699A1 - 物联网的资源发布方法、装置、设备及存储介质 - Google Patents

物联网的资源发布方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2020119699A1
WO2020119699A1 PCT/CN2019/124438 CN2019124438W WO2020119699A1 WO 2020119699 A1 WO2020119699 A1 WO 2020119699A1 CN 2019124438 W CN2019124438 W CN 2019124438W WO 2020119699 A1 WO2020119699 A1 WO 2020119699A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
server
information
service device
directory
Prior art date
Application number
PCT/CN2019/124438
Other languages
English (en)
French (fr)
Inventor
唐海
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP19895771.4A priority Critical patent/EP3883184A4/en
Publication of WO2020119699A1 publication Critical patent/WO2020119699A1/zh
Priority to US17/342,270 priority patent/US11463376B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • 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/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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
    • 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/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Definitions

  • the embodiments of the present application relate to the Internet of Things technology, and in particular, to an Internet of Things resource publishing method, device, device, and storage medium.
  • the Open Connectivity Foundation (OCF), as a technical standard organization for the application layer of the Internet of Things (IOT), has developed a service framework for the interconnection and interworking among devices in the Internet of Things.
  • resources can be used to characterize the devices in the Internet of Things and the functional services implemented by the devices.
  • the entity that provides resources is a service device, and the entity that accesses resources can be a client device.
  • a client device can send an operation request to a service device to implement operations on the resources of the service device, such as creating, updating, and deleting, so as to realize corresponding services.
  • the client device needs to discover resources before operating on the resources of the service device.
  • the client device may not directly discover the resources of the service device, for example, the service device is in a dormant state.
  • the resource can be published on the server by the service device, so that the client device can send the resource discovery request to the server, and then perform resource discovery.
  • the client device When a fault occurs on the server, the client device cannot discover the resources of the service device through the server and cannot operate the resources on the service device, thereby affecting the realization of business services.
  • Embodiments of the present application provide a resource publishing method, device, device, and storage medium of the Internet of Things to improve the reliability of resource discovery.
  • embodiments of the present application may provide a method for releasing resources of the Internet of Things.
  • the method includes:
  • the service device finds a server with a resource directory from the server cluster
  • the service device publishes resource information to at least two servers among servers having a resource directory.
  • embodiments of the present application may provide a method for releasing resources of the Internet of Things, including:
  • the first server receives the resource information sent by the service device
  • the first server stores the resource information in a resource directory
  • the first server is one of the servers with resource catalogs discovered by the service device from the server cluster, and at least two of the servers with resource catalogs receive the resource information.
  • embodiments of the present application may provide a method for releasing resources of the Internet of Things, including:
  • the second server receives the resource information sent by the first server
  • the second server stores the resource information in a resource directory
  • the first server and the second server are both servers with resource directories in the server cluster.
  • an embodiment of the present application further provides a resource publishing device for the Internet of Things, including:
  • the processing module is used to control the transceiver module to discover a server with a resource directory from the server cluster;
  • the transceiver module is used to publish resource information to at least two servers among servers having a resource directory.
  • an embodiment of the present application further provides a resource publishing device for the Internet of Things, which is applied to the first server and includes:
  • the transceiver module is used for the first server to receive the resource information sent by the service device;
  • a processing module for storing the resource information in a resource directory
  • the first server is one of the servers with resource catalogs discovered by the service device from the server cluster, and at least two of the servers with resource catalogs receive the resource information.
  • an embodiment of the present application further provides a resource publishing apparatus for the Internet of Things, which is applied to a second server and includes:
  • a receiving module configured to receive resource information sent by the first server
  • a processing module for storing the resource information in a resource directory
  • the first server and the second server are both servers with resource directories in the server cluster.
  • an embodiment of the present application further provides a service device, including: a transceiver, a processor, and a memory;
  • the memory stores computer execution instructions
  • the processor executes the computer-executed instructions stored in the memory, so that the service device executes the resource release method of the Internet of Things described in the first aspect.
  • an embodiment of the present application further provides a server, including: a transceiver, a processor, and a memory;
  • the memory stores computer execution instructions
  • the processor executes the computer-executed instructions stored in the memory, so that the server executes the resource release method of the Internet of Things according to the second aspect or the third aspect.
  • an embodiment of the present application further provides a computer-readable storage medium that stores computer-executable instructions, and when the computer-executed instructions are executed by a processor, is used to implement the first aspect
  • the resource release method of the Internet of Things is used to implement the first aspect The resource release method of the Internet of Things.
  • an embodiment of the present application further provides a computer-readable storage medium that stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, is used to implement the second aspect Or the resource release method of the Internet of Things described in the third aspect.
  • the resource publishing method, device, equipment and storage medium of the Internet of Things can discover a server with a resource catalog from a server cluster through a service device, and the service device publishes resource information to a server with a resource catalog
  • the resource information can be stored on at least two servers, and the multi-server publishing of the resource information can be realized, so that as long as there is a server that stores the resource information can work normally, the service device can be made
  • the resources can be discovered by customer equipment, effectively improving the reliability of resource discovery.
  • FIG. 1 is a schematic diagram of an Internet of Things system applied in an embodiment of this application;
  • FIG. 2 is a flowchart 1 of the method for releasing resources of the Internet of Things provided by an embodiment of the present application;
  • FIG. 3 is a flowchart 2 of a method for releasing resources of the Internet of Things according to an embodiment of the present application
  • FIG. 4 is a flowchart 3 of a method for releasing resources of an Internet of Things provided by an embodiment of the present application
  • FIG. 5 is a flowchart 4 of a method for releasing resources of the Internet of Things provided by an embodiment of the present application
  • FIG. 6 is a flowchart 5 of a method for publishing resources of the Internet of Things according to an embodiment of the application
  • FIG. 7 is a flowchart 6 of a method for releasing resources of an Internet of Things provided by an embodiment of this application;
  • FIG. 8 is a schematic structural diagram 1 of a resource publishing device for an Internet of Things provided by an embodiment of this application;
  • FIG. 9 is a second schematic structural diagram of an apparatus for releasing resources of an Internet of Things provided by an embodiment of this application.
  • FIG. 10 is a schematic structural diagram 3 of a resource publishing device for an Internet of Things provided by an embodiment of this application;
  • FIG. 11 is a schematic structural diagram of a service device provided by an embodiment of this application.
  • FIG. 12 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of an Internet of Things system applied in an embodiment of the present application.
  • the Internet of Things system includes a client device 11, a service device 12 and multiple servers 13. It can be understood that in actual applications, there may be one or more client devices 11 and service devices 12, and FIG. 1 only uses one as an example.
  • the client device 11 and the service device 12 can be connected to the server 13 respectively.
  • the client device 11 can be connected to the server 13 in a wired or wireless manner, and the service device 12 can also be connected to the server 13 in a wired or wireless manner.
  • the client device 11 is an entity that accesses resources, and may be a terminal device installed with an OCF client application.
  • the terminal device is, for example, a desktop computer, a notebook, a personal digital assistant (PDA), a smartphone, a tablet computer, etc. Any terminal device.
  • the client device 11 may also be referred to as an OCF client device, user device, or client device.
  • the service device 12 may be an entity that provides resources. It may be a data acquisition device such as a sensor or a data acquisition card, or it may be an electrical component device such as a switch, socket, or lamp, or it may be an air conditioner, washing machine, refrigerator, speaker, or television. Electronic equipment. Of course, the above are only some possible examples of the service device 12, and the service device 12 may also be other intelligent hardware devices that can provide resources and implement corresponding functional services. The embodiments of the present application will not repeat them here.
  • the service device 12 may be called an entity of the OCF server, a resource entity, a resource provider, a resource device, or the like.
  • the server 13 may store resource information of the service device 12. In this way, during the resource discovery process, the client device 11 can send a resource discovery request to the server 13 and receive the resource information of the service device 12 returned by the server 13, so as to realize the resource discovery of the service device 12 without having to report to the service device 12 Sending a resource sending request avoids resource discovery failures caused by the sleep of the service device 12 and other reasons.
  • the server 13 may be a server of a local area network or a server of a wide area network. If it is a server in the local area network, the server 13 may be a gateway device or a terminal device with a gateway function. If it is a server of a wide area network, the server 13 may be a server of a data center, also called a cloud server.
  • the server 13 may be a device installed with the OCF server application program, or a resource directory server.
  • the resource directory server may be a dedicated server for storing resource information, and it may also be called a resource server or the like.
  • the server 13 that can store the resource information of the service device 12 may be a server with a resource directory (Resource Directory, abbreviated as RD).
  • the server with the resource directory can be used to store the resource information of the service device 12, and the server with the resource directory
  • the server may also be called a resource server, or a resource directory server.
  • the service device 12 needs to discover the resource directory to determine the server with the resource directory among the plurality of servers 13.
  • the service device may send a discovery request of the resource directory to each server in the server cluster.
  • the discovery request of the resource directory may include: the resource identification of the server and the query conditions.
  • the resource identifier of the server may be a resource identifier used for resource directory discovery, which may be a uniform resource identifier (Uniform Resource Identifier, URI for short) of the server, and the URI of the server may be /oic/res, for example.
  • URI Uniform Resource Identifier
  • the query condition may include: a resource type (resource type, rt for short) is a resource directory type, which may be expressed as oic.wk.rd.
  • each server can determine whether it meets the query condition according to the identifier of the resource directory and the query condition. If the query conditions are met, the server may return the discovery response of the resource directory to the service device. If the service device receives the resource directory discovery response discovered by the server, the service device discovers the server.
  • the service device 12 may use one of the servers 13 found by it as a target server to publish resource information to it. In this way, when the server 13 fails, or the resource information stored on the server 13 fails, the client device 11 cannot discover resources, making the resource discovery less reliable.
  • the service device 12 can publish the resources of the service device 12 in multiple resource directories regardless of the number of servers with resource directories found.
  • the server 13 enables the resource information to be stored on multiple servers 13 with resource directories.
  • the service device 12 may also send the resource information of the service device 12 to the one server and instruct the one server to send the resource information of the service device 12 to the resource Directory of other servers.
  • the other server may be a server with a resource directory discovered by the one server 13.
  • the service device 12 finds multiple servers 13 with a resource directory, the service device may directly send the resource information of the service device 12 to some or all of the servers 13 with a resource directory, or may send one of the servers 13 to the server 13 Send the resource information of the service device 12 and instruct the one server to send the resource information of the service device 12 to other servers with resource directories.
  • the other server may be a server with a resource directory discovered by the service device 12 or a server with a resource directory discovered by the one server 13.
  • the client device 11 Before operating the resource on the service device 12, the client device 11 needs to perform resource discovery to discover the resource on the service device 12.
  • the client device may send a resource discovery request to each server in the server cluster.
  • the resource discovery request may include: a resource identification of the server.
  • the resource identifier of the server may be the URI of the server, and the URI of the server may be /oic/res, for example.
  • the resource discovery request may be a Get (Operation) instruction of the resource directory, which may be expressed as Get/oic/res.
  • the resource discovery request may also include: resource query conditions. After receiving the resource discovery request, each server can determine whether it has resource information that meets the query condition according to the resource identifier of the server and the query condition.
  • the server 13 If there is resource information that meets the query conditions, the server 13 returns a resource discovery response to the client device 11, which may include: resource information on the service device 12. If the client device 11 receives the resource discovery response including the resource information of the service device 12 sent by the server, the client device 11 discovers the resource on the service device 12.
  • the client device 11 can discover the Resources, effectively improve the reliability of resource discovery.
  • the resources involved in the embodiments of the present application are resources in the Internet of Things, which may be called OCF resources, and may be used to characterize service devices, functional services of service devices, and so on.
  • the service device may be a service device whose usage frequency is less than or equal to the first preset threshold, a service device with a sleep frequency greater than or equal to the second preset threshold, a service device with an insomnia duration greater than or equal to the preset duration, or a client device Service equipment for different networks.
  • other types of service devices can also perform the following resource release methods, which are not limited in the embodiments of the present application.
  • FIG. 2 is a flowchart 1 of a resource publishing method of the Internet of Things provided by an embodiment of the present application.
  • the resource publishing method of the Internet of Things shown in FIG. 2 may be implemented by the service device 12 shown in FIG. 1 through software and/or hardware.
  • the resource release method of the Internet of Things may include:
  • the service device finds a server with a resource directory from the server cluster.
  • the service device can perform resource directory discovery to discover servers with resource directories from the server cluster.
  • the service device may discover a server with a resource directory, and may also discover some or all servers with a resource directory.
  • the service device publishes the resource information to at least two servers among the servers having the resource directory.
  • the resource information may include at least one of the following information: the resource identifier of the service device, the resource type (rt) of the service device, and the resource access interface (if) of the service device.
  • the resource information may be a resource representation (resource representation), and its specific form may be a resource link (Link).
  • resource representation resource representation
  • Link resource link
  • the resource identifier may be a URI of the resource, which may be used to indicate the address of the resource on the service device side.
  • the client device can access the resource of the service device through the resource identifier, that is, the URI.
  • the resource identifier can be represented by "href", and the specific value of the href is the URI of the resource.
  • the resource type can be used to represent the type of resource provided by the service device, and in the resource characterization, the resource type can be represented by "rt".
  • the resource access interface may be an access interface for operations such as viewing or adjusting the resource.
  • the resource information may include: information of some or all resources possessed by the service device.
  • the information of each resource in the part or all of the resources may include at least one of the following information: the identifier of each resource, the type of each resource, and the access interface of each resource.
  • the service device has at least two types of resources, such as switching resources and brightness resources.
  • the resource information may include information of at least one of the following resources: switching resources and brightness resources.
  • the information of each resource may include at least one of the following information: the identifier of each resource, the type of each resource, and the access interface of each resource.
  • the service device has at least four types of resources, such as switching resources, temperature resources, hot and cold mode resources, and blowing mode resources.
  • the resource information may include information of at least one of the following resources: switching resources, temperature resources, hot and cold mode resources, and brightness resources.
  • the information of each resource may include at least one of the following information: the identifier of each resource, the type of each resource, and the access interface of each resource.
  • the above is only a lamp, and an air conditioner is taken as a service device as an example.
  • the resource information is exemplified to illustrate that the service device may also be other devices, which is not limited in the embodiments of the present application.
  • sending the resource information to part or all of the servers having the resource directory in S202 shown above may include:
  • the service device directly sends the resource information to the server with the resource directory; or,
  • the service device sends the resource information to the first server in the server with the resource directory, and instructs the first server to send the resource information to other servers in the server with the resource directory.
  • the service device can publish the resource information through multiple publishing methods.
  • the service device may directly send the resource information to at least two servers with a resource directory, or may send the resource information to a first server with a resource directory, and the first server may send the resource information to Other servers in the resource directory. No matter which method is adopted, as long as the resource information can be published on the at least two servers with the resource directory. If the service device directly sends the resource information, the service device can send the resource information to the server with the resource directory at the same time, or send the resource information to the server with the resource directory according to the server priority order.
  • the service device sends the resource information through the first server, the service device sends the resource information to the first server, which is also sent by the first server to other servers with a resource directory, or the first server can follow the server Priority order, to other servers with resource directories.
  • the service device can also use the part or all of the servers with the resource directory as the target server, directly to the part or the server with the resource directory All servers send this resource information.
  • the service device can use the one or more servers as the target server and send the resource information to the one or more servers , And instructs the one or more servers to send the resource information to other servers with resource directories discovered by the one or more servers.
  • the service device may select one or more servers from the part or all of the servers with the resource directory as the target server, and One or more servers send the resource information, and instruct the one or more servers to send the resource information to other servers with resource directories discovered by the first server.
  • the service device can also select one or more servers from the part or all of the servers with the resource directory as the target server, and The one or more servers send the resource information, and instruct the one or more servers to send the resource information to other servers with resource directories discovered by the service device.
  • the service device may also use other publishing methods to publish the resource information, so as to distribute the resource information to at least two servers with resource directories.
  • the service device may select two servers as the target server from some or all of the servers with the resource directory that it discovers, send the resource information to the two servers, and the two service devices send the resource information to the server with the resource directory.
  • Other servers send this resource information.
  • a server with a resource directory can be found from a server cluster through a service device, and the service device can publish resource information to at least two servers among the servers with a resource directory,
  • the resource information can be stored on at least two servers, and the multi-server publishing of the resource information can be realized.
  • the resources of the service device can be discovered by the client device , Effectively improve the reliability of resource discovery.
  • embodiments of the present application may also provide a resource release method for the Internet of Things.
  • the resource publishing method of the Internet of Things provided in this embodiment may be an implementation example of the resource publishing method of the Internet of Things shown in FIG. 2.
  • the service device may directly send the resource information to the service device. Found on at least two servers with resource directories. The following describes the method for releasing resources of the Internet of Things based on the first release method in combination with specific examples.
  • FIG. 3 is a second flowchart of a method for publishing resources of the Internet of Things provided by an embodiment of the present application.
  • the service device discovering the server with the resource directory from the server cluster in S201 may include:
  • the service device finds some or all of the servers with the resource directory from the server cluster.
  • the service device may send a discovery request for a resource directory to each server in the server cluster. If a discovery response returned by the server is received, it may be determined that a server with a resource directory has been discovered.
  • the service device may discover some or all servers in the server cluster that have a resource directory.
  • the service device in S202 publishing the resource information to at least two servers among the servers having the resource directory may include:
  • the service device sends the resource information to some or all servers having the resource directory.
  • the service device may select a part of servers from all the servers found with the resource directory as the target server, and send the resource information to each server in the target server; it may also find all the servers with the resource directory that it finds All serve as target servers and send the resource information to each server in the target server.
  • the service device can send a resource publication (POST) request to each server regardless of whether it is a partial server or a full server with a resource directory.
  • the resource publishing request may include: the URI of the server, such as oic/rd, and the resource publishing request may be expressed as: POST/oic/rd, for example.
  • the resource release request message contains the resource information, such as resource link.
  • the resource publishing request may be as follows:
  • the resource distribution request may include the identifier of the service device and a resource link.
  • the identifier of the service device can be represented by "di”, which can be "ocf://server_dervice_id”.
  • the resource link can be represented by "link”, which can include: context URI, target URI, resource type, access interface, resource policy bit mask, and endpoint.
  • the context URI can be represented by an anchor "anchor”, which can be used to represent the URI of the owner resource that contains the link, that is, the URI of the service device, which can be "ocf://server_dervice_id”.
  • the target URI can be represented by "href” and can be used to represent the URI of the target resource on the service device, which can be "/mysleepysensor”.
  • the resource type can be represented by "rt” and can be used to represent the type of target resource on the service device, which can be "oic.r.sensor”.
  • the access interface can be represented by "if” and can be used to indicate the type of access interface supported by the target resource on the service device, which can include: “oic.if.s” and “oic.if.baseline”.
  • the bit mask of the resource policy can be represented by "bm", and the value of the bit mask is 3, which can be used to indicate that the target resource on the service device can be discovered and can be viewed.
  • the endpoint can be represented by "eps”, which can represent the URI of endpoints that can access the target resource of the service device, which can be "coaps://[fe80::1]:1111".
  • the resource publishing request may further include: a resource reference, which may be represented by "ref”, which may be used to indicate the relationship between the target URI and the context URI.
  • the service device may send the resource information to the multiple servers at the same time, or may send the resource information to it according to a preset order.
  • the service device sending the resource information to some or all of the servers having the resource directory in S302 may include:
  • the service device sends the resource information to some or all of the servers with the resource directory in the order of server priority.
  • the service device may also determine the priority order of some or all of the servers with resource catalogs.
  • the priority order may be, for example, the time order in which the service device discovers the server, that is, the time order in which the discovery response returned by the server is received, or the priority order determined according to the weight of the resource directory of the server.
  • the weight of the resource directory is determined according to at least one factor such as the storage capacity of the server, the operating system, and power information.
  • the method may further include:
  • Each server in some or all of the servers having the resource directory receives the resource information sent by the service device.
  • Each server stores the resource information in the resource directory.
  • Each server may store the received resource information in the resource directory in any form such as a table or a database.
  • the message body of the publish request may carry the resource information
  • the server may store the resource information in the resource directory when receiving the publish request.
  • each server may also send a resource publishing response to the service device to indicate that the resource of the service device has been published on each server.
  • the service device may directly send the resource information to a part or all of the servers with the resource catalog that it sends, so that the resource information is stored on at least two servers with the resource catalog, Effectively ensure the reliability of resource discovery.
  • embodiments of the present application may also provide a resource release method for the Internet of Things.
  • the resource publishing method of the Internet of Things provided in this embodiment may be another implementation example of the resource publishing method of the Internet of Things shown in FIG. 2.
  • the resource information may be sent by the service device to the service device.
  • the one server forwards it to other servers with a resource directory discovered by the one server.
  • the following describes the method for releasing resources of the Internet of Things based on the second release method or the third release method in combination with specific examples.
  • FIG. 4 is a flowchart 3 of a method for releasing resources of the Internet of Things according to an embodiment of the present application.
  • the service device in S201 discovers a server with a resource directory from the server cluster may include:
  • the service device finds a server with a resource directory from the server cluster.
  • the server with the resource directory includes the first server.
  • the service device finds one or more servers with a resource directory from the server cluster, and then determines the one or more servers as the first server.
  • the service device can find some or all servers with a resource directory from the server cluster, and can select one or more servers from it as the first server.
  • the service device in S202 publishes the resource information to at least two servers among the servers with the resource directory, which may include:
  • the service device sends the resource information to the first server, and instructs the first server to send the resource information to a server with a resource directory discovered by the first server.
  • the service device may instruct the first server to send the resource information to the server with the resource directory discovered by the first server through various indication methods.
  • the service device may reuse the existing field to instruct the first server to send the resource information to the server with the resource directory discovered by the first server.
  • the service device sends the resource information to the first server, and instructs the first server to send the resource information to the server with the resource directory discovered by the first server, which may include:
  • the service device sends a resource release request to the first server, and the resource release request includes a resource link.
  • the resource link contains the resource information and instruction information, and the instruction information is used to instruct the first server to send the resource information to the server with the resource directory discovered by the first server.
  • the service device may carry the indication information through the field in the multiplexed resource link.
  • the indication information is realized by multiplexing at least part of the bits of the bit mask in the resource policy of the resource link.
  • the partial bits may be reserved bits of the bit mask in the resource policy of the resource link.
  • the indication information may pass through at least one of the remaining 6 bits achieve.
  • the 6th bit can be passed
  • the value of the bit mask in the resource policy of the resource link may be 111. Therefore, if the value of the bit mask in the resource policy of the resource link is 111, it can be used to indicate that the first server is allowed to send the resource information to the server with the resource directory discovered by the first server.
  • the resource publishing request may be as follows, for example:
  • the structure of the resource release request may be similar to the structure of the resource release request in the embodiment provided in FIG. 3 above.
  • the only difference is the resource strategy of the resource link
  • the value of the bit mask in is different.
  • the value of the bit mask in the resource policy of the resource link may be 111, which is used to indicate that the first server is allowed to send the resource information to the resource directory found by the first server server.
  • bit mask in the resource policy of the resource link can be assigned to other values to indicate that the first server is allowed. Sending the resource information to the server with the resource directory discovered by the first server.
  • the service device may also instruct the first server to send the resource information to the server with the resource directory discovered by the first server through the attribute field.
  • the service device sends the resource information to the first server, and instructs the first server to send the resource information to the server with the resource directory discovered by the first server, which may include:
  • the service device sends a resource publishing request to the first server, where the resource publishing request includes a resource link link and instruction information.
  • the resource link contains the resource information
  • the indication information is used to instruct the first server to send the resource information to the server with the resource directory discovered by the first server.
  • the service device may carry the indication information through the attribute field in the resource publishing request.
  • This attribute field can be a resource distribution or synchronization attribute.
  • the attribute field may be, for example, "rse”. When the value of the attribute field is "true”, it may be used to indicate that the first server is allowed to send the resource information to other servers having a resource directory. Conversely, when the value of the attribute field is "false", it can be used to indicate that the first server is prohibited from sending the resource information to other servers with resource directories.
  • the resource publishing request may be as follows, for example:
  • the structure of the resource release request may be different from the structure of the resource release request in the embodiment provided in FIG. 3 above.
  • the resource release request further includes: an attribute field "rse",
  • the value of the attribute field is rure, which can be used to indicate that the first server is allowed to send the resource information to other servers having a resource directory.
  • the embodiments of the present application may also instruct the first server to send the resource information to the server with the resource directory discovered by the first server through other indication modes, and details are not described herein again.
  • the method may include:
  • the service device selects the first server from the servers with the resource directory.
  • the service device may randomly select a server from the servers with the resource directory as the first server, or may select the first discovered server from the servers with the resource directory as the first server, and may also use a preset Weight rule, the server with the largest weight among the servers with resource directories is used as the first server.
  • the service device may select the server with the highest resource directory weight as the first server from the servers with the resource directory according to the resource directory weight of each server in the server with the resource directory.
  • the method may further include:
  • the first server receives the resource information sent by the service device, and receives instruction information for sending the resource information to a server with a resource directory discovered by the first server.
  • the first server stores the resource information in the resource directory.
  • the first server may store the received resource information in the resource directory in any form of a table, a database, or the like.
  • the message body of the publish request may carry the resource information
  • the first server may store the resource information in the resource directory when receiving the publish request.
  • the first server may also send a resource publishing response to the service device to indicate that the resource of the service device has been published on the first server.
  • the first server sends the resource information to the server with the resource directory discovered by the first server according to the instruction information.
  • the first server When receiving the resource information, the first server discovers the server with the resource directory from the server cluster according to the instruction of the service device.
  • the other server is the server with the resource directory discovered by the first server from the server cluster.
  • the other server may also be referred to as a second server, or other expressions such as a third server, which will not be repeated here.
  • the implementation process of the first server discovering the server with the resource directory from the server cluster is similar to the implementation process of the foregoing service device to discover the server with the resource directory from the server cluster.
  • the first server may simultaneously send the resource information to other servers in the server with the resource directory, that is, the server with the resource directory discovered by the first server, or it may find the The server of the resource directory sends the resource information.
  • the first server in S405 sends the resource information to the server with the resource directory discovered by the first server according to the instruction information may include:
  • the first server sends a notification message to the server with the resource directory found by the first server, where the notification message includes the resource information and instruction information for prohibiting the continuous sending of the resource information.
  • the first server When the first server sends the resource information to the other server, the first server also sends to the other server instruction information forbidding the continuous sending of the resource information, so as to prohibit the other server from continuing to distribute the resource information and avoid resources Repeated release of information.
  • the structure of the notification message including the prohibition of the other server from continuing the resource information may be similar to the structure of the resource release request of the instruction information that allows the first server to send the resource information to other servers with a resource directory, the same Refer to the above for details, and will not be repeated here.
  • the service device may carry indication information prohibiting the continuous sending of the resource information through multiple indication methods.
  • the notification message may include a resource link, and the resource link includes: the resource information and the indication information that prohibits the continuous transmission of the resource information.
  • the indication information prohibiting the continuous sending of the resource information may be implemented by at least part of the bits of the bit mask in the resource policy of the resource link.
  • the partial bit may be an idle bit of the bit mask in the resource policy of the resource link. If the bit mask in the resource policy of the resource link has 8 bits, of which 2 bits have been used, in this embodiment, the indication information may pass through at least one of the remaining 6 bits achieve.
  • the bit mask in is 011, which can be used to indicate that the first server is prohibited from sending the resource information to other servers with resource directories.
  • the remaining structure of the notification message may be similar to the structure of the resource release request in the above-mentioned embodiment. Refer to the above, which will not be repeated here.
  • the notification message may include a resource link and indication information that prohibits the continuous transmission of the resource information.
  • the resource link includes: the resource information.
  • the service device may carry the indication information prohibiting the continuous sending of the resource information through the attribute field added in the resource publishing request.
  • This attribute field can be a resource distribution or synchronization attribute.
  • the attribute field may be "false", for example, and may be used to indicate that the first server is prohibited from sending the resource information to other servers with resource directories.
  • indication mode may also carry indication information that prohibits the continuous sending of the resource information through other indication modes, and details are not described herein again.
  • the other server receiving the resource information sent by the first server in S406 shown above may include:
  • the other server may also receive a notification message sent by the first server, where the notification message includes the resource information and instruction information for prohibiting the continuous transmission of the resource information.
  • the other server stores the resource information in the resource directory.
  • the other server may store the received resource information in the resource directory in any form such as table, database, etc.
  • the other server may also send a resource publishing response to the service device to indicate that the resource of the service device has been published on the other server.
  • the resource publishing method of the Internet of Things can send resource information to a first server with a resource directory, and instruct the first server to send the resource information to a resource server with a resource directory discovered by the first server
  • the server realizes the multi-server publishing of resource information, ensuring the reliability of resource discovery.
  • the first server sends the resource information to other servers, it can also instruct to prohibit the other server from continuing to send the resource information, which avoids repeated distribution of the resource information and avoids information redundancy.
  • the embodiments of the present application may also provide a resource release method of the Internet of Things.
  • the resource publishing method of the Internet of Things provided in this embodiment may be another implementation example of the resource publishing method of the Internet of Things shown in FIG. 2 above.
  • the resource information may be sent by the service device to the service device.
  • the one server forwards it to other servers with a resource directory discovered by the service device.
  • the following describes the method for publishing resources of the Internet of Things based on the fourth publishing method in detail with reference to specific examples.
  • FIG. 5 is a flowchart 4 of a method for publishing resources of the Internet of Things provided by an embodiment of the present application.
  • the service device in S201 discovers a server with a resource directory from the server cluster may include:
  • the service device finds a server with a resource directory from the server cluster.
  • the server with the resource directory includes the first server.
  • S501 may be similar to that in S401 described above. For details, refer to the above, and details are not described herein again.
  • the service device in S202 publishing the resource information to at least two servers among the servers having the resource directory may include:
  • the service device sends the resource information to the first server, and instructs the first server to send the resource information to other servers in the server with the resource directory discovered by the service device.
  • the service device may instruct the first server to send the resource information to other servers with resource directories discovered by the service device through the server's identification, or may indicate that the first server allows the The resource information is sent to other servers with resource directories discovered by the service device.
  • the service device sends the resource information to the first server, and instructs the first server to send the resource information to other servers in the server with the resource directory discovered by the service device, including:
  • the service device sends a resource publishing request to the first server, where the resource publishing request includes a resource link and at least one server identifier.
  • the resource link contains the resource information; the at least one server identifier is used to enable the first server to send the resource information to the server corresponding to the at least one server identifier.
  • the at least one server is any server other than the first server among the servers with the resource directory discovered by the service device.
  • the resource link further includes instruction information used to instruct the first server to send the resource information to a server corresponding to the at least one server identifier.
  • the service device may carry the indication information through the field in the multiplex resource link.
  • the indication information is realized by multiplexing at least part of the bits of the bit mask in the resource policy of the resource link.
  • the partial bit may be an idle bit of the bit mask in the resource policy of the resource link.
  • the structure of the resource release request may be similar to the method of implementing the indication information by using at least part of the bits of the bit mask in the resource policy of the resource link in the method of FIG. 4 above.
  • the resource release request also includes: at least one server identifier, and the description of the similarities is described above, and is not repeated here.
  • the resource publishing request further includes: instruction information; the instruction information is used to instruct the first server to send the resource information to a server corresponding to the at least one server identifier.
  • the service device may carry the indication information through the attribute field in the resource publishing request.
  • This attribute field can be a resource distribution or synchronization attribute.
  • the structure of the resource publishing request may be similar to the method of implementing the indication information in the attribute field added to the resource publishing request in the method of FIG. 4 above.
  • the structure of the resource publishing request is similar, except that in this implementation, the resource The release request also includes: at least one server identifier.
  • the similarities please refer to the above, which will not be repeated here.
  • the identification of the at least one server may be prioritized according to the server The ranking is arranged so that the first server sends the resource information to the server corresponding to the at least one server identifier according to the priority order.
  • the identification of the at least one server may be in the form of a list.
  • the method further includes:
  • the service device selects the first server from the servers with the resource directory.
  • S502a may be similar to the specific implementation of S402a described above. Refer to the above, which will not be repeated here.
  • the service device selecting the first server from the servers having the resource directory in S502a shown above may include:
  • the service device selects the server with the highest resource directory weight from the servers with the resource directory as the first server according to the resource directory weight of each server in the server with the resource directory.
  • the implementation of the service device selecting the first server according to the resource directory weight of the server may be similar to the implementation in the embodiment corresponding to FIG. 4 described above, and details are not described herein again.
  • the method may further include:
  • the first server receives the resource information sent by the service device, and receives instruction information for sending the resource information to other servers in the server with the resource directory discovered by the service device.
  • the first server stores the resource information in the resource directory.
  • S504 may be similar to the above-mentioned S404, refer to the above, and will not be repeated here.
  • the first server may also send a resource publishing response to the service device to indicate that the resource of the service device has been published on the first server.
  • the first server sends the resource information to other servers in the server with the resource directory discovered by the service device according to the instruction information.
  • the first server may simultaneously send the resource information to other servers in the server with the resource directory discovered by the service device, or may send the resource information to the server with the resource directory discovered by the service device in order of server priority .
  • the other server is a server with a resource directory discovered by the service device from the server cluster. To distinguish the first server, the other server may also be referred to as a second server, or other expressions such as a third server, which will not be repeated here.
  • the other server stores the resource information in the resource directory.
  • the other server may store the received resource information in the resource directory in any form such as table, database, etc.
  • the other server may also send a resource publishing response to the service device to indicate that the resource of the service device has been published on the other server.
  • the resource publishing method of the Internet of Things may send resource information to a first server with a resource directory, and instruct the first server to send the resource information to a resource directory found by the service device
  • Other servers realize the multi-server publishing of resource information, which ensures the reliability of resource discovery.
  • Embodiments of the present application may also provide a resource release method of the Internet of Things.
  • FIG. 6 is a flowchart 5 of the method for releasing resources of the Internet of Things provided by an embodiment of the present application.
  • the resource publishing method of the Internet of Things may be implemented by the server 13 shown in FIG. 1 through software and/or hardware.
  • the first server may be a server with a resource directory discovered by the service device.
  • the resource release method of the Internet of Things may include:
  • the first server receives the resource information sent by the service device.
  • the first server stores the resource information in the resource directory.
  • the first server is one of the servers with the resource directory discovered by the service device from the server cluster, and at least two of the servers with the resource directory receive the resource information.
  • the method for releasing resources of the Internet of Things shown in FIG. 6 can be executed separately, or can be implemented in combination with any of the methods in FIGS.
  • the service equipment involved in this method may also have other functions of the service equipment in any of the methods in FIGS. 2 to 5.
  • the service equipment involved in this method may also have other functions of the service equipment in any of the methods in FIGS. 2 to 5.
  • FIGS. 2 to 5 For specific function implementation and feature descriptions, please refer to the above, which will not be repeated here.
  • the first server involved in this method may also have other functions of the first server in any of the methods in FIGS. 2 to 5.
  • functions of the first server in any of the methods in FIGS. 2 to 5. For specific function implementations and feature descriptions, refer to the foregoing, and details are not described herein again.
  • the resource publishing method of the Internet of Things provided in this embodiment can enable the resource information to be stored on at least two servers including the first server, and realize multi-server publishing of the resource information, so that as long as there is one stored
  • the resource information server can work normally, so that the resources of the service device can be discovered by the client device, which effectively improves the reliability of resource discovery.
  • Embodiments of the present application may also provide a resource release method of the Internet of Things.
  • FIG. 7 is a flowchart 6 of the method for releasing resources of the Internet of Things provided by an embodiment of the present application.
  • the resource publishing method of the Internet of Things may be implemented by the server 13 shown in FIG. 1 through software and/or hardware.
  • the second server involved may be a server with a resource directory discovered by the service device.
  • the first server The other servers may also be servers with resource directories discovered by the first server.
  • the resource release method of the Internet of Things may include:
  • the second server receives the resource information sent by the first server.
  • the second server stores the resource information in the resource directory.
  • the first server and the second server are both servers with resource directories in the server cluster.
  • the resource release method of the Internet of Things shown in FIG. 7 may be executed separately, or may be implemented in combination with any of the methods in FIGS. 2 to 5 above.
  • the first server involved in this method may also have other functions of the first server in any of the methods in FIGS. 2 to 5.
  • the first server involved in this method may also have other functions of the first server in any of the methods in FIGS. 2 to 5.
  • FIGS. 2 to 5 For specific function implementation and feature descriptions, please refer to the above, which will not be repeated here.
  • the second server involved in this method may also have other functions of other servers in any of the methods in FIGS. 2 to 5.
  • the resource publishing method of the Internet of Things can enable the resource information to be stored on at least two servers including the first server and the second server, and realizes the multi-server publishing of the resource information, so that as long as There is a server that stores the resource information can work normally, so that the resources of the service device can be discovered by the client device, which effectively improves the reliability of resource discovery.
  • the above describes the method for releasing resources of the Internet of Things provided by the embodiments of the present application in detail.
  • the following describes the device, device and storage medium for releasing resources of the Internet of Things provided by the embodiments of the present application.
  • FIG. 8 is a first schematic structural diagram of a resource publishing apparatus for an Internet of Things provided by an embodiment of the present application.
  • This embodiment provides a resource publishing apparatus for the Internet of Things, which is applied to the service device 12 shown in FIG. 1 described above.
  • the product form of the resource distribution device of the Internet of Things may be a chip, a circuit, or a device.
  • the resource publishing apparatus 80 of the Internet of Things of this embodiment includes: a processing module 81 and a transceiver module 82.
  • the processing module 81 is used to control the transceiver module 82 to find a server with a resource directory from the server cluster.
  • the transceiver module 82 is configured to publish resource information to at least two servers among servers having a resource directory.
  • the processing module 81 is specifically used to control the transceiver module 82 to discover some or all servers with a resource directory from the server cluster.
  • the transceiver module 82 is specifically used to send the resource information to part or all of the servers having the resource directory.
  • the transceiver module 82 is specifically configured to directly send the resource information to the server with a resource directory.
  • the transceiver module 82 is specifically configured to send the resource information to the server with the resource directory according to the priority order of the server.
  • the server with the resource directory includes the first server.
  • the transceiver module 82 is specifically configured to send the resource information to the first server and instruct the first server to send the resource information to other servers in the server with the resource directory.
  • the transceiver module 82 is specifically configured to send a resource publishing request to the first server, where the resource publishing request includes a resource link and at least one server identifier;
  • the resource link contains the resource information; the at least one server identifier is used to enable the first server to send the resource information to the server corresponding to the at least one server identifier.
  • the resource link further includes: indication information, which is used to indicate that the first server is allowed to send the resource information to the server corresponding to the at least one server identifier.
  • the resource release request also includes: instruction information;
  • the instruction information is used to instruct the first server to send the resource information to a server corresponding to the at least one server identifier.
  • the transceiving module 82 is specifically configured to send the resource information to the first server, and instruct the first server to send the resource information to other servers in the server with the resource directory according to the server priority order.
  • the server with the resource directory includes the first server;
  • the transceiver module 82 is specifically configured to send the resource information to the first server and instruct the first server to send the resource information to a server with a resource directory discovered by the first server.
  • the transceiver module 82 is specifically configured to send a resource publishing request to the first server, where the resource publishing request includes a resource link.
  • the resource link contains the resource information and instruction information, and the instruction information is used to instruct the first server to send the resource information to the server with the resource directory discovered by the first server.
  • the transceiver module 82 is specifically configured to send a resource publishing request to the first server, where the resource publishing request includes a resource link and instruction information;
  • the resource link contains the resource information
  • the indication information is used to instruct the first server to send the resource information to the server with the resource directory discovered by the first server.
  • the indication information is located in at least part of bits of the bit mask in the resource policy of the resource link.
  • the indication information is located in the attribute field in the resource publishing request.
  • the resource information includes at least one of the following information:
  • the resource identifier of the service device the resource type of the service device, and the resource access interface of the service device.
  • the resource publishing apparatus 80 of the Internet of Things has other functions of the service device of any of the methods in FIGS. 2 to 5 described above.
  • the other functions and beneficial effects refer to the above, and are not repeated here.
  • FIG. 9 is a second schematic structural diagram of a resource publishing apparatus for an Internet of Things provided by an embodiment of the present application.
  • This embodiment provides a resource distribution device for the Internet of Things, which is applied to the server 13 shown in FIG. 1 described above.
  • the product form of the resource distribution device of the Internet of Things may be a chip, a circuit, or a device.
  • the resource publishing apparatus 90 of the Internet of Things of this embodiment may be applied to a first server, which includes:
  • the transceiver module 91 is used to receive resource information sent by the service device;
  • the processing module 92 is used to store the resource information in a resource directory
  • the first server is one of the servers with the resource directory discovered by the service device from the server cluster, and at least two of the servers with the resource directory receive the resource information.
  • the transceiver module 91 is specifically configured to receive the resource information sent by the service device, and receive instruction information to send the resource information to other servers in the server with the resource directory;
  • the transceiver module 91 is configured to send the resource information to other servers in the server with the resource directory discovered by the service device according to the instruction information.
  • the transceiver module 91 is specifically configured to receive a resource publishing request sent by the service device, where the resource publishing request includes a resource link link, and the resource link includes the resource information and the indication information.
  • the transceiver module 91 is specifically configured to receive a resource release request sent by the service device, where the resource release request contains a resource link link and the indication information, where the resource link contains the resource information.
  • the processing module 92 is configured to control the transceiver module 91 to discover other servers with resource directories from the server cluster according to the instruction information;
  • the transceiver module 91 is specifically used to send the resource information to the other server with a resource directory.
  • the transceiver module 91 is specifically configured to receive a resource publishing request sent by the service device, where the resource publishing request includes a resource link link and at least one server identifier, and the resource link includes the resource information;
  • the transceiver module 91 is specifically used to send the resource information to the server corresponding to the at least one server identifier.
  • the transceiver module 91 is specifically configured to send the resource information to the server corresponding to the at least one server identifier according to the server priority order.
  • the resource link further includes: indication information; the indication information is used to indicate that the first server is allowed to send the resource information to the server corresponding to the at least one server identifier.
  • the resource publishing request further includes: instruction information; the instruction information is used to instruct the first server to send the resource information to the server corresponding to the at least one server identifier.
  • the at least one server identifier is arranged according to priority.
  • the indication information is located in at least part of bits of the bit mask in the resource policy of the resource link.
  • the indication information is located in the attribute field in the resource publishing request.
  • the transceiver module 91 is specifically configured to send a notification message to other servers in the server with a resource directory according to the instruction information, where the notification message includes the resource information and instruction information that prohibits the continuous sending of the resource information.
  • the resource publishing device 90 of the Internet of Things has other functions of the first server in any of the methods in FIGS. 2 to 5.
  • the other functions and beneficial effects refer to the above, and are not repeated here.
  • FIG. 10 is a third structural diagram of the resource release apparatus for the Internet of Things provided by an embodiment of the present application.
  • This embodiment provides a resource distribution device for the Internet of Things, which is applied to the server 13 shown in FIG. 1 described above.
  • the product form of the resource distribution device of the Internet of Things may be a chip, a circuit, or a device.
  • the resource publishing apparatus 100 of the Internet of Things of this embodiment may be applied to a second server, which may be a server with a resource directory discovered by a service device, other servers than the first server , Or other servers found by the first server with a resource directory.
  • the resource publishing apparatus 100 may include:
  • the receiving module 101 is configured to receive resource information sent by the first server.
  • the processing module 102 is used to store the resource information in a resource directory
  • the first server and the second server are both servers with resource directories in the server cluster.
  • the receiving module 101 is specifically configured to receive a notification message sent by the first server, where the notification message includes the resource information and instruction information for prohibiting the continuous sending of the resource information.
  • the resource publishing apparatus 100 of the Internet of Things has other functions of the other server or the second server of any of the methods in FIGS. 2 to 5.
  • the other functions and beneficial effects refer to the above, and will not be repeated here.
  • the embodiments of the present application may also provide a service device.
  • 11 is a schematic structural diagram of a service device provided by an embodiment of the present application.
  • the service device 110 may include: a transceiver 111, a memory 112, and a processor 113.
  • the transceiver 111 may include a transmitter and a receiver.
  • the transmitter may also be called a transmitter, a transmitter, a transmission port, or a transmission interface, and the like
  • the receiver may be called a receiver, a receiver, a reception port, or a reception interface, or the like.
  • the transceiver 111, the memory 112, and the processor 113 are connected to each other through a bus 114.
  • the memory 112 is used to store program instructions
  • the processor 113 is used to execute the program instructions stored in the memory, so that the service device 110 executes any of the resource release methods of the Internet of Things shown above.
  • the transmitter in the transceiver 111 may be used to perform the sending function of the service device in the above-mentioned resource release of the Internet of Things.
  • the receiver of the transceiver 111 may be used to perform the receiving function of the service device in the above-mentioned resource release of the Internet of Things.
  • An embodiment of the present application may further provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, a resource publishing method executed by any of the service devices shown above is implemented.
  • An embodiment of the present application may further provide a computer program product, which may be executed by a process, for example, by the processor 113 of the service device 110, when the computer program product is executed, any of the service devices shown above may be implemented The method of resource release performed.
  • the service device, the computer-readable storage medium, and the computer program product according to the embodiments of the present application may execute the resource publishing method performed by any of the service devices shown above.
  • An embodiment of the present application may also provide a server.
  • 12 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • the server 120 may include a transceiver 121, a memory 122, and a processor 123.
  • the transceiver 121 may include a transmitter and a receiver.
  • the transmitter may also be called a transmitter, a transmitter, a transmission port, or a transmission interface, and the like
  • the receiver may be called a receiver, a receiver, a reception port, or a reception interface, or the like.
  • the transceiver 121, the memory 122, and the processor 123 are connected to each other through a bus 124.
  • the memory 122 is used to store program instructions
  • the processor 123 is used to execute the program instructions stored in the memory, to execute the resource release method of the Internet of Things executed by any of the servers shown above.
  • the transmitter in the transceiver 121 can be used to perform the sending function of the server in the above-mentioned resource release of the Internet of Things.
  • the receiver in the transceiver 121 can be used to perform the receiving function of the server in the above-mentioned resource release of the Internet of Things.
  • An embodiment of the present application may further provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, a resource publishing method executed by any of the servers described above is implemented.
  • An embodiment of the present application may further provide a computer program product, which may be executed by a process, for example, may be executed by the processor 123 of the server 120, and when the computer program product is executed, any of the servers shown above may be implemented. Resource publishing method.
  • the service device, the computer-readable storage medium, and the computer program product according to the embodiments of the present application can execute the resource publishing method performed by any of the first server, the second server, or other servers shown above, and the specific implementation process and beneficial effects Refer to the above, and will not repeat them here.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the units is only a division of logical functions.
  • there may be other divisions for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the aforementioned computer program may be stored in a computer-readable storage medium.
  • the steps including the foregoing method embodiments are implemented; and the foregoing storage medium includes various media that can store program codes, such as ROM, RAM, magnetic disk, or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)
  • Hardware Redundancy (AREA)

Abstract

本申请实施例提供一种物联网的资源发布方法、装置、设备及存储介质。该方法包括:服务设备从服务器集群中发现具有资源目录的服务器;所述服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上。本申请实施例可提高了资源发现的可靠性。

Description

物联网的资源发布方法、装置、设备及存储介质
本申请要求于2018年12月11日提交中国专利局、申请号为201811508318.5、申请名称为“物联网的资源发布方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及物联网技术,尤其涉及一种物联网的资源发布方法、装置、设备及存储介质。
背景技术
开放连接基金会(Open Connectivity Foundation,OCF)作为物联网(Internet of Things,IOT)应用层的技术标准组织,其为物联网中设备之间实现互联互通制定了服务框架。在该服务框架中,可通过资源表征物联网中设备、设备实现的功能服务等。提供资源的实体为服务设备,访问资源的实体可以为客户设备。在物联网中,客户设备可通过向服务设备发送操作请求,实现对该服务设备的资源进行操作如创建、更新、删除等,从而实现对应的业务。
然而,客户设备在对服务设备的资源进行操作之前,需进行资源的发现,而在一些场景中客户设备可能无法直接发现服务设备的资源,例如,服务设备处于休眠状态等。为此,可由服务设备可将资源发布在服务器上,如此,客户设备可将资源发现请求发送至服务器,继而进行资源发现。
当该服务器上出现故障,客户设备便无法通过该服务器发现该服务设备的资源,无法对该服务设备上的资源进行操作,从而影响业务服务的实现。
发明内容
本申请实施例提供一种物联网的资源发布方法、装置、设备及存储介质,以提高资源发现的可靠性。
第一方面,本申请实施例可提供一种物联网的资源发布方法。该方法包括:
服务设备从服务器集群中发现具有资源目录的服务器;
所述服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上。
第二方面,本申请实施例可提供一种物联网的资源发布方法,包括:
第一服务器接收服务设备发送的资源信息;
所述第一服务器将所述资源信息存储到资源目录中;
其中,所述第一服务器是所述服务设备从服务器集群中发现的具有资源目录的服务器之一,且所述具有资源目录的服务器中的至少两个服务器接收所述资源信息。
第三方面,本申请实施例可提供一种物联网的资源发布方法,包括:
第二服务器接收第一服务器发送的资源信息;
所述第二服务器将所述资源信息存储到资源目录中;
其中,所述第一服务器和所述第二服务器均为服务器集群中具有资源目录的服务器。
第四方面,本申请实施例还提供一种物联网的资源发布装置,包括:
处理模块和收发模块;
其中,所述处理模块,用于控制所述收发模块从服务器集群中发现具有资源目录的服务器;
所述收发模块,用于将资源信息发布到具有资源目录的服务器中的至少两个服务器上。
第五方面,本申请实施例还提供一种物联网的资源发布装置,应用于第一服务器,包括:
收发模块,用于第一服务器接收服务设备发送的资源信息;
处理模块,用于将所述资源信息存储到资源目录中;
其中,所述第一服务器是所述服务设备从服务器集群中发现的具有资源目录的服务器之一,且所述具有资源目录的服务器中的至少两个服务器接收所述资源信息。
第六方面,本申请实施例还提供一种物联网的资源发布装置,应用于第二服务器,包括:
接收模块,用于接收第一服务器发送的资源信息;
处理模块,用于将所述资源信息存储到资源目录中;
其中,所述第一服务器和所述第二服务器均为服务器集群中具有资源目录的服务器。
第七方面,本申请实施例还提供一种服务设备,包括:收发器、处理器、存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,使得所述服务设备执行第一方面所述的物联网的资源发布方法。
第八方面,本申请实施例还提供一种服务器,包括:收发器、处理器、存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,使得所述服务器执行第二方面或第三方面所述的物联网的资源发布方法。
第九方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当所述计算机执行指令被处理器执行时用于实现上述第一方面所述的物联网的资源发布方法。
第十方面,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当所述计算机执行指令被处理器执行时用于实现上述第二方面或第三方面所述的物联网的资源发布方法。
本申请实施例提供的物联网的资源发布方法、装置、设备及存储介质,可通过服务设备从服务器集群中发现具有资源目录的服务器,并由服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上,可使得至少两个服务器上存储有该资源信息,实现了资源信息的多服务器发布,可使得只要存在一个存储有该资源信息的服务器可正常工作,便可使得服务设备的资源可被客户设备发现,有效提高资源发现的可靠性。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例所应用的物联网系统的一种示意图;
图2为本申请一实施例提供的物联网的资源发布方法的流程图一;
图3为本申请一实施例提供的一种物联网的资源发布方法的流程图二;
图4为本申请一实施例提供的一种物联网的资源发布方法的流程图三;
图5为本申请一实施例提供的一种物联网的资源发布方法的流程图四;
图6为本申请一实施例提供的一种物联网的资源发布方法的流程图五;
图7为本申请一实施例提供的一种物联网的资源发布方法的流程图六;
图8为本申请一实施例提供的物联网的资源发布装置的结构示意图一;
图9为本申请一实施例提供的物联网的资源发布装置的结构示意图二;
图10为本申请一实施例提供的物联网的资源发布装置的结构示意图三;
图11为本申请一实施例提供的服务设备的结构示意图;
图12为本申请一实施例提供的服务器的结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例的说明书、权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述之外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
在介绍本申请实施例提供的方案之前,下面先对本申请实施例所应用的网络系统进行说明。图1为本申请实施例所应用的物联网系统的一种示意图。如图1所示,该物联网系统包括客户设备11、服务设备12和多个服务器13。可以理解的是,在实际应用中,客户设备11和服务设备12可以为一个或多个,该图1仅以一个作为示例。客户设备11和服务设备12可分别与服务器13连接。客户设备11可以与服务器13通过有线或无线的方式进行连接,服务设备12也可通过有线或无线的方式与服务器13连接。
客户设备11为访问资源的实体,可以为安装有OCF客户端应用程序的终端设备,该终端设备例如是台式电脑、笔记本、个人数字助理(Personal Digital Assistant,简称PDA)、智能手机、平板电脑等 任一终端设备。客户设备11还可称为OCF客户端设备、用户设备或用户端设备等。
服务设备12可以为提供资源的实体,其可以为传感器或数据采集卡等数据采集设备,还可以为开关、插座或灯具等电器元件设备,也可以为空调、洗衣机、冰箱、音箱或电视机等电子设备。当然,上述仅为服务设备12的一些可能的示例,服务设备12还可以为其它可提供资源,实现对应的功能服务的智能硬件设备,本申请实施例在此不再赘述。服务设备12可称为OCF服务端的实体,资源实体、资源提供者或资源设备等。
服务器13可存储有服务设备12的资源信息。如此,客户设备11在进行资源发现过程中,可将资源发现请求发送至服务器13,并接收服务器13返回的服务设备12的资源信息,从而实现服务设备12的资源发现,而无需向服务设备12发送资源发送请求,避免了服务设备12的休眠等原因造成的资源发现故障。服务器13可以为局域网的服务器,也可以为广域网的服务器。若为局域网中的服务器,则服务器13可以为网关设备或者具有网关功能的终端设备。若为广域网的服务器,则服务器13可以为数据中心的服务器,又称云服务器。无论是局域网的服务器,也可以为广域网的服务器,服务器13可以为安装有该OCF服务端应用程序的设备,还可以为资源目录服务器等。该资源目录服务器可以为用于存储资源信息的专用服务器,其还可称为资源服务器等。
服务器13可以为多个,该多个服务器13中的部分或全部服务器,可存储服务设备12的资源信息。其中,该可存储服务设备12的资源信息的服务器13可以为具有资源目录(Resource Directory,简称RD)的服务器,该具有资源目录的服务器可用以存储服务设备12的资源信息,该具有资源目录的服务器还可称为资源服务器,或者,资源目录服务器。
因而,服务设备12在向服务器13上发布该服务设备12的资源信息之前,需先进行资源目录的发现,以确定该多个服务器13中具有资源目录的服务器。在进行资源目录的发现过程中,该服务设备可向服务器集群中的每个服务器发送资源目录的发现请求,该资源目录的发现请求可包括:服务器的资源标识,以及查询条件。其中,该服务器的资源标识可以为用于进行资源目录发现的资源标识,其可以为服务器的统一资源标识符(Uniform Resource Identifier,简称URI),该服务器的URI例如可以为/oic/res。该查询条件可包括:资源类型(resource type,简称rt)为资源目录类型,其可表示为oic.wk.rd。该资源目录的发现请求可以为资源目录的获取(Get)操作指令,其可表示为Get/oic/res?rt=oic.wk.rd。每个服务器在接收到该资源目录的发现请求后,便可根据该资源目录的标识以及该查询条件,确定其是否符合该查询条件。若符合查询条件,则服务器可向服务设备返回资源目录的发现响应。若服务设备接收到服务器发现的资源目录发现响应,则该服务设备便发现了该服务器。
基于目前的技术,服务设备12可将其发现的服务器中的一个服务器13作为目标服务器,以向其发布资源信息。如此,当该服务器13出现故障,或者,该服务器13上存储的资源信息出现错误等故障,客户设备11便无法发现资源,使得资源发现的可靠性较低。
因此,本申请实施例通过下述多种资源分布方法中,可使得服务设备12无论发现的具有资源目录的服务器为多少,其也可将该服务设备12的资源发布在多个具有资源目录的服务器13,使得多个具有资源目录的服务器13上均存储该资源信息。
如服务设备12仅发现了具有资源目录的一个服务器13,服务设备12也可将该一个服务器发送该服务设备12的资源信息,并指示该一个服务器将该服务设备12的资源信息发送至具有资源目录的其它服务器。该其它服务器可以为由该一个服务器13所发现的具有资源目录的服务器。
若该服务设备12发现了具有资源目录的多个服务器13,则该服务设备可直接向该具有资源目录的部分或所有服务器13发送该服务设备12的资源信息,也可向其中的一个服务器13发送该服务设备12的资源信息,并指示该一个服务器将该服务设备12的资源信息发送至具有资源目录的其它服务器。该其它服务器可以为由该服务设备12所发现的具有资源目录的服务器,也可以为由该一个服务器13所发现的具有资源目录的服务器。
该客户设备11在对服务设备12上的资源进行操作之前,需先进行资源发现,以发现该服务设备12上的资源。在进行资源发现的过程中,该客户设备可向服务器集群中的每个服务器发送资源发现请求,该资源发现请求可包括:服务器的资源标识。其中,该服务器的资源标识可以为服务器的URI,该服务器的URI例如可以为/oic/res。该资源发现请求可以为资源目录的获取(Get)操作指令,其可表示为Get/oic/res。当然,该资源发现请求中还可包括:资源的查询条件。每个服务器在接收到该资源发现请求后,便可根据该服务器的资源标识以及该查询条件,确定其是否具有符合该查询条件的资源信息。若具有符合查询条件的资源信息,则服务器13便向客户设备11返回资源发现响应,其中,可包括:服务设备12上的资源信息。若客户设备11接收到服务器发送的包括服务设备12的资源信息的资源发现响应,则该客户设备11便发现了服务设备12上的资源。
那么当具有资源目录的多个服务器13上均存储有服务设备12的资源信息,只要具有存储该服务设 备12的资源信息的一个服务器13可正常工作,客户设备11便可发现服务设备12上的资源,有效提高资源发现的可靠性。
如下结合多个示例,对本申请实施例所提供的资源分布方法进行解释说明。需要指出的是,在本申请实施例中所涉及的资源为物联网中的资源,其可称为OCF资源,可用于表征服务设备,服务设备的功能服务等。该服务设备可以为使用频率小于或等于第一预设阈值的服务设备、休眠频率大于或等于第二预设阈值的服务设备、失眠时长大于或等于预设时长的服务设备,或者与客户设备属于不同网络的服务设备。当然,其它类型的服务设备也可执行下述资源发布方法,本申请实施例不对此限制。
图2为本申请一实施例提供的物联网的资源发布方法的流程图一。图2所示的物联网的资源发布方法可由上述图1所示的服务设备12通过软件和/或硬件的方式实现。如图2所示,该物联网的资源发布方法可包括:
S201、服务设备从服务器集群中发现具有资源目录的服务器。
该服务设备可进行资源目录的发现,以从该服务器集群中发现具有资源目录的服务器。在实施例中,服务设备可发现具有资源目录的一个服务器,也可发现具有资源目录的部分或全部服务器。
S202、服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上。
其中,该资源信息可以包括如下中的至少一种信息:该服务设备的资源标识、该服务设备的资源类型(rt)、该服务设备的资源访问接口(if)。
该资源信息可以为资源表征(resource representation),其具体的形式可以为资源链接(Link)。
在该资源信息中,资源标识可以为资源的URI,其可用于表示服务设备侧该资源的地址。该客户设备便可通过该资源的标识,也就是URI访问该服务设备的资源。在资源表征中,该资源标识可通过“href”表示,该href的具体值便为该资源的URI。在该资源信息中,资源类型可用于表示服务设备所提供的资源的类型,在该资源表征中,该资源类型可通过“rt”表示。在该资源信息中,该资源访问接口可以为该资源的查看或调节等操作的访问接口。
该资源信息可包括:该服务设备所具有的部分或所有资源的信息。该部分或所有资源中每种资源的信息可包括如下中的至少一种信息:每种资源的标识、该每种资源的类型、该每种资源的访问接口。
举例来说,若该服务设备为灯具,则该服务设备至少具有两种资源类型的资源,例如开关资源、亮度资源等。该资源信息可包括如下至少一种资源的信息:开关资源、亮度资源。其中每种资源的信息可包括如下中的至少一种信息:每种资源的标识、该每种资源的类型、该每种资源的访问接口。
若该服务设备为空调,则该服务设备至少具有四种资源类型的资源,例如开关资源、温度资源、冷热模式资源、吹风模式资源等。该资源信息可包括如下至少一种资源的信息:开关资源、温度资源、冷热模式资源、亮度资源。其中每种资源的信息可包括如下中的至少一种信息:每种资源的标识、该每种资源的类型、该每种资源的访问接口。
如上仅为灯具,还空调作为服务设备为例,对该资源信息进行示例说明,该服务设备还可为其它的设备,本申请实施例不对此限制。
可选的,如上所示的S202中服务设备向该具有资源目录的部分或全部服务器发送资源信息可以包括:
服务设备直接向该具有资源目录的服务器发送该资源信息;或者,
服务设备向该具有资源目录的服务器中的第一服务器发送该资源信息,并指示该第一服务器将所述资源信息发送给该具有资源目录的服务器中的其它服务器。
也就是说,服务设备对于该资源信息的发布,可通过多种发布方式实现。具体实现中,该服务设备可直接向具有资源目录的至少两个服务器发送该资源信息,也可向具有资源目录的第一服务器发送该资源信息,由该第一服务器将该资源信息发送至具有资源目录的其它服务器。无论采用何种方式,只要资源信息可发布在该具有资源目录的至少两个服务器上即可。若服务设备直接发送该资源信息,则该服务设备可同时该具有资源目录的服务器发送该资源信息,也可根据服务器优先级顺序,向该具有资源目录的服务器发送该资源信息。若服务设备通过第一服务器发送该资源信息,则该服务设备向该第一服务器发送该资源信息,由该第一服务器同时向具有资源目录的其它服务器发送,也可由该第一服务器可按照服务器优先级顺序,向具有资源目录的其它服务器。
在第一种发布方式中,若该服务设备发现具有资源目录的部分或全部服务器,该服务设备还可将该具有资源目录的部分或全部服务器作为目标服务器,直接向该具有资源目录的部分或全部服务器发送该资源信息。
在第二种发布方式中,若该服务设备发现具有资源目录的一个或多个服务器,则该服务设备可将该一个或多个服务器作为目标服务器,向该一个或多个服务器发送该资源信息,并指示该一个或多个服务器可将该资源信息发送给该一个或多个服务器所发现的具有资源目录的其它服务器。
在第三种发布方式中,若该服务设备发现具有资源目录的部分或全部服务器,该服务设备可从该具有资源目录的部分或全部服务器中选择一个或多个服务器作为目标服务器,并向该一个或多个服务器发送该资源信息,并指示该一个或多个服务器可将该资源信息发送给该第一服务器所发现的具有资源目录的其它服务器。
在第四种发布方式中,若该服务设备发现具有资源目录的部分或全部服务器,该服务设备还可从该具有资源目录的部分或全部服务器中选择一个或多个服务器作为目标服务器,并向该一个或多个服务器发送该资源信息,并指示该一个或多个服务器可将该资源信息发送给该服务设备所发现的具有资源目录的其它服务器。
当然,该服务设备还可采用其它的发布方式,进行资源信息的发布,以将资源信息分布到具有资源目录的至少两个服务器中。例如,服务设备可从其发现的具有资源目录的部分或全部的服务器中,选择两个服务器作为目标服务器,向该两个服务器发送该资源信息,并由该两个服务设备向具有资源目录的其它服务器发送该资源信息。当然,上述仅为其它实现方式的可能的示例,本申请实施例不对此限制。
本申请实施例提供的物联网的资源发布方法,可通过服务设备从服务器集群中发现具有资源目录的服务器,并由服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上,可使得至少两个服务器上存储有该资源信息,实现了资源信息的多服务器发布,可使得只要存在一个存储有该资源信息的服务器可正常工作,便可使得服务设备的资源可被客户设备发现,有效提高资源发现的可靠性。
针对上述提及的第一种发布方式,本申请实施例还可提供一种物联网的资源发布方法。该实施例提供的物联网的资源发布方法可以为上述图2所示的物联网的资源发布方法的一种实现示例,在该示例中,服务设备可将该资源信息直接发送至该服务设备所发现的具有资源目录的至少两个服务器上。下述结合具体的示例,对基于该第一种发布方式的物联网的资源发布方法进行详细说明。
图3为本申请一实施例提供的一种物联网的资源发布方法的流程图二。如图3所示,可选的,S201中服务设备从服务器集群中发现具有资源目录的服务器可包括:
S301、服务设备从服务器集群中发现具有资源目录的部分或全部服务器。
该服务设备可向服务器集群中的每个服务器发送资源目录的发现请求,若接收到服务器返回的发现响应,则可确定发现了具有资源目录的服务器。
在该实施例中,该服务设备可发现该服务器集群中具有资源目录的部分或全部服务器。
相应的,S202中服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上可包括:
S302、服务设备向该具有资源目录的部分或全部服务器发送该资源信息。
服务设备可从其所发现的具有资源目录的全部服务器中选择部分服务器作为目标服务器,并向该目标服务器中的每个服务器发送该资源信息;也可将其所发现的具有资源目录的全部服务器均作为目标服务器,并向该目标服务器中的每个服务器发送该资源信息。
无论针对具有资源目录的部分服务器,还是全部服务器,该服务设备可向每个服务器发送资源发布(POST)请求。该资源发布请求可包括:服务器的URI,如oic/rd,该资源发布请求例如可以表示为:POST/oic/rd。在该资源发布请求的消息中,包含该资源信息,例如资源link。
在该实施例中,该资源发布请求可以为如下所示:
Figure PCTCN2019124438-appb-000001
如上可知,在该实施例中,该资源分布请求中可包括:该服务设备的标识,以及资源link。服务设备的标识可通过“di”表示,其可以为"ocf://server_dervice_id"。资源link可通过“link”表示,其可包 括:上下文URI、目标URI、资源类型、访问接口、资源策略的位掩码,以及端点。
其中,上下文URI可通过锚点“anchor”表示,可用于表示包含link的属主资源的URI,即服务设备的URI,其可以为“ocf://server_dervice_id”。
目标URI可通过“href”表示,可用于表示服务设备上目标资源的URI,其可以为“/mysleepysensor”。
资源类型可通过“rt”表示,可用于表示服务设备上目标资源的类型,其可以为“oic.r.sensor”。
访问接口可通过“if”表示,可用于表示服务设备上目标资源所支持的访问接口的类型,其可以包括:“oic.if.s”和“oic.if.baseline”。
资源策略的位掩码可通过“bm”表示,位掩码的值为3,则可用于表示该服务设备上的目标资源可被发现以及可被查看。
端点可通过“eps”表示,其可表示可访问该服务设备的目标资源的端点(endpoints)的URI,其可以为“coaps://[fe80::1]:1111”。
该资源发布请求中还可包括:资源引用,其可通过“ref”表示,其可用于指示目标URI与上下文URI的关系。
当服务设备所发送的具有资源目录的部分或全部服务器为多个,则该服务设备可同时向该多个服务器发送该资源信息,也可按照预设的顺序,向其发送该资源信息。
可选的,S302中服务设备向该具有资源目录的部分或全部服务器发送该资源信息可包括:
服务设备按照服务器优先级顺序,向该具有资源目录的服务器中的部分或全部服务器发送该资源信息。
对于服务设备所发现的具有资源目录的部分或全部服务器,服务设备还可确定该具有资源目录的部分或全部服务器的优先级顺序。该优先级顺序例如可以为服务设备发现服务器的时间顺序即接收到服务器返回的发现响应的时间顺序,还可以为根据服务器的资源目录权重确定的优先级顺序。该资源目录权重为根据服务器的存储容量、操作系统以及电源信息等其中的至少一个因素确定的。
当然,还可以为其它的优先级顺序,上述仅为示例,本申请实施例不对此限制。
可选的,该方法还可包括:
S303、该具有资源目录的部分或全部服务器中的每个服务器接收服务设备发送的该资源信息。
S304、每个服务器将该资源信息存储到资源目录中。
该每个服务器可将接收到该资源信息以表格、数据库等任一形式存储在该资源目录中。
服务设备在进行资源发布时,其发布请求的消息体中可携带有该资源信息,服务器在接收到该发布请求的情况下,便可将该资源信息存储在该资源目录下。
可选的,每个服务器还可向服务设备发送资源发布响应,以指示该服务设备的资源已发布在该每个服务器上。
本申请实施例提供的物联网的资源发布方法,可由服务设备直接向其所发送的具有资源目录的部分或全部服务器发送该资源信息,使得资源信息存储于具有资源目录的至少两个服务器上,有效保证了资源发现的可靠性。
针对上述提及的第二种发布方式和第三种发布方式,本申请实施例还可提供一种物联网的资源发布方法。该实施例提供的物联网的资源发布方法可以为上述图2所示的物联网的资源发布方法的另一种实现示例,在该示例中,可由服务设备将该资源信息发送至该服务设备所发现的具有资源目录的一个服务器上,由该一个服务器转发至该一个服务器所发现的具有资源目录的其它服务器上。下述结合具体的示例,对基于该第二种发布方式或第三种发布方式的物联网的资源发布方法进行详细说明。
图4为本申请一实施例提供的一种物联网的资源发布方法的流程图三。如图4所示,可选的,S201中服务设备从服务器集群中发现具有资源目录的服务器可包括:
S401、服务设备从服务器集群中发现具有资源目录的服务器,该具有资源目录的服务器包括第一服务器。
具体实现中,基于第二种发布方式,该服务设备从服务器集群中发现具有资源目录的一个或多个服务器,便将该一个或多个服务器确定为该第一服务器。
基于第三种发布方式,该服务设备可从服务器集群中发现具有资源目录的部分或全部服务器,便可从其中选择一个或多个服务器作为该第一服务器。
相应的,上述S202中服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上,可包括:
S402、服务设备向该第一服务器发送该资源信息,并指示该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
在该实施例中,服务设备可通过多种指示方式,指示该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
在一种指示方式,服务设备可复用已有的字段指示该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
如上所示的S402中服务设备向该第一服务器发送该资源信息,并指示该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器,可包括:
服务设备向第一服务器发送资源发布请求,该资源发布请求中包含资源link。
其中,该资源link中包含该资源信息以及指示信息,该指示信息用于指示允许该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
在该方式中,该服务设备可通过复用资源link中的字段携带该指示信息。例如,该指示信息通过复用该资源link的资源策略中的位掩码的至少部分比特位实现。该部分比特位可以为该资源link的资源策略中的位掩码的预留比特位。
若该资源link的资源策略中的位掩码具有8个比特位,其中,2个比特位已被使用,则该实施例中,该指示信息可通过其余6个比特位中的至少一个比特位实现。
示例地,若该资源link的资源策略中的位掩码的比特位中,由高至低的第7个和第8个比特位被占用,则该实施例中,可通过第6个比特位实现该指示信息,则可使得该资源link的资源策略中的位掩码的值可以为111。因而,若该资源link的资源策略中的位掩码的值为111,则可用于指示允许该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
在该实现方式中,该资源发布请求例如可以为如下所示:
Figure PCTCN2019124438-appb-000002
在该方式中,该资源发布请求的结构可以与上述图3提供的实施例中资源发布请求的结构类似,相似之处参见上述,在此不再赘述,其区别仅在于该资源link的资源策略中的位掩码的值不同。在该实现方式的实施例中,该资源link的资源策略中的位掩码的值可以为111,用于指示允许该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
当然,也可通过其它的比特位实现,上述仅为示例,若通过其它的比特位实现,则该资源link的资源策略中的位掩码便可以为其它的赋值,以指示允许该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
在另一种指示方式中,服务设备也可通过属性字段指示该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
如上所示的S402中服务设备向该第一服务器发送该资源信息,并指示该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器,可包括:
服务设备向第一服务器发送资源发布请求,该资源发布请求中包含资源链接link和指示信息。
其中,该资源link中包含该资源信息,该指示信息用于指示允许该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
在该方式中,该服务设备可通过资源发布请求中的属性字段携带该指示信息。该属性字段可以为资源分发或同步属性。该属性字段例如可以为“rse”,当该属性字段的值为“true”,可用于指示允许该第一服务器将该资源信息发送给具有资源目录的其它服务器。反之,当该属性字段的值为“false”,可用于指示禁止该第一服务器将该资源信息发送给具有资源目录的其它服务器。
在该方式中,该资源发布请求例如可以为如下所示:
Figure PCTCN2019124438-appb-000003
Figure PCTCN2019124438-appb-000004
在该方式中,该资源发布请求的结构可以与上述图3提供的实施例中资源发布请求的结构区别在于,该实现方式的实施例中,该资源发布请求还包括:属性字段“rse”,其相似之处的描述参见上述,在此不再赘述。该属性字段值为rure,可用于指示允许该第一服务器将该资源信息发送给具有资源目录的其它服务器。
上述仅为指示方式的可能示例,本申请实施例还可通过其它的指示方式指示该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器,在此不再赘述。
针对上述第三种发布方式,可选的,若该服务设备发现具有该资源目录的多个服务器,则在上述S402中服务设备向该第一服务器发送该资源信息之前,该方法可包括:
S402a、服务设备从具有资源目录的服务器中选择该第一服务器。
该服务设备可从具有资源目录的服务器中随机选择一个服务器作为该第一服务器,也可将该具有资源目录的服务器中选择第一个发现的服务器作为该第一服务器,还可采用预设的权重规则,该具有资源目录的服务器中权重最大的服务器作为该第一服务器。
示例地,该服务设备可根据该具有资源目录的服务器中的每个服务器的资源目录权重,从该具有资源目录的服务器中选择资源目录权重最高的服务器作为该第一服务器。
可选的,无论针对第二种发布方式还是第三种发布方式,该方法还可包括:
S403、第一服务器接收服务设备发送的该资源信息,并接收将该资源信息发送给该第一服务器发现的具有资源目录的服务器的指示信息。
S404、第一服务器将该资源信息存储到资源目录中。
该第一服务器可将接收到该资源信息以表格、数据库等任一形式存储在该资源目录中。
服务设备在进行资源发布时,其发布请求的消息体中可携带有该资源信息,第一服务器在接收到该发布请求的情况下,便可将该资源信息存储在资源目录下。
可选的,第一服务器还可向服务设备发送资源发布响应,以指示该服务设备的资源已发布在该第一服务器上。
S405、第一服务器根据该指示信息将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
第一服务器在接收到该资源信息的情况下,根据服务设备的指示从服务器集群中发现具有资源目录的服务器。也就是说,该其他服务器即为由该第一服务器从该服务器集群中所发现的具有资源目录的服务器。为区别该第一服务器,该其它服务器还可称为第二服务器,或者第三服务器等其他的表述,在此不再赘述。
该第一服务器从服务器集群发现具有资源目录的服务器的实现过程,与,上述服务设备从服务器集群中发现具有资源目录的服务器的实现过程类似,具体参见上述,在此不再赘述。
该第一服务器可同时向具有资源目录的服务器中的其它服务器,即该第一服务器发现的具有资源目录的服务器发送该资源信息,也可按照服务器优先级顺序,向该第一服务器发现的具有资源目录的服务器发送该资源信息。
可选的,S405中第一服务器根据该指示信息将该资源信息发送给该第一服务器发现的具有资源目录的服务器可包括:
该第一服务器根据该指示信息,向该第一服务器发现的具有资源目录的服务器发送通知消息,该通知消息包括:该资源信息以及禁止将该资源信息接续发送的指示信息。
该第一服务器在向该其它服务器发送该资源信息的情况下,还向该其它服务器发送禁止将该资源信息接续发送的指示信息,用以禁止该其它服务器继续进行该资源信息的分发,避免资源信息的重复发布。
包括禁止该其它服务器继续进行该资源信息的通知消息的结构,可以与,上述允许该第一服务器将该资源信息发送给具有资源目录的其它服务器的指示信息的资源发布请求的结构类似,相同之处参见上述,在此不再赘述。
在该实施例中,服务设备可通过多种指示方式,携带禁止将该资源信息接续发送的指示信息。
在一种指示方式中,该通知消息可包括资源link,该资源link中包括:该资源信息和禁止将该资源信息接续发送的指示信息。
在该方式中,该禁止将该资源信息接续发送的指示信息,可通过该资源link的资源策略中的位掩码的至少部分比特位实现。该部分比特位可以为该资源link的资源策略中的位掩码的空闲比特位。若该资源link的资源策略中的位掩码具有8个比特位,其中,2个比特位已被使用,则该实施例中,该指示信息可通过其余6个比特位中的至少一个比特位实现。
示例地,若该资源link的资源策略中的位掩码的比特位中,由高至低的第7个和第8个比特位被占用,则该实施例中,若该资源link的资源策略中的位掩码的值为011,则可用于指示禁止该第一服务器将该资源信息发送给具有资源目录的其它服务器。
该通知消息其余结构可与上述实施例中资源发布请求的结构类似,参见上述,在此不再赘述。
在另一种指示方式中,该通知消息可包括资源link和禁止将该资源信息接续发送的指示信息,该资源link包括:该资源信息。
在该实施方式中,该服务设备可通过在资源发布请求中增加的属性字段携带该禁止将该资源信息接续发送的指示信息。该属性字段可以为资源分发或同步属性。该属性字段例如可以为“false”,可用于指示禁止该第一服务器将该资源信息发送给具有资源目录的其它服务器。
上述仅为指示方式的可能示例,本申请实施例还可通过其它的指示方式携带禁止将该资源信息接续发送的指示信息,在此不再赘述。
S406、第一服务器之外的其它服务器接收第一服务器发送的该资源信息。
可选的,如上所示的S406中其它服务器接收第一服务器发送的该资源信息可包括:
该其它服务器还可接收第一服务器发送的通知消息,该通知消息中包含该资源信息以及禁止将该资源信息接续发送的指示信息。
S407、其它服务器将该资源信息存储到资源目录中。
该其它服务器可将接收到该资源信息以表格、数据库等任一形式存储在该资源目录中。
可选的,其它服务器还可向服务设备发送资源发布响应,以指示该服务设备的资源已发布在该其它服务器上。
本申请实施例提供的物联网的资源发布方法,可将资源信息发送至具有资源目录的第一服务器,并指示允许该第一服务器将该资源信息发送至该第一服务器发现的具有资源目录的服务器,实现了资源信息的多服务器发布,保证了资源发现的可靠性。同时,第一服务器在向其它服务器发送该资源信息的情况下,还可指示禁止该其它服务器将该资源信息持续进行发送,避免了资源信息的重复分发,避免了信息冗余。
针对上述提及的第四种发布方式,本申请实施例还可提供一种物联网的资源发布方法。该实施例提供的物联网的资源发布方法可以为上述图2所示的物联网的资源发布方法的又一种实现示例,在该示例中,可由服务设备将该资源信息发送至该服务设备所发现的具有资源目录的一个服务器上,由该一个服务器转发至该服务设备所发现的具有资源目录的其它服务器上。下述结合具体的示例,对基于该第四种发布方式的物联网的资源发布方法进行详细说明。
图5为本申请一实施例提供的一种物联网的资源发布方法的流程图四。如图5所示,可选的,S201中服务设备从服务器集群中发现具有资源目录的服务器可包括:
S501、服务设备从服务器集群中发现具有资源目录的服务器,该具有资源目录的服务器包括第一服务器。
该S501的具体实现可与上述S401中类似,具体参见上述,在此不再赘述。
相应的,S202中服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上可包括:
S502、服务设备向第一服务器发送该资源信息,并指示该第一服务器将该资源信息发送给该服务设备发现的具有资源目录的服务器中的其它服务器。
在该实施例中,服务设备可通过服务器的标识指示该第一服务器将该资源信息发送给该服务设备所发现的具有资源目录的其它服务器,也可通过指示信息指示该第一服务器允许将该资源信息发送给该服务设备所发现的具有资源目录的其它服务器。
可选的,如上所示的S502中服务设备向第一服务器发送该资源信息,并指示该第一服务器将该资 源信息发送给该服务设备发现的具有资源目录的服务器中的其它服务器,包括:
服务设备向该第一服务器发送资源发布请求,该资源发布请求中包含资源link和至少一个服务器标识。
其中,该资源link中包含该资源信息;该至少一个服务器标识用于使得该第一服务器将该资源信息发送给该至少一个服务器标识对应的服务器。该至少一个服务器即为该服务设备所发现的该具有资源目录的服务器中除该第一服务器之外的,其它服务器。
在一种实现方式中,该资源link还包括:指示信息,该指示信息用于指示允许该第一服务器将该资源信息发送给该至少一个服务器标识对应的服务器。
该服务设备可通过复用资源link中的字段携带该指示信息。例如,该指示信息通过复用该资源link的资源策略中的位掩码的至少部分比特位实现。该部分比特位可以为该资源link的资源策略中的位掩码的空闲比特位。
该实现方式中,资源发布请求的结构可以与上述图4的方法中通过该资源link的资源策略中的位掩码的至少部分比特位来实现指示信息的方式中,资源发布请求的结构类似,区别仅在于在该实现方式中,资源发布请求中还包括:至少一个服务器标识,其相似之处的描述参见上述,在此不再赘述。
在另一种实现方式中,该资源发布请求中还包括:指示信息;该指示信息用于指示允许该第一服务器将该资源信息发送给该至少一个服务器标识对应的服务器。
该服务设备可通过资源发布请求中的属性字段携带该指示信息。该属性字段可以为资源分发或同步属性。
该实现方式中,资源发布请求的结构可以与上述图4的方法中资源发布请求中增加的属性字段实现指示信息的方式中,资源发布请求的结构类似,区别仅在于在该实现方式中,资源发布请求中还包括:至少一个服务器标识,其相似之处的描述参见上述,在此不再赘述。
可选的,无论上述指示信息通过资源link中的资源策略的位掩码的至少部分比特位实现,还是通过增加的属性字段实现,在资源发布请求中,该至少一个服务器的标识可按照服务器优先级进行排列,以使该第一服务器按照该优先级顺序将该资源信息发送给与该至少一个服务器标识对应的服务器。
在该资源发布请求中,该至少一个服务器的标识可以列表的形式。
可选的,在上述S502中服务设备向第一服务器发送该资源信息之前,还包括:
S502a、服务设备从具有资源目录的服务器中选择该第一服务器。
该S502a的具体实现可与上述S402a的具体实现类似,参见上述,在此不再赘述。
可选的,如上所示的S502a中服务设备从具有资源目录的服务器中选择该第一服务器可包括:
服务设备根据该具有资源目录的服务器中的每个服务器的资源目录权重,从该具有资源目录的服务器中选择资源目录权重最高的服务器作为该第一服务器。
该实施例中,服务设备根据服务器的资源目录权重,选择该第一服务器的实现可与上述图4对应的实施例中的实现类似,在此不再赘述。
可选的,该方法还可包括:
S503、第一服务器接收服务设备发送的该资源信息,并接收将该资源信息发送给该服务设备发现的具有资源目录的服务器中的其它服务器的指示信息。
S504、第一服务器将该资源信息存储到资源目录中。
该S504具体实现可与上述S404类似,参见上述,在此不再赘述。
可选的,第一服务器还可向服务设备发送资源发布响应,以指示该服务设备的资源已发布在该第一服务器上。
S505、第一服务器根据该指示信息将该资源信息发送给该服务设备发现的具有资源目录的服务器中的其它服务器。
该第一服务器可同时向服务设备所发现的具有资源目录的服务器中的其它服务器发送该资源信息,也可按照服务器优先级顺序,向该服务设备所发现的具有资源目录的服务器发送该资源信息。
该其他服务器即为由该服务设备从该服务器集群中所发现的具有资源目录的服务器。为区别该第一服务器,该其它服务器也可称为第二服务器,或者第三服务器等其他的表述,在此不再赘述。
S506、其它服务器接收第一服务器发送的该资源信息。
S507、其它服务器将该资源信息存储到资源目录中。
该其它服务器可将接收到该资源信息以表格、数据库等任一形式存储在该资源目录中。
可选的,其它服务器还可向服务设备发送资源发布响应,以指示该服务设备的资源已发布在该其它服务器上。
本申请实施例提供的物联网的资源发布方法,可将资源信息发送至具有资源目录的第一服务器,并 指示允许该第一服务器将该资源信息发送至该服务设备所发现的具有资源目录的其它服务器,实现了资源信息的多服务器发布,保证了资源发现的可靠性。
本申请实施例还可提供一种物联网的资源发布方法。图6为本申请一实施例提供的物联网的资源发布方法的流程图五。该物联网的资源发布方法可由上述图1所示的服务器13通过软件和/或硬件的方式实现,其第一服务器可以为服务设备所发现的具有资源目录的服务器。如图6所示,该物联网的资源发布方法可包括:
S601、第一服务器接收服务设备发送的该资源信息。
S602、第一服务器将该资源信息存储到资源目录中。
其中,该第一服务器是该服务设备从服务器集群中发现的具有资源目录的服务器之一,且该具有资源目录的服务器中的至少两个服务器接收该资源信息。
该图6所示的物联网的资源发布方法可单独执行,也可与上述图2-图5任一方法组合实现。
若组合实现,该方法中所涉及的服务设备还可具有图2-图5中任一方法中服务设备的其它功能,具体的功能实现以及特征描述可参见上述,在此不再赘述。
该方法中所涉及的第一服务器还可具有图2-图5中任一方法中第一服务器的其它功能,具体的功能实现以及特征描述可参见上述,在此不再赘述。
本实施例提供的物联网的资源发布方法,可使得包括该第一服务器在内的至少两个服务器上存储有该资源信息,实现了资源信息的多服务器发布,可使得只要存在一个存储有该资源信息的服务器可正常工作,便可使得服务设备的资源可被客户设备发现,有效提高资源发现的可靠性。
本申请实施例还可提供一种物联网的资源发布方法。图7为本申请一实施例提供的物联网的资源发布方法的流程图六。该物联网的资源发布方法可由上述图1所示的服务器13通过软件和/或硬件的方式实现,其所涉及的第二服务器可以为服务设备所发现的具有资源目录的服务器中,第一服务器之外的其它服务器,也可以为第一服务器所发现的具有资源目录的服务器。如图7所示,该物联网的资源发布方法可包括:
S701、第二服务器接收第一服务器发送的资源信息。
S702、第二服务器将该资源信息存储到资源目录中。
其中,该第一服务器和该第二服务器均为服务器集群中具有资源目录的服务器。
该图7所示的物联网的资源发布方法可单独执行,也可与上述图2-图5任一方法组合实现。
若组合实现,该方法中所涉及的第一服务器还可具有图2-图5中任一方法中第一服务器的其它功能,具体的功能实现以及特征描述可参见上述,在此不再赘述。
该方法中所涉及的第二服务器还可具有图2-图5中任一方法中其它服务器的其它功能,具体的功能实现以及特征描述可参见上述,在此不再赘述。
本实施例提供的物联网的资源发布方法,可使得包括该第一服务器和该第二服务器在内的至少两个服务器上存储有该资源信息,实现了资源信息的多服务器发布,可使得只要存在一个存储有该资源信息的服务器可正常工作,便可使得服务设备的资源可被客户设备发现,有效提高资源发现的可靠性。
上文中详细描述了本申请实施例提供的物联网的资源发布方法,下面将描述本申请实施例提供的物联网的资源发布装置、设备及存储介质。
图8为本申请一实施例提供的物联网的资源发布装置的结构示意图一。本实施例提供一种物联网的资源发布装置,应用于上述图1所示的服务设备12。物联网的资源发布装置的产品形态可以为芯片、电路或者设备。如图8所示,本实施例的物联网的资源发布装置80包括:处理模块81和收发模块82。
处理模块81,用于控制收发模块82从服务器集群中发现具有资源目录的服务器。
收发模块82,用于将资源信息发布到具有资源目录的服务器中的至少两个服务器上。
可选的,处理模块81,具体用于控制收发模块82从服务器集群中发现具有资源目录的部分或全部服务器。
相应的,收发模块82具体用于向该具有资源目录的部分或全部服务器发送该资源信息。
可选的,收发模块82,具体用于直接向该具有资源目录的服务器发送所述资源信息。
可选的,收发模块82,具体用于按照服务器的优先级顺序,向该具有资源目录的服务器发送该资源信息。
可选的,该具有资源目录的服务器包括第一服务器。
收发模块82,具体用于向该第一服务器发送该资源信息,并指示该第一服务器将该资源信息发送给该具有资源目录的服务器中的其它服务器。
可选的,收发模块82,具体用于向该第一服务器发送资源发布请求,该资源发布请求中包含资源link和至少一个服务器标识;
其中,该资源link中包含该资源信息;该至少一个服务器标识用于使得该第一服务器将该资源信息发送给该至少一个服务器标识对应的服务器。
可选的,该资源link还包含:指示信息,该指示信息用于指示允许该第一服务器将该资源信息发送给该至少一个服务器标识对应的服务器。
可选的,该资源发布请求还包含:指示信息;
其中,该指示信息用于指示允许该第一服务器将该资源信息发送给与该至少一个服务器标识对应的服务器。
可选的,收发模块82,具体用于向该第一服务器发送该资源信息,并指示该第一服务器按照服务器优先级顺序将该资源信息发送给该具有资源目录的服务器中的其它服务器。
可选的,该具有资源目录的服务器包括第一服务器;
收发模块82,具体用于向该第一服务器发送该资源信息,并指示该第一服务器将该资源信息发送给第一服务器发现的具有资源目录的服务器。
可选的,收发模块82,具体用于向该第一服务器发送资源发布请求,该资源发布请求中包含资源link。
其中,该资源link中包含该资源信息以及指示信息,该指示信息用于指示允许该第一服务器将该资源信息发送给该第一服务器发现的具有资源目录的服务器。
可选的,收发模块82,具体用于向该第一服务器发送资源发布请求,该资源发布请求中包含资源链接link和指示信息;
其中,该资源link中包含该资源信息,该指示信息用于指示允许该第一服务器将该资源信息发送给第一服务器发现的具有资源目录的服务器。
可选的,该指示信息位于该资源link的资源策略中的位掩码的至少部分比特位。
可选的,该指示信息位于该资源发布请求中的属性字段。
可选的,该资源信息包括如下至少一种信息:
该服务设备的资源标识、该服务设备的资源类型、该服务设备的资源访问接口。
应理解,该物联网的资源发布装置80具有上述图2-图5中任一方法的服务设备的其它功能,所述其它功能及有益效果参照上述,在此不再赘述。
图9为本申请一实施例提供的物联网的资源发布装置的结构示意图二。本实施例提供一种物联网的资源发布装置,应用于上述图1所示的服务器13。物联网的资源发布装置的产品形态可以为芯片、电路或者设备。如图9所示,本实施例的物联网的资源发布装置90可应用于第一服务器,其包括:
收发模块91,用于接收服务设备发送的资源信息;
处理模块92,用于将该资源信息存储到资源目录中;
其中,该第一服务器是该服务设备从服务器集群中发现的具有资源目录的服务器之一,且该具有资源目录的服务器中的至少两个服务器接收该资源信息。
可选的,收发模块91,具体用于接收服务设备发送的该资源信息,并接收将该资源信息发送给具有资源目录的服务器中的其它服务器的指示信息;
相应的,收发模块91,用于根据该指示信息将该资源信息发送给服务设备所发现的具有资源目录的服务器中的其它服务器。
可选的,收发模块91,具体用于接收该服务设备发送的资源发布请求,该资源发布请求中包含资源链接link,该资源link中包含该资源信息以及该指示信息。
可选的,收发模块91,具体用于接收该服务设备发送的资源发布请求,该资源发布请求中包含资源链接link和该指示信息,其中,该资源link中包含该资源信息。
可选的,处理模块92,用于根据该指示信息控制该收发模块91从该服务器集群中发现其它具有资源目录的服务器;
收发模块91,具体用于将该资源信息发送给该其它具有资源目录的服务器。
可选的,收发模块91,具体用于接收该服务设备发送的资源发布请求,该资源发布请求中包含资源链接link和至少一个服务器标识,该资源link中包含该资源信息;
相应的,收发模块91,具体用于将该资源信息发送给该至少一个服务器标识对应的服务器。
可选的,收发模块91,具体用于根据服务器优先级顺序,将该资源信息发送给该至少一个服务器标识对应的服务器。
可选的,该资源link还包括:指示信息;该指示信息用于指示允许该第一服务器将该资源信息发送给该至少一个服务器标识对应的服务器。
可选的,该资源发布请求还包括:指示信息;该指示信息用于指示允许该第一服务器将该资源信息 发送给该至少一个服务器标识对应的服务器。
可选的,该至少一个服务器标识按照优先级进行排列。
可选的,该指示信息位于该资源link的资源策略中的位掩码的至少部分比特位。
可选的,该指示信息位于该资源发布请求中的属性字段。
可选的,收发模块91,具体用于根据该指示信息,向具有资源目录的服务器中的其它服务器发送通知消息,该通知消息中包含该资源信息以及禁止将该资源信息接续发送的指示信息。
应理解,该物联网的资源发布装置90具有上述图2-图5中任一方法的第一服务器的其它功能,所述其它功能及有益效果参照上述,在此不再赘述。
图10为本申请一实施例提供的物联网的资源发布装置的结构示意图三。本实施例提供一种物联网的资源发布装置,应用于上述图1所示的服务器13。物联网的资源发布装置的产品形态可以为芯片、电路或者设备。如图10所示,本实施例的物联网的资源发布装置100可应用于第二服务器,该第二服务器可以为服务设备所发现的具有资源目录的服务器中,第一服务器之外的其它服务器,也可以为第一服务器发现的具有资源目录的服务器其它服务器。资源发布装置100可包括:
接收模块101,用于接收第一服务器发送的资源信息。
处理模块102,用于将该资源信息存储到资源目录中;
其中,该第一服务器和该第二服务器均为服务器集群中具有资源目录的服务器。
可选的,接收模块101,具体用于接收该第一服务器发送的通知消息,该通知消息中包含该资源信息以及禁止将该资源信息接续发送的指示信息。
应理解,该物联网的资源发布装置100具有上述图2-图5中任一方法的其它服务器或第二服务器的其它功能,所述其它功能及有益效果参照上述,在此不再赘述。
本申请实施例还可提供一种服务设备。图11为本申请一实施例提供的服务设备的结构示意图。如图11所示,该服务设备110可包括:收发器111、存储器112、处理器113。收发器111可包括:发射器和接收器。该发射器还可称为发送器、发射机、发送端口或发送接口等类似描述,接收器还可称为接收器、接收机、接收端口或接收接口等类似描述。示例性地,收发器111、存储器112、处理器113,各部分之间通过总线114相互连接。
存储器112用于存储程序指令;
处理器113用于执行该存储器所存储的程序指令,用以使得服务设备110执行上述任一所示的物联网的资源发布方法。
其中,收发器111中的发射器,可用于执行上述物联网的资源发布中服务设备的发送功能。
收发器111的接收器,可用于执行上述物联网的资源发布中服务设备的接收功能。
本申请实施例还可提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述任一所示的服务设备执行的资源发布方法。
本申请实施例还可提供一种计算机程序产品,该计算机程序产品可以由处理执行,例如可由服务设备110的处理器113,在计算机程序产品被执行时,可实现上述任一所示的服务设备执行的资源发布方法。
本申请实施例的服务设备、计算机可读存储介质及计算机程序产品,可执行上述任一所示的服务设备执行的资源发布方法,其具体的实现过程及有益效果参见上述,在此不再赘述。
本申请实施例还可提供一种服务器。图12为本申请一实施例提供的服务器的结构示意图。如图12所示,该服务器120可包括:收发器121、存储器122和处理器123。收发器121可包括:发射器和接收器。该发射器还可称为发送器、发射机、发送端口或发送接口等类似描述,接收器还可称为接收器、接收机、接收端口或接收接口等类似描述。示例性地,收发器121、存储器122、处理器123,各部分之间通过总线124相互连接。
存储器122用于存储程序指令;
处理器123用于执行该存储器所存储的程序指令,用以执行上述任一所示的服务器执行的物联网的资源发布方法。
其中,收发器121中的发射器,可用于执行上述物联网的资源发布中服务器的发送功能。
其中,收发器121中的接收器,可用于执行上述物联网的资源发布中服务器的接收功能。
本申请实施例还可提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述任一所示的服务器执行的资源发布方法。
本申请实施例还可提供一种计算机程序产品,该计算机程序产品可以由处理执行,例如可由服务器120的处理器123,在计算机程序产品被执行时,可实现上述任一所示的服务器执行的资源发布方法。
本申请实施例的服务设备、计算机可读存储介质及计算机程序产品,可执行上述任一所示的第一服务器、第二服务器或者其它服务器执行的资源发布方法,其具体的实现过程及有益效果参见上述,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的计算机程序可以存储于一计算机可读取存储介质中。该计算机程序在被处理器执行时,实现包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (66)

  1. 一种物联网的资源发布方法,其特征在于,包括:
    服务设备从服务器集群中发现具有资源目录的服务器;
    所述服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上。
  2. 根据权利要求1所述的方法,其特征在于,所述服务设备从服务器集群中发现具有资源目录的服务器,包括:
    所述服务设备从服务器集群中发现具有资源目录的部分或全部服务器;
    相应的,所述服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上,包括:
    所述服务设备向所述具有资源目录的部分或全部服务器发送所述资源信息。
  3. 根据权利要求1所述的方法,其特征在于,所述服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上,包括:
    所述服务设备直接向所述具有资源目录的服务器发送所述资源信息。
  4. 根据权利要求3所述的方法,其特征在于,所述服务设备直接向所述具有资源目录的部分或全部服务器发送所述资源信息,包括:
    所述服务设备按照服务器的优先级顺序,向所述具有资源目录的服务器发送所述资源信息。
  5. 根据权利要求1所述的方法,其特征在于,所述具有资源目录的服务器包括第一服务器;所述服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上,包括:
    所述服务设备向所述第一服务器发送所述资源信息,并指示所述第一服务器将所述资源信息发送给所述具有资源目录的服务器中的其它服务器。
  6. 根据权利要求5所述的方法,其特征在于,所述服务设备向所述第一服务器发送所述资源信息,并指示所述第一服务器将所述资源信息发送给所述具有资源目录的服务器中的其它服务器,包括:
    所述服务设备向所述第一服务器发送资源发布请求,所述资源发布请求中包含资源link和至少一个服务器标识;
    其中,所述资源link中包含所述资源信息;所述至少一个服务器标识用于使得所述第一服务器将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  7. 根据权利要求6所述的方法,其特征在于,所述资源link还包含:指示信息,所述指示信息用于指示允许所述第一服务器将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  8. 根据权利要求6所述的方法,其特征在于,所述资源发布请求还包含:指示信息;
    其中,所述指示信息用于指示允许所述第一服务器将所述资源信息发送给与所述至少一个服务器标识对应的服务器。
  9. 根据权利要求5所述的方法,其特征在于,所述服务设备向所述第一服务器发送所述资源信息,并指示所述第一服务器将所述资源信息发送给所述具有资源目录的服务器中的其它服务器,包括:
    所述服务设备向所述第一服务器发送所述资源信息,并指示所述第一服务器按照服务器优先级顺序将所述资源信息发送给所述具有资源目录的服务器中的其它服务器。
  10. 根据权利要求1所述的方法,其特征在于,所述具有资源目录的服务器包括第一服务器;所述服务设备将资源信息发布到具有资源目录的服务器中的至少两个服务器上,包括:
    所述服务设备向所述第一服务器发送所述资源信息,并指示所述第一服务器将所述资源信息发送给所述第一服务器发现的具有资源目录的服务器。
  11. 根据权利要求10所述的方法,其特征在于,所述服务设备向所述第一服务器发送所述资源信息,并指示所述第一服务器将所述资源信息发送给所述第一服务器发现的具有资源目录的服务器,包括:
    所述服务设备向所述第一服务器发送资源发布请求,所述资源发布请求中包含资源链接link;
    其中,所述资源link中包含所述资源信息以及指示信息,所述指示信息用于指示允许所述第一服务器将所述资源信息发送给所述第一服务器发现的具有资源目录的服务器。
  12. 根据权利要求10所述的方法,其特征在于,所述服务设备向所述第一服务器发送所述资源信息,并指示所述第一服务器将所述资源信息发送给所述第一服务器发现的具有资源目录的服务器,包括:
    所述服务设备向所述第一服务器发送资源发布请求,所述资源发布请求中包含资源链接link和指示信息;
    其中,所述资源link中包含所述资源信息,所述指示信息用于指示允许所述第一服务器将所述资源信息发送给所述第一服务器发现的具有资源目录的服务器。
  13. 根据权利要求7或11所述的方法,其特征在于,所述指示信息位于所述资源link的资源策略 中的位掩码的至少部分比特位。
  14. 根据权利要求8或12所述的方法,其特征在于,所述指示信息位于所述资源发布请求中的属性字段。
  15. 根据权利要求1~14中任一项所述的方法,其特征在于,所述资源信息包括如下至少一种信息:
    所述服务设备的资源标识、所述服务设备的资源类型、所述服务设备的资源访问接口。
  16. 一种物联网的资源发布方法,其特征在于,包括:
    第一服务器接收服务设备发送的资源信息;
    所述第一服务器将所述资源信息存储到资源目录中;
    其中,所述第一服务器是所述服务设备从服务器集群中发现的具有资源目录的服务器之一,且所述具有资源目录的服务器中的至少两个服务器接收所述资源信息。
  17. 根据权利要求16所述的方法,其特征在于,所述第一服务器接收服务设备发送的所述资源信息,包括:
    所述第一服务器接收所述服务设备发送的所述资源信息,并接收指示信息;所述指示信息为将所述资源信息发送给具有资源目录的服务器中的其它服务器的指示信息。
  18. 根据权利要求17所述的方法,其特征在于,所述第一服务器接收服务设备发送的资源信息之后,还包括:
    所述第一服务器根据所述指示信息将所述资源信息发送给所述服务设备所发现的具有资源目录的服务器中的其它服务器。
  19. 根据权利要求18所述的方法,其特征在于,所述第一服务器接收服务设备发送的所述资源信息,并接收指示信息,包括:
    所述第一服务器接收所述服务设备发送的资源发布请求,所述资源发布请求中包含资源链接link,所述资源link中包含所述资源信息以及所述指示信息。
  20. 根据权利要求18所述的方法,其特征在于,所述第一服务器接收服务设备发送的所述资源信息,并接收指示信息,包括:
    所述第一服务器接收所述服务设备发送的资源发布请求,所述资源发布请求中包含资源链接link和所述指示信息,其中,所述资源link中包含所述资源信息。
  21. 根据权利要求17所述的方法,其特征在于,所述第一服务器接收服务设备发送的资源信息之后,所述方法还包括:
    所述第一服务器根据所述指示信息从所述服务器集群中发现其它具有资源目录的服务器;
    所述第一服务器将所述资源信息发送给所述其它具有资源目录的服务器。
  22. 根据权利要求17所述的方法,其特征在于,所述第一服务器接收服务设备发送的所述资源信息,包括:
    所述第一服务器接收所述服务设备发送的资源发布请求,所述资源发布请求中包含资源链接link和至少一个服务器标识,所述资源link中包含所述资源信息。
  23. 根据权利要求22所述的方法,其特征在于,所述第一服务器接收服务设备发送的所述资源信息之后,还包括:
    所述第一服务器将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  24. 根据权利要求23所述的方法,其特征在于,所述第一服务器将所述资源信息发送给所述至少一个服务器标识对应的服务器包括:
    所述第一服务器根据服务器优先级顺序,将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  25. 根据权利要求22所述的方法,其特征在于,所述资源link还包括:指示信息;所述指示信息用于指示允许所述第一服务器将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  26. 根据权利要求22所述的方法,其特征在于,所述资源发布请求还包含:指示信息;所述指示信息用于指示允许所述第一服务器将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  27. 根据权利要求19或25所述的方法,其特征在于,所述指示信息位于所述资源link的资源策略中的位掩码的至少部分比特位。
  28. 根据权利要求20或26所述的方法,其特征在于,所述指示信息位于所述资源发布请求中的属性字段。
  29. 根据权利要求17~28中任一项所述的方法,其特征在于,所述第一服务器接收服务设备发送的资源信息之后,还包括:
    所述第一服务器根据所述指示信息,向具有资源目录的服务器中的其它服务器发送通知消息,所 述通知消息中包含所述资源信息以及禁止将所述资源信息接续发送的指示信息。
  30. 一种物联网的资源发布方法,其特征在于,包括:
    第二服务器接收第一服务器发送的资源信息;
    所述第二服务器将所述资源信息存储到资源目录中;
    其中,所述第一服务器和所述第二服务器均为服务器集群中具有资源目录的服务器。
  31. 根据权利要求30所述的方法,其特征在于,所述第二服务器接收第一服务器发送的资源信息,包括:
    所述第二服务器接收所述第一服务器发送的通知消息,所述通知消息中包含所述资源信息以及禁止将所述资源信息接续发送的指示信息。
  32. 一种物联网的资源发布装置,其特征在于,包括:处理模块和收发模块;
    其中,所述处理模块,用于控制所述收发模块从服务器集群中发现具有资源目录的服务器;
    所述收发模块,用于将资源信息发布到具有资源目录的服务器中的至少两个服务器上。
  33. 根据权利要求32所述的装置,其特征在于,
    所述处理模块,具体用于控制所述收发模块从服务器集群中发现具有资源目录的部分或全部服务器;
    所述收发模块,具体用于向所述具有资源目录的部分或全部服务器发送所述资源信息。
  34. 根据权利要求32所述的装置,其特征在于,
    所述收发模块,具体用于直接向所述具有资源目录的服务器发送所述资源信息。
  35. 根据权利要求34所述的装置,其特征在于,
    所述收发模块,具体用于按照服务器的优先级顺序,向所述具有资源目录的服务器发送所述资源信息。
  36. 根据权利要求32所述的装置,其特征在于,所述具有资源目录的服务器包括第一服务器;
    所述收发模块,具体用于向所述第一服务器发送所述资源信息,并指示所述第一服务器将所述资源信息发送给所述具有资源目录的服务器中的其它服务器。
  37. 根据权利要求36所述的装置,其特征在于,
    所述收发模块,具体用于向所述第一服务器发送资源发布请求,所述资源发布请求中包含资源link和至少一个服务器标识;
    其中,所述资源link中包含所述资源信息;所述至少一个服务器标识用于使得所述第一服务器将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  38. 根据权利要求37所述的装置,其特征在于,所述资源link还包含:指示信息,所述指示信息用于指示允许所述第一服务器将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  39. 根据权利要求37所述的装置,其特征在于,所述资源发布请求还包含:指示信息;
    其中,所述指示信息用于指示允许所述第一服务器将所述资源信息发送给与所述至少一个服务器标识对应的服务器。
  40. 根据权利要求36所述的装置,其特征在于,
    所述收发模块,具体用于向所述第一服务器发送所述资源信息,并指示所述第一服务器按照服务器优先级顺序将所述资源信息发送给所述具有资源目录的服务器中的其它服务器。
  41. 根据权利要求32所述的装置,其特征在于,所述具有资源目录的服务器包括第一服务器;
    所述收发模块,具体用于向所述第一服务器发送所述资源信息,并指示所述第一服务器将所述资源信息发送给所述第一服务器发现的具有资源目录的服务器。
  42. 根据权利要求41所述的装置,其特征在于,
    所述收发模块,具体用于向所述第一服务器发送资源发布请求,所述资源发布请求中包含资源链接link;
    其中,所述资源link中包含所述资源信息以及指示信息,所述指示信息用于指示允许所述第一服务器将所述资源信息发送给所述第一服务器发现的具有资源目录的服务器。
  43. 根据权利要求41所述的装置,其特征在于,
    所述收发模块,具体用于向所述第一服务器发送资源发布请求,所述资源发布请求中包含资源链接link和指示信息;
    其中,所述资源link中包含所述资源信息,所述指示信息用于指示允许所述第一服务器将所述资源信息发送给所述第一服务器发现的具有资源目录的服务器。
  44. 根据权利要求38或42所述的装置,其特征在于,所述指示信息位于所述资源link的资源策略中的位掩码的至少部分比特位。
  45. 根据权利要求39或43所述的装置,其特征在于,所述指示信息位于所述资源发布请求中的属性字段。
  46. 根据权利要求32~45中任一项所述的装置,其特征在于,所述资源信息包括如下至少一种信息:
    所述服务设备的资源标识、所述服务设备的资源类型、所述服务设备的资源访问接口。
  47. 一种物联网的资源发布装置,应用于第一服务器,其特征在于,包括:
    收发模块,用于第一服务器接收服务设备发送的资源信息;
    处理模块,用于将所述资源信息存储到资源目录中;
    其中,所述第一服务器是所述服务设备从服务器集群中发现的具有资源目录的服务器之一,且所述具有资源目录的服务器中的至少两个服务器接收所述资源信息。
  48. 根据权利要求47所述的装置,其特征在于,
    所述收发模块,具体用于接收所述服务设备发送的所述资源信息,并接收指示信息;所述指示信息为将所述资源信息发送给具有资源目录的服务器中的其它服务器的指示信息。
  49. 根据权利要求48所述的装置,其特征在于,
    所述收发模块,用于根据所述指示信息将所述资源信息发送给所述服务设备所发现的具有资源目录的服务器中的其它服务器。
  50. 根据权利要求49所述的装置,其特征在于,
    所述收发模块,具体用于接收所述服务设备发送的资源发布请求,所述资源发布请求中包含资源链接link,所述资源link中包含所述资源信息以及所述指示信息。
  51. 根据权利要求49所述的装置,其特征在于,
    所述收发模块,具体用于接收所述服务设备发送的资源发布请求,所述资源发布请求中包含资源链接link和所述指示信息,其中,所述资源link中包含所述资源信息。
  52. 根据权利要求48所述的装置,其特征在于,
    所述处理模块,还用于根据所述指示信息控制所述收发模块从所述服务器集群中发现其它具有资源目录的服务器;
    所述收发模块,用于将所述资源信息发送给所述其它具有资源目录的服务器。
  53. 根据权利要求48所述的装置,其特征在于,
    所述收发模块,具体用于接收所述服务设备发送的资源发布请求,所述资源发布请求中包含资源链接link和至少一个服务器标识,所述资源link中包含所述资源信息。
  54. 根据权利要求53所述的装置,其特征在于,
    所述收发模块,用于将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  55. 根据权利要求54所述的装置,其特征在于,
    所述收发模块,具体用于根据服务器优先级顺序,将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  56. 根据权利要求53所述的装置,其特征在于,所述资源link还包括:指示信息;所述指示信息用于指示允许所述第一服务器将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  57. 根据权利要求53所述的装置,其特征在于,所述资源发布请求还包含:指示信息;所述指示信息用于指示允许所述第一服务器将所述资源信息发送给所述至少一个服务器标识对应的服务器。
  58. 根据权利要求50或56所述的装置,其特征在于,所述指示信息位于所述资源link的资源策略中的位掩码的至少部分比特位。
  59. 根据权利要求51或57所述的装置,其特征在于,所述指示信息位于所述资源发布请求中的属性字段。
  60. 根据权利要求48-59中任一项所述的装置,其特征在于,
    所述收发模块,还用于根据所述指示信息,向具有资源目录的服务器中的其它服务器发送通知消息,所述通知消息中包含所述资源信息以及禁止将所述资源信息接续发送的指示信息。
  61. 一种物联网的资源发布装置,应用于第二服务器,其特征在于,包括:
    接收模块,用于接收第一服务器发送的资源信息;
    处理模块,用于将所述资源信息存储到资源目录中;
    其中,所述第一服务器和所述第二服务器均为服务器集群中具有资源目录的服务器。
  62. 根据权利要求61所述的装置,其特征在于,所述接收模块,具体用于接收所述第一服务器发送的通知消息,所述通知消息中包含所述资源信息以及禁止将所述资源信息接续发送的指示信息。
  63. 一种服务设备,其特征在于,包括:收发器、处理器、存储器;
    所述存储器存储计算机执行指令;
    所述处理器执行所述存储器存储的计算机执行指令,使得所述服务设备执行如权利要求1至15任一项所述的物联网的资源发布方法。
  64. 一种服务器,其特征在于,包括:收发器、处理器、存储器;
    所述存储器存储计算机执行指令;
    所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如权利要求16至31任一项所述的物联网的资源发布方法。
  65. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当所述计算机执行指令被处理器执行时用于实现如权利要求1至15任一项所述的物联网的资源发布方法。
  66. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当所述计算机执行指令被处理器执行时用于实现如权利要求16至31任一项所述的物联网的资源发布方法。
PCT/CN2019/124438 2018-12-11 2019-12-11 物联网的资源发布方法、装置、设备及存储介质 WO2020119699A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19895771.4A EP3883184A4 (en) 2018-12-11 2019-12-11 METHOD AND APPARATUS FOR PUBLICATION OF RESOURCES IN THE INTERNET OF THINGS, DEVICE, AND STORAGE MEDIA
US17/342,270 US11463376B2 (en) 2018-12-11 2021-06-08 Resource distribution method and apparatus in Internet of Things, device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811508318.5 2018-12-11
CN201811508318.5A CN111314394B (zh) 2018-12-11 2018-12-11 物联网的资源发布方法、装置、设备及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/342,270 Continuation US11463376B2 (en) 2018-12-11 2021-06-08 Resource distribution method and apparatus in Internet of Things, device, and storage medium

Publications (1)

Publication Number Publication Date
WO2020119699A1 true WO2020119699A1 (zh) 2020-06-18

Family

ID=71075938

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/124438 WO2020119699A1 (zh) 2018-12-11 2019-12-11 物联网的资源发布方法、装置、设备及存储介质

Country Status (4)

Country Link
US (1) US11463376B2 (zh)
EP (1) EP3883184A4 (zh)
CN (2) CN115334146A (zh)
WO (1) WO2020119699A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113095084A (zh) * 2021-03-16 2021-07-09 重庆邮电大学 一种物联网中语义服务匹配方法、装置及存储介质
US11463376B2 (en) 2018-12-11 2022-10-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Resource distribution method and apparatus in Internet of Things, device, and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022073196A1 (zh) 2020-10-09 2022-04-14 Oppo广东移动通信有限公司 信息处理方法、装置及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060120396A1 (en) * 2004-12-02 2006-06-08 Kddi Corporation Communication system, delay insertion server, backup server and communication control apparatus
CN101212458A (zh) * 2006-12-25 2008-07-02 中兴通讯股份有限公司 一种数据库系统备份方法
CN103634411A (zh) * 2013-12-16 2014-03-12 上海证券交易所 一种具有状态一致性的市场数据实时广播系统及方法

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9037532B1 (en) * 2005-04-27 2015-05-19 Netapp, Inc. Centralized storage of storage system resource data using a directory server
US8943180B1 (en) * 2005-07-29 2015-01-27 8X8, Inc. Server-based service configuration system and approach
US8751671B2 (en) * 2010-11-16 2014-06-10 Tibco Software Inc. Hierarchical bitmasks for indicating the presence or absence of serialized data fields
WO2014053887A1 (en) * 2012-10-05 2014-04-10 Nokia Corporation Method for proxying communication between a content-centric network and an internet domain
US9262906B2 (en) * 2013-03-14 2016-02-16 Comcast Cable Communications, Llc Processing sensor data
WO2014187672A1 (en) * 2013-05-21 2014-11-27 Koninklijke Philips N.V. A network system, a lighting system, and a method of caching information from a resource-constrained device
WO2014193282A1 (en) * 2013-05-31 2014-12-04 Telefonaktiebolaget L M Ericsson (Publ) Identifying resources from a device in a communications network
KR101972932B1 (ko) * 2014-03-11 2019-04-29 콘비다 와이어리스, 엘엘씨 향상된 분산 리소스 디렉토리
WO2015163913A1 (en) * 2014-04-25 2015-10-29 Nokia Technologies Oy Interaction between virtual reality entities and real entities
KR20160146978A (ko) * 2014-04-28 2016-12-21 콘비다 와이어리스, 엘엘씨 리소스 디렉터리를 위한 검색 엔진 최적화
EP3143781B1 (en) * 2014-05-14 2019-12-11 Telefonaktiebolaget LM Ericsson (publ) Periodic management stabilization for internet of things
WO2017010921A1 (en) * 2015-07-10 2017-01-19 Telefonaktiebolaget Lm Ericsson (Publ) Discovery of resources in a local network
WO2017030943A1 (en) * 2015-08-14 2017-02-23 Convida Wireless, Llc Enhanced coap group communications with selective responses
US20170126542A1 (en) 2015-10-28 2017-05-04 Futurewei Technologies, Inc. ICN Based Distributed Resource Directory for IoT Resource Discovery and Routing
KR102515269B1 (ko) * 2016-03-05 2023-03-30 삼성전자주식회사 전자장치에서의 비디오 스트리밍 장치 및 방법
CN107196983A (zh) * 2016-03-15 2017-09-22 阿里巴巴集团控股有限公司 一种资源分发方法及装置
US10404798B2 (en) * 2016-05-16 2019-09-03 Carbonite, Inc. Systems and methods for third-party policy-based file distribution in an aggregation of cloud storage services
WO2018004677A1 (en) * 2016-07-01 2018-01-04 Intel IP Corporation Communications in internet-of-things devices
CN105959165B (zh) * 2016-07-15 2019-02-15 重庆邮电大学 一种工业测控网络中基于xmpp协议的发布/订阅服务方法
CN107872486B (zh) 2016-09-28 2020-06-02 华为技术有限公司 通信方法和装置
US11381947B2 (en) * 2018-04-06 2022-07-05 Telefonaktiebolaget Lm Ericsson (Publ) Thing description to resource directory mapping
US10687228B2 (en) * 2018-06-20 2020-06-16 MeshPlusPlus, Inc. Data aggregation for distributed optimization of a wireless network
CN115334146A (zh) 2018-12-11 2022-11-11 Oppo广东移动通信有限公司 物联网的资源发布方法、装置、设备及存储介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060120396A1 (en) * 2004-12-02 2006-06-08 Kddi Corporation Communication system, delay insertion server, backup server and communication control apparatus
CN101212458A (zh) * 2006-12-25 2008-07-02 中兴通讯股份有限公司 一种数据库系统备份方法
CN103634411A (zh) * 2013-12-16 2014-03-12 上海证券交易所 一种具有状态一致性的市场数据实时广播系统及方法

Non-Patent Citations (1)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11463376B2 (en) 2018-12-11 2022-10-04 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Resource distribution method and apparatus in Internet of Things, device, and storage medium
CN113095084A (zh) * 2021-03-16 2021-07-09 重庆邮电大学 一种物联网中语义服务匹配方法、装置及存储介质

Also Published As

Publication number Publication date
CN115334146A (zh) 2022-11-11
US11463376B2 (en) 2022-10-04
CN111314394B (zh) 2022-08-26
EP3883184A4 (en) 2021-12-15
EP3883184A1 (en) 2021-09-22
CN111314394A (zh) 2020-06-19
US20210297366A1 (en) 2021-09-23

Similar Documents

Publication Publication Date Title
CN109842906B (zh) 一种通信的方法、装置及系统
US11197176B2 (en) Methods, systems, and computer readable media for providing for policy-based access and mobility management function (AMF) selection using network slice selection assistance information (NSSAI) availability information
WO2020119699A1 (zh) 物联网的资源发布方法、装置、设备及存储介质
CN105376107B (zh) 终端测试方法和代理服务器
CN106789526B (zh) 多系统网络连接的方法及装置
US11070433B2 (en) Network function NF management method and NF management device
US9438679B2 (en) Method, apparatus, name server and system for establishing FCOE communication connection
CN107547391B (zh) 一种报文传输方法和装置
WO2018090677A1 (zh) 一种nf组件异常的处理方法、设备及系统
WO2021098407A1 (zh) 基于mec的服务节点分配方法、装置及相关服务器
WO2020253531A1 (zh) 一种通信方法、装置、实体及存储介质
CN111338806B (zh) 一种业务控制方法及装置
JP7086853B2 (ja) ネットワークアクセス方法、その関連機器およびシステム
US20100180342A1 (en) Method for Using Extended Security System, Extended Security System and Devices
EP3032850A1 (en) Service discovery technique in wireless communication network for forming p2p group
CN107070790B (zh) 一种路由学习方法及路由设备
CN111757402B (zh) 一种通信方法及装置
CN110535959B (zh) 一种传输数据的方法、装置和计算机可读存储介质
CN109788075B (zh) 专网网络系统、数据的获取方法及边缘服务器
EP2375692A2 (en) Apparatus and method for registering node and searching for floating internet protocol address using distributed network
CN110784510A (zh) 目标服务节点接入总线的方法、服务节点的信息交互方法
CN104765888B (zh) 一种数据访问系统、方法及装置
CN109327517B (zh) 获取无线接入点网络状态的方法及设备
CN108418709B (zh) 端口聚合方法及装置
CN110891028B (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: 19895771

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019895771

Country of ref document: EP

Effective date: 20210616