WO2024026838A1 - Communication method, apparatus and device, and storage medium, chip, product and program - Google Patents

Communication method, apparatus and device, and storage medium, chip, product and program Download PDF

Info

Publication number
WO2024026838A1
WO2024026838A1 PCT/CN2022/110575 CN2022110575W WO2024026838A1 WO 2024026838 A1 WO2024026838 A1 WO 2024026838A1 CN 2022110575 W CN2022110575 W CN 2022110575W WO 2024026838 A1 WO2024026838 A1 WO 2024026838A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
subscription
proxy
resource
group
Prior art date
Application number
PCT/CN2022/110575
Other languages
French (fr)
Chinese (zh)
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 PCT/CN2022/110575 priority Critical patent/WO2024026838A1/en
Publication of WO2024026838A1 publication Critical patent/WO2024026838A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Definitions

  • the embodiments of this application relate to the field of mobile communication technology, and specifically relate to a communication method, device, equipment, storage medium, chip, product and program.
  • Embodiments of the present application provide a communication method, device, equipment, storage medium, chip, product and program.
  • inventions of the present application provide a communication method.
  • the method includes: a subscription device sends a first subscription request to a target proxy device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or There are multiple target node devices, and the first subscription request is used to subscribe to target resources in the one or more target node devices.
  • inventions of the present application provide a communication method.
  • the method includes: a target proxy device receives a first subscription request sent by a subscription device; the first subscription request includes a target group identifier, and the target group identifier corresponds to a or multiple target node devices; the target proxy device multicasts a second subscription request to the one or more target node devices; the second subscription request is used to request to subscribe to a target resource in the target node device; The target proxy device receives a second subscription success message sent by the one or more target node devices; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  • embodiments of the present application provide a communication method.
  • the method includes: a target node device receiving a second subscription request for multicast by a target proxy device; the second subscription request is used to request to subscribe to the multicast of the target node device.
  • the target resource the target node device sends a second subscription success message to the target proxy device; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  • embodiments of the present application provide a communication device, including: a communication unit configured to send a first subscription request to a target proxy device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or There are multiple target node devices, and the first subscription request is used to subscribe to target resources in the one or more target node devices.
  • embodiments of the present application provide a communication device, including: a communication unit configured to receive a first subscription request sent by a subscription device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or A plurality of target node devices; the communication unit is also configured to multicast a second subscription request to the one or more target node devices; the second subscription request is used to request to subscribe to a target resource in the target node device ; The communication unit is further configured to receive a second subscription success message sent by the one or more target node devices; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  • embodiments of the present application provide a communication device, including: a communication unit configured to receive a second subscription request for multicast by a target proxy device; the second subscription request is used to request to subscribe to a multicast in the target node device.
  • Target resource the communication unit is further configured to send a second subscription success message to the target proxy device; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  • embodiments of the present application provide a communication device, including: a processor and a memory.
  • the memory stores a computer program that can be run on the processor.
  • the processor executes the program, the first aspect is implemented.
  • embodiments of the present application provide a computer storage medium that stores one or more programs, and the one or more programs can be executed by one or more processors to implement the first aspect. , the method described in the second aspect or the third aspect.
  • embodiments of the present application provide a chip, including: a processor configured to call and run a computer program from a memory to execute the method described in the first aspect, the second aspect, or the third aspect.
  • inventions of the present application provide a computer program product.
  • the computer program product includes a computer storage medium.
  • the computer storage medium stores a computer program.
  • the computer program includes instructions that can be executed by one or more processors. , when the instructions are executed by the one or more processors, the method described in the first aspect, the second aspect or the third aspect is implemented.
  • embodiments of the present application provide a computer program, which causes a computer to execute the method described in the first aspect, the second aspect, or the third aspect.
  • the subscription device sends a first subscription request to the target proxy device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or more target node devices.
  • the first subscription request Used to subscribe to target resources in the one or more target node devices.
  • the subscribing device sends the first subscription request including the target group identifier to the target proxy device, so that the target proxy device can subscribe to the target resources in one or more target node devices corresponding to the target group identifier, and then the subscribing device sends a subscription request
  • the target resource in one or more target node devices within the subscription group can be realized, thereby improving the efficiency of the subscribing device in subscribing to the target resource.
  • Figure 1 is a schematic diagram of a resource subscription method provided by an embodiment of the present application.
  • Figure 2 is a schematic flowchart of a resource subscription method provided by an embodiment of the present application.
  • Figure 3 is a schematic flow chart of a communication method provided by an embodiment of the present application.
  • Figure 4 is a schematic flow chart of another communication method provided by an embodiment of the present application.
  • Figure 5 is a schematic flow chart of another communication method provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of yet another communication method provided by an embodiment of the present application.
  • Figure 7 is a schematic flow chart of a communication method provided by another embodiment of the present application.
  • Figure 8 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • Figure 9 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • Figure 10 is a schematic structural diagram of another communication device provided by an embodiment of the present application.
  • Figure 11 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • Figure 12 is a schematic structural diagram of a chip according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a resource subscription method provided by an embodiment of the present application.
  • client (Client) 1 can send a request to subscribe to resources C1 and/or C2 to a proxy device (which can be called a proxy Proxy).
  • Client 2 can send a request to subscribe to resources C2 and/or C3 to the proxy device
  • client 3 can send a request to subscribe to resources C4 and/or C1 to the proxy device.
  • the proxy device may send a request to subscribe to at least one of resources C1, C2, C3, and C4 to the resource node (Source Node, which may also be called resource Source or target node device in other embodiments), so that client 1, client Terminal 2 and client 3 can subscribe to corresponding resources through the proxy device.
  • Source Node which may also be called resource Source or target node device in other embodiments
  • the client can subscribe to the resource through the proxy device, and/or the resource node can notify the updated content of the resource through the proxy device.
  • FIG. 1 only illustrates the system to which the present application is applicable in the form of an example.
  • the method shown in the embodiment of the present application can also be applied to other systems.
  • system and “network” are often used interchangeably herein.
  • the term “and/or” in this article is just an association relationship that describes related objects, indicating that three relationships can exist. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. B these three situations.
  • the character "/" in this article generally indicates that the related objects are an "or” relationship.
  • the "instruction” mentioned in the embodiments of this application may be a direct instruction, an indirect instruction, or an association relationship.
  • A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B. relation.
  • the "correspondence” mentioned in the embodiments of this application can mean that there is a direct correspondence or indirect correspondence between the two, it can also mean that there is an associated relationship between the two, or it can mean indicating and being instructed. , configuration and configured relationship.
  • the "predefined”, “protocol agreement”, “predetermined” or “predefined rules” mentioned in the embodiments of this application can be preset in devices (for example, including subscription devices and network devices).
  • predefined can refer to what is defined in the protocol.
  • the "protocol" may refer to a standard protocol in the communication field, which may include, for example, LTE protocol, NR protocol, and related protocols applied in future communication systems. This application does not limit this. .
  • FIG. 2 is a schematic flowchart of a resource subscription method provided by an embodiment of the present application. As shown in Figure 2, the method includes:
  • the client sends a first subscription request (SubscribeRequest) to the proxy device.
  • SubscribeRequest a first subscription request
  • the first subscription request may carry the resource identifier or resource path: S1/EP0/C1.
  • S1 identifies device ID 1 (nodeid1); EP0 identifies endpoint ID 0 (endpointid0); C1 identifies cluster ID 1 (cluster ID1).
  • the device identifier may be a resource node identifier; a resource node may include one or more endpoints; the cluster identifier may be used to subscribe to resources in the cluster corresponding to the cluster identifier (or resources corresponding to the cluster identifier).
  • S201 can also be described as: the client sends a request to subscribe to the C1 resource on the resource node to the proxy device.
  • the proxy device sends the first report data (ReportData) to the client.
  • the first report data may carry S1/EP0/C1:[NO_SUBSCRIPTION].
  • S1/EP0/C1:[NO_SUBSCRIPTION] included in the first report data indicates that the proxy device has not temporarily subscribed to the resource of the resource node (which may be the resource corresponding to the cluster identifier).
  • the proxy device Before sending the first report data, the proxy device needs to check whether the client has the permission to subscribe to C1 on the resource node (the permission can be the view permission).
  • the proxy device has proxyview permissions on the resource node Access Control List (ACL) cluster resource, and the proxy device can subscribe to or read the ACL cluster. Based on this, the proxy device can determine whether the client can subscribe to the C1 resource by obtaining the client's permission on the C1 resource on the resource node.
  • ACL Access Control List
  • the client directly subscribes to the target resource of the resource node (for example, C1 resource) or subscribes to the target resource through a proxy device, it needs to have the permission to subscribe to the target resource of the resource node (View permission), that is, on the resource node
  • the ACL Cluster needs to have the access control entry (Access Control Entry, ACE) corresponding to the client.
  • ACE Access Control Entry
  • the proxy device needs to obtain all ACE records, which leads to the expansion of the authority of the proxy device and increases the risk of information leakage.
  • the client sends a first status report (StatusReponse) to the proxy device.
  • the first status report can carry its own status as OK.
  • the proxy device sends the first subscription response (SubscribeResponse) to the client.
  • the proxy device sends a second subscription request to the resource node.
  • the second subscription request may carry the resource identifier or resource path EP0/C1.
  • the proxy device initiates a subscription to the C1 resource on the resource node. After the subscription is successful, continue processing the client's subscription process.
  • the resource node sends second report data to the proxy device.
  • the proxy device sends a second status report to the resource node.
  • the second status report may carry its own status as OK.
  • the resource node sends a second subscription response to the proxy device.
  • the proxy device sends third report data to the client.
  • the client sends a third status report to the proxy device.
  • the third status report can carry its own status as OK.
  • the subscription device and the client in any of the above embodiments may be the same device, the target proxy device may be the above proxy device, and the target node device may be the same as the resource in any of the above embodiments.
  • the nodes are the same device.
  • the steps performed by the subscribing device may be steps performed by the target APP.
  • the subscription equipment in this application can be called user equipment (User Equipment, UE), mobile station (Mobile Station, MS), mobile terminal (Mobile Terminal, MT), subscriber unit, subscriber station, mobile station, remote station, remote terminal , mobile device, user terminal, terminal, wireless communication device, user agent or user device.
  • UE User Equipment
  • MS Mobile Station
  • MT Mobile Terminal
  • subscriber unit subscriber station, mobile station, remote station, remote terminal
  • mobile device user terminal, terminal, wireless communication device, user agent or user device.
  • Subscription devices may include one or at least a combination of the following: Internet of Things (IoT) devices, satellite terminals, Wireless Local Loop (WLL) stations, Personal Digital Assistants (Personal Digital Assistant, PDA) ), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, servers, mobile phones, tablets (Pad), computers with wireless transceiver capabilities, handheld computers, desktop computers, personal computers Digital assistants, portable media players, smart speakers, navigation devices, smart watches, smart glasses, smart necklaces and other wearable devices, pedometers, digital TV, virtual reality (Virtual Reality, VR) terminal equipment, augmented reality (Augmented Reality, AR) terminal equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid Wireless terminals, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and vehicles, vehicle-mounted equipment, vehicle-mounted modules, and wireless devices in the Internet of Vehicles system Modems, handheld devices, customer terminal
  • Figure 3 is a schematic flow chart of a communication method provided by an embodiment of the present application. As shown in Figure 3, the method includes:
  • the subscription device sends a first subscription request to the target proxy device; the first subscription request includes a target group identifier, the target group identifier corresponds to one or more target node devices, and the first subscription request is used to subscribe to the The target resource in one or more target node devices.
  • Information can be encrypted using a group key.
  • any message carried in the first subscription request is information encrypted with the group key.
  • the subscribing device, the target proxy device, and the one or more target node devices all have a group key, so that the subscribing device, the target proxy device, and the one or more target node devices can all read information encrypted by the group key.
  • any two of the group key of the subscribing device, the group key of the target proxy device, and the group key of one or more target node devices may be the same, or may have an associated relationship.
  • the group key of the subscribing device, the group key of the target proxy device, and the group key of one or more target node devices may be pre-assigned or pre-configured.
  • the subscribing device generates a group key and sends it to the target proxy device and one or more target node devices; or the target proxy device generates a group key and sends it to the subscribing device and one or more target node devices; or either
  • the target node device generates a group key and sends it to the first terminal, the target proxy device and other target node devices.
  • the fact that two group keys have an associated relationship can be understood to mean that the two group keys are a key pair.
  • the group key in a device can be one key or multiple keys.
  • the subscribing device, and/or one or more target node devices can read the information encrypted by the group key, but the target proxy device cannot read the information encrypted by the group key. , and can read unencrypted information.
  • part of the information in the first subscription request is information encrypted by the group key, and another part of the information is unencrypted information.
  • the subscribing device and one or more target node devices have a group key, but the target agent device does not have a group key.
  • the group key of the subscribing device and the group key of one or more target node devices may be the same or have an associated relationship.
  • the group key of the subscribing device and the group key of one or more target node devices may be pre-assigned or pre-configured.
  • the subscribing device generates a group key and sends it to one or more target node devices; or any target node device generates a group key and sends it to the first terminal and other target node devices.
  • the subscribing device and/or the target proxy device can be in the same group as one or more target node devices.
  • the subscribing device, the target proxy device, and one or more target node devices may be in the same group.
  • the subscribing device may transmit information with the target proxy device, and the target proxy device may communicate with one or more target nodes. The device transmits information.
  • the target group ID may be one group ID, or the target group ID may be multiple group IDs.
  • the target resource in a target node device can be one resource or multiple resources.
  • the target resource in any embodiment of the present application may be a single resource, a cluster resource, a resource corresponding to a cluster identifier, or a resource in a cluster.
  • the target group identifier may correspond to a target node device group or a target node device set, and the target node device group or target node device set includes one or more target node devices.
  • the first subscription request is used to subscribe to the target resources in the one or more target node devices through the target proxy device, or in other words, the first subscription request is used for the subscribing device to subscribe to all target resources through the target proxy device. Describe the target resources in one or more target node devices.
  • the first subscription request is used by the target proxy device to subscribe to the target resources in the one or more target node devices, or in other words, the first subscription request is used by the target proxy device to subscribe to the one or more target node devices on its behalf. Target resources in multiple target node devices.
  • subscribing to the target resource in the one or more target node devices may include: subscribing to the target resource of each target node device in the one or more target node devices.
  • the first subscription request is used to subscribe to a target resource of each target node device in the one or more target node devices.
  • the target group identifier corresponds to one or more target node devices, and the target group identifier can be associated with one or more target node devices.
  • the group corresponding to the group identifier may include at least one of the following: identifiers of one or more target node devices, identifiers of target proxy devices, and identifiers of subscribing devices.
  • the group corresponding to the group identifier may include identifiers of one or more target node devices.
  • the group corresponding to the group identifier may include the identifier of one or more target node devices, the identifier of the target proxy device, and the identifier of the subscribing device.
  • the group identification may correspond to/associate with at least one of the following: identifications of one or more target node devices, identifications of target proxy devices, and identifications of subscribing devices.
  • the group identifier may correspond to/associate with a target group list, and the target group list includes at least one of the following: identifiers of one or more target node devices, identifiers of target proxy devices, and identifiers of subscribing devices.
  • the target group identifier may correspond to/associate with a target group list, and the target group list includes node identifiers of one or more target node devices.
  • the target group identification may correspond to/associate with the target group list.
  • the target group list may not only include the node identification of one or more target node devices, but may also include the identification of the subscribing device and/or the identification of the target proxy device. .
  • the subscription device sends a first subscription request to the target proxy device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or more target node devices.
  • the first subscription request Used to subscribe to target resources in the one or more target node devices.
  • the subscribing device sends the first subscription request including the target group identifier to the target proxy device, so that the target proxy device can subscribe to the target resources in one or more target node devices corresponding to the target group identifier, and then the subscribing device sends a subscription request
  • the target resource in one or more target node devices within the subscription group can be realized, thereby improving the efficiency of the subscribing device in subscribing to the target resource.
  • the first subscription request further includes subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  • the resource identifier of the target resource may be a cluster identifier in other embodiments, and/or the resource path of the target resource may be a cluster path in other embodiments.
  • the identification information of the target resource is used to identify the resource in the target node device, and/or the path information of the target resource is used to indicate the resource path in the target node device.
  • the resource identifier and/or resource path of the target resource may be determined by the subscribing device based on preconfiguration, or may be configured by the proxy device to the subscribing device, or configured by the target node device to the subscribing device.
  • the first subscription request further includes a subscription identifier; the subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and the target node device.
  • the first subscription request may include one or more subscription identifiers.
  • each subscription identifier is used to: identify a subscription relationship between the subscription device, the target proxy device, and each target node device.
  • a subscription identifier is used to correspond to the subscription relationship of a target node device.
  • the subscription identifier may be used to identify the subscription relationship between the subscription device and the target node device.
  • the subscription identifier may be used to identify the subscription relationship between the target proxy device and the target node device.
  • a subscription identifier can be used to identify the subscription relationship between the subscribing device and a target node device, or a subscription identifier can be used to identify the subscription relationship between the target proxy device and a target node device, or a The subscription identifier can be used to identify the subscription relationship between the subscribing device, the target proxy device, and a target node device.
  • different subscription identifiers correspond to different target node devices.
  • one or more subscription identifiers may be generated by the subscribing device, or the one or more subscription identifiers may be determined by the subscribing device according to preconfiguration, or the one or more subscription identifiers may be the target proxy device or a or multiple target node devices configured to the subscribing device.
  • the first subscription request further includes a predetermined time interval
  • the predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device;
  • the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
  • the time interval may also be called a period, a period, a duration, etc. in other embodiments.
  • the predetermined time interval may include a maximum time interval and/or a minimum time interval.
  • the second notification message may be used to indicate that target resources of all target node devices have not changed, or to indicate that target resources in all target node devices subscribed by the subscribing device have not changed.
  • the second notification message is sent under the condition that the target resources in one or more target node devices do not change within the maximum time interval.
  • the second notification message may be used to indicate that target resources in one or more target node devices have not changed within the maximum time interval.
  • the minimum time interval may be called minimum reporting time, minimum time interval or minimum reporting interval in other embodiments.
  • the maximum time interval may be called maximum reporting time, maximum time interval or maximum reporting interval in other embodiments.
  • the usage scenario of the maximum time interval may be: within the maximum time interval, a notification message must be sent (the notification message may be a first notification message or a second notification message). That is, the maximum time interval may be the maximum time interval for sending notification messages.
  • the target proxy device does not receive a report message sent by any target node device among one or more target node devices, the report message includes the target node device) (update content of the target resource), the target proxy device sends a second notification message to the subscribing device, or the second notification message can be sent within the maximum time interval without any change in the target resource.
  • the second notification message may also be called a standalone Ack message or an empty notification message.
  • the subscribing device can promptly determine whether the content of the target resource of one or more subscribed target node devices has changed.
  • the usage scenario of the minimum time interval may be: the time interval between two adjacent notification messages must be greater than or equal to the minimum time interval.
  • the time interval between two adjacent notification messages must be greater than or equal to the minimum time interval, so that the target proxy device can avoid frequently sending notification messages to the subscribing device.
  • the maximum time interval may include a minimum time interval.
  • each maximum time interval may include two minimum time intervals, or each maximum time interval may include a minimum time interval and a third time interval; wherein the third time interval is the maximum time interval except the minimum time interval. interval.
  • the duration corresponding to the third time interval may be less than or greater than the duration corresponding to the minimum time interval.
  • the maximum time interval may include multiple minimum time intervals. For example, the maximum time interval may include 2, 3, 4, or 5 minimum time intervals.
  • the first subscription request may include a minimum time interval or a maximum time interval.
  • the first subscription request includes a minimum time interval
  • the minimum time interval is a time interval for the target proxy device to send the first notification message and/or the second notification message.
  • the target proxy device reports a notification message to the subscribing device every minimum time interval, and the notification message reported each time can be a first notification message or a second notification message.
  • the first subscription request includes a maximum time interval
  • the maximum time interval is a time interval for the target proxy device to send the first notification message and/or the second notification message.
  • the target proxy device reports a notification message to the subscribing device at a maximum time interval, and the notification message reported each time can be a first notification message or a second notification message.
  • the notification message may be a first notification message or a second notification message unless otherwise specified.
  • the first subscription request may include a minimum time interval and a maximum time interval.
  • the maximum time interval may be used to indicate that within the maximum time interval, the target proxy device needs to send a notification message, or needs to send one notification message or two notification messages.
  • the minimum time interval may be used to indicate that the time interval between two adjacent notification messages needs to be greater than or equal to the minimum time interval.
  • the time interval between two adjacent notification messages may be the minimum time interval or the maximum time interval.
  • the first subscription request includes a minimum time interval and a maximum time interval.
  • the minimum time interval is the time interval for the target proxy device to send the first notification message
  • the maximum time interval is the time interval for the target proxy device to send the first notification message.
  • the time interval between notification messages and/or second notification messages if the target proxy device detects the reported message within the minimum time interval, it sends the first notification message to the subscribing device; the target proxy device does not detect the reported message within the minimum time interval, and the target proxy device does not detect the reported message within the maximum time interval.
  • the target proxy device If a reported message is detected within the specified time interval, the target proxy device sends the first notification message to the subscribing device; if the target proxy device does not detect the reported message within the minimum time interval, and does not detect the reported message within the maximum time interval, The target proxy device sends a second notification message to the subscribing device.
  • the target proxy device if the target proxy device does not detect a reported message within the maximum time interval, the target proxy device sends a second notification message to the subscribing device. For another example, if the target proxy device does not detect a reported message within the minimum time interval, and detects one or more reported messages within the maximum time interval, the target proxy device detects the error message at the end of the maximum time interval or after the maximum time interval. , sending a first notification message to the subscribing device, and/or, detecting one or more reporting messages within the minimum time interval, and detecting one or more reporting messages within the maximum time interval other than the minimum time interval.
  • the target proxy device sends the first notification message to the subscribing device at the end of the minimum time interval and the maximum time interval respectively, or after the minimum time interval and the maximum time interval respectively, and/or within the minimum time interval. If no reported message is detected, and one or more reported messages are not detected within the maximum time interval, the target proxy device sends a second notification message to the subscribing device at the end of the maximum time interval.
  • each maximum time interval includes two minimum time intervals as an example: a minimum time interval can be one cycle. If the target proxy device detects the reporting message in the first cycle, it will send the third time interval to the subscribing device. A notification message. If no reported message is detected in the second cycle, no message will be sent to the subscribing device. If a reported message is detected in the third cycle, the first notification message will be sent to the subscribing device. If in the third cycle, the first notification message will be sent to the subscribing device. If no reported message is detected within three cycles, a second notification message is sent to the subscribing device.
  • the first subscription request includes a minimum time interval and a maximum time interval
  • the target proxy device may determine a time interval from the minimum time interval and the maximum time interval to send the predetermined notification message.
  • the target proxy device may determine the time interval based on the preconfiguration, or the target proxy device may determine the time interval based on business busyness and/or the computing capability of the target proxy device.
  • the time interval determined by the target proxy device may or may not be notified to the subscribing device.
  • the reporting message may be a message sent by any one or more target node devices to the target proxy device, and the reporting message may include updated content of target resources in one or more of the target node devices.
  • the maximum time interval may be less than or equal to the value of the minimum time interval multiplied by 2.
  • the maximum time interval may be the value of the minimum time interval multiplied by 2.
  • the maximum time interval may be the minimum time interval multiplied by a value of 1.2, 1.5, 1.8, etc., and the embodiment of the present application does not limit this.
  • the target proxy device may determine whether the subscribing device has permission to subscribe to each of the one or more target node devices, and/or, You can determine whether the target proxy device itself has permission to subscribe to each of one or more target node devices.
  • the target proxy device may determine whether the target group identifier corresponds to the right to subscribe to each of the one or more target node devices.
  • the method further includes:
  • the subscribing device broadcasts a proxy discovery request
  • the subscribing device receives a proxy discovery response sent by one or more proxy devices; the one or more proxy devices include the target proxy device, and the proxy discovery response includes: the proxy device supports a subscribed target node device.
  • the proxy discovery response sent by each proxy device received by the subscribing device includes: the node identification of the target node device that each proxy device supports subscription and/or the target node device group of each proxy device that supports subscription. Group ID.
  • the proxy discovery request includes one or more node identifiers and/or one or more group identifiers;
  • the node identifier of the target node device to which the proxy device supports subscription is determined from the one or more node identifiers;
  • the group identifier of the target node device group to which the proxy device supports subscription is determined from the one or more group identifiers.
  • each proxy device supports the node identification of the subscribed target node device, which is determined from the one or more node identifications in the proxy discovery request; each said proxy device supports the subscribed target node device group
  • the group identifier is determined from the one or more group identifiers in the proxy discovery request.
  • the node identifiers of the target node devices to which the proxy device supports subscription and/or the group identifiers of the target node device groups to which the proxy device supports subscription sent by different target node devices may be the same or different.
  • the agent discovery request may not carry one or more node identifiers and/or one or more group identifiers.
  • each agent device may send to the subscribing device the information that each agent device supports subscription.
  • the method further includes: the subscribing device determines the target proxy device from the one or more proxy devices; wherein the proxy discovery response sent by the target proxy device includes: The target group identifier and/or the node identifier of the one or more target node devices.
  • the target proxy device may be one proxy device among one or more proxy devices.
  • the node identifiers of the target node devices that support subscription include the node identifiers of the one or more target node devices corresponding to the target group identifiers.
  • the subscribing device can determine the target proxy device from N proxy devices. Among them, N is an integer greater than or equal to 1.
  • the group identification of the target node device group that supports subscription includes the target group identification. The subscribing device can obtain the information from the M agent devices. Determine the target proxy device. Among them, M is an integer greater than or equal to 1.
  • the method further includes:
  • the subscription device receives a first subscription success message sent by the target proxy device; the first subscription success message is used to indicate successful subscription to the target resource in the one or more target node devices.
  • the subscribing device can determine that the subscription to the target resource in the one or more target node devices is successful.
  • the subscribing device receives a first subscription success message sent by the target proxy device; the first subscription success message is used to indicate that some of the one or more target node devices The target resource subscription of the target node device is successful.
  • the first subscription success message may be used to indicate that the target resource subscription to another part of the one or more target node devices has failed.
  • the first subscription success message may also be used to indicate the reason why the target resource subscription to another part of the target node devices failed.
  • the method further includes:
  • the subscribing device receives the first notification message and/or the second notification message sent by the target proxy device;
  • the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
  • the subscribing device may detect notification messages at minimum time intervals, or the subscribing device may detect notification messages at maximum time intervals, or the subscribing device may detect notification messages continuously.
  • the information transmitted between the subscribing device and the target proxy device is information encrypted by a group key.
  • the subscribing device encrypts the information through the group key of the subscribing device
  • the target proxy device encrypts the information through the group key of the target proxy device
  • the group key of the subscribing device and the group key of the target proxy device are the same, or the group key of the subscribing device and the group key of the target proxy device are a key pair.
  • the group key of the subscribing device and the group key of the target proxy device may be preconfigured.
  • the subscribing device may determine the group key of the target proxy device and send the group key of the target proxy device to the target proxy device.
  • the target proxy device may determine the group key of the subscribing device and send the group key of the subscribing device to the subscribing device.
  • the target node device may determine the group key of the subscribing device and the group key of the target proxy device, send the group key of the subscribing device to the subscribing device, and send the group key of the target proxy device to the target proxy device.
  • the information included in the first subscription request sent by the subscribing device to the target proxy device may be information encrypted by the group key, and the notification message and/or the first subscription success message sent by the target proxy device to the subscribing device
  • the information included in is encrypted with the group key.
  • the first subscription request may include at least one of the following information encrypted by a group key: target group identification, subscription target information, predetermined time interval (optionally, including a minimum time interval and/or a maximum time interval), One or more subscription IDs.
  • the notification message is a first notification message
  • the report message sent by one or more of the target node devices included in the first notification message is information encrypted by a group key.
  • the notification message is a second notification message
  • the message included in the second notification message to indicate that the target resources in the one or more target node devices have not changed is a message encrypted by a group key.
  • the indication message included in the first subscription success message indicating successful subscription to target resources in the one or more target node devices is a message encrypted by a group key.
  • the target proxy device may not be configured with a group key, while the subscribing device and the target node device are configured with the group key.
  • the information transmitted between the subscribing device and the target proxy device includes information encrypted by the group key and/or information not encrypted by the group key.
  • the information transmitted between the target proxy device and the target node device includes Information encrypted with a group key and/or information not encrypted with a group key.
  • the information encrypted by the group key may be information used by the target node device, and the information not encrypted by the group key may be information used by the target proxy device.
  • the first subscription request includes unencrypted at least one of the following: the target group identification, a predetermined time interval, and at least one of the following encrypted by a group key: subscription target information, subscription identification ;
  • the subscription target information is used to indicate the resource identifier and/or resource path of the target resource
  • the predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device; the first notification message is used to indicate the time interval in the target node device. Update content of the target resource; the second notification message is used to indicate that the target resource in the target node device has not changed;
  • the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
  • the predetermined time interval includes a minimum time interval and/or a maximum time interval
  • the minimum time interval is used to indicate the minimum time interval between two adjacent notification messages sent by the target proxy device to the subscription device;
  • the maximum time interval is used to indicate the target proxy device sends a message to the subscription device. The maximum time interval between two adjacent notification messages sent by the device;
  • the two adjacent notification messages are both first notification messages, or both are second notification messages, or one is the first notification message and the other is the second notification message.
  • the method further includes:
  • the subscribing device sends a proxy configuration cluster (proxyconfig cluster) to the target proxy device;
  • the subscribing device receives a response message sent by the target proxy device to the proxy configuration cluster;
  • the agent configuration cluster includes at least one of the following: indication information, resource list, and group list of all agent nodes;
  • the resource list includes one or more node identifiers; the one or more node identifiers include node identifiers of the one or more target node devices;
  • the group list includes one or more group identifiers; the one or more group identifiers include the target group identifier.
  • the subscription device sets the proxy config cluster of the target proxy device.
  • the target proxy device supports a specific group (that is, the group corresponding to the target group ID, or one or more target node devices corresponding to the target group ID). subscription.
  • proxyconfig cluster defines the devices and/or groups to which the target proxy device supports subscriptions.
  • Table 1 shows the attribute information defined by proxyconfig cluster.
  • the ID in Table 1 is used to identify the proxy config cluster.
  • Table 2 shows the content included in the configuration structure.
  • the IDs in Table 2 are used to identify different configurations for the target proxy device.
  • the content included in the configuration structure may be content corresponding to at least one of the following identification IDs: 0, 1, and 2.
  • ProxyAllNodes is indicated in the proxyconfig cluster sent to the target proxy device, it indicates that the target proxy device can proxy all nodes.
  • ProxyAllNodes is indicated in the proxyconfig cluster sent to the target proxy device, and the bool type identifier is True, it indicates that the target proxy device can proxy all nodes, and/or, when sending to the target proxy device If ProxyAllNodes is indicated in proxyconfig cluster and the bool type flag is False, it indicates that the target proxy device cannot proxy all nodes.
  • SourceList is indicated in the proxyconfig cluster sent to the target proxy device, it indicates that the target proxy device can proxy the target node device corresponding to one or more node identifiers in the SourceList.
  • the proxyconfig cluster sent to the target proxy device indicates GroupList, it indicates that the target proxy device can proxy the target node device corresponding to one or more group identifiers in the GroupList.
  • the method further includes:
  • the subscription device sends an effective agent cluster to the one or more target node devices;
  • the effective agent cluster includes at least one of the following: an effective agent list, an effective group agent list;
  • the effective proxy list includes: proxy identification that can subscribe to the target node device;
  • the effective group proxy list includes: proxy identifiers of the target node devices in the subscribing group.
  • the subscribing device sends valid proxy clusters to each of the one or more target node devices.
  • the effective agent cluster sent by the subscribing device to each target node device includes at least one of the following: an effective agent list and an effective group agent list.
  • content included in the effective proxy clusters sent to different target node devices may be the same or different.
  • the one or more target node devices may include a first node device and a second node device.
  • the effective agent cluster sent to the first node device includes a valid agent list and/or a valid group agent list, where the effective agent list includes an agent identifier that can be subscribed to the first node device, and the effective group agent list includes a group that can be subscribed to.
  • the agent ID of the first node device includes a valid agent list and/or a valid group agent list, where the effective agent list includes an agent identifier that can subscribe to the second node device, and the effective group agent list includes a subscribing group.
  • the agent ID of the second node device in .
  • the target node device may be the first node device or the second node device.
  • one or more target node devices corresponding to the target group identifier include a first node device (groupNode1) and a second node device (group node2).
  • groupNode1 a first node device
  • group node2 a second node device
  • Valid proxy cluster is a list of proxies that the device supports that can be subscribed to. Among them, Table 3 shows the contents included in Valid proxy cluster.
  • Valid proxy cluster may include the content corresponding to ID 1 but not the content corresponding to ID 3, or the Valid proxy cluster may include ID The content corresponding to ID 1, and the content corresponding to ID 3.
  • the configuration device may send a proxy configuration cluster to the target proxy device.
  • the configuration device may send valid proxy clusters to the one or more target node devices.
  • the configuring device is a different device than the subscribing device.
  • the configuration device sends a proxy configuration cluster to the target proxy device and/or sends a valid proxy cluster to the one or more target node devices.
  • the descriptions in other embodiments may be referred to and will not be described again here.
  • This application may also provide a communication method, which method includes: a configuration device sends a proxy configuration cluster to the target proxy device.
  • This application may also provide another communication method, which method includes: configuring a device to send a valid proxy cluster to the one or more target node devices.
  • Figure 4 is a schematic flow chart of another communication method provided by an embodiment of the present application. As shown in Figure 4, the method includes:
  • the target proxy device receives the first subscription request sent by the subscription device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or more target node devices.
  • the target proxy device multicasts a second subscription request to the one or more target node devices; the second subscription request is used to request to subscribe to target resources in the target node device.
  • the target proxy device receives a second subscription success message sent by the one or more target node devices; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  • the target proxy device sends a second subscription request to each target node device, and receives a second subscription success message sent by each target node device.
  • the target proxy device may determine the group corresponding to the target group ID based on the target group ID, and then multicast the second subscription request in the group.
  • the target proxy device when the target group identifier corresponds to one target node device, the target proxy device unicasts or multicasts the second subscription request to the one target node device, and/or when the target group identifier corresponds to multiple target node devices. In this case, the target proxy device unicasts or multicasts the second subscription request to the plurality of target node devices.
  • the second subscription request sent by the target proxy device to the first node device is used to request to subscribe to the target resource in the first node device.
  • the second subscription request sent by the target proxy device to the second node device is used to request to subscribe to the target resource in the second node device.
  • subscribing to the target resource in the first node device may include: subscribing to one or more resources in the first node device.
  • subscribing to the target resource in the second node device may include: subscribing to one or more resources in the second node device.
  • the first node device may be a certain target node device among one or more target node devices.
  • the second node device may be another target node device among the one or more target node devices.
  • each of the one or more target node devices may send a second subscription success message to the target proxy device.
  • the first subscription request further includes subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  • the first subscription request further includes: the subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and the target node device.
  • a subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and a target node device.
  • different target node devices have different subscription identifiers.
  • the first subscription request further includes a predetermined time interval
  • the predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device;
  • the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
  • the second subscription request includes: subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  • the second subscription request further includes a subscription identification sent by the subscribing device to the target proxy device.
  • the subscription identity is determined by the subscribing device.
  • the second subscription request further includes a subscription identification determined by the target proxy device.
  • the subscription identity is determined by the target proxy device.
  • the second subscription success message includes the subscription identification determined by the target node device.
  • the subscription identity is determined by the target node device.
  • the first node device can determine the subscription relationship between the first node device, the subscription device and the target proxy device, thereby obtaining the subscription identification corresponding to the first node device, and/or the second node device can determine the second node device.
  • the subscription relationship between the node device, the subscription device and the target proxy device is used to obtain the subscription identification corresponding to the second node device.
  • the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device and the target node device.
  • the method further includes:
  • the target proxy device determines that the subscription device and/or the target proxy device has the authority to subscribe to the target resource in each of the one or more target node devices.
  • the target proxy device determines that the subscribing device has the authority to subscribe to the target resource in each of the one or more target node devices.
  • the target proxy device may be configured with an ACL, and the target proxy device may determine whether an ACE corresponding to the subscribing device exists in the ACL. If so, it indicates that the subscribing device has the ability to subscribe to each of the one or more target node devices. permission to the target resource in each target node device, and/or, if it does not exist, it indicates that the subscribing device does not have the permission to subscribe to the target resource in each of the one or more target node devices.
  • the target proxy device determines that the target proxy device has the authority to subscribe to the target resource in each of the one or more target node devices.
  • the target proxy device may be configured with an ACL, and the target proxy device may determine whether an ACE corresponding to the target proxy device exists in the ACL. If so, it indicates that the target proxy device has subscribed to the one or more target node devices. and/or, if not present, indicating that the target proxy device does not have the authority to subscribe to the target resource in each of the one or more target node devices. permission.
  • the method further includes:
  • the target proxy device determines the permission corresponding to the target group identifier, including the permission to subscribe to the target resource in each of the one or more target node devices.
  • the target proxy device may be configured with an ACL, and the target proxy device may determine whether there is an ACE corresponding to the target group ID in the ACL, and if so, indicate the permissions corresponding to the target group ID, including subscribing to the one or more The permissions of the target resources in each of the target node devices, and/or, if they do not exist, the permissions corresponding to the target group identifier, excluding subscribing to each of the one or more target node devices. Permissions for the target resource in the target node device.
  • the method further includes:
  • the target proxy device sends a second request to the one or more target node devices; the second request is used to request second permission information of one or more proxy devices corresponding to the target node device; the one or multiple proxy devices include the target proxy device; the second permission information of the one or more proxy devices is used to indicate whether it has the permission to subscribe to the target resource in the target node device;
  • the target proxy device receives the second permission information sent by the one or more target node devices.
  • the target proxy device may send the second request to each target node device.
  • the second request sent to the first node device is used to request the second permission information of one or more proxy devices corresponding to the first node device, and/or the second request sent to the second node device is used. Requesting the second permission information of one or more proxy devices corresponding to the second node device.
  • one or more proxy devices corresponding to the target node device may include one or more proxy devices capable of subscribing to the target node device, or one or more proxy devices corresponding to all proxy device identifiers configured in the target node device. Agent device.
  • the second permission information may include an ACL.
  • the second permission information may be all ACEs in the ACL stored in the target node device.
  • the target proxy device checks whether all ACEs include the target proxy device and/or subscription.
  • the identification of the device, or the second permission information may be a partial ACE in the ACL stored by the first subscribing device.
  • the partial ACE may include the identification of the target proxy device and/or the subscribing device, or the partial ACE may be the target proxy device and/or the subscribing device. or the ID of the subscribing device. In this way, by obtaining some ACEs, the permissions of the target proxy device can be reduced, reducing the risk of information leakage.
  • the identity of the subscribing device may be the identity of the target APP.
  • the second permission information includes the identification of the target proxy device and/or the subscribing device, or when the second permission information includes one or more bits of information, the one or more bits of information indicate the target proxy device. And/or if the subscribing device has the permission to subscribe to the target resource in the target node device, the target proxy device can subscribe to the target resource in the target node device.
  • the method further includes:
  • the target proxy device receives the proxy discovery request broadcast by the subscribing device;
  • the target proxy device sends a proxy discovery response to the subscribing device; the proxy discovery response includes: the node identification of the target node device that the target proxy device supports subscription and/or the target node device group that the target proxy device supports subscription. Group ID.
  • the proxy discovery request includes one or more node identifiers and/or one or more group identifiers;
  • the node identifier of the target node device that the target proxy device supports subscription is determined from the one or more node identifiers;
  • the group identifier of the target node device group to which the target proxy device supports subscription is determined from the one or more group identifiers.
  • the method further includes:
  • the target proxy device sends a first subscription success message to the subscription device; the first subscription success message is used to indicate successful subscription to the target resource in the one or more target node devices.
  • the information transmitted between the subscribing device and the target proxy device is information encrypted by a group key. In some embodiments, the information transmitted between the target proxy device and the target node device is information encrypted by a group key.
  • each target node device may encrypt the information with each target node device's group key.
  • the group keys of different target node devices may be the same, or the group keys of different target node devices may be different.
  • the group key of the target node device and the group key of the target proxy device may be the same, or the group key of the target node device and the group key of the target proxy device may be a key pair.
  • the group key for the target node device may be preconfigured.
  • the target proxy device determines the group key of the target node device and sends the group key of the node device to the target node device, or the subscribing device determines the group key of the target node device and sends the group key of the target node device to the target node device. Group key.
  • the first subscription request includes unencrypted at least one of the following: the target group identification, a predetermined time interval, and at least one of the following encrypted by a group key: subscription target information, subscription identification ;
  • the second subscription request includes at least one of the following encrypted by the group key: subscription target information, subscription identification;
  • the subscription target information is used to indicate the resource identifier and/or resource path of the target resource
  • the predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device; the first notification message is used to indicate the time interval in the target node device. Update content of the target resource; the second notification message is used to indicate that the target resource in the target node device has not changed;
  • the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
  • the predetermined time interval includes a minimum time interval and/or a maximum time interval
  • the minimum time interval is used to indicate the minimum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device;
  • the maximum time interval is used to indicate the maximum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device;
  • the two adjacent notification messages are both first notification messages, or both are second notification messages, or one is the first notification message and the other is the second notification message.
  • the predetermined time interval includes a minimum time interval; the method further includes:
  • the target proxy device If the target proxy device receives one or more report messages sent by the target node devices within the minimum time interval, the target proxy device sends a first notification message to the subscribing device;
  • the report message includes the updated content of the target resource in the target node device
  • the first notification message includes updated content of target resources in the one or more target node devices.
  • one or more of the target node devices of the sent report message may be a target group identifier corresponding to part or all of the one or more target node devices.
  • the target proxy device receives a report message sent by the target node device.
  • the report message sent by the target node device includes the updated content of the target resource in the target node device.
  • the first message sent by the target proxy device to the subscribing device is The notification message includes updated content of the target resource in the target node device.
  • the target proxy device receives a report message sent by the first node device and a report message sent by the second node device.
  • the report message sent by the first node device includes information about the target resource in the first node device. Update content.
  • the report message sent by the second node device includes the update content of the target resource in the second node device.
  • the first notification message sent by the target proxy device to the subscribing device includes the update content of the target resource in the first node device and the first notification message. The updated content of the target resource in the two-node device.
  • the target proxy device may send a second notification message to the subscribing device; the third The second notification message is used to indicate that the target resources in the one or more target node devices have not changed.
  • the predetermined time interval includes a minimum time interval and a maximum time interval; the method further includes:
  • the target agent device does not receive any report message sent by the target node device within the minimum time interval, and receives one or more report messages sent by the target node device within the maximum time interval.
  • the target proxy device sends a first notification message to the subscribing device;
  • the report message includes the updated content of the target resource in the target node device
  • the first notification message includes updated content of target resources in the one or more target node devices.
  • the target proxy device can continue to monitor the report message until one or more report messages are received within the maximum time interval.
  • the report message sent by the target node device can continue to monitor the report message until one or more report messages are received within the maximum time interval.
  • the target proxy device can be configured with a timer with a duration of the minimum time interval. Before the timer expires, the target proxy device does not receive any of the target nodes. For report messages sent by the device, the target proxy device can restart the timer and receive report messages sent by one or more target node devices within the maximum time interval. In addition, optionally, when the timer times out, a first notification message is sent to the subscribing device.
  • the predetermined time interval includes a maximum time interval; the method further includes:
  • the target proxy device If the target proxy device does not receive any report message sent by the target node device within the maximum time interval, the target proxy device sends a second notification message to the subscribing device;
  • the second notification message is used to indicate that resources in the one or more target node devices have not changed.
  • the method further includes:
  • the target proxy device receives the proxy configuration cluster sent by the subscription device or configuration device;
  • the target proxy device sends a response message to the proxy configuration cluster to the subscription device or the configuration device;
  • the agent configuration cluster includes at least one of the following: indication information, resource list, and group list of all agent nodes;
  • the resource list includes one or more node identifiers; the one or more node identifiers include node identifiers of the one or more target node devices;
  • the group list includes one or more group identifiers; the one or more group identifiers include the target group identifier.
  • Figure 5 is a schematic flow chart of another communication method provided by an embodiment of the present application. As shown in Figure 5, the method includes:
  • the target node device receives a second subscription request multicast by the target proxy device; the second subscription request is used to request to subscribe to a target resource in the target node device.
  • the target node device sends a second subscription success message to the target proxy device; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  • the second subscription request includes: subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  • the second subscription request includes a subscription identification sent by the subscribing device to the target proxy device; or,
  • the second subscription request includes the subscription identification determined by the target proxy device; or,
  • the second subscription success message includes the subscription identification determined by the target node device
  • the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device and the target node device.
  • the method further includes:
  • the target node device receives a second request sent by the target proxy device; the second request is used to request second permission information of one or more proxy devices corresponding to the target node device; the one or more proxy devices
  • the proxy device includes the target proxy device; second permission information of the one or more proxy devices, used to indicate whether it has the permission to subscribe to the target resource in the target node device;
  • the target node device sends the second permission information to the target proxy device.
  • the method further includes: the target node device sending a report message to the target proxy device; the report message includes updated content of the target resource in the target node device.
  • the information transmitted between the target node device and the target proxy device is information encrypted by a group key.
  • the second subscription request includes at least one of the following encrypted by a group key: subscription target information, subscription identification;
  • the subscription target information is used to indicate the resource identifier and/or resource path of the target resource
  • the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
  • the method further includes: the target node device receiving an effective agent cluster sent by a subscription device or a configuration device; the effective agent cluster includes at least one of the following: an effective agent list, an effective group agent list; The effective agent list includes: the agent identification of the target node device that can be subscribed; the effective group agent list includes: the agent identification of the target node device in the subscribing group.
  • the target node device may send confirmation information to the subscribing device or the configuration device.
  • Figure 6 is a schematic flow chart of yet another communication method provided by an embodiment of the present application.
  • the process of the communication method includes a configuration process (S601 to S604) and an agent discovery and selection process (S605 to S619).
  • the report message processing process (S620 to S624), the method includes:
  • the subscription device sends a proxy configuration cluster to the target proxy device; the target proxy device adds the identification of the target proxy device to the target group and a group list of a new attribute.
  • a subscribing device can set a proxy configuration cluster using a group ID supported by the subscribing device.
  • the agent configuration cluster includes at least one of the following: indication information of all agent nodes, a resource list, and a group list.
  • indication information of all agent nodes e.g., a resource list
  • group list e.g., a group list
  • the target group may include one or more node identifiers.
  • the one or more node identifiers in the target group may be the same as one or more node identifiers in the resource list, or may be the same as one or more node identifiers in the group list. Or multiple nodes have the same ID.
  • the target proxy device can add the target proxy device's ID to the target group.
  • the group list of the new attribute can be the group list corresponding to ID 2 in Table 2.
  • the target proxy device adds the identity of the target proxy device to each group in the group list, or the target proxy device can add the identity of the target proxy device to the group corresponding to the group identity to be subscribed to in the group list. .
  • the group list may include one or more group identifiers
  • the target proxy device may add the identifier of the target proxy device to a group corresponding to one or more group identifiers among the one or more group identifiers in the group list.
  • the target proxy device can add the target proxy device's identity to the group corresponding to the group identity to be subscribed.
  • the target proxy device sends a response message to the proxy configuration cluster to the subscribing device.
  • the response message may be 200 OK. In other embodiments, the response message may be other.
  • the subscribing device sets a valid proxy cluster about the proxy to the first node device.
  • the subscribing device may send the first valid proxy cluster to the first node device.
  • the subscribing device may receive a response message sent by the first node device.
  • the first effective agent cluster includes at least one of the following: an agent identifier that supports subscription of the first node device, and an agent identifier that supports the first node device in the subscription group.
  • the subscribing device needs to set a valid proxy cluster to the first node device and the second node device.
  • the effective proxy cluster is the list of proxies supported by the device that can be subscribed to.
  • the subscribing device sets a valid proxy cluster about the proxy to the second node device.
  • the subscribing device sends the second valid proxy cluster to the second node device.
  • the subscribing device may receive a response message sent by the second node device.
  • the second effective agent cluster includes at least one of the following: an agent identifier that supports subscribing to the second node device, and an agent identifier that supports the second node device in the subscription group.
  • the subscribing device can send a proxy discovery message.
  • the message can carry the specified groupID (corresponding to the target group ID in S605) as a query condition. If not, the proxy device needs to carry all the Node IDs (corresponding to the node IDs) and/or Group IDs it supports in the response. .
  • the subscribing device broadcasts the agent discovery request.
  • the target group identification may be included in the proxy discovery request.
  • the target group identification may include one or more group identifications.
  • the one or more group identifications may include a target group identification.
  • FIG. 6 only shows that the proxy discovery request is sent to the target proxy device. In other embodiments, the proxy discovery request is also sent to other proxy devices.
  • the target proxy device sends a proxy discovery response to the subscribing device.
  • the proxy discovery response may include a group identifier supported by the target proxy device.
  • the group ID supported by the target proxy device may be encapsulated in the proxy discovery response.
  • proxy devices including target proxy devices
  • the proxy discovery response sent by each proxy device to the subscribing device may include the group identification supported by that each proxy device.
  • the target proxy device replies with a response message, carrying its own node identification and possible subscribeable Node (node) and/or group (group) information in the response message.
  • the Node and group information may be node identifiers and/or group identifiers supported by the proxy device.
  • the subscribing device can determine a proxy device (ie, the target proxy device) from multiple proxy devices.
  • the subscribing device needs to determine a proxy device as its proxy to subscribe to the specified group.
  • the determined proxy device is the target proxy device.
  • the subscribing device sends the first subscription request to the target proxy device.
  • the first subscription request may carry at least one of the following: target group identifier, resource identifier of the target resource, resource path of the target resource, minimum time interval, and maximum time interval.
  • the subscribing device sends the first subscription request to the target proxy device.
  • the request carries the pre-subscribed group ID.
  • it can also carry the maximum reporting time (i.e., the maximum time interval) and the minimum reporting time (i.e., the minimum time interval). ).
  • the maximum reporting time is such that even if there is no notification message within this time, a notification message will be sent.
  • the minimum reporting time means that even if there are multiple reporting messages within this time, they will not be reported.
  • the target proxy device can collect multiple reporting messages and report them together after the minimum reporting time expires.
  • the target proxy device enforces the node device ACL.
  • the target proxy device obtains the ACL permission on the subscribing device from the first node device.
  • the target proxy device obtains the ACL permission on the subscribing device from the second node device.
  • the ACL permissions about the subscribing device may include the ACL permissions about the target APP.
  • the target proxy device obtains the ACL permissions on the subscribing device from the first node device and the second node device, which may include: the target proxy device sends a request for obtaining the ACL to the first node device and the second node device respectively, Receive the ACEs in the ACLs sent by the first node device and the second node device respectively, thereby determining whether the subscribing device and/or the target proxy device has the subscription authority through the ACE.
  • the ACE in the ACL sent by the first node device and/or the second node device corresponds to the subscribing device identification and/or the target proxy device identification, then it is determined that the subscribing device and/or the target proxy device has the ability to subscribe to the first node device and /or the permissions of the second node device.
  • the target proxy device may also determine whether the subscribing device has the authority to subscribe to the target resource in the first node device and the second node device.
  • the target proxy device may first confirm whether it has the authority to subscribe to the group (corresponding to the target proxy device in the above embodiment, determine the target proxy device, has the permission to subscribe to the target resource in each of the one or more target node devices), and then needs to go to each group member to confirm the permission of the target proxy device.
  • the group corresponding to the target proxy device in the above embodiment, determine the target proxy device, has the permission to subscribe to the target resource in each of the one or more target node devices
  • the subscription device and the proxy device are also group members (corresponding to the target proxy device in the above embodiment, determine the rights corresponding to the target group ID, including subscribing to the one or permissions to the target resource in each of multiple target node devices).
  • ACL can include at least one of the following contents: Subjects: NodeID or Group ID, Subscription Targets: Privilege.
  • the target proxy device sends a second subscription request to the first node device.
  • the second subscription request is sent by multicast, and the second subscription request may be a group subscription request for the target resource (which may correspond to the target resource in the target node device corresponding to the target group identifier in the above embodiment).
  • the target resource is a resource that the subscribing device needs to subscribe to.
  • the resource identification and/or resource path of the target resource may be carried in the first subscription request.
  • the target proxy device sends a second subscription request to the second node device.
  • the second subscription request sent to the first node device may contain the same information as the second subscription request sent to the second node device.
  • the target proxy device may multicast the second subscription request to the first node device and the second node device corresponding to the target group ID based on the target group ID.
  • the target proxy device sends a group subscription message, which is a multicast message.
  • the message content includes the resource identifier and/or resource path of the subscribed target resource.
  • the first node device generates subscription identifier 1.
  • the second node device generates subscription identifier 2.
  • the first node device and the second node device generate a subscription ID (subscribeID), and the subscribeID is used to identify a subscription relationship.
  • subscribeID subscribe ID
  • each target node device generates a separate subscribeID, and different target node devices generate different subscribeIDs.
  • the subscribeID is generated by the target proxy device and is used when subscribing to notifications (i.e. Notify the target node device in the above second subscription request), and it is necessary to ensure that the subscribeID does not conflict.
  • the first node device sends a second subscription success message to the target proxy device; the second subscription success message carries the subscription identifier 1.
  • the first node device records the subscription identifier 1.
  • the second node device sends a second subscription success message to the target proxy device; the second subscription success message carries the subscription identifier 2.
  • the second node device returns a subscription success response message to the target proxy device.
  • the first node device records the subscription identifier 2.
  • the target proxy device receives the report message sent from the first node device.
  • the report message should be a report message sent when the content subscribed by the subscribing device (or target APP) has changed.
  • the target proxy device determines that the timer of the set maximum interval value has not timed out.
  • the maximum interval value may be the minimum time interval in the above embodiment.
  • the target proxy device will check the maximum interval value; this value identifies the maximum interval between two notification messages.
  • the target proxy device receives the report message sent from the second node device.
  • the target proxy device sends a first notification message to the subscribing device.
  • the first notification message carries and aggregates the report message sent by the first node device and the report message sent by the second node device to obtain news.
  • the target proxy device needs to centrally process the above two report messages and then generate a notification message sent to the target APP.
  • subscribing device the target proxy device, the first node device, and the second node device can perform some or all of the steps in S601 to S624, and this embodiment of the present application does not limit this.
  • FIG. 7 is a schematic flow chart of a communication method provided by another embodiment of the present application.
  • the process of the communication method includes a configuration process (S701 to S704), an agent discovery and selection process (S705 to S713) ) and the report message processing flow (S714 to S718).
  • the main difference between the embodiment corresponding to Figure 7 and the embodiment corresponding to Figure 6 is that the target proxy device does not need to join the specified group.
  • the proxy does not have a group secret key and cannot sense group messages.
  • the content is only responsible for the forwarding of messages and the aggregation of notification messages.
  • the subscription device, the target agent device, the first node device and the second node device all have group keys.
  • the method includes:
  • the subscribing device sends a proxy configuration cluster to the target proxy device.
  • S701 may also include the target proxy device adding the identification of the target proxy device to the target group and a group list of a new attribute.
  • the target proxy device sends a response message to the proxy configuration cluster to the subscribing device.
  • the response message may be 200 OK. In other embodiments, the response message may be other.
  • the subscribing device sets a valid proxy cluster about the proxy to the first node device.
  • the subscribing device sets a valid proxy cluster about the proxy to the second node device.
  • the subscribing device broadcasts a proxy discovery request.
  • the target proxy device sends a proxy discovery response to the subscribing device.
  • the subscribing device can determine a proxy device from multiple proxy devices.
  • the subscribing device sends the first subscription request to the target proxy device.
  • the first subscription request may carry at least one of the following: target group identification, resource identification of the target resource, resource path of the target resource, minimum time interval, maximum time interval, and subscription identification.
  • target group identification at least one of the target group identification, minimum time interval, and maximum time interval is unencrypted information
  • at least one of the resource identification and/or resource path and subscription identification of the target resource is information encrypted by the group key.
  • the subscribing device sends a first subscription request (which may be called a subscription agent message in other embodiments) to the target proxy device, in which the message contains the unencrypted target group identifier, the encrypted subscription identifier and/or the subscription target information.
  • the first subscription request may also include an unencrypted minimum time interval and/or a maximum time interval.
  • the target proxy device sends a second subscription request to the first node device.
  • the target proxy device sends a second subscription request to the second node device.
  • the second subscription request is sent by multicast, that is, the second subscription request is a group subscription request for the target resource.
  • the second subscription request carries the resource identification and/or resource path and subscription identification of the target resource.
  • at least one of the resource identification and/or resource path and subscription identification of the target resource is information encrypted by the group key.
  • the target proxy device does not need to parse the above encrypted information and sends a group subscription message to the designated first node device and the second node device, and the message payload carries the encrypted information.
  • the first node device and the second node device use the group secret key to analyze and obtain the subscription content (ie, subscription target information) and subscription identification.
  • the first node device and the second node device generate a subscription success message, and the subscription success message may also be encrypted using a group secret key.
  • the first node device sends a second subscription success message to the target proxy device.
  • the second node device sends a second subscription success message to the target proxy device.
  • the target proxy device sends the first subscription success message to the subscribing device.
  • the target proxy device collects the above subscription success messages and returns them to the subscribing device.
  • the target proxy device receives the report message sent from the first node device.
  • the target proxy device determines that the timer of the set maximum interval value has not timed out.
  • the target proxy device receives the report message sent from the second node device.
  • S717 Aggregate the report message sent by the first node device and the report message sent by the second node device.
  • the target proxy device sends a first notification message to the subscribing device.
  • the first notification message carries and aggregates the report message sent by the first node device and the report message sent by the second node device. news.
  • subscribing device may perform some or all of the steps in S701 to S718, and this is not limited in the embodiment of the present application.
  • first node device and the second node device are devices in one or more target node devices.
  • a group of devices can be subscribed at a time.
  • the group device corresponding to the first node device and/or the above-mentioned embodiment
  • the target proxy device can be subscribed through the target proxy device.
  • Second node device collects and manages report messages, and simplifies the management of subscriptions by the target APP.
  • the size of the sequence numbers of the above-mentioned processes does not mean the order of execution.
  • the execution order of each process should be determined by its functions and internal logic, and should not be used in this application.
  • the execution of the examples does not constitute any limitations.
  • the terms “downlink”, “uplink” and “sidelink” are used to indicate the transmission direction of signals or data, where “downlink” is used to indicate that the transmission direction of signals or data is from the station.
  • uplink is used to indicate that the transmission direction of the signal or data is the second direction from the user equipment of the cell to the site
  • sidelink is used to indicate that the transmission direction of the signal or data is A third direction sent from User Device 1 to User Device 2.
  • downlink signal indicates that the transmission direction of the signal is the first direction.
  • the term “and/or” is only an association relationship describing associated objects, indicating that three relationships can exist. Specifically, A and/or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.
  • FIG 8 is a schematic structural diagram of a communication device provided by an embodiment of the present application, which is applied to a subscription device.
  • the communication device 800 includes: a communication unit 801, used to send a first subscription request to the target proxy device;
  • the first subscription request includes a target group identifier, the target group identifier corresponds to one or more target node devices, and the first subscription request is used to subscribe to target resources in the one or more target node devices.
  • the communication device 800 further includes: a determining unit configured to determine the first subscription request.
  • the first subscription request further includes subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  • the first subscription request further includes a subscription identifier; the subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and the target node device.
  • the first subscription request further includes a predetermined time interval; the predetermined time interval is used to indicate the time for the target proxy device to send the first notification message and/or the second notification message to the subscribing device. interval; wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
  • the communication unit 801 is also configured to: broadcast a proxy discovery request; receive a proxy discovery response sent by one or more proxy devices; the one or more proxy devices include the target proxy device, and the proxy The discovery response includes: the node identifier of the target node device to which the proxy device supports subscription and/or the group identifier of the target node device group to which the proxy device supports subscription.
  • the proxy discovery request includes one or more node identifiers and/or one or more group identifiers;
  • the node identifier of the target node device to which the proxy device supports subscription is determined from the one or more node identifiers;
  • the group identifier of the target node device group to which the proxy device supports subscription is determined from the one or more group identifiers.
  • the determining unit is further configured to: determine the target proxy device from the one or more proxy devices; wherein the proxy discovery response sent by the target proxy device includes: the target group Identity and/or node identification of the one or more target node devices.
  • the communication unit 801 is further configured to: receive a first subscription success message sent by the target proxy device; the first subscription success message is used to indicate that all of the one or more target node devices are The target resource is subscribed successfully.
  • the communication unit 801 is also configured to: receive the first notification message and/or the second notification message sent by the target proxy device;
  • the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
  • the information transmitted between the subscribing device and the target proxy device is information encrypted by a group key.
  • the first subscription request includes unencrypted at least one of the following: the target group identification, a predetermined time interval, and at least one of the following encrypted by a group key: subscription target information, subscription identification ;
  • the subscription target information is used to indicate the resource identifier and/or resource path of the target resource
  • the predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device; the first notification message is used to indicate the time interval in the target node device. Update content of the target resource; the second notification message is used to indicate that the target resource in the target node device has not changed;
  • the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
  • the predetermined time interval includes a minimum time interval and/or a maximum time interval; the minimum time interval is used to indicate the interval between two adjacent notification messages sent by the target proxy device to the subscribing device.
  • the minimum time interval; the maximum time interval is used to indicate the maximum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device; wherein the two adjacent notification messages are both
  • the first notification messages are either both second notification messages, or one is the first notification message and the other is the second notification message.
  • the communication unit 801 is further configured to: send a proxy configuration cluster to the target proxy device; receive a response message to the proxy configuration cluster sent by the target proxy device; wherein, the proxy configuration cluster Including at least one of the following: indication information, resource list, and group list of all proxy nodes; the resource list includes one or more node identifiers; the one or more node identifiers include the one or more target node devices Node identifier; the group list includes one or more group identifiers; the one or more group identifiers include the target group identifier.
  • the communication unit 801 is also configured to: send an effective agent cluster to the one or more target node devices; the effective agent cluster includes at least one of the following: an effective agent list, an effective group agent list;
  • the effective proxy list includes: proxy identification that can subscribe to the target node device;
  • the effective group proxy list includes: proxy identifiers of the target node devices in the subscribing group.
  • Figure 9 is a schematic structural composition diagram of another communication device provided by an embodiment of the present application, which is applied to a target proxy device.
  • the communication device 900 includes:
  • Communication unit 901 configured to receive a first subscription request sent by a subscription device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or more target node devices;
  • the communication unit 901 is further configured to multicast a second subscription request to the one or more target node devices; the second subscription request is used to request to subscribe to target resources in the target node device;
  • the communication unit is further configured to receive a second subscription success message sent by the one or more target node devices; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  • the communication device 900 further includes: a determining unit configured to determine the second subscription request.
  • the first subscription request further includes subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  • the first subscription request further includes a subscription identifier; the subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and the target node device.
  • the first subscription request further includes a predetermined time interval; the predetermined time interval is used to indicate the time for the target proxy device to send the first notification message and/or the second notification message to the subscribing device. interval; wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
  • the second subscription request includes: subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  • the second subscription request further includes a subscription identification sent by the subscribing device to the target proxy device; or, the second subscription request further includes a subscription identification determined by the target proxy device; or , the second subscription success message includes a subscription identifier determined by the target node device; wherein the subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and the target node device.
  • the determining unit is further configured to: determine that the subscribing device and/or the target proxy device has the authority to subscribe to the target resource in each of the one or more target node devices. .
  • the determining unit is further configured to determine the permissions corresponding to the target group identification, including the permissions to subscribe to the target resources in each of the one or more target node devices.
  • the communication unit 901 is further configured to: send a second request to the one or more target node devices; the second request is used to request one or more proxy devices corresponding to the target node device.
  • the second permission information of the one or more proxy devices includes the target proxy device; the second permission information of the one or more proxy devices is used to indicate whether to subscribe to the target resource in the target node device. permission; receiving the second permission information sent by the one or more target node devices.
  • the communication unit 901 is also configured to: receive a proxy discovery request broadcast by the subscribing device; send a proxy discovery response to the subscribing device; the one or more proxy devices include the target proxy device,
  • the agent discovery response includes: a node identifier of a target node device to which the target agent device supports subscription and/or a group identifier of a target node device group to which the target agent device supports subscription.
  • the proxy discovery request includes one or more node identifiers and/or one or more group identifiers;
  • the node identifier of the target node device that the target proxy device supports subscription is determined from the one or more node identifiers;
  • the group identifier of the target node device group to which the target proxy device supports subscription is determined from the one or more group identifiers.
  • the communication unit 901 is further configured to: send a first subscription success message to the subscription device; the first subscription success message is used to indicate that the one or more target node devices are The target resource is subscribed successfully.
  • the information transmitted between the subscribing device and the target proxy device is information encrypted by a group key; and/or the information transmitted between the target proxy device and the target node device Information is information encrypted by a group key.
  • the first subscription request includes unencrypted at least one of the following: the target group identification, a predetermined time interval, and at least one of the following encrypted by a group key: subscription target information, subscription identification ;
  • the second subscription request includes at least one of the following encrypted by the group key: subscription target information, subscription identification;
  • the subscription target information is used to indicate the resource identifier and/or resource path of the target resource
  • the predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device; the first notification message is used to indicate the time interval in the target node device. Update content of the target resource; the second notification message is used to indicate that the target resource in the target node device has not changed;
  • the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
  • the predetermined time interval includes a minimum time interval and/or a maximum time interval; the minimum time interval is used to indicate the interval between two adjacent notification messages sent by the target proxy device to the subscribing device.
  • the minimum time interval; the maximum time interval is used to indicate the maximum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device; wherein the two adjacent notification messages are both
  • the first notification messages are either both second notification messages, or one is the first notification message and the other is the second notification message.
  • the predetermined time interval includes a minimum time interval; the communication unit 901 is further configured to: within the minimum time interval, the target proxy device receives one or more reports sent by the target node device. In the case of a message, send a first notification message to the subscribing device; wherein the report message includes the updated content of the target resource in the target node device; the first notification message includes the one or more Describes the updated content of the target resource in the target node device.
  • the predetermined time interval includes a minimum time interval and a maximum time interval; the communication unit 901 is also configured to: within the minimum time interval, the target proxy device does not receive any message sent by the target node device. a report message, and if a report message sent by one or more target node devices is received within the maximum time interval, send a first notification message to the subscribing device; wherein the report message includes the The update content of the target resource in the target node device; the first notification message includes the update content of the target resource in the one or more target node devices.
  • the predetermined time interval includes a maximum time interval; the communication unit 901 is further configured to: within the maximum time interval, the target proxy device does not receive any report message sent by the target node device. In this case, a second notification message is sent to the subscribing device; wherein the second notification message is used to indicate that resources in the one or more target node devices have not changed.
  • the communication unit 901 is further configured to: receive the agent configuration cluster sent by the subscribing device or the configuration device; send a response message to the agent configuration cluster to the subscribing device or the configuration device; wherein , the agent configuration cluster includes at least one of the following: indication information, resource lists, and group lists of all agent nodes; the resource list includes one or more node identifiers; the one or more node identifiers include the one or Node identifiers of multiple node devices; the group list includes one or more group identifiers; the one or more group identifiers include the target group identifier.
  • Figure 10 is a schematic structural composition diagram of another communication device provided by an embodiment of the present application, which is applied to a target node device.
  • the communication device 1000 includes: a communication unit 1001, used to receive multicast messages from the target agent device. a second subscription request; the second subscription request is used to request to subscribe to the target resource in the target node device; the communication unit 1001 is also used to send a second subscription success message to the target proxy device; the third The second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  • the communication device 1000 further includes: a determining unit configured to determine a second subscription success message.
  • the second subscription request includes: subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  • the second subscription request includes a subscription identification sent by the subscribing device to the target proxy device; or,
  • the second subscription request includes a subscription identifier determined by the target proxy device; or the second subscription success message includes a subscription identifier determined by the target node device; wherein the subscription identifier is used to identify the subscription device , the subscription relationship between the target proxy device and the target node device.
  • the communication unit 1001 is further configured to: receive a second request sent by the target proxy device; the second request is used to request a second request from one or more proxy devices corresponding to the target node device. Permission information; the one or more proxy devices include the target proxy device; the second permission information of the one or more proxy devices is used to indicate whether it has the permission to subscribe to the target resource in the target node device; Send the second permission information to the target proxy device.
  • the communication unit 1001 is further configured to: send a report message to the target proxy device; the report message includes the update content of the target resource in the target node device.
  • the information transmitted between the target node device and the target proxy device is information encrypted by a group key.
  • the second subscription request includes at least one of the following encrypted by a group key: subscription target information, subscription identification;
  • the subscription target information is used to indicate the resource identifier and/or resource path of the target resource
  • the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
  • the communication unit 1001 is also configured to: receive an effective agent cluster sent by a subscribing device or a configuration device; the effective agent cluster includes at least one of the following: an effective agent list, an effective group agent list; the effective agent The list includes: the agent identification of the target node device that can be subscribed; and the effective group agent list includes: the agent identification of the target node device in the subscribing group.
  • FIG 11 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • the communication device 1100 may include one of the following: a subscription device, a target agent device, and a target node device.
  • the communication device 1100 shown in Figure 11 may include a processor 1110 and a memory 1120.
  • the memory 1120 stores a computer program that can be run on the processor 1110. When the processor 1110 executes the program, any of the above embodiments can be implemented. communication methods.
  • the memory 1120 may be a separate device independent of the processor 1110, or may be integrated into the processor 1110.
  • the communication device 1100 may also include a transceiver 1130, and the processor 1110 may control the transceiver 1130 to communicate with other devices, specifically, may send information or data to other devices, or Receive information or data from other devices.
  • the transceiver 1130 may include a transmitter and a receiver.
  • the transceiver 1130 may further include an antenna, and the number of antennas may be one or more.
  • the communication device 1100 may specifically be a subscription device, a target agent device, and a target node device in the embodiments of the present application, and the communication device 1100 may implement the subscription device, target agent, etc. in each method of the embodiments of the present application.
  • the corresponding processes for device and target node device implementation will not be described again here.
  • Embodiments of the present application also provide a computer storage medium that stores one or more programs, and the one or more programs can be executed by one or more processors to implement any implementation of the present application. Communication method in the example.
  • the computer-readable storage medium can be applied to the subscription device, the target proxy device, and the target node device in the embodiments of the present application, and the computer program causes the computer to perform the various methods in the embodiments of the present application by the subscription device. , the corresponding processes implemented by the target agent device and the target node device will not be described again for the sake of simplicity.
  • Figure 12 is a schematic structural diagram of a chip according to an embodiment of the present application.
  • the chip 1200 shown in Figure 12 includes a processor 1210.
  • the processor 1210 is used to call and run a computer program from the memory to execute any embodiment of the present application. Methods.
  • chip 1200 may also include memory 1220 .
  • the processor 1210 can call and run the computer program from the memory 1220 to implement the method in the embodiment of the present application.
  • the memory 1220 may be a separate device independent of the processor 1210, or may be integrated into the processor 1210.
  • the chip 1200 may also include an input interface 1230.
  • the processor 1210 can control the input interface 1230 to communicate with other devices or chips, and specifically, can obtain information or data sent by other devices or chips.
  • the chip 1200 may also include an output interface 1240.
  • the processor 1210 can control the output interface 1240 to communicate with other devices or chips. Specifically, it can output information or data to other devices or chips.
  • the chip can be applied to the subscription device, the target proxy device, and the target node device in the embodiments of the present application, and the chip can implement the subscription device, the target proxy device, and the target node device in the various methods of the embodiments of the present application.
  • the corresponding process of node device implementation will not be described here for the sake of simplicity.
  • chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-chip or system-on-chip, etc.
  • Embodiments of the present application also provide a computer program product.
  • the computer program product includes a computer storage medium.
  • the computer storage medium stores a computer program.
  • the computer program includes instructions that can be executed by one or more processors. When When the instructions are executed by the one or more processors, the communication method in any embodiment of the present application is implemented.
  • the computer program product can be applied to the subscription device, the target proxy device, and the target node device in the embodiments of the present application, and the computer program instructions cause the computer to perform the various methods in the embodiments of the present application by the subscription device,
  • the corresponding processes implemented by the target agent device and the target node device will not be described again here.
  • the computer program product in the embodiment of this application may also be called a software product in other embodiments.
  • An embodiment of the present application also provides a computer program, which causes a computer to execute the communication method in any embodiment of the present application.
  • the computer program can be applied to the subscription device, target proxy device, and target node device in the embodiments of the present application.
  • the computer program When the computer program is run on the computer, it causes the computer to perform various methods in the embodiments of the present application.
  • the corresponding processes implemented by the subscription device, the target proxy device, and the target node device will not be described again for the sake of simplicity.
  • the processor, communication device or chip in the embodiment of the present application may be an integrated circuit chip and has signal processing capabilities. During the implementation process, each step of the above method embodiment can be completed through an integrated logic circuit of hardware in the processor or instructions in the form of software.
  • the above-mentioned processor, communication device or chip may include the integration of any one or more of the following: general-purpose processor, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), graphics Processor (Graphics Processing Unit, GPU), embedded neural network processing units (NPU), controller, microcontroller, microprocessor, programmable logic device, discrete gate or transistor logic device, discrete Hardware components.
  • ASIC Application Specific Integrated Circuit
  • DSP digital Signal Processor
  • DSPD digital Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the steps of the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • non-volatile memory may be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory may be Random Access Memory (RAM), which is used as an external cache.
  • RAM Random Access Memory
  • RAM static random access memory
  • DRAM dynamic random access memory
  • DRAM synchronous dynamic random access memory
  • SDRAM double data rate synchronous dynamic random access memory
  • Double Data Rate SDRAM DDR SDRAM
  • enhanced SDRAM ESDRAM
  • Synchlink DRAM SLDRAM
  • Direct Rambus RAM Direct Rambus RAM
  • the memory in the embodiment of the present application can also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM) , DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM) ), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is, memories in embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can 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 can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory,) ROM, random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .

Abstract

Provided in the embodiments of the present application are a communication method, apparatus and device, and a storage medium, a chip, a product and a program. The method comprises: a subscription device sending a first subscription request to a target proxy device, wherein the first subscription request comprises a target group identifier, the target group identifier corresponds to one or more target node devices, and the first subscription request is used for subscribing to target resources in the one or more target node devices.

Description

通信方法、装置、设备、存储介质、芯片、产品及程序Communication methods, devices, equipment, storage media, chips, products and programs 技术领域Technical field
本申请实施例涉及移动通信技术领域,具体涉及一种通信方法、装置、设备、存储介质、芯片、产品及程序。The embodiments of this application relate to the field of mobile communication technology, and specifically relate to a communication method, device, equipment, storage medium, chip, product and program.
背景技术Background technique
随着物联网技术的不断发展,物联网以及智能家居应用逐渐进入人们的生活之中。用户可以通过应用程序(Application,APP)的客户端向新闻提供商的服务器订阅喜欢的新闻主题,例如体育、明星等,另外在服务器中上述主题的新闻发生更新时就会向用户的APP推送对应的新闻消息,以供用户可以及时地阅读该消息。With the continuous development of Internet of Things technology, Internet of Things and smart home applications have gradually entered people's lives. Users can subscribe to their favorite news topics, such as sports, celebrities, etc., from the news provider's server through the client of the application (Application, APP). In addition, when the news on the above topics in the server is updated, the corresponding information will be pushed to the user's APP. News information so that users can read the news in a timely manner.
相关技术中,在APP需要订阅多个资源的情况下,APP的客户端需要向服务器多次发出订阅请求,以订阅多个资源,由于这种资源订阅方式需要进行多次订阅流程,导致订阅过程较为繁琐。In related technologies, when an APP needs to subscribe to multiple resources, the client of the APP needs to send multiple subscription requests to the server to subscribe to multiple resources. Since this resource subscription method requires multiple subscription processes, the subscription process will be slow. More cumbersome.
发明内容Contents of the invention
本申请实施例提供一种通信方法、装置、设备、存储介质、芯片、产品及程序。Embodiments of the present application provide a communication method, device, equipment, storage medium, chip, product and program.
第一方面,本申请实施例提供一种通信方法,所述方法包括:订阅设备向目标代理设备发送第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备,所述第一订阅请求用于订阅所述一个或多个目标节点设备中的目标资源。In a first aspect, embodiments of the present application provide a communication method. The method includes: a subscription device sends a first subscription request to a target proxy device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or There are multiple target node devices, and the first subscription request is used to subscribe to target resources in the one or more target node devices.
第二方面,本申请实施例提供一种通信方法,所述方法包括:目标代理设备接收订阅设备发送的第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备;所述目标代理设备向所述一个或多个目标节点设备组播第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源;所述目标代理设备接收所述一个或多个目标节点设备发送的第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。In a second aspect, embodiments of the present application provide a communication method. The method includes: a target proxy device receives a first subscription request sent by a subscription device; the first subscription request includes a target group identifier, and the target group identifier corresponds to a or multiple target node devices; the target proxy device multicasts a second subscription request to the one or more target node devices; the second subscription request is used to request to subscribe to a target resource in the target node device; The target proxy device receives a second subscription success message sent by the one or more target node devices; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
第三方面,本申请实施例提供一种通信方法,所述方法包括:目标节点设备接收目标代理设备组播的第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源;所述目标节点设备向所述目标代理设备发送第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。In a third aspect, embodiments of the present application provide a communication method. The method includes: a target node device receiving a second subscription request for multicast by a target proxy device; the second subscription request is used to request to subscribe to the multicast of the target node device. The target resource; the target node device sends a second subscription success message to the target proxy device; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
第四方面,本申请实施例提供一种通信装置,包括:通信单元,用于向目标代理设备发送第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备,所述第一订阅请求用于订阅所述一个或多个目标节点设备中的目标资源。In the fourth aspect, embodiments of the present application provide a communication device, including: a communication unit configured to send a first subscription request to a target proxy device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or There are multiple target node devices, and the first subscription request is used to subscribe to target resources in the one or more target node devices.
第五方面,本申请实施例提供一种通信装置,包括:通信单元,用于接收订阅设备发送的第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备;所述通信单元,还用于向所述一个或多个目标节点设备组播第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源;所述通信单元,还用于接收所述一个或多个目标节点设备发送的第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。In the fifth aspect, embodiments of the present application provide a communication device, including: a communication unit configured to receive a first subscription request sent by a subscription device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or A plurality of target node devices; the communication unit is also configured to multicast a second subscription request to the one or more target node devices; the second subscription request is used to request to subscribe to a target resource in the target node device ; The communication unit is further configured to receive a second subscription success message sent by the one or more target node devices; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
第六方面,本申请实施例提供一种通信装置,包括:通信单元,用于接收目标代理设备组播的第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源;所述通信单元,还用于向所述目标代理设备发送第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。In a sixth aspect, embodiments of the present application provide a communication device, including: a communication unit configured to receive a second subscription request for multicast by a target proxy device; the second subscription request is used to request to subscribe to a multicast in the target node device. Target resource; the communication unit is further configured to send a second subscription success message to the target proxy device; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
第七方面,本申请实施例提供一种通信设备,包括:处理器和存储器,所述存储器存储有可在处理器上运行的计算机程序,所述处理器执行所述程序时实现第一方面、第二方面或第三方面所述方法。In a seventh aspect, embodiments of the present application provide a communication device, including: a processor and a memory. The memory stores a computer program that can be run on the processor. When the processor executes the program, the first aspect is implemented. The method described in the second aspect or the third aspect.
第八方面,本申请实施例提供一种计算机存储介质,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现第一方面、第二方面或第三方面所述方法。In an eighth aspect, embodiments of the present application provide a computer storage medium that stores one or more programs, and the one or more programs can be executed by one or more processors to implement the first aspect. , the method described in the second aspect or the third aspect.
第九方面,本申请实施例提供一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,以执行如第一方面、第二方面或第三方面所述方法。In a ninth aspect, embodiments of the present application provide a chip, including: a processor configured to call and run a computer program from a memory to execute the method described in the first aspect, the second aspect, or the third aspect.
第十方面,本申请实施例提供一种计算机程序产品,所述计算机程序产品包括计算机存储介质,所述计算机存储介质存储计算机程序,所述计算机程序包括能够由一个或多个处理器执行的指令,当所述指令由所述一个或多个处理器执行时实现第一方面、第二方面或第三方面所述方法。In a tenth aspect, embodiments of the present application provide a computer program product. The computer program product includes a computer storage medium. The computer storage medium stores a computer program. The computer program includes instructions that can be executed by one or more processors. , when the instructions are executed by the one or more processors, the method described in the first aspect, the second aspect or the third aspect is implemented.
第十一方面,本申请实施例提供一种计算机程序,所述计算机程序使得计算机执行如第一方面、第二方面或第三方面所述方法。In an eleventh aspect, embodiments of the present application provide a computer program, which causes a computer to execute the method described in the first aspect, the second aspect, or the third aspect.
在本申请实施例中,订阅设备向目标代理设备发送第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备,所述第一订阅请求用于订阅所述一个或多个目标节点设备中的目标资源。这样,订阅设备向目标代理设备发送包括目标组标识的第一订阅请求,从而目标代理设备能够订阅目标组标识对应的一个或多个目标节点设备中的目标资源,进而订阅设备通过发送一次订阅请求就可以实现订阅组内的一个或多个目标节点设备中的目标资源,提高了订阅设备订阅目标资源的效率。In this embodiment of the present application, the subscription device sends a first subscription request to the target proxy device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or more target node devices. The first subscription request Used to subscribe to target resources in the one or more target node devices. In this way, the subscribing device sends the first subscription request including the target group identifier to the target proxy device, so that the target proxy device can subscribe to the target resources in one or more target node devices corresponding to the target group identifier, and then the subscribing device sends a subscription request The target resource in one or more target node devices within the subscription group can be realized, thereby improving the efficiency of the subscribing device in subscribing to the target resource.
附图说明Description of the drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation of the present application. In the attached picture:
图1为本申请实施例提供的一种资源订阅方式的示意图;Figure 1 is a schematic diagram of a resource subscription method provided by an embodiment of the present application;
图2为本申请实施例提供的一种资源订阅方法的流程示意图;Figure 2 is a schematic flowchart of a resource subscription method provided by an embodiment of the present application;
图3为本申请实施例提供的一种通信方法的流程示意图;Figure 3 is a schematic flow chart of a communication method provided by an embodiment of the present application;
图4为本申请实施例提供的另一种通信方法的流程示意图;Figure 4 is a schematic flow chart of another communication method provided by an embodiment of the present application;
图5为本申请实施例提供的又一种通信方法的流程示意图;Figure 5 is a schematic flow chart of another communication method provided by an embodiment of the present application;
图6为本申请实施例提供的再一种通信方法的流程示意图;Figure 6 is a schematic flowchart of yet another communication method provided by an embodiment of the present application;
图7为本申请另一实施例提供的一种通信方法的流程示意图;Figure 7 is a schematic flow chart of a communication method provided by another embodiment of the present application;
图8为本申请实施例提供的通信装置的结构组成示意图;Figure 8 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图9为本申请实施例提供的另一通信装置的结构组成示意图;Figure 9 is a schematic structural diagram of another communication device provided by an embodiment of the present application;
图10为本申请实施例提供的又一通信装置的结构组成示意图;Figure 10 is a schematic structural diagram of another communication device provided by an embodiment of the present application;
图11为本申请实施例提供的一种通信设备示意性结构图;Figure 11 is a schematic structural diagram of a communication device provided by an embodiment of the present application;
图12为本申请实施例的芯片的示意性结构图。Figure 12 is a schematic structural diagram of a chip according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
本申请实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。The technical solutions described in the embodiments of this application can be combined arbitrarily as long as there is no conflict. In the description of this application, "plurality" means two or more than two, unless otherwise explicitly and specifically limited.
图1为本申请实施例提供的一种资源订阅方式的示意图,如图1所示,客户端(Client)1可以向代理设备(可以称为代理Proxy)发送订阅资源C1和/或C2的请求,客户端2可以向代理设备发送订阅资源C2和/或C3的请求,客户端3可以向代理设备发送订阅资源C4和/或C1的请求。代理设备可以向资源节点(Source Node,在另一些实施例中也可以称为资源Source或目标节点设备)发送订阅资源C1、C2、C3、C4中至少之一的请求,从而客户端1、客户端2以及客户端3能够通过代理设备订阅相应的资源。Figure 1 is a schematic diagram of a resource subscription method provided by an embodiment of the present application. As shown in Figure 1, client (Client) 1 can send a request to subscribe to resources C1 and/or C2 to a proxy device (which can be called a proxy Proxy). , Client 2 can send a request to subscribe to resources C2 and/or C3 to the proxy device, and client 3 can send a request to subscribe to resources C4 and/or C1 to the proxy device. The proxy device may send a request to subscribe to at least one of resources C1, C2, C3, and C4 to the resource node (Source Node, which may also be called resource Source or target node device in other embodiments), so that client 1, client Terminal 2 and client 3 can subscribe to corresponding resources through the proxy device.
在本申请任一实施例中,客户端可以通过代理设备进行对资源的订阅,和/或资源节点可以通过代理设备进行资源的更新内容的通知。In any embodiment of the present application, the client can subscribe to the resource through the proxy device, and/or the resource node can notify the updated content of the resource through the proxy device.
需要说明的是,图1只是以示例的形式示意本申请所适用的系统,当然,本申请实施例所示的方法还可以适用于其它系统。此外,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。还应理解,在本申请的实施例中提到的“指示”可以是直接指示,也可以是间接指示,还可以是表示具有关联关系。举例说明,A指示B,可以表示A直接指示B,例如B可以通过A获取;也可以表示A间接指示B,例如A指示C,B可以通过C获取;还可以表示A和B之间具有关联关系。还应理解,在本申请的实施例中提到的“对应”可表示两者之间具有直接对应或间接对 应的关系,也可以表示两者之间具有关联关系,也可以是指示与被指示、配置与被配置等关系。还应理解,在本申请的实施例中提到的“预定义”、“协议约定”、“预先确定”或“预定义规则”可以通过在设备(例如,包括订阅设备和网络设备)中预先保存相应的代码、表格或其他可用于指示相关信息的方式来实现,本申请对于其具体的实现方式不做限定。比如预定义可以是指协议中定义的。还应理解,本申请实施例中,所述“协议”可以指通信领域的标准协议,例如可以包括LTE协议、NR协议以及应用于未来的通信系统中的相关协议,本申请对此不做限定。It should be noted that FIG. 1 only illustrates the system to which the present application is applicable in the form of an example. Of course, the method shown in the embodiment of the present application can also be applied to other systems. Additionally, the terms "system" and "network" are often used interchangeably herein. The term "and/or" in this article is just an association relationship that describes related objects, indicating that three relationships can exist. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. B these three situations. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship. It should also be understood that the "instruction" mentioned in the embodiments of this application may be a direct instruction, an indirect instruction, or an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association between A and B. relation. It should also be understood that the "correspondence" mentioned in the embodiments of this application can mean that there is a direct correspondence or indirect correspondence between the two, it can also mean that there is an associated relationship between the two, or it can mean indicating and being instructed. , configuration and configured relationship. It should also be understood that the "predefined", "protocol agreement", "predetermined" or "predefined rules" mentioned in the embodiments of this application can be preset in devices (for example, including subscription devices and network devices). This is achieved by saving corresponding codes, tables or other methods that can be used to indicate relevant information. This application does not limit the specific implementation methods. For example, predefined can refer to what is defined in the protocol. It should also be understood that in the embodiments of this application, the "protocol" may refer to a standard protocol in the communication field, which may include, for example, LTE protocol, NR protocol, and related protocols applied in future communication systems. This application does not limit this. .
为便于理解本申请实施例的技术方案,以下通过具体实施例详述本申请的技术方案。以上技术作为可选方案与本申请实施例的技术方案可以进行任意结合,其均属于本申请实施例的保护范围。本申请实施例包括以下内容中的至少部分内容。In order to facilitate understanding of the technical solutions of the embodiments of the present application, the technical solutions of the present application are described in detail below through specific embodiments. The above technologies as optional solutions can be arbitrarily combined with the technical solutions of the embodiments of the present application, and they all fall within the protection scope of the embodiments of the present application. The embodiments of this application include at least part of the following content.
图2为本申请实施例提供的一种资源订阅方法的流程示意图,如图2所示,该方法包括:Figure 2 is a schematic flowchart of a resource subscription method provided by an embodiment of the present application. As shown in Figure 2, the method includes:
S201、客户端向代理设备发送第一订阅请求(SubscribeRequest)。S201. The client sends a first subscription request (SubscribeRequest) to the proxy device.
示例性地,第一订阅请求中可以携带资源标识或资源路径:S1/EP0/C1。其中,S1标识的是设备标识1(nodeid1);EP0标识的是端点标识0(endpointid0);C1标识的是簇标识1(cluster ID1)。其中,设备标识可以为资源节点标识;一个资源节点中可以包括一个或多个端点;通过簇标识可以用于订阅簇标识对应的簇中的资源(或者说簇标识对应的资源)。For example, the first subscription request may carry the resource identifier or resource path: S1/EP0/C1. Among them, S1 identifies device ID 1 (nodeid1); EP0 identifies endpoint ID 0 (endpointid0); C1 identifies cluster ID 1 (cluster ID1). The device identifier may be a resource node identifier; a resource node may include one or more endpoints; the cluster identifier may be used to subscribe to resources in the cluster corresponding to the cluster identifier (or resources corresponding to the cluster identifier).
S201也可以描述为:客户端向代理设备发送订阅资源节点上的C1资源的请求。S201 can also be described as: the client sends a request to subscribe to the C1 resource on the resource node to the proxy device.
S202、代理设备向客户端发送第一报告数据(ReportData)。S202. The proxy device sends the first report data (ReportData) to the client.
示例性地,第一报告数据可以携带S1/EP0/C1:[NO_SUBSCRIPTION]。示例性地,第一报告数据中包括的S1/EP0/C1:[NO_SUBSCRIPTION],表示代理设备暂时没有订阅资源节点的该资源(可以为簇标识对应的资源)。For example, the first report data may carry S1/EP0/C1:[NO_SUBSCRIPTION]. For example, S1/EP0/C1:[NO_SUBSCRIPTION] included in the first report data indicates that the proxy device has not temporarily subscribed to the resource of the resource node (which may be the resource corresponding to the cluster identifier).
在发送第一报告数据之前,代理设备需要检查客户端是否有订阅资源节点上C1的权限(该权限可以为视图View权限)。代理设备在资源节点访问控制列表(Access Control List,ACL)簇(Cluster)资源上具有proxyview的权限,代理设备可以去订阅或读取ACL cluster。基于此,代理设备可以通过获取客户端在资源节点上C1资源的权限,进而判定客户端是否可以订阅C1资源。需要说明的是,客户端无论直接订阅资源节点的目标资源(例如,C1资源),还是通过代理设备代理订阅目标资源,都需要具有订阅资源节点目标资源的权限(View权限),即在资源节点的ACL Cluster上需要具有客户端对应的访问控制条目(Access Control Entry,ACE)。然而,本申请实施例的问题在于代理设备需要获取所有的ACE记录,导致了代理设备的权限扩大,增加了信息泄露的风险。Before sending the first report data, the proxy device needs to check whether the client has the permission to subscribe to C1 on the resource node (the permission can be the view permission). The proxy device has proxyview permissions on the resource node Access Control List (ACL) cluster resource, and the proxy device can subscribe to or read the ACL cluster. Based on this, the proxy device can determine whether the client can subscribe to the C1 resource by obtaining the client's permission on the C1 resource on the resource node. It should be noted that whether the client directly subscribes to the target resource of the resource node (for example, C1 resource) or subscribes to the target resource through a proxy device, it needs to have the permission to subscribe to the target resource of the resource node (View permission), that is, on the resource node The ACL Cluster needs to have the access control entry (Access Control Entry, ACE) corresponding to the client. However, the problem with the embodiment of the present application is that the proxy device needs to obtain all ACE records, which leads to the expansion of the authority of the proxy device and increases the risk of information leakage.
S203、客户端向代理设备发送第一状态报告(StatusReponse),第一状态报告中可以携带自身的状态为OK。S203. The client sends a first status report (StatusReponse) to the proxy device. The first status report can carry its own status as OK.
S204、代理设备向客户端发送第一订阅响应(SubscribeResponse)。S204. The proxy device sends the first subscription response (SubscribeResponse) to the client.
S205、代理设备向资源节点发送第二订阅请求,第二订阅请求可以携带资源标识或资源路径EP0/C1。S205. The proxy device sends a second subscription request to the resource node. The second subscription request may carry the resource identifier or resource path EP0/C1.
这样,代理设备发起对资源节点上C1资源的订阅。订阅成功后,继续处理客户端的订阅流程。In this way, the proxy device initiates a subscription to the C1 resource on the resource node. After the subscription is successful, continue processing the client's subscription process.
S206、资源节点向代理设备发送第二报告数据,第二报告数据可以携带EP0/C1:{a=1,b=2}。S206. The resource node sends second report data to the proxy device. The second report data may carry EP0/C1: {a=1, b=2}.
其中,a=1、b=2表示cluster内的属性a和b发生了变化,变化后的值为a=1、b=2。Among them, a=1 and b=2 indicate that the attributes a and b in the cluster have changed, and the changed values are a=1 and b=2.
S207、代理设备向资源节点发送第二状态报告,第二状态报告中可以携带自身的状态为OK。S207. The proxy device sends a second status report to the resource node. The second status report may carry its own status as OK.
S208、资源节点向代理设备发送第二订阅响应。S208. The resource node sends a second subscription response to the proxy device.
S209、代理设备向客户端发送第三报告数据,第三报告数据可以携带S1/EP0/C1:{a=1,b=2}。S209. The proxy device sends third report data to the client. The third report data may carry S1/EP0/C1: {a=1, b=2}.
S210、客户端向代理设备发送第三状态报告,第三状态报告中可以携带自身的状态为OK。S210. The client sends a third status report to the proxy device. The third status report can carry its own status as OK.
在本申请任一实施例中,订阅设备与上述任一实施例中的客户端可以是同一个设备,目标代理设备可以是上述的代理设备,目标节点设备可以与上述任一实施例中的资源节点是同一个设备。In any embodiment of this application, the subscription device and the client in any of the above embodiments may be the same device, the target proxy device may be the above proxy device, and the target node device may be the same as the resource in any of the above embodiments. The nodes are the same device.
在本申请任一实施例中,订阅设备执行的步骤可以是通过目标APP执行的步骤。In any embodiment of this application, the steps performed by the subscribing device may be steps performed by the target APP.
本申请中的订阅设备可以称为用户设备(User Equipment,UE)、移动台(Mobile Station,MS)、移动终端(Mobile Terminal,MT)、用户单元、用户站、移动站、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。订阅设备可以包括以下之一或者至少两者的组合:物联网(Internet of Things,IoT)设备、卫星终端、无线本地环路(Wireless Local Loop,WLL)站、个人数字助理(Personal Digital Assistant,PDA)、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、服务器、手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑、掌上电脑、台式计算机、个人数字助理、便捷式媒体播放器、智能音箱、导航装置、智能手表、智能眼镜、智能项链等可穿戴设备、计步器、数字TV、虚拟现实(Virtual Reality,VR)终端设备、增强现实(Augmented Reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中 的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端以及车联网系统中的车、车载设备、车载模块、无线调制解调器(modem)、手持设备(handheld)、客户终端设备(Customer Premise Equipment,CPE)、智能家电等。The subscription equipment in this application can be called user equipment (User Equipment, UE), mobile station (Mobile Station, MS), mobile terminal (Mobile Terminal, MT), subscriber unit, subscriber station, mobile station, remote station, remote terminal , mobile device, user terminal, terminal, wireless communication device, user agent or user device. Subscription devices may include one or at least a combination of the following: Internet of Things (IoT) devices, satellite terminals, Wireless Local Loop (WLL) stations, Personal Digital Assistants (Personal Digital Assistant, PDA) ), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, servers, mobile phones, tablets (Pad), computers with wireless transceiver capabilities, handheld computers, desktop computers, personal computers Digital assistants, portable media players, smart speakers, navigation devices, smart watches, smart glasses, smart necklaces and other wearable devices, pedometers, digital TV, virtual reality (Virtual Reality, VR) terminal equipment, augmented reality (Augmented Reality, AR) terminal equipment, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grid Wireless terminals, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and vehicles, vehicle-mounted equipment, vehicle-mounted modules, and wireless devices in the Internet of Vehicles system Modems, handheld devices, customer terminal equipment (Customer Premise Equipment, CPE), smart home appliances, etc.
图3为本申请实施例提供的一种通信方法的流程示意图,如图3所示,该方法包括:Figure 3 is a schematic flow chart of a communication method provided by an embodiment of the present application. As shown in Figure 3, the method includes:
S301、订阅设备向目标代理设备发送第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备,所述第一订阅请求用于订阅所述一个或多个目标节点设备中的目标资源。S301. The subscription device sends a first subscription request to the target proxy device; the first subscription request includes a target group identifier, the target group identifier corresponds to one or more target node devices, and the first subscription request is used to subscribe to the The target resource in one or more target node devices.
可选地,在一些实施例中,订阅设备与目标代理设备之间发送的任何信息,和/或,目标代理设备与一个或多个目标节点设备中的每个目标节点设备之间发送的任何信息,可以是通过组密钥进行加密的。例如,第一订阅请求中携带的任何消息都是通过组密钥加密的信息。可选地,订阅设备、目标代理设备以及一个或多个目标节点设备均具有组密钥,从而订阅设备、目标代理设备以及一个或多个目标节点设备均可以读取通过组密钥加密的信息。可选地,订阅设备的组密钥、目标代理设备的组密钥、一个或多个目标节点设备的组密钥中任两个可以相同,或者,可以具有关联关系。可选地,订阅设备的组密钥、目标代理设备的组密钥、一个或多个目标节点设备的组密钥可以是预先分配或预先配置的。例如,订阅设备生成组密钥,向目标代理设备和一个或多个目标节点设备发送;或者,目标代理设备生成组密钥,向订阅设备和一个或多个目标节点设备发送;或者,任一个目标节点设备生成组密钥,向第一终端、目标代理设备以及其它目标节点设备发送。Optionally, in some embodiments, any information sent between the subscription device and the target proxy device, and/or any information sent between the target proxy device and each of the one or more target node devices. Information can be encrypted using a group key. For example, any message carried in the first subscription request is information encrypted with the group key. Optionally, the subscribing device, the target proxy device, and the one or more target node devices all have a group key, so that the subscribing device, the target proxy device, and the one or more target node devices can all read information encrypted by the group key. . Optionally, any two of the group key of the subscribing device, the group key of the target proxy device, and the group key of one or more target node devices may be the same, or may have an associated relationship. Optionally, the group key of the subscribing device, the group key of the target proxy device, and the group key of one or more target node devices may be pre-assigned or pre-configured. For example, the subscribing device generates a group key and sends it to the target proxy device and one or more target node devices; or the target proxy device generates a group key and sends it to the subscribing device and one or more target node devices; or either The target node device generates a group key and sends it to the first terminal, the target proxy device and other target node devices.
可选地,在本申请任一实施例中,两个组密钥具有关联关系可以理解为两个组密钥为密钥对。一个设备中的组密钥可以为一个密钥或多个密钥。Optionally, in any embodiment of this application, the fact that two group keys have an associated relationship can be understood to mean that the two group keys are a key pair. The group key in a device can be one key or multiple keys.
可选地,在另一些实施例中,订阅设备,和/或,一个或多个目标节点设备可以读取通过组密钥加密的信息,而目标代理设备不能读取通过组密钥加密的信息,而能够读取非加密的信息。例如,第一订阅请求中的一部分信息是通过组密钥加密的信息,另一部分信息是非加密的信息。这样,订阅设备和一个或多个目标节点设备具有组密钥,而目标代理设备没有组密钥。可选地,订阅设备的组密钥与一个或多个目标节点设备的组密钥可以相同或具有关联关系。可选地,订阅设备的组密钥与一个或多个目标节点设备的组密钥可以是预先分配或预先配置的。例如,订阅设备生成组密钥,向一个或多个目标节点设备发送;或者,任一个目标节点设备生成组密钥,向第一终端和其它目标节点设备发送。Optionally, in other embodiments, the subscribing device, and/or one or more target node devices can read the information encrypted by the group key, but the target proxy device cannot read the information encrypted by the group key. , and can read unencrypted information. For example, part of the information in the first subscription request is information encrypted by the group key, and another part of the information is unencrypted information. This way, the subscribing device and one or more target node devices have a group key, but the target agent device does not have a group key. Optionally, the group key of the subscribing device and the group key of one or more target node devices may be the same or have an associated relationship. Optionally, the group key of the subscribing device and the group key of one or more target node devices may be pre-assigned or pre-configured. For example, the subscribing device generates a group key and sends it to one or more target node devices; or any target node device generates a group key and sends it to the first terminal and other target node devices.
可选地,订阅设备和/或目标代理设备,与一个或多个目标节点设备可以在同一个组中。示例性地,订阅设备、目标代理设备以及一个或多个目标节点设备可以在同一个组中,在组中,订阅设备可以与目标代理设备传输信息,目标代理设备可以与一个或多个目标节点设备传输信息。Optionally, the subscribing device and/or the target proxy device can be in the same group as one or more target node devices. For example, the subscribing device, the target proxy device, and one or more target node devices may be in the same group. In the group, the subscribing device may transmit information with the target proxy device, and the target proxy device may communicate with one or more target nodes. The device transmits information.
可选地,目标组标识可以是一个组标识,或者,目标组标识可以是多个组标识。可选地,目标组标识对应的目标节点设备可以是一个或多个。一个目标节点设备中的目标资源可以是一个资源或多个资源。可选地,本申请任一实施例中的目标资源可以为单个资源、簇资源、簇标识对应的资源或者簇中的资源。Optionally, the target group ID may be one group ID, or the target group ID may be multiple group IDs. Optionally, there may be one or more target node devices corresponding to the target group identifier. The target resource in a target node device can be one resource or multiple resources. Optionally, the target resource in any embodiment of the present application may be a single resource, a cluster resource, a resource corresponding to a cluster identifier, or a resource in a cluster.
可选地,所述目标组标识可以对应目标节点设备组或目标节点设备集合,目标节点设备组或目标节点设备集合中包括一个或多个目标节点设备。Optionally, the target group identifier may correspond to a target node device group or a target node device set, and the target node device group or target node device set includes one or more target node devices.
可选地,所述第一订阅请求用于通过目标代理设备订阅所述一个或多个目标节点设备中的目标资源,或者说,所述第一订阅请求用于订阅设备通过目标代理设备订阅所述一个或多个目标节点设备中的目标资源。可选地,所述第一订阅请求用于目标代理设备订阅所述一个或多个目标节点设备中的目标资源,或者说,所述第一订阅请求用于目标代理设备代为订阅所述一个或多个目标节点设备中的目标资源。Optionally, the first subscription request is used to subscribe to the target resources in the one or more target node devices through the target proxy device, or in other words, the first subscription request is used for the subscribing device to subscribe to all target resources through the target proxy device. Describe the target resources in one or more target node devices. Optionally, the first subscription request is used by the target proxy device to subscribe to the target resources in the one or more target node devices, or in other words, the first subscription request is used by the target proxy device to subscribe to the one or more target node devices on its behalf. Target resources in multiple target node devices.
可选地,在一些实施例中,订阅所述一个或多个目标节点设备中的目标资源,可以包括:订阅所述一个或多个目标节点设备中每个目标节点设备的目标资源。例如,所述第一订阅请求用于订阅所述一个或多个目标节点设备中每个目标节点设备的目标资源。Optionally, in some embodiments, subscribing to the target resource in the one or more target node devices may include: subscribing to the target resource of each target node device in the one or more target node devices. For example, the first subscription request is used to subscribe to a target resource of each target node device in the one or more target node devices.
可选地,本申请任一实施例中,目标组标识对应一个或多个目标节点设备可以为目标组标识关联一个或多个目标节点设备。Optionally, in any embodiment of the present application, the target group identifier corresponds to one or more target node devices, and the target group identifier can be associated with one or more target node devices.
可选地,组标识对应的组中可以包括以下至少之一:一个或多个目标节点设备的标识、目标代理设备的标识、订阅设备的标识。例如,组标识对应的组中可以包括一个或多个目标节点设备的标识。又例如,组标识对应的组中可以包括一个或多个目标节点设备的标识、目标代理设备的标识以及订阅设备的标识。Optionally, the group corresponding to the group identifier may include at least one of the following: identifiers of one or more target node devices, identifiers of target proxy devices, and identifiers of subscribing devices. For example, the group corresponding to the group identifier may include identifiers of one or more target node devices. For another example, the group corresponding to the group identifier may include the identifier of one or more target node devices, the identifier of the target proxy device, and the identifier of the subscribing device.
可选地,组标识可以对应/关联以下至少之一:一个或多个目标节点设备的标识、目标代理设备的标识、订阅设备的标识。例如,组标识可以对应/关联目标组列表,目标组列表中包括以下至少之一:一个或多个目标节点设备的标识、目标代理设备的标识、订阅设备的标识。在一些实施方式中,目标组标识可以对应/关联目标组列表,目标组列表中包括一个或多个目标节点设备的节点标识。在另一些实施方式中,目标组标识可以对应/关联目标组列表,目标组列表中不仅包括一个或多个目标节点设备的 节点标识,还可以包括订阅设备的标识和/或目标代理设备的标识。Optionally, the group identification may correspond to/associate with at least one of the following: identifications of one or more target node devices, identifications of target proxy devices, and identifications of subscribing devices. For example, the group identifier may correspond to/associate with a target group list, and the target group list includes at least one of the following: identifiers of one or more target node devices, identifiers of target proxy devices, and identifiers of subscribing devices. In some implementations, the target group identifier may correspond to/associate with a target group list, and the target group list includes node identifiers of one or more target node devices. In other embodiments, the target group identification may correspond to/associate with the target group list. The target group list may not only include the node identification of one or more target node devices, but may also include the identification of the subscribing device and/or the identification of the target proxy device. .
在本申请实施例中,订阅设备向目标代理设备发送第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备,所述第一订阅请求用于订阅所述一个或多个目标节点设备中的目标资源。这样,订阅设备向目标代理设备发送包括目标组标识的第一订阅请求,从而目标代理设备能够订阅目标组标识对应的一个或多个目标节点设备中的目标资源,进而订阅设备通过发送一次订阅请求就可以实现订阅组内的一个或多个目标节点设备中的目标资源,提高了订阅设备订阅目标资源的效率。In this embodiment of the present application, the subscription device sends a first subscription request to the target proxy device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or more target node devices. The first subscription request Used to subscribe to target resources in the one or more target node devices. In this way, the subscribing device sends the first subscription request including the target group identifier to the target proxy device, so that the target proxy device can subscribe to the target resources in one or more target node devices corresponding to the target group identifier, and then the subscribing device sends a subscription request The target resource in one or more target node devices within the subscription group can be realized, thereby improving the efficiency of the subscribing device in subscribing to the target resource.
在一些实施例中,所述第一订阅请求还包括订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。In some embodiments, the first subscription request further includes subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
可选地,目标资源的资源标识在另一些实施例中可以是簇标识,和/或,目标资源的资源路径在另一些实施例中可以是簇路径。Optionally, the resource identifier of the target resource may be a cluster identifier in other embodiments, and/or the resource path of the target resource may be a cluster path in other embodiments.
可选地,目标资源的标识信息用于标识目标节点设备中的资源,和/或,目标资源的路径信息用于指示目标节点设备中的资源路径。可选地,目标资源的资源标识和/或资源路径,可以是订阅设备基于预配置确定的,或者,可以是代理设备向订阅设备配置的,或者是目标节点设备向订阅设备配置的。Optionally, the identification information of the target resource is used to identify the resource in the target node device, and/or the path information of the target resource is used to indicate the resource path in the target node device. Optionally, the resource identifier and/or resource path of the target resource may be determined by the subscribing device based on preconfiguration, or may be configured by the proxy device to the subscribing device, or configured by the target node device to the subscribing device.
在一些实施例中,所述第一订阅请求还包括订阅标识;所述订阅标识用于:标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。In some embodiments, the first subscription request further includes a subscription identifier; the subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and the target node device.
可选地,第一订阅请求中可以包括一个或多个订阅标识。示例性地,每个所述订阅标识用于:标识所述订阅设备、所述目标代理设备以及每个所述目标节点设备之间的订阅关系。一个订阅标识用于对应一个目标节点设备的订阅关系。Optionally, the first subscription request may include one or more subscription identifiers. Exemplarily, each subscription identifier is used to: identify a subscription relationship between the subscription device, the target proxy device, and each target node device. A subscription identifier is used to correspond to the subscription relationship of a target node device.
可选地,在另一些实施例中,订阅标识可以用于:标识所述订阅设备以及所述目标节点设备之间的订阅关系。可选地,在又一些实施例中,订阅标识可以用于:标识所述目标代理设备以及所述目标节点设备之间的订阅关系。Optionally, in other embodiments, the subscription identifier may be used to identify the subscription relationship between the subscription device and the target node device. Optionally, in some embodiments, the subscription identifier may be used to identify the subscription relationship between the target proxy device and the target node device.
可选地,一个订阅标识可以用于标识订阅设备与一个目标节点设备之间的订阅关系,或者,一个订阅标识可以用于标识目标代理设备与一个目标节点设备之间的订阅关系,或者,一个订阅标识可以用于标识订阅设备、目标代理设备以及一个目标节点设备之间的订阅关系。可选地,不同的订阅标识对应于不同的目标节点设备。Optionally, a subscription identifier can be used to identify the subscription relationship between the subscribing device and a target node device, or a subscription identifier can be used to identify the subscription relationship between the target proxy device and a target node device, or a The subscription identifier can be used to identify the subscription relationship between the subscribing device, the target proxy device, and a target node device. Optionally, different subscription identifiers correspond to different target node devices.
可选地,一个或多个订阅标识可以是订阅设备生成的,或者,一个或多个订阅标识可以是订阅设备根据预配置确定的,或者,一个或多个订阅标识可以是目标代理设备或一个或多个目标节点设备向订阅设备配置的。Optionally, one or more subscription identifiers may be generated by the subscribing device, or the one or more subscription identifiers may be determined by the subscribing device according to preconfiguration, or the one or more subscription identifiers may be the target proxy device or a or multiple target node devices configured to the subscribing device.
在一些实施例中,所述第一订阅请求还包括预定时间间隔;In some embodiments, the first subscription request further includes a predetermined time interval;
所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;The predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device;
其中,所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化。Wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
可选地,时间间隔在其它实施例中也可以称为时段、周期或时长等。Optionally, the time interval may also be called a period, a period, a duration, etc. in other embodiments.
可选地,预定时间间隔可以包括最大时间间隔和/或最小时间间隔。Optionally, the predetermined time interval may include a maximum time interval and/or a minimum time interval.
可选地,第二通知消息可以用于指示所有目标节点设备的目标资源未变化,或者,指示订阅设备订阅的所有目标节点设备中的目标资源未变化。可选地,第二通知消息是在最大时间间隔内,一个或多个目标节点设备中的目标资源未变化的情况下发送的。可选地,第二通知消息可以用于在指示在最大时间间隔内,一个或多个目标节点设备中的目标资源未变化。Optionally, the second notification message may be used to indicate that target resources of all target node devices have not changed, or to indicate that target resources in all target node devices subscribed by the subscribing device have not changed. Optionally, the second notification message is sent under the condition that the target resources in one or more target node devices do not change within the maximum time interval. Optionally, the second notification message may be used to indicate that target resources in one or more target node devices have not changed within the maximum time interval.
可选地,最小时间间隔在其它实施例中可以称为最小上报时间、最小时间间隔或最小上报间隔。可选地,最大时间间隔在其它实施例中可以称为最大上报时间、最大时间间隔或最大上报间隔。Optionally, the minimum time interval may be called minimum reporting time, minimum time interval or minimum reporting interval in other embodiments. Optionally, the maximum time interval may be called maximum reporting time, maximum time interval or maximum reporting interval in other embodiments.
在一些实施例中,最大时间间隔的使用场景可以为:在该最大时间间隔内,必须发送一个通知消息(该通知消息可以为第一通知消息或第二通知消息)。也就是说,最大时间间隔可以为发送通知消息的最大时间间隔。在一些情况下,如果在最大时间间隔内没有发生订阅内容的变更(即目标代理设备没有接收到一个或多个目标节点设备中任意目标节点设备发送的报告消息,该报告消息包括目标节点设备中的目标资源的更新内容),目标代理设备向订阅设备发送第二通知消息,或者说第二通知消息可以是在最大时间间隔内,没有目标资源发生变化的情况下发送的。可选地,第二通知消息也可以称为独立确认(standalone Ack)消息或空通知消息。通过在最大时间间隔内,发送一个通知消息,能够使得订阅设备及时地确定订阅的一个或多个目标节点设备的目标资源的内容的是否变化。In some embodiments, the usage scenario of the maximum time interval may be: within the maximum time interval, a notification message must be sent (the notification message may be a first notification message or a second notification message). That is, the maximum time interval may be the maximum time interval for sending notification messages. In some cases, if no change in the subscription content occurs within the maximum time interval (that is, the target proxy device does not receive a report message sent by any target node device among one or more target node devices, the report message includes the target node device) (update content of the target resource), the target proxy device sends a second notification message to the subscribing device, or the second notification message can be sent within the maximum time interval without any change in the target resource. Optionally, the second notification message may also be called a standalone Ack message or an empty notification message. By sending a notification message within the maximum time interval, the subscribing device can promptly determine whether the content of the target resource of one or more subscribed target node devices has changed.
在一些实施例中,最小时间间隔的使用场景可以为:两个相邻的通知消息的时间间隔必须大于或者等于该最小时间间隔。通过两个相邻的通知消息的时间间隔必须大于或者等于该最小时间间隔,能够避 免目标代理设备向订阅设备频繁发送通知消息的情况。In some embodiments, the usage scenario of the minimum time interval may be: the time interval between two adjacent notification messages must be greater than or equal to the minimum time interval. The time interval between two adjacent notification messages must be greater than or equal to the minimum time interval, so that the target proxy device can avoid frequently sending notification messages to the subscribing device.
可选地,最大时间间隔可以包括最小时间间隔。可选地,每最大时间间隔可以包括两个最小时间间隔,或者,每最大时间间隔可以包括最小时间间隔和第三时间间隔;其中,第三时间间隔为最大时间间隔中除最小时间间隔外的间隔。可选地,第三时间间隔对应的时长,可以小于或大于最小时间间隔对应的时长。可选地,在另一些实施例中,最大时间间隔可以包括多个最小时间间隔。例如,最大时间间隔可以包括2个、3个、4个或5个最小时间间隔。Optionally, the maximum time interval may include a minimum time interval. Optionally, each maximum time interval may include two minimum time intervals, or each maximum time interval may include a minimum time interval and a third time interval; wherein the third time interval is the maximum time interval except the minimum time interval. interval. Optionally, the duration corresponding to the third time interval may be less than or greater than the duration corresponding to the minimum time interval. Optionally, in other embodiments, the maximum time interval may include multiple minimum time intervals. For example, the maximum time interval may include 2, 3, 4, or 5 minimum time intervals.
可选地,在一些实施例中,第一订阅请求可以包括最小时间间隔或最大时间间隔。Optionally, in some embodiments, the first subscription request may include a minimum time interval or a maximum time interval.
在一些实施例中,第一订阅请求包括最小时间间隔,最小时间间隔为所述目标代理设备发送第一通知消息和/或第二通知消息的时间间隔。在这种情况下,目标代理设备每隔最小时间间隔向订阅设备上报一次通知消息,每次上报的通知消息可以为第一通知消息或第二通知消息。In some embodiments, the first subscription request includes a minimum time interval, and the minimum time interval is a time interval for the target proxy device to send the first notification message and/or the second notification message. In this case, the target proxy device reports a notification message to the subscribing device every minimum time interval, and the notification message reported each time can be a first notification message or a second notification message.
在另一些实施例中,第一订阅请求包括最大时间间隔,最大时间间隔为所述目标代理设备发送第一通知消息和/或第二通知消息的时间间隔。在这种情况下,目标代理设备每隔最大时间间隔向订阅设备上报一次通知消息,每次上报的通知消息可以为第一通知消息或第二通知消息。In some other embodiments, the first subscription request includes a maximum time interval, and the maximum time interval is a time interval for the target proxy device to send the first notification message and/or the second notification message. In this case, the target proxy device reports a notification message to the subscribing device at a maximum time interval, and the notification message reported each time can be a first notification message or a second notification message.
在本申请任一实施例中,通知消息在未作特殊说明的情况下,通知消息可以为第一通知消息或第二通知消息。In any embodiment of the present application, the notification message may be a first notification message or a second notification message unless otherwise specified.
可选地,第一订阅请求可以包括最小时间间隔和最大时间间隔。可选地,最大时间间隔可以用于指示在最大时间间隔内,目标代理设备需要发送一个通知消息,或者需要发送一个通知消息或两个通知消息。最小时间间隔可以用于指示两个相邻的通知消息的时间间隔需要大于或等于该最小时间间隔。例如,两个相邻的通知消息的时间间隔可以为最小时间间隔或者为最大时间间隔。Optionally, the first subscription request may include a minimum time interval and a maximum time interval. Optionally, the maximum time interval may be used to indicate that within the maximum time interval, the target proxy device needs to send a notification message, or needs to send one notification message or two notification messages. The minimum time interval may be used to indicate that the time interval between two adjacent notification messages needs to be greater than or equal to the minimum time interval. For example, the time interval between two adjacent notification messages may be the minimum time interval or the maximum time interval.
在又一些实施例中,第一订阅请求包括最小时间间隔和最大时间间隔,最小时间间隔为所述目标代理设备发送第一通知消息的时间间隔,最大时间间隔为所述目标代理设备发送第一通知消息和/或第二通知消息的时间间隔。在这种情况下,目标代理设备在最小时间间隔内检测到上报消息的情况下,向订阅设备发送第一通知消息;目标代理设备在最小时间间隔内没有检测到上报消息,且在最大时间间隔内检测到上报消息的情况下,目标代理设备向订阅设备发送第一通知消息;目标代理设备在最小时间间隔内没有检测到上报消息,且在最大时间间隔内没有检测到上报消息的情况下,目标代理设备向订阅设备发送第二通知消息。In some embodiments, the first subscription request includes a minimum time interval and a maximum time interval. The minimum time interval is the time interval for the target proxy device to send the first notification message, and the maximum time interval is the time interval for the target proxy device to send the first notification message. The time interval between notification messages and/or second notification messages. In this case, if the target proxy device detects the reported message within the minimum time interval, it sends the first notification message to the subscribing device; the target proxy device does not detect the reported message within the minimum time interval, and the target proxy device does not detect the reported message within the maximum time interval. If a reported message is detected within the specified time interval, the target proxy device sends the first notification message to the subscribing device; if the target proxy device does not detect the reported message within the minimum time interval, and does not detect the reported message within the maximum time interval, The target proxy device sends a second notification message to the subscribing device.
例如,目标代理设备在最大时间间隔内没有检测到上报消息的情况下,目标代理设备向订阅设备发送第二通知消息。又例如,目标代理设备在最小时间间隔内没有检测到上报消息,在最大时间间隔内检测到一个或多个上报消息的情况下,目标代理设备在最大时间间隔的末尾时刻或者在最大时间间隔之后,向订阅设备发送第一通知消息,和/或,在最小时间间隔内检测到一个或多个上报消息,在最大时间间隔的除最小时间间隔之外的间隔内检测到一个或多个上报消息的情况下,目标代理设备分别在最小时间间隔和最大时间间隔的末尾时刻,或者分别在最小时间间隔和最大时间间隔之后,向订阅设备发送第一通知消息,和/或,在最小时间间隔内没有检测到上报消息,在最大时间间隔内没有检测到一个或多个上报消息的情况下,目标代理设备在最大时间间隔的末尾时刻,向订阅设备发送第二通知消息。For example, if the target proxy device does not detect a reported message within the maximum time interval, the target proxy device sends a second notification message to the subscribing device. For another example, if the target proxy device does not detect a reported message within the minimum time interval, and detects one or more reported messages within the maximum time interval, the target proxy device detects the error message at the end of the maximum time interval or after the maximum time interval. , sending a first notification message to the subscribing device, and/or, detecting one or more reporting messages within the minimum time interval, and detecting one or more reporting messages within the maximum time interval other than the minimum time interval. In the case of , the target proxy device sends the first notification message to the subscribing device at the end of the minimum time interval and the maximum time interval respectively, or after the minimum time interval and the maximum time interval respectively, and/or within the minimum time interval. If no reported message is detected, and one or more reported messages are not detected within the maximum time interval, the target proxy device sends a second notification message to the subscribing device at the end of the maximum time interval.
在一些场景中,以每最大时间间隔包括两个最小时间间隔为例进行说明:一个最小时间间隔可以为一个周期,目标代理设备在第一个周期内检测到上报消息,则向订阅设备发送第一通知消息,在第二个周期内没有检测到上报消息,则不向订阅设备发送任何消息,在第三个周期内检测到上报消息,则向订阅设备发送第一通知消息,而如果在第三个周期内没有检测到上报消息,则向订阅设备发送第二通知消息。In some scenarios, each maximum time interval includes two minimum time intervals as an example: a minimum time interval can be one cycle. If the target proxy device detects the reporting message in the first cycle, it will send the third time interval to the subscribing device. A notification message. If no reported message is detected in the second cycle, no message will be sent to the subscribing device. If a reported message is detected in the third cycle, the first notification message will be sent to the subscribing device. If in the third cycle, the first notification message will be sent to the subscribing device. If no reported message is detected within three cycles, a second notification message is sent to the subscribing device.
在再一些实施例中,第一订阅请求包括最小时间间隔和最大时间间隔,目标代理设备可以从最小时间间隔和最大时间间隔中确定一个时间间隔来发送预定通知消息。可选地,目标代理设备可以根据预配置确定时间间隔,或者,目标代理设备可以根据业务繁忙程度和/或目标代理设备的运算能力确定时间间隔。可选地,目标代理设备确定的时间间隔可以向订阅设备通知,或者不向订阅设备通知。In still some embodiments, the first subscription request includes a minimum time interval and a maximum time interval, and the target proxy device may determine a time interval from the minimum time interval and the maximum time interval to send the predetermined notification message. Optionally, the target proxy device may determine the time interval based on the preconfiguration, or the target proxy device may determine the time interval based on business busyness and/or the computing capability of the target proxy device. Optionally, the time interval determined by the target proxy device may or may not be notified to the subscribing device.
其中,上报消息可以是任一个或多个目标节点设备向目标代理设备发送的消息,上报消息可以包括一个或多个所述目标节点设备中的目标资源的更新内容。The reporting message may be a message sent by any one or more target node devices to the target proxy device, and the reporting message may include updated content of target resources in one or more of the target node devices.
可选地,最大时间间隔可以小于或等于最小时间间隔乘以2的值。例如,最大时间间隔可以为最小时间间隔乘以2的值。又例如,最大时间间隔可以为最小时间间隔乘以1.2、1.5、1.8的值等,本申请实施例对此不作限制。Alternatively, the maximum time interval may be less than or equal to the value of the minimum time interval multiplied by 2. For example, the maximum time interval may be the value of the minimum time interval multiplied by 2. For another example, the maximum time interval may be the minimum time interval multiplied by a value of 1.2, 1.5, 1.8, etc., and the embodiment of the present application does not limit this.
在一些实施例中,在订阅设备向目标代理设备发送第一订阅请求之后,目标代理设备可以确定订阅设备是否有订阅一个或多个目标节点设备中每个目标节点设备的权限,和/或,可以确定目标代理设备自身是否有订阅一个或多个目标节点设备中每个目标节点设备的权限。In some embodiments, after the subscribing device sends the first subscription request to the target proxy device, the target proxy device may determine whether the subscribing device has permission to subscribe to each of the one or more target node devices, and/or, You can determine whether the target proxy device itself has permission to subscribe to each of one or more target node devices.
在另一些实施例中,在订阅设备向目标代理设备发送第一订阅请求之后,目标代理设备可以确定目 标组标识是否对应有订阅一个或多个目标节点设备中每个目标节点设备的权限。In other embodiments, after the subscribing device sends the first subscription request to the target proxy device, the target proxy device may determine whether the target group identifier corresponds to the right to subscribe to each of the one or more target node devices.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述订阅设备广播代理发现请求;The subscribing device broadcasts a proxy discovery request;
所述订阅设备接收一个或多个代理设备发送的代理发现响应;所述一个或多个代理设备包括所述目标代理设备,所述代理发现响应包括:所述代理设备支持订阅的目标节点设备的节点标识和/或所述代理设备支持订阅的目标节点设备组的组标识。The subscribing device receives a proxy discovery response sent by one or more proxy devices; the one or more proxy devices include the target proxy device, and the proxy discovery response includes: the proxy device supports a subscribed target node device. The node identifier and/or the group identifier of the target node device group to which the proxy device supports subscription.
这样,订阅设备接收的每个代理设备发送的代理发现响应中包括:每个所述代理设备支持订阅的目标节点设备的节点标识和/或每个所述代理设备支持订阅的目标节点设备组的组标识。In this way, the proxy discovery response sent by each proxy device received by the subscribing device includes: the node identification of the target node device that each proxy device supports subscription and/or the target node device group of each proxy device that supports subscription. Group ID.
在一些实施例中,所述代理发现请求包括一个或多个节点标识和/或一个或多个组标识;In some embodiments, the proxy discovery request includes one or more node identifiers and/or one or more group identifiers;
所述代理设备支持订阅的目标节点设备的节点标识,是从所述一个或多个节点标识中确定的;The node identifier of the target node device to which the proxy device supports subscription is determined from the one or more node identifiers;
所述代理设备支持订阅的目标节点设备组的组标识,是从所述一个或多个组标识中确定的。The group identifier of the target node device group to which the proxy device supports subscription is determined from the one or more group identifiers.
这样,每个所述代理设备支持订阅的目标节点设备的节点标识,是从代理发现请求中的所述一个或多个节点标识中确定的;每个所述代理设备支持订阅的目标节点设备组的组标识,是从代理发现请求中的所述一个或多个组标识中确定的。其中,不同目标节点设备发送的代理设备支持订阅的目标节点设备的节点标识和/或代理设备支持订阅的目标节点设备组的组标识可以相同或不同。In this way, each proxy device supports the node identification of the subscribed target node device, which is determined from the one or more node identifications in the proxy discovery request; each said proxy device supports the subscribed target node device group The group identifier is determined from the one or more group identifiers in the proxy discovery request. The node identifiers of the target node devices to which the proxy device supports subscription and/or the group identifiers of the target node device groups to which the proxy device supports subscription sent by different target node devices may be the same or different.
在另一些实施例中,所述代理发现请求中可以不携带一个或多个节点标识和/或一个或多个组标识,这样,每个代理设备可以向订阅设备发送每个代理设备支持订阅的目标节点设备的节点标识和/或每个所述代理设备支持订阅的目标节点设备组的组标识。In other embodiments, the agent discovery request may not carry one or more node identifiers and/or one or more group identifiers. In this way, each agent device may send to the subscribing device the information that each agent device supports subscription. The node identification of the target node device and/or the group identification of the target node device group to which each said proxy device supports subscription.
在一些实施例中,所述方法还包括:所述订阅设备从所述一个或多个代理设备中确定所述目标代理设备;其中,所述目标代理设备发送的所述代理发现响应包括:所述目标组标识和/或所述一个或多个目标节点设备的节点标识。In some embodiments, the method further includes: the subscribing device determines the target proxy device from the one or more proxy devices; wherein the proxy discovery response sent by the target proxy device includes: The target group identifier and/or the node identifier of the one or more target node devices.
这样,目标代理设备可以为一个或多个代理设备中的一个代理设备。In this way, the target proxy device may be one proxy device among one or more proxy devices.
可选地,一个或多个代理设备中N个代理设备向订阅设备发送的代理发现响应中,包括的支持订阅的目标节点设备的节点标识包括目标组标识对应的一个或多个目标节点设备的节点标识,订阅设备可以从N个代理设备中确定目标代理设备。其中,N为大于或等于1的整数。可选地,一个或多个代理设备中M个代理设备向订阅设备发送的代理发现响应中,包括的支持订阅的目标节点设备组的组标识包括目标组标识,订阅设备可以从M个代理设备中确定目标代理设备。其中,M为大于或等于1的整数。Optionally, in the agent discovery responses sent by the N agent devices among the one or more agent devices to the subscribing device, the node identifiers of the target node devices that support subscription include the node identifiers of the one or more target node devices corresponding to the target group identifiers. Node identification, the subscribing device can determine the target proxy device from N proxy devices. Among them, N is an integer greater than or equal to 1. Optionally, in the agent discovery response sent by M agent devices among one or more agent devices to the subscribing device, the group identification of the target node device group that supports subscription includes the target group identification. The subscribing device can obtain the information from the M agent devices. Determine the target proxy device. Among them, M is an integer greater than or equal to 1.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述订阅设备接收所述目标代理设备发送第一订阅成功消息;所述第一订阅成功消息用于指示对所述一个或多个目标节点设备中的所述目标资源订阅成功。The subscription device receives a first subscription success message sent by the target proxy device; the first subscription success message is used to indicate successful subscription to the target resource in the one or more target node devices.
这样,通过订阅设备接收目标代理设备发送第一订阅成功消息,订阅设备能够确定对所述一个或多个目标节点设备中的目标资源订阅成功。In this way, by receiving the first subscription success message sent by the target proxy device by the subscribing device, the subscribing device can determine that the subscription to the target resource in the one or more target node devices is successful.
可选地,在另一些实施例中,所述订阅设备接收所述目标代理设备发送第一订阅成功消息;所述第一订阅成功消息用于指示对所述一个或多个目标节点设备中部分目标节点设备的目标资源订阅成功。可选地,第一订阅成功消息可以用于指示对一个或多个目标节点设备中另一部分目标节点设备的目标资源订阅失败。可选地,第一订阅成功消息还可以用于指示对另一部分目标节点设备的目标资源订阅失败的原因。Optionally, in other embodiments, the subscribing device receives a first subscription success message sent by the target proxy device; the first subscription success message is used to indicate that some of the one or more target node devices The target resource subscription of the target node device is successful. Optionally, the first subscription success message may be used to indicate that the target resource subscription to another part of the one or more target node devices has failed. Optionally, the first subscription success message may also be used to indicate the reason why the target resource subscription to another part of the target node devices failed.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述订阅设备接收所述目标代理设备发送的第一通知消息和/或第二通知消息;The subscribing device receives the first notification message and/or the second notification message sent by the target proxy device;
其中,所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化。Wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
可选地,订阅设备可以每隔最小时间间隔检测通知消息,或者,订阅设备可以每隔最大时间间隔检测通知消息,或者,订阅设备可以持续性的检测通知消息。Optionally, the subscribing device may detect notification messages at minimum time intervals, or the subscribing device may detect notification messages at maximum time intervals, or the subscribing device may detect notification messages continuously.
在一些实施例中,所述订阅设备与所述目标代理设备之间传输的信息,是通过组密钥加密的信息。In some embodiments, the information transmitted between the subscribing device and the target proxy device is information encrypted by a group key.
可选地,订阅设备通过订阅设备的组密钥加密信息,目标代理设备通过目标代理设备的组密钥加密信息。Optionally, the subscribing device encrypts the information through the group key of the subscribing device, and the target proxy device encrypts the information through the group key of the target proxy device.
可选地,订阅设备的组密钥和目标代理设备的组密钥相同,或者,订阅设备的组密钥和目标代理设备的组密钥是密钥对。可选地,订阅设备的组密钥和目标代理设备的组密钥可以是预配置的。可选地,订阅设备可以确定目标代理设备的组密钥,并向目标代理设备发送目标代理设备的组密钥。可选地,目标代理设备可以确定订阅设备的组密钥,向订阅设备发送订阅设备的组密钥。可选地,目标节点设备可以确定订阅设备的组密钥和目标代理设备的组密钥,向订阅设备发送订阅设备的组密钥,以及向目标代 理设备发送目标代理设备的组密钥。Optionally, the group key of the subscribing device and the group key of the target proxy device are the same, or the group key of the subscribing device and the group key of the target proxy device are a key pair. Optionally, the group key of the subscribing device and the group key of the target proxy device may be preconfigured. Optionally, the subscribing device may determine the group key of the target proxy device and send the group key of the target proxy device to the target proxy device. Optionally, the target proxy device may determine the group key of the subscribing device and send the group key of the subscribing device to the subscribing device. Optionally, the target node device may determine the group key of the subscribing device and the group key of the target proxy device, send the group key of the subscribing device to the subscribing device, and send the group key of the target proxy device to the target proxy device.
可选地,订阅设备向目标代理设备发送的第一订阅请求中包括的信息,可以是通过组密钥加密的信息,以及目标代理设备向订阅设备发送的通知消息和/或第一订阅成功消息中包括的信息,是通过组密钥加密的信息。例如,第一订阅请求中可以包括以下至少之一是通过组密钥加密的信息:目标组标识、订阅目标信息、预定时间间隔(可选地,包括最小时间间隔和/或最大时间间隔)、一个或多个订阅标识。例如,若通知消息为第一通知消息,第一通知消息中包括的一个或多个所述目标节点设备发送的报告消息,是通过组密钥加密的信息。又例如,若通知消息为第二通知消息,第二通知消息中包括的用于指示所述一个或多个目标节点设备中的目标资源未变化的消息,是通过组密钥加密的消息。例如,第一订阅成功消息中包括的对所述一个或多个目标节点设备中的目标资源订阅成功的指示消息,是通过组密钥加密的消息。Optionally, the information included in the first subscription request sent by the subscribing device to the target proxy device may be information encrypted by the group key, and the notification message and/or the first subscription success message sent by the target proxy device to the subscribing device The information included in is encrypted with the group key. For example, the first subscription request may include at least one of the following information encrypted by a group key: target group identification, subscription target information, predetermined time interval (optionally, including a minimum time interval and/or a maximum time interval), One or more subscription IDs. For example, if the notification message is a first notification message, the report message sent by one or more of the target node devices included in the first notification message is information encrypted by a group key. For another example, if the notification message is a second notification message, the message included in the second notification message to indicate that the target resources in the one or more target node devices have not changed is a message encrypted by a group key. For example, the indication message included in the first subscription success message indicating successful subscription to target resources in the one or more target node devices is a message encrypted by a group key.
在一些实施例中,目标代理设备可以未配置有组密钥,而订阅设备和目标节点设备配置有组密钥。订阅设备与目标代理设备之间传输的信息中包括通过组密钥加密的信息和/或未通过组密钥加密的信息,可选地,目标代理设备与目标节点设备之间传输的信息中包括通过组密钥加密的信息和/或未通过组密钥加密的信息。其中,通过组密钥加密的信息可以是目标节点设备使用的信息,未通过组密钥加密的信息可以是目标代理设备使用的信息。In some embodiments, the target proxy device may not be configured with a group key, while the subscribing device and the target node device are configured with the group key. The information transmitted between the subscribing device and the target proxy device includes information encrypted by the group key and/or information not encrypted by the group key. Optionally, the information transmitted between the target proxy device and the target node device includes Information encrypted with a group key and/or information not encrypted with a group key. The information encrypted by the group key may be information used by the target node device, and the information not encrypted by the group key may be information used by the target proxy device.
在一些实施例中,所述第一订阅请求中包括未加密的以下至少之一:所述目标组标识、预定时间间隔,以及通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;In some embodiments, the first subscription request includes unencrypted at least one of the following: the target group identification, a predetermined time interval, and at least one of the following encrypted by a group key: subscription target information, subscription identification ;
其中,所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径;Wherein, the subscription target information is used to indicate the resource identifier and/or resource path of the target resource;
所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化;The predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device; the first notification message is used to indicate the time interval in the target node device. Update content of the target resource; the second notification message is used to indicate that the target resource in the target node device has not changed;
所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
在一些实施例中,所述预定时间间隔包括最小时间间隔和/或最大时间间隔;In some embodiments, the predetermined time interval includes a minimum time interval and/or a maximum time interval;
所述最小时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最小的时间间隔;所述最大时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最大的时间间隔;The minimum time interval is used to indicate the minimum time interval between two adjacent notification messages sent by the target proxy device to the subscription device; the maximum time interval is used to indicate the target proxy device sends a message to the subscription device. The maximum time interval between two adjacent notification messages sent by the device;
其中,所述相邻两个通知消息均为第一通知消息,或者均为第二通知消息,或者一个为第一通知消息,另一个为第二通知消息。Wherein, the two adjacent notification messages are both first notification messages, or both are second notification messages, or one is the first notification message and the other is the second notification message.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述订阅设备向所述目标代理设备发送代理配置簇(proxyconfig cluster);The subscribing device sends a proxy configuration cluster (proxyconfig cluster) to the target proxy device;
所述订阅设备接收所述目标代理设备发送的对所述代理配置簇的应答消息;The subscribing device receives a response message sent by the target proxy device to the proxy configuration cluster;
其中,所述代理配置簇包括以下至少之一:代理全部节点的指示信息、资源列表、组列表;Wherein, the agent configuration cluster includes at least one of the following: indication information, resource list, and group list of all agent nodes;
所述资源列表包括一个或多个节点标识;所述一个或多个节点标识包括所述一个或多个目标节点设备的节点标识;The resource list includes one or more node identifiers; the one or more node identifiers include node identifiers of the one or more target node devices;
所述组列表包括一个或多个组标识;所述一个或多个组标识包括所述目标组标识。The group list includes one or more group identifiers; the one or more group identifiers include the target group identifier.
这样,订阅设备设定目标代理设备的proxy config cluster,设定后该目标代理设备支持对特定组(即目标组标识对应的组,或者,目标组标识对应的一个或多个目标节点设备)的订阅。In this way, the subscription device sets the proxy config cluster of the target proxy device. After setting, the target proxy device supports a specific group (that is, the group corresponding to the target group ID, or one or more target node devices corresponding to the target group ID). subscription.
可选地,proxyconfig cluster定义了目标代理设备支持订阅的设备和/或组。表1为proxyconfig cluster定义的属性信息。Optionally, proxyconfig cluster defines the devices and/or groups to which the target proxy device supports subscriptions. Table 1 shows the attribute information defined by proxyconfig cluster.
表1Table 1
Figure PCTCN2022110575-appb-000001
Figure PCTCN2022110575-appb-000001
可选地,表1中的ID用于标识proxy config cluster。Optionally, the ID in Table 1 is used to identify the proxy config cluster.
可选地,表2为配置结构包括的内容。Optionally, Table 2 shows the content included in the configuration structure.
表2Table 2
Figure PCTCN2022110575-appb-000002
Figure PCTCN2022110575-appb-000002
Figure PCTCN2022110575-appb-000003
Figure PCTCN2022110575-appb-000003
可选地,表2中的ID用于标识对目标代理设备不同的配置。可选地,配置结构中包括的内容可以是标识ID为以下至少之一对应的内容:0、1、2。可选地,如果向所述目标代理设备发送的proxyconfig cluster中指示ProxyAllNodes,表明目标代理设备能够代理所有节点。可选地,在向所述目标代理设备发送的proxyconfig cluster中指示ProxyAllNodes,且bool类型标识为True的情况下,表明目标代理设备能够代理所有节点,和/或,在向所述目标代理设备发送的proxyconfig cluster中指示ProxyAllNodes,且bool类型标识为False的情况下,表明目标代理设备不能够代理所有节点。Optionally, the IDs in Table 2 are used to identify different configurations for the target proxy device. Optionally, the content included in the configuration structure may be content corresponding to at least one of the following identification IDs: 0, 1, and 2. Optionally, if ProxyAllNodes is indicated in the proxyconfig cluster sent to the target proxy device, it indicates that the target proxy device can proxy all nodes. Optionally, when ProxyAllNodes is indicated in the proxyconfig cluster sent to the target proxy device, and the bool type identifier is True, it indicates that the target proxy device can proxy all nodes, and/or, when sending to the target proxy device If ProxyAllNodes is indicated in proxyconfig cluster and the bool type flag is False, it indicates that the target proxy device cannot proxy all nodes.
可选地,如果向所述目标代理设备发送的proxyconfig cluster中指示SourceList,表明目标代理设备能够代理SourceList中的一个或多个节点标识对应的目标节点设备。Optionally, if SourceList is indicated in the proxyconfig cluster sent to the target proxy device, it indicates that the target proxy device can proxy the target node device corresponding to one or more node identifiers in the SourceList.
可选地,如果向所述目标代理设备发送的proxyconfig cluster中指示GroupList,表明目标代理设备能够代理GroupList中的一个或多个组标识对应的目标节点设备。Optionally, if the proxyconfig cluster sent to the target proxy device indicates GroupList, it indicates that the target proxy device can proxy the target node device corresponding to one or more group identifiers in the GroupList.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述订阅设备向所述一个或多个目标节点设备发送有效代理簇;所述有效代理簇包括以下至少之一:有效代理列表、有效组代理列表;The subscription device sends an effective agent cluster to the one or more target node devices; the effective agent cluster includes at least one of the following: an effective agent list, an effective group agent list;
所述有效代理列表包括:可订阅所述目标节点设备的代理标识;The effective proxy list includes: proxy identification that can subscribe to the target node device;
所述有效组代理列表包括:可订阅组中的所述目标节点设备的代理标识。The effective group proxy list includes: proxy identifiers of the target node devices in the subscribing group.
可选地,订阅设备向一个或多个目标节点设备中的每个目标节点设备均发送有效代理簇。可选地,订阅设备向每个目标节点设备发送的有效代理簇包括以下至少之一:有效代理列表、有效组代理列表。可选地,向不同目标节点设备发送的有效代理簇中包括的内容可以相同或不同。Optionally, the subscribing device sends valid proxy clusters to each of the one or more target node devices. Optionally, the effective agent cluster sent by the subscribing device to each target node device includes at least one of the following: an effective agent list and an effective group agent list. Optionally, content included in the effective proxy clusters sent to different target node devices may be the same or different.
可选地,一个或多个目标节点设备可以包括第一节点设备和第二节点设备。Optionally, the one or more target node devices may include a first node device and a second node device.
例如,向第一节点设备发送的有效代理簇中包括有效代理列表和/或有效组代理列表,其中,有效代理列表包括可订阅第一节点设备的代理标识,有效组代理列表包括可订阅组中的第一节点设备的代理标识。又例如,向第二节点设备发送的有效代理簇中包括有效代理列表和/或有效组代理列表,其中,有效代理列表包括可订阅第二节点设备的代理标识,有效组代理列表包括可订阅组中的第二节点设备的代理标识。For example, the effective agent cluster sent to the first node device includes a valid agent list and/or a valid group agent list, where the effective agent list includes an agent identifier that can be subscribed to the first node device, and the effective group agent list includes a group that can be subscribed to. The agent ID of the first node device. For another example, the effective agent cluster sent to the second node device includes a valid agent list and/or a valid group agent list, where the effective agent list includes an agent identifier that can subscribe to the second node device, and the effective group agent list includes a subscribing group. The agent ID of the second node device in .
需要说明的是,本申请实施例在未作特殊说明的情况下,目标节点设备可以是第一节点设备或第二节点设备。It should be noted that in this embodiment of the present application, unless otherwise specified, the target node device may be the first node device or the second node device.
可选地,在一些实施例中,目标组标识对应的一个或多个目标节点设备包括第一节点设备(groupNode1)和第二节点设备(group node2)。订阅设备需要向groupNode1和group node2设定有效代理簇(valid proxy cluster),Valid proxy cluster为该设备支持的可以订阅的proxy的列表。其中,表3为Valid proxy cluster中包括的内容。Optionally, in some embodiments, one or more target node devices corresponding to the target group identifier include a first node device (groupNode1) and a second node device (group node2). To subscribe to a device, you need to set a valid proxy cluster (valid proxy cluster) to groupNode1 and group node2. Valid proxy cluster is a list of proxies that the device supports that can be subscribed to. Among them, Table 3 shows the contents included in Valid proxy cluster.
表3table 3
Figure PCTCN2022110575-appb-000004
Figure PCTCN2022110575-appb-000004
可选地,表3中ID为1对应的内容是可选地,例如,Valid proxy cluster可以包括ID为1对应的内容,而不包括ID为3对应的内容,或者,Valid proxy cluster可以包括ID为1对应的内容,以及包括ID为3对应的内容。可选地,在一般的组订阅或普通订阅的场景下,使用已定义的validProxyList即可。但是在另一些组订阅的场景下,可能需要增加新的属性ValidGroupProxyList。Optionally, the content corresponding to ID 1 in Table 3 is optional. For example, Valid proxy cluster may include the content corresponding to ID 1 but not the content corresponding to ID 3, or the Valid proxy cluster may include ID The content corresponding to ID 1, and the content corresponding to ID 3. Optionally, in the scenario of general group subscription or ordinary subscription, you can use the defined validProxyList. However, in other group subscription scenarios, it may be necessary to add a new attribute ValidGroupProxyList.
在另一些实施例中,配置设备可以向所述目标代理设备发送代理配置簇。In other embodiments, the configuration device may send a proxy configuration cluster to the target proxy device.
在另一些实施例中,配置设备可以向所述一个或多个目标节点设备发送有效代理簇。In other embodiments, the configuration device may send valid proxy clusters to the one or more target node devices.
可选地,配置设备与订阅设备是不同的设备。可选地,配置设备向目标代理设备发送代理配置簇和/或向所述一个或多个目标节点设备发送有效代理簇,可以参照其它实施例中的描述,此处不作赘述。Optionally, the configuring device is a different device than the subscribing device. Optionally, the configuration device sends a proxy configuration cluster to the target proxy device and/or sends a valid proxy cluster to the one or more target node devices. The descriptions in other embodiments may be referred to and will not be described again here.
本申请还可以提供一种通信方法,该方法包括:配置设备向所述目标代理设备发送代理配置簇。This application may also provide a communication method, which method includes: a configuration device sends a proxy configuration cluster to the target proxy device.
本申请还可以提供另一种通信方法,该方法包括:配置设备向所述一个或多个目标节点设备发送有效代理簇。This application may also provide another communication method, which method includes: configuring a device to send a valid proxy cluster to the one or more target node devices.
图4为本申请实施例提供的另一种通信方法的流程示意图,如图4所示,该方法包括:Figure 4 is a schematic flow chart of another communication method provided by an embodiment of the present application. As shown in Figure 4, the method includes:
S401、目标代理设备接收订阅设备发送的第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备。S401. The target proxy device receives the first subscription request sent by the subscription device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or more target node devices.
S402、所述目标代理设备向所述一个或多个目标节点设备组播第二订阅请求;所述第二订阅请求 用于请求订阅所述目标节点设备中的目标资源。S402. The target proxy device multicasts a second subscription request to the one or more target node devices; the second subscription request is used to request to subscribe to target resources in the target node device.
S403、所述目标代理设备接收所述一个或多个目标节点设备发送的第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。S403. The target proxy device receives a second subscription success message sent by the one or more target node devices; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
可选地,目标代理设备向每个目标节点设备发送第二订阅请求,并接收每个目标节点设备发送的第二订阅成功消息。Optionally, the target proxy device sends a second subscription request to each target node device, and receives a second subscription success message sent by each target node device.
可选地,目标代理设备可以基于目标组标识确定目标组标识对应的组,然后在组中组播第二订阅请求。可选地,在目标组标识对应一个目标节点设备的情况下,目标代理设备向该一个目标节点设备单播或组播第二订阅请求,和/或,在目标组标识对应多个目标节点设备的情况下,目标代理设备向该多个目标节点设备单播或组播第二订阅请求。Optionally, the target proxy device may determine the group corresponding to the target group ID based on the target group ID, and then multicast the second subscription request in the group. Optionally, when the target group identifier corresponds to one target node device, the target proxy device unicasts or multicasts the second subscription request to the one target node device, and/or when the target group identifier corresponds to multiple target node devices. In this case, the target proxy device unicasts or multicasts the second subscription request to the plurality of target node devices.
例如,目标代理设备向第一节点设备发送的第二订阅请求用于请求订阅第一节点设备中的目标资源。又例如,目标代理设备向第二节点设备发送的第二订阅请求用于请求订阅第二节点设备中的目标资源。可选地,订阅第一节点设备中的目标资源,可以包括:订阅第一节点设备中的一个或多个资源。可选地,订阅第二节点设备中的目标资源,可以包括:订阅第二节点设备中的一个或多个资源。For example, the second subscription request sent by the target proxy device to the first node device is used to request to subscribe to the target resource in the first node device. For another example, the second subscription request sent by the target proxy device to the second node device is used to request to subscribe to the target resource in the second node device. Optionally, subscribing to the target resource in the first node device may include: subscribing to one or more resources in the first node device. Optionally, subscribing to the target resource in the second node device may include: subscribing to one or more resources in the second node device.
可选地,第一节点设备可以为一个或多个目标节点设备中的某一个目标节点设备。可选地,第二节点设备可以为一个或多个目标节点设备中的另一个目标节点设备。Optionally, the first node device may be a certain target node device among one or more target node devices. Optionally, the second node device may be another target node device among the one or more target node devices.
可选地,一个或多个目标节点设备中的每个目标节点设备可以向目标代理设备发送第二订阅成功消息。Optionally, each of the one or more target node devices may send a second subscription success message to the target proxy device.
在一些实施例中,所述第一订阅请求还包括订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。In some embodiments, the first subscription request further includes subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
在一些实施例中,所述第一订阅请求还包括;所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。In some embodiments, the first subscription request further includes: the subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and the target node device.
可选地,一个订阅标识用于标识所述订阅设备、所述目标代理设备以及一个目标节点设备之间的订阅关系。可选地,不同目标节点设备对应的订阅标识不同。Optionally, a subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and a target node device. Optionally, different target node devices have different subscription identifiers.
在一些实施例中,所述第一订阅请求还包括预定时间间隔;In some embodiments, the first subscription request further includes a predetermined time interval;
所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;The predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device;
其中,所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化。Wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
在一些实施例中,所述第二订阅请求包括:订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。In some embodiments, the second subscription request includes: subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
在一些实施例中,所述第二订阅请求还包括所述订阅设备向所述目标代理设备发送的订阅标识。在这种情况下,订阅标识是订阅设备确定的。In some embodiments, the second subscription request further includes a subscription identification sent by the subscribing device to the target proxy device. In this case, the subscription identity is determined by the subscribing device.
在另一些实施例中,所述第二订阅请求还包括所述目标代理设备确定的订阅标识。在这种情况下,订阅标识是目标代理设备确定的。In other embodiments, the second subscription request further includes a subscription identification determined by the target proxy device. In this case, the subscription identity is determined by the target proxy device.
在又一些实施例中,所述第二订阅成功消息包括所述目标节点设备确定的订阅标识。在这种情况下,订阅标识是目标节点设备确定的。例如,第一节点设备能够确定第一节点设备、订阅设备以及所述目标代理设备之间的订阅关系,从而得到第一节点设备对应的订阅标识,和/或,第二节点设备能够确定第二节点设备、订阅设备以及所述目标代理设备之间的订阅关系,从而得到第二节点设备对应的订阅标识。In some embodiments, the second subscription success message includes the subscription identification determined by the target node device. In this case, the subscription identity is determined by the target node device. For example, the first node device can determine the subscription relationship between the first node device, the subscription device and the target proxy device, thereby obtaining the subscription identification corresponding to the first node device, and/or the second node device can determine the second node device. The subscription relationship between the node device, the subscription device and the target proxy device is used to obtain the subscription identification corresponding to the second node device.
其中,所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。Wherein, the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device and the target node device.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述目标代理设备确定所述订阅设备和/或所述目标代理设备,具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。The target proxy device determines that the subscription device and/or the target proxy device has the authority to subscribe to the target resource in each of the one or more target node devices.
可选地,所述目标代理设备确定所述订阅设备具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。Optionally, the target proxy device determines that the subscribing device has the authority to subscribe to the target resource in each of the one or more target node devices.
示例性地,目标代理设备中可以配置有ACL,目标代理设备可以确定ACL是否存在与订阅设备对应的ACE,如果存在,则表明所述订阅设备具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限,和/或,如果不存在,则表明所述订阅设备不具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。For example, the target proxy device may be configured with an ACL, and the target proxy device may determine whether an ACE corresponding to the subscribing device exists in the ACL. If so, it indicates that the subscribing device has the ability to subscribe to each of the one or more target node devices. permission to the target resource in each target node device, and/or, if it does not exist, it indicates that the subscribing device does not have the permission to subscribe to the target resource in each of the one or more target node devices.
可选地,所述目标代理设备确定所述目标代理设备具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。Optionally, the target proxy device determines that the target proxy device has the authority to subscribe to the target resource in each of the one or more target node devices.
示例性地,目标代理设备中可以配置有ACL,目标代理设备可以确定ACL是否存在与目标代理设 备对应的ACE,如果存在,则表明所述目标代理设备具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限,和/或,如果不存在,则表明所述目标代理设备不具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。For example, the target proxy device may be configured with an ACL, and the target proxy device may determine whether an ACE corresponding to the target proxy device exists in the ACL. If so, it indicates that the target proxy device has subscribed to the one or more target node devices. and/or, if not present, indicating that the target proxy device does not have the authority to subscribe to the target resource in each of the one or more target node devices. permission.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述目标代理设备确定所述目标组标识对应的权限,包括订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。The target proxy device determines the permission corresponding to the target group identifier, including the permission to subscribe to the target resource in each of the one or more target node devices.
示例性地,目标代理设备中可以配置有ACL,目标代理设备可以确定ACL是否存在与目标组标识对应的ACE,如果存在,则表明所述目标组标识对应的权限,包括订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限,和/或,如果不存在,则表明所述目标组标识对应的权限,不包括订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。For example, the target proxy device may be configured with an ACL, and the target proxy device may determine whether there is an ACE corresponding to the target group ID in the ACL, and if so, indicate the permissions corresponding to the target group ID, including subscribing to the one or more The permissions of the target resources in each of the target node devices, and/or, if they do not exist, the permissions corresponding to the target group identifier, excluding subscribing to each of the one or more target node devices. Permissions for the target resource in the target node device.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述目标代理设备向所述一个或多个目标节点设备发送第二请求;所述第二请求用于请求所述目标节点设备对应的一个或多个代理设备的第二权限信息;所述一个或多个代理设备包括所述目标代理设备;所述一个或多个代理设备的第二权限信息,用于指示是否具有订阅所述目标节点设备中的目标资源的权限;The target proxy device sends a second request to the one or more target node devices; the second request is used to request second permission information of one or more proxy devices corresponding to the target node device; the one or multiple proxy devices include the target proxy device; the second permission information of the one or more proxy devices is used to indicate whether it has the permission to subscribe to the target resource in the target node device;
所述目标代理设备接收所述一个或多个目标节点设备发送的所述第二权限信息。The target proxy device receives the second permission information sent by the one or more target node devices.
可选地,目标代理设备可以向每个目标节点设备均发送第二请求。可选地,向第一节点设备发送的第二请求用于请求第一节点设备对应的一个或多个代理设备的第二权限信息,和/或,向第二节点设备发送的第二请求用于请求第二节点设备对应的一个或多个代理设备的第二权限信息。Optionally, the target proxy device may send the second request to each target node device. Optionally, the second request sent to the first node device is used to request the second permission information of one or more proxy devices corresponding to the first node device, and/or the second request sent to the second node device is used. Requesting the second permission information of one or more proxy devices corresponding to the second node device.
可选地,目标节点设备对应的一个或多个代理设备,可以包括能够订阅该目标节点设备的一个或多个代理设备,或者,目标节点设备中配置的所有代理设备标识对应的一个或多个代理设备。Optionally, one or more proxy devices corresponding to the target node device may include one or more proxy devices capable of subscribing to the target node device, or one or more proxy devices corresponding to all proxy device identifiers configured in the target node device. Agent device.
可选地,第二权限信息可以包括ACL,例如,第二权限信息可以是目标节点设备中存储的ACL中的所有的ACE,目标代理设备查看该所有ACE中是否包括目标代理设备和/或订阅设备的标识,或者,第二权限信息可以是第一订阅设备存储的ACL中的部分ACE,部分ACE可以包括目标代理设备和/或订阅设备的标识,或者,部分ACE可以为目标代理设备和/或订阅设备的标识。这样,通过获取部分ACE,能够减少目标代理设备的权限,减少了信息泄露的风险。Optionally, the second permission information may include an ACL. For example, the second permission information may be all ACEs in the ACL stored in the target node device. The target proxy device checks whether all ACEs include the target proxy device and/or subscription. The identification of the device, or the second permission information may be a partial ACE in the ACL stored by the first subscribing device. The partial ACE may include the identification of the target proxy device and/or the subscribing device, or the partial ACE may be the target proxy device and/or the subscribing device. or the ID of the subscribing device. In this way, by obtaining some ACEs, the permissions of the target proxy device can be reduced, reducing the risk of information leakage.
可选地,在本申请任一实施例中,订阅设备的标识,可以是目标APP的标识。Optionally, in any embodiment of this application, the identity of the subscribing device may be the identity of the target APP.
可选地,在第二权限信息中包括目标代理设备和/或订阅设备的标识的情况下,或者,在第二权限信息包括一个或多个比特信息,一个或多个比特信息指示目标代理设备和/或订阅设备具有订阅目标节点设备中的目标资源的权限的情况下,目标代理设备能够订阅目标节点设备中的目标资源。Optionally, when the second permission information includes the identification of the target proxy device and/or the subscribing device, or when the second permission information includes one or more bits of information, the one or more bits of information indicate the target proxy device. And/or if the subscribing device has the permission to subscribe to the target resource in the target node device, the target proxy device can subscribe to the target resource in the target node device.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述目标代理设备接收所述订阅设备广播的代理发现请求;The target proxy device receives the proxy discovery request broadcast by the subscribing device;
所述目标代理设备向所述订阅设备发送代理发现响应;所述代理发现响应包括:所述目标代理设备支持订阅的目标节点设备的节点标识和/或目标代理设备支持订阅的目标节点设备组的组标识。The target proxy device sends a proxy discovery response to the subscribing device; the proxy discovery response includes: the node identification of the target node device that the target proxy device supports subscription and/or the target node device group that the target proxy device supports subscription. Group ID.
在一些实施例中,所述代理发现请求包括一个或多个节点标识和/或一个或多个组标识;In some embodiments, the proxy discovery request includes one or more node identifiers and/or one or more group identifiers;
所述目标代理设备支持订阅的目标节点设备的节点标识,是从所述一个或多个节点标识中确定的;The node identifier of the target node device that the target proxy device supports subscription is determined from the one or more node identifiers;
所述目标代理设备支持订阅的目标节点设备组的组标识,是从所述一个或多个组标识中确定的。The group identifier of the target node device group to which the target proxy device supports subscription is determined from the one or more group identifiers.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述目标代理设备向所述订阅设备发送第一订阅成功消息;所述第一订阅成功消息用于指示对所述一个或多个目标节点设备中的所述目标资源订阅成功。The target proxy device sends a first subscription success message to the subscription device; the first subscription success message is used to indicate successful subscription to the target resource in the one or more target node devices.
在一些实施例中,所述订阅设备与所述目标代理设备之间传输的信息,是通过组密钥加密的信息。在一些实施例中,所述目标代理设备与所述目标节点设备之间传输的信息,是通过组密钥加密的信息。In some embodiments, the information transmitted between the subscribing device and the target proxy device is information encrypted by a group key. In some embodiments, the information transmitted between the target proxy device and the target node device is information encrypted by a group key.
可选地,每个目标节点设备可以通过每个目标节点设备的组密钥加密信息。可选地,不同的目标节点设备的组密钥可以相同,或者,不同的目标节点设备的组密钥可以不同。Optionally, each target node device may encrypt the information with each target node device's group key. Optionally, the group keys of different target node devices may be the same, or the group keys of different target node devices may be different.
可选地,目标节点设备的组密钥和目标代理设备的组密钥可以相同,或者,目标节点设备的组密钥和目标代理设备的组密钥可以是密钥对。可选地,目标节点设备的组密钥可以是预配置的。可选地,目标代理设备确定目标节点设备的组密钥,向目标节点设备发送节点设备的组密钥,或者,订阅设备确定目标节点设备的组密钥,向目标节点设备发送目标节点设备的组密钥。Optionally, the group key of the target node device and the group key of the target proxy device may be the same, or the group key of the target node device and the group key of the target proxy device may be a key pair. Optionally, the group key for the target node device may be preconfigured. Optionally, the target proxy device determines the group key of the target node device and sends the group key of the node device to the target node device, or the subscribing device determines the group key of the target node device and sends the group key of the target node device to the target node device. Group key.
在一些实施例中,所述第一订阅请求中包括未加密的以下至少之一:所述目标组标识、预定时间间隔,以及通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;所述第二订阅请求中包括所述通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;In some embodiments, the first subscription request includes unencrypted at least one of the following: the target group identification, a predetermined time interval, and at least one of the following encrypted by a group key: subscription target information, subscription identification ; The second subscription request includes at least one of the following encrypted by the group key: subscription target information, subscription identification;
其中,所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径;Wherein, the subscription target information is used to indicate the resource identifier and/or resource path of the target resource;
所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化;The predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device; the first notification message is used to indicate the time interval in the target node device. Update content of the target resource; the second notification message is used to indicate that the target resource in the target node device has not changed;
所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
在一些实施例中,所述预定时间间隔包括最小时间间隔和/或最大时间间隔;In some embodiments, the predetermined time interval includes a minimum time interval and/or a maximum time interval;
所述最小时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最小的时间间隔;The minimum time interval is used to indicate the minimum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device;
所述最大时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最大的时间间隔;The maximum time interval is used to indicate the maximum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device;
其中,所述相邻两个通知消息均为第一通知消息,或者均为第二通知消息,或者一个为第一通知消息,另一个为第二通知消息。Wherein, the two adjacent notification messages are both first notification messages, or both are second notification messages, or one is the first notification message and the other is the second notification message.
在一些实施例中,所述预定时间间隔包括最小时间间隔;所述方法还包括:In some embodiments, the predetermined time interval includes a minimum time interval; the method further includes:
在所述最小时间间隔内所述目标代理设备接收到一个或多个所述目标节点设备发送的报告消息的情况下,所述目标代理设备向所述订阅设备发送第一通知消息;If the target proxy device receives one or more report messages sent by the target node devices within the minimum time interval, the target proxy device sends a first notification message to the subscribing device;
其中,所述报告消息包括所述目标节点设备中的目标资源的更新内容;Wherein, the report message includes the updated content of the target resource in the target node device;
所述第一通知消息包括所述一个或多个所述目标节点设备中的目标资源的更新内容。The first notification message includes updated content of target resources in the one or more target node devices.
在申请任一实施例中,发送的报告消息的一个或多个所述目标节点设备,可以为目标组标识对应一个或多个目标节点设备中的部分或全部。In any embodiment of the application, one or more of the target node devices of the sent report message may be a target group identifier corresponding to part or all of the one or more target node devices.
例如,在最小时间间隔内,目标代理设备接收到目标节点设备发送的报告消息,目标节点设备发送的报告消息包括目标节点设备中的目标资源的更新内容,目标代理设备向订阅设备发送的第一通知消息包括目标节点设备中的目标资源的更新内容。For example, within the minimum time interval, the target proxy device receives a report message sent by the target node device. The report message sent by the target node device includes the updated content of the target resource in the target node device. The first message sent by the target proxy device to the subscribing device is The notification message includes updated content of the target resource in the target node device.
又例如,在最小时间间隔内,目标代理设备接收到第一节点设备发送的报告消息和第二节点设备发送的报告消息,第一节点设备发送的报告消息包括第一节点设备中的目标资源的更新内容,第二节点设备发送的报告消息包括第二节点设备中的目标资源的更新内容,目标代理设备向订阅设备发送的第一通知消息包括第一节点设备中的目标资源的更新内容和第二节点设备中的目标资源的更新内容。For another example, within the minimum time interval, the target proxy device receives a report message sent by the first node device and a report message sent by the second node device. The report message sent by the first node device includes information about the target resource in the first node device. Update content. The report message sent by the second node device includes the update content of the target resource in the second node device. The first notification message sent by the target proxy device to the subscribing device includes the update content of the target resource in the first node device and the first notification message. The updated content of the target resource in the two-node device.
在另一些实施例中,在最小时间间隔内所述目标代理设备没有接收到任意所述目标节点设备发送的报告消息的情况下,目标代理设备可以向订阅设备发送第二通知消息;所述第二通知消息用于指示所述一个或多个目标节点设备中的目标资源未变化。In other embodiments, if the target proxy device does not receive any report message sent by the target node device within the minimum time interval, the target proxy device may send a second notification message to the subscribing device; the third The second notification message is used to indicate that the target resources in the one or more target node devices have not changed.
在一些实施例中,所述预定时间间隔包括最小时间间隔和最大时间间隔;所述方法还包括:In some embodiments, the predetermined time interval includes a minimum time interval and a maximum time interval; the method further includes:
在所述最小时间间隔内所述目标代理设备没有接收到任意所述目标节点设备发送的报告消息,且在所述最大时间间隔内接收到一个或多个所述目标节点设备发送的报告消息的情况下,所述目标代理设备向所述订阅设备发送第一通知消息;The target agent device does not receive any report message sent by the target node device within the minimum time interval, and receives one or more report messages sent by the target node device within the maximum time interval. In this case, the target proxy device sends a first notification message to the subscribing device;
其中,所述报告消息包括所述目标节点设备中的目标资源的更新内容;Wherein, the report message includes the updated content of the target resource in the target node device;
所述第一通知消息包括所述一个或多个所述目标节点设备中的目标资源的更新内容。The first notification message includes updated content of target resources in the one or more target node devices.
这样,在最小时间间隔内所述目标代理设备没有接收到任意所述目标节点设备发送的报告消息的情况下,目标代理设备可以继续监听报告消息,直到在最大时间间隔内接收到一个或多个所述目标节点设备发送的报告消息。In this way, if the target proxy device does not receive any report message sent by the target node device within the minimum time interval, the target proxy device can continue to monitor the report message until one or more report messages are received within the maximum time interval. The report message sent by the target node device.
示例性地,以最大时间间隔为最小时间间隔的2倍举例,目标代理设备可以配置有时长为最小时间间隔的定时器,在该定时器超时之前,目标代理设备没有接收到任意所述目标节点设备发送的报告消息,目标代理设备可以重启该定时器,在最大时间间隔内接收到一个或多个所述目标节点设备发送的报告消息。另外,可选地,在该定时器超时的情况下,向所述订阅设备发送第一通知消息。For example, assuming that the maximum time interval is twice the minimum time interval, the target proxy device can be configured with a timer with a duration of the minimum time interval. Before the timer expires, the target proxy device does not receive any of the target nodes. For report messages sent by the device, the target proxy device can restart the timer and receive report messages sent by one or more target node devices within the maximum time interval. In addition, optionally, when the timer times out, a first notification message is sent to the subscribing device.
在一些实施例中,所述预定时间间隔包括最大时间间隔;所述方法还包括:In some embodiments, the predetermined time interval includes a maximum time interval; the method further includes:
在所述最大时间间隔内所述目标代理设备没有接收到任意所述目标节点设备发送的报告消息的情况下,所述目标代理设备向所述订阅设备发送第二通知消息;If the target proxy device does not receive any report message sent by the target node device within the maximum time interval, the target proxy device sends a second notification message to the subscribing device;
其中,所述第二通知消息用于指示所述一个或多个目标节点设备中的资源未变化。Wherein, the second notification message is used to indicate that resources in the one or more target node devices have not changed.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述目标代理设备接收所述订阅设备或配置设备发送的代理配置簇;The target proxy device receives the proxy configuration cluster sent by the subscription device or configuration device;
所述目标代理设备向所述订阅设备或所述配置设备发送对所述代理配置簇的应答消息;The target proxy device sends a response message to the proxy configuration cluster to the subscription device or the configuration device;
其中,所述代理配置簇包括以下至少之一:代理全部节点的指示信息、资源列表、组列表;Wherein, the agent configuration cluster includes at least one of the following: indication information, resource list, and group list of all agent nodes;
所述资源列表包括一个或多个节点标识;所述一个或多个节点标识包括所述一个或多个目标节点设备的节点标识;The resource list includes one or more node identifiers; the one or more node identifiers include node identifiers of the one or more target node devices;
所述组列表包括一个或多个组标识;所述一个或多个组标识包括所述目标组标识。The group list includes one or more group identifiers; the one or more group identifiers include the target group identifier.
图5为本申请实施例提供的又一种通信方法的流程示意图,如图5所示,该方法包括:Figure 5 is a schematic flow chart of another communication method provided by an embodiment of the present application. As shown in Figure 5, the method includes:
S501、目标节点设备接收目标代理设备组播的第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源。S501. The target node device receives a second subscription request multicast by the target proxy device; the second subscription request is used to request to subscribe to a target resource in the target node device.
S502、所述目标节点设备向所述目标代理设备发送第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。S502. The target node device sends a second subscription success message to the target proxy device; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
在一些实施例中,所述第二订阅请求包括:订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。In some embodiments, the second subscription request includes: subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
在一些实施例中,所述第二订阅请求包括所述订阅设备向所述目标代理设备发送的订阅标识;或者,In some embodiments, the second subscription request includes a subscription identification sent by the subscribing device to the target proxy device; or,
所述第二订阅请求包括所述目标代理设备确定的订阅标识;或者,The second subscription request includes the subscription identification determined by the target proxy device; or,
所述第二订阅成功消息包括所述目标节点设备确定的订阅标识;The second subscription success message includes the subscription identification determined by the target node device;
其中,所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。Wherein, the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device and the target node device.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述目标节点设备接收所述目标代理设备发送的第二请求;所述第二请求用于请求所述目标节点设备对应的一个或多个代理设备的第二权限信息;所述一个或多个代理设备包括所述目标代理设备;所述一个或多个代理设备的第二权限信息,用于指示是否具有订阅所述目标节点设备中的目标资源的权限;The target node device receives a second request sent by the target proxy device; the second request is used to request second permission information of one or more proxy devices corresponding to the target node device; the one or more proxy devices The proxy device includes the target proxy device; second permission information of the one or more proxy devices, used to indicate whether it has the permission to subscribe to the target resource in the target node device;
所述目标节点设备向所述目标代理设备发送所述第二权限信息。The target node device sends the second permission information to the target proxy device.
在一些实施例中,所述方法还包括:所述目标节点设备向所述目标代理设备发送报告消息;所述报告消息包括所述目标节点设备中的目标资源的更新内容。In some embodiments, the method further includes: the target node device sending a report message to the target proxy device; the report message includes updated content of the target resource in the target node device.
在一些实施例中,所述目标节点设备与所述目标代理设备之间传输的信息,是通过组密钥加密的信息。In some embodiments, the information transmitted between the target node device and the target proxy device is information encrypted by a group key.
在一些实施例中,所述第二订阅请求中包括通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;In some embodiments, the second subscription request includes at least one of the following encrypted by a group key: subscription target information, subscription identification;
其中,所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径;Wherein, the subscription target information is used to indicate the resource identifier and/or resource path of the target resource;
所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
在一些实施例中,所述方法还包括:所述目标节点设备接收订阅设备或配置设备发送的有效代理簇;所述有效代理簇包括以下至少之一:有效代理列表、有效组代理列表;所述有效代理列表包括:可订阅所述目标节点设备的代理标识;所述有效组代理列表包括:可订阅组中的所述目标节点设备的代理标识。In some embodiments, the method further includes: the target node device receiving an effective agent cluster sent by a subscription device or a configuration device; the effective agent cluster includes at least one of the following: an effective agent list, an effective group agent list; The effective agent list includes: the agent identification of the target node device that can be subscribed; the effective group agent list includes: the agent identification of the target node device in the subscribing group.
可选地,所述目标节点设备可以向订阅设备或配置设备发送确认信息。Optionally, the target node device may send confirmation information to the subscribing device or the configuration device.
图6为本申请实施例提供的再一种通信方法的流程示意图,如图6所示,其中,该通信方法的流程包括配置流程(S601至S604)、代理发现和选择流程(S605至S619)以及报告消息处理流程(S620至S624),该方法包括:Figure 6 is a schematic flow chart of yet another communication method provided by an embodiment of the present application. As shown in Figure 6, the process of the communication method includes a configuration process (S601 to S604) and an agent discovery and selection process (S605 to S619). And the report message processing process (S620 to S624), the method includes:
S601、所述订阅设备向所述目标代理设备发送代理配置簇;目标代理设备将目标代理设备的标识添加到目标组和一个新属性的组列表中。S601. The subscription device sends a proxy configuration cluster to the target proxy device; the target proxy device adds the identification of the target proxy device to the target group and a group list of a new attribute.
可选地,订阅设备可以使用订阅设备支持的组标识设置代理配置簇。所述代理配置簇包括以下至少之一:代理全部节点的指示信息、资源列表、组列表。可选地,关于代理配置簇的说明可以参照上述表1和表2的相关记载,此处不再赘述。Optionally, a subscribing device can set a proxy configuration cluster using a group ID supported by the subscribing device. The agent configuration cluster includes at least one of the following: indication information of all agent nodes, a resource list, and a group list. Optionally, for the description of the proxy configuration cluster, please refer to the relevant records in Table 1 and Table 2 above, which will not be described again here.
可选地,目标组中可以包括一个或多个节点标识,目标组中的一个或多个节点标识,可以与资源列表中的一个或多个节点标识相同,或者,可以与组列表对应的一个或多个节点标识相同。目标代理设备可以将目标代理设备的标识添加至目标组中。Optionally, the target group may include one or more node identifiers. The one or more node identifiers in the target group may be the same as one or more node identifiers in the resource list, or may be the same as one or more node identifiers in the group list. Or multiple nodes have the same ID. The target proxy device can add the target proxy device's ID to the target group.
可选地,新属性的组列表可以为表2中ID为2对应的组列表。可选地,目标代理设备将目标代理设备的标识添加到组列表中的每个组中,或者,目标代理设备可以将目标代理设备的标识添加到组列表中待订阅的组标识对应的组中。Optionally, the group list of the new attribute can be the group list corresponding to ID 2 in Table 2. Optionally, the target proxy device adds the identity of the target proxy device to each group in the group list, or the target proxy device can add the identity of the target proxy device to the group corresponding to the group identity to be subscribed to in the group list. .
可选地,组列表可以包括一个或多个组标识,目标代理设备可以将目标代理设备的标识,分别添加至组列表中一个或多个组标识中的一个或多个组标识对应的组中,或者,目标代理设备可以将目标代理设备的标识添加到待订阅的组标识对应的组中。Optionally, the group list may include one or more group identifiers, and the target proxy device may add the identifier of the target proxy device to a group corresponding to one or more group identifiers among the one or more group identifiers in the group list. , or the target proxy device can add the target proxy device's identity to the group corresponding to the group identity to be subscribed.
S602、目标代理设备向订阅设备发送对所述代理配置簇的应答消息。S602. The target proxy device sends a response message to the proxy configuration cluster to the subscribing device.
在图6中,应答消息可以为200OK。在其它实施例中,应答消息可以为其它。In Figure 6, the response message may be 200 OK. In other embodiments, the response message may be other.
S603、订阅设备向第一节点设备设置关于代理的有效代理簇。S603. The subscribing device sets a valid proxy cluster about the proxy to the first node device.
在S603中,订阅设备可以向第一节点设备发送第一有效代理簇。可选地,进一步,订阅设备可以接收第一节点设备发送的应答消息。In S603, the subscribing device may send the first valid proxy cluster to the first node device. Optionally, further, the subscribing device may receive a response message sent by the first node device.
第一有效代理簇包括以下至少之一:支持订阅第一节点设备的代理标识、支持订阅组中的第一节点 设备的代理标识。The first effective agent cluster includes at least one of the following: an agent identifier that supports subscription of the first node device, and an agent identifier that supports the first node device in the subscription group.
这样,订阅设备需要向第一节点设备和第二节点设备设定有效代理簇。有效代理簇为该设备支持的可以订阅的proxy的列表。In this way, the subscribing device needs to set a valid proxy cluster to the first node device and the second node device. The effective proxy cluster is the list of proxies supported by the device that can be subscribed to.
其中,关于有效代理簇的说明可以参照上述表3的相关记载,此处不再赘述。For descriptions of effective proxy clusters, please refer to the relevant records in Table 3 above, and will not be described again here.
S604、订阅设备向第二节点设备设置关于代理的有效代理簇。S604. The subscribing device sets a valid proxy cluster about the proxy to the second node device.
在S604中,订阅设备向第二节点设备发送第二有效代理簇。可选地,进一步,订阅设备可以接收第二节点设备发送的应答消息。In S604, the subscribing device sends the second valid proxy cluster to the second node device. Optionally, further, the subscribing device may receive a response message sent by the second node device.
第二有效代理簇包括以下至少之一:支持订阅第二节点设备的代理标识、支持订阅组中的第二节点设备的代理标识。The second effective agent cluster includes at least one of the following: an agent identifier that supports subscribing to the second node device, and an agent identifier that supports the second node device in the subscription group.
在上述设定完成之后,如果订阅设备需要使用该代理设备进行组订阅的场景下,订阅设备可以发送代理发现消息。在该消息中可携带指定的groupID(对应S605中的目标组标识)作为查询条件,如果不携带,需要代理设备在应答中携带其支持的所有的Node Id(对应节点标识)和/或Group ID。After the above settings are completed, if the subscribing device needs to use the proxy device for group subscription, the subscribing device can send a proxy discovery message. The message can carry the specified groupID (corresponding to the target group ID in S605) as a query condition. If not, the proxy device needs to carry all the Node IDs (corresponding to the node IDs) and/or Group IDs it supports in the response. .
S605、订阅设备广播代理发现请求。S605. The subscribing device broadcasts the agent discovery request.
可选地,在一些实施例中,在代理发现请求中可以包括目标组标识。可选地,目标组标识可以包括一个或多个组标识。可选地,一个或多个组标识可以包括目标组标识。Optionally, in some embodiments, the target group identification may be included in the proxy discovery request. Optionally, the target group identification may include one or more group identifications. Optionally, the one or more group identifications may include a target group identification.
需要说明的是,图6仅仅示出了代理发现请求向目标代理设备发送,在其它实施例中,代理发现请求还向其它代理设备发送。It should be noted that FIG. 6 only shows that the proxy discovery request is sent to the target proxy device. In other embodiments, the proxy discovery request is also sent to other proxy devices.
S606、目标代理设备向订阅设备发送代理发现响应。S606. The target proxy device sends a proxy discovery response to the subscribing device.
可选地,代理发现响应中可以包括目标代理设备支持的组标识。例如,目标代理设备支持的组标识可以被封装在代理发现响应中。Optionally, the proxy discovery response may include a group identifier supported by the target proxy device. For example, the group ID supported by the target proxy device may be encapsulated in the proxy discovery response.
可选地,可以存在多个代理设备(包括目标代理设备)向订阅设备发送代理发现响应。可选地。每个代理设备向订阅设备发送的代理发现响应可以包括该每个代理设备支持的组标识。Optionally, there may be multiple proxy devices (including target proxy devices) that send proxy discovery responses to the subscribing device. optionally. The proxy discovery response sent by each proxy device to the subscribing device may include the group identification supported by that each proxy device.
这样,目标代理设备回复应答消息,在应答消息中携带其自身的节点标识以及可能的可订阅的Node(节点)和/或group(组)信息。可选地,Node(节点)和group(组)信息可以为代理设备支持的节点标识和/或组标识。In this way, the target proxy device replies with a response message, carrying its own node identification and possible subscribeable Node (node) and/or group (group) information in the response message. Optionally, the Node and group information may be node identifiers and/or group identifiers supported by the proxy device.
S607、订阅设备可以从多个代理设备中确定一个代理设备(即目标代理设备)。S607. The subscribing device can determine a proxy device (ie, the target proxy device) from multiple proxy devices.
这样,订阅设备需要确定一个代理设备作为其代理去订阅指定的组。其中,确定的代理设备为目标代理设备。In this way, the subscribing device needs to determine a proxy device as its proxy to subscribe to the specified group. The determined proxy device is the target proxy device.
S608、订阅设备向目标代理设备发送第一订阅请求。S608. The subscribing device sends the first subscription request to the target proxy device.
可选地,第一订阅请求可以携带以下至少之一:目标组标识、目标资源的资源标识、目标资源的资源路径、最小时间间隔、最大时间间隔。Optionally, the first subscription request may carry at least one of the following: target group identifier, resource identifier of the target resource, resource path of the target resource, minimum time interval, and maximum time interval.
这样,订阅设备向目标代理设备发送第一订阅请求,该请求中携带了预订阅的group ID,可选地,还可以携带最大上报时间(即最大时间间隔)和最小上报时间(即最小时间间隔)。最大上报时间为即使在该时间内没有通知消息,亦会发送一个通知消息。最小上报时间为即使在该时间内有多个上报消息,也不会上报,目标代理设备可以将多个上报消息集中,待最小上报时间期满后一起上报。In this way, the subscribing device sends the first subscription request to the target proxy device. The request carries the pre-subscribed group ID. Optionally, it can also carry the maximum reporting time (i.e., the maximum time interval) and the minimum reporting time (i.e., the minimum time interval). ). The maximum reporting time is such that even if there is no notification message within this time, a notification message will be sent. The minimum reporting time means that even if there are multiple reporting messages within this time, they will not be reported. The target proxy device can collect multiple reporting messages and report them together after the minimum reporting time expires.
在S608之后,可以执行ACL进程。After S608, the ACL process can be executed.
S609、目标代理设备强制执行节点设备ACL。S609. The target proxy device enforces the node device ACL.
S610、目标代理设备从第一节点设备获得关于订阅设备的ACL权限。S610. The target proxy device obtains the ACL permission on the subscribing device from the first node device.
S611、目标代理设备从第二节点设备获得关于订阅设备的ACL权限。S611. The target proxy device obtains the ACL permission on the subscribing device from the second node device.
其中,关于订阅设备的ACL权限,可以包括关于目标APP的ACL权限。Among them, the ACL permissions about the subscribing device may include the ACL permissions about the target APP.
可选地,目标代理设备从第一节点设备和第二节点设备获得关于订阅设备的ACL权限,可以包括:目标代理设备分别向第一节点设备和第二节点设备发送用于获得ACL的请求,接收第一节点设备和第二节点设备分别发送的ACL中的ACE,从而通过ACE确定订阅设备和/或目标代理设备是否有订阅权限。例如,该第一节点设备和/或第二节点设备发送的ACL中的ACE,对应订阅设备标识和/或目标代理设备标识,则确定订阅设备和/或目标代理设备具有订阅第一节点设备和/或第二节点设备的权限。Optionally, the target proxy device obtains the ACL permissions on the subscribing device from the first node device and the second node device, which may include: the target proxy device sends a request for obtaining the ACL to the first node device and the second node device respectively, Receive the ACEs in the ACLs sent by the first node device and the second node device respectively, thereby determining whether the subscribing device and/or the target proxy device has the subscription authority through the ACE. For example, if the ACE in the ACL sent by the first node device and/or the second node device corresponds to the subscribing device identification and/or the target proxy device identification, then it is determined that the subscribing device and/or the target proxy device has the ability to subscribe to the first node device and /or the permissions of the second node device.
可选地,目标代理设备还可以确定订阅设备是否具有订阅第一节点设备和第二节点设备中的目标资源的权限。Optionally, the target proxy device may also determine whether the subscribing device has the authority to subscribe to the target resource in the first node device and the second node device.
可选地,在一些实施例中,目标代理设备收到第一订阅请求之后,可以首先确认自身是否有订阅组的权限(对应上述实施例中的所述目标代理设备确定所述目标代理设备,具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限),然后需要去各个组成员去确认目标代理设备的权限。确认权限有两种方法:Optionally, in some embodiments, after receiving the first subscription request, the target proxy device may first confirm whether it has the authority to subscribe to the group (corresponding to the target proxy device in the above embodiment, determine the target proxy device, has the permission to subscribe to the target resource in each of the one or more target node devices), and then needs to go to each group member to confirm the permission of the target proxy device. There are two ways to confirm permissions:
(1)查看Group ID对各个成员是否有订阅的权限,订阅设备和代理设备也是组成员(对应上述实 施例中的所述目标代理设备确定所述目标组标识对应的权限,包括订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限)。(1) Check whether the Group ID has subscription rights for each member. The subscription device and the proxy device are also group members (corresponding to the target proxy device in the above embodiment, determine the rights corresponding to the target group ID, including subscribing to the one or permissions to the target resource in each of multiple target node devices).
(2)查看订阅设备(或者目标APP)对订阅各个成员是否有订阅的权限(对应上述实施例中的所述目标代理设备确定所述订阅设备具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限)。(2) Check whether the subscribing device (or target APP) has the permission to subscribe to each member (corresponding to the target agent device in the above embodiment, it is determined that the subscribing device has the authority to subscribe to each of the one or more target node devices). permissions to the target resource in each target node device).
ACL可以包括以下至少之一的内容:主题(Subjects):节点ID(NodeID)or组ID(Group ID),订阅目标(Targets):权限(Privilege)。ACL can include at least one of the following contents: Subjects: NodeID or Group ID, Subscription Targets: Privilege.
S612、目标代理设备向第一节点设备发送第二订阅请求。S612. The target proxy device sends a second subscription request to the first node device.
可选地,第二订阅请求是组播发送的,第二订阅请求可以为针对目标资源(可以对应上述实施例中的目标组标识对应的目标节点设备中的目标资源)的组订阅请求。可选地,目标资源为订阅设备需要订阅的资源。可选地,目标资源的资源标识和/或资源路径可以通过第一订阅请求携带。Optionally, the second subscription request is sent by multicast, and the second subscription request may be a group subscription request for the target resource (which may correspond to the target resource in the target node device corresponding to the target group identifier in the above embodiment). Optionally, the target resource is a resource that the subscribing device needs to subscribe to. Optionally, the resource identification and/or resource path of the target resource may be carried in the first subscription request.
S613、目标代理设备向第二节点设备发送第二订阅请求。S613. The target proxy device sends a second subscription request to the second node device.
可选地,向第一节点设备发送的第二订阅请求,与向第二节点设备发送的第二订阅请求中包括的信息可以相同。可选地,目标代理设备可以基于目标组标识,向与目标组标识对应的第一节点设备和第二节点设备组播第二订阅请求。Optionally, the second subscription request sent to the first node device may contain the same information as the second subscription request sent to the second node device. Optionally, the target proxy device may multicast the second subscription request to the first node device and the second node device corresponding to the target group ID based on the target group ID.
这样,目标代理设备发送组订阅消息,该消息是一个组播消息。消息内容包括了订阅的目标资源的资源标识和/或资源路径。In this way, the target proxy device sends a group subscription message, which is a multicast message. The message content includes the resource identifier and/or resource path of the subscribed target resource.
S614、第一节点设备生成订阅标识1。S614. The first node device generates subscription identifier 1.
S615、第二节点设备生成订阅标识2。S615. The second node device generates subscription identifier 2.
这样,第一节点设备和第二节点设备生成订阅标识(subscribeID),该subscribeID用来标识一种订阅关系。可选地,在一些实施例中,每个目标节点设备生成一个单独subscribeID,不同的目标节点设备生成不同的subscribeID,在另一些实施例中,subscribeID由目标代理设备生成,并在订阅通知(即上述的第二订阅请求)中通知给目标节点设备,需要保证该subscribeID不冲突。In this way, the first node device and the second node device generate a subscription ID (subscribeID), and the subscribeID is used to identify a subscription relationship. Optionally, in some embodiments, each target node device generates a separate subscribeID, and different target node devices generate different subscribeIDs. In other embodiments, the subscribeID is generated by the target proxy device and is used when subscribing to notifications (i.e. Notify the target node device in the above second subscription request), and it is necessary to ensure that the subscribeID does not conflict.
S616、第一节点设备向目标代理设备发送第二订阅成功消息;该第二订阅成功消息携带订阅标识1。S616. The first node device sends a second subscription success message to the target proxy device; the second subscription success message carries the subscription identifier 1.
S617、第一节点设备记录订阅标识1。S617. The first node device records the subscription identifier 1.
S618、第二节点设备向目标代理设备发送第二订阅成功消息;该第二订阅成功消息携带订阅标识2。S618. The second node device sends a second subscription success message to the target proxy device; the second subscription success message carries the subscription identifier 2.
这样,第二节点设备向目标代理设备返回订阅成功应答消息。In this way, the second node device returns a subscription success response message to the target proxy device.
S619、第一节点设备记录订阅标识2。S619. The first node device records the subscription identifier 2.
以下说明目标代理设备检测到报告消息时的行为:The following describes the behavior of the target agent device when it detects a report message:
S620、目标代理设备接收来自第一节点设备发送的报告消息。S620. The target proxy device receives the report message sent from the first node device.
这样,当收一个报告消息时,该报告消息是应为订阅设备(或者目标APP)订阅的内容发生了变化,所发送的报告消息。In this way, when a report message is received, the report message should be a report message sent when the content subscribed by the subscribing device (or target APP) has changed.
S621、目标代理设备确定设置的最大间隔值的定时器没有超时。S621. The target proxy device determines that the timer of the set maximum interval value has not timed out.
可选地,最大间隔值可以为上述实施例中的最小时间间隔。Optionally, the maximum interval value may be the minimum time interval in the above embodiment.
可选地,目标代理设备收到消息之后,会检查最大间隔值;该值标识的是2个通知消息之间的最大间隔。Optionally, after receiving the message, the target proxy device will check the maximum interval value; this value identifies the maximum interval between two notification messages.
S622、目标代理设备接收来自第二节点设备发送的报告消息。S622. The target proxy device receives the report message sent from the second node device.
S623、聚合第一节点设备发送的报告消息和第二节点设备发送的报告消息。S623. Aggregate the report message sent by the first node device and the report message sent by the second node device.
S624、在最大间隔值的定时器超时的情况下,目标代理设备向订阅设备发送第一通知消息,第一通知消息携带聚合第一节点设备发送的报告消息和第二节点设备发送的报告消息得到的消息。S624. When the timer of the maximum interval value times out, the target proxy device sends a first notification message to the subscribing device. The first notification message carries and aggregates the report message sent by the first node device and the report message sent by the second node device to obtain news.
这样,如果在该最大间隔值期间,有新的报告消息发生,则目标代理设备需要将上述两个报告消息进行集中处理,再生成一个发给目标APP的通知消息。In this way, if a new report message occurs during the maximum interval value, the target proxy device needs to centrally process the above two report messages and then generate a notification message sent to the target APP.
需要理解地是,订阅设备、目标代理设备、第一节点设备以及第二节点设备可以执行S601至624中的部分步骤或全部步骤,本申请实施例对此不作限制。It should be understood that the subscribing device, the target proxy device, the first node device, and the second node device can perform some or all of the steps in S601 to S624, and this embodiment of the present application does not limit this.
图7为本申请另一实施例提供的一种通信方法的流程示意图,如图7所示,其中,该通信方法的流程包括配置流程(S701至S704)、代理发现和选择流程(S705至S713)以及报告消息处理流程(S714至S718),图7对应的实施例与图6对应的实施例的主要区别是目标代理设备不需要加入到指定group中,proxy没有组秘钥,无法感知组消息的内容,仅负责消息的转发和通知消息的汇聚。而图6对应的实施例中,订阅设备、目标代理设备、第一节点设备和第二节点设备均具有组密钥,在图7对应的实施例中,该方法包括:Figure 7 is a schematic flow chart of a communication method provided by another embodiment of the present application. As shown in Figure 7, the process of the communication method includes a configuration process (S701 to S704), an agent discovery and selection process (S705 to S713) ) and the report message processing flow (S714 to S718). The main difference between the embodiment corresponding to Figure 7 and the embodiment corresponding to Figure 6 is that the target proxy device does not need to join the specified group. The proxy does not have a group secret key and cannot sense group messages. The content is only responsible for the forwarding of messages and the aggregation of notification messages. In the embodiment corresponding to Figure 6, the subscription device, the target agent device, the first node device and the second node device all have group keys. In the embodiment corresponding to Figure 7, the method includes:
S701、所述订阅设备向所述目标代理设备发送代理配置簇。S701. The subscribing device sends a proxy configuration cluster to the target proxy device.
可选地,S701还可以包括目标代理设备将目标代理设备的标识添加到目标组和一个新属性的组列 表中。Optionally, S701 may also include the target proxy device adding the identification of the target proxy device to the target group and a group list of a new attribute.
S702、目标代理设备向订阅设备发送对所述代理配置簇的应答消息。S702. The target proxy device sends a response message to the proxy configuration cluster to the subscribing device.
在图7中,应答消息可以为200OK。在其它实施例中,应答消息可以为其它。In Figure 7, the response message may be 200 OK. In other embodiments, the response message may be other.
S703、订阅设备向第一节点设备设置关于代理的有效代理簇。S703. The subscribing device sets a valid proxy cluster about the proxy to the first node device.
S704、订阅设备向第二节点设备设置关于代理的有效代理簇。S704. The subscribing device sets a valid proxy cluster about the proxy to the second node device.
S705、订阅设备广播代理发现请求。S705. The subscribing device broadcasts a proxy discovery request.
S706、目标代理设备向订阅设备发送代理发现响应。S706. The target proxy device sends a proxy discovery response to the subscribing device.
S707、订阅设备可以从多个代理设备中确定一个代理设备。S707. The subscribing device can determine a proxy device from multiple proxy devices.
可选地,关于S701至S707的说明,可以参照图6对应的实施例中的S601至S607的相关说明,此处不再赘述。Optionally, for descriptions of S701 to S707, reference may be made to the relevant descriptions of S601 to S607 in the embodiment corresponding to FIG. 6 , which will not be described again here.
S708、订阅设备向目标代理设备发送第一订阅请求。S708. The subscribing device sends the first subscription request to the target proxy device.
可选地,第一订阅请求可以携带以下至少之一:目标组标识、目标资源的资源标识、目标资源的资源路径、最小时间间隔、最大时间间隔、订阅标识。其中,目标组标识、最小时间间隔、最大时间间隔中的至少之一为非加密的信息,目标资源的资源标识和/或资源路径、订阅标识中的至少之一为通过组密钥加密的信息。Optionally, the first subscription request may carry at least one of the following: target group identification, resource identification of the target resource, resource path of the target resource, minimum time interval, maximum time interval, and subscription identification. Wherein, at least one of the target group identification, minimum time interval, and maximum time interval is unencrypted information, and at least one of the resource identification and/or resource path and subscription identification of the target resource is information encrypted by the group key. .
这样,订阅设备向目标代理设备发送第一订阅请求(在另一些实施例中可以称为订阅代理消息),在该消息中包含了未加密的目标组标识,以及加密的订阅标识和/或订阅目标信息。可选地,第一订阅请求还可以包括未加密的最小时间间隔和/或最大时间间隔。In this way, the subscribing device sends a first subscription request (which may be called a subscription agent message in other embodiments) to the target proxy device, in which the message contains the unencrypted target group identifier, the encrypted subscription identifier and/or the subscription target information. Optionally, the first subscription request may also include an unencrypted minimum time interval and/or a maximum time interval.
S709、目标代理设备向第一节点设备发送第二订阅请求。S709. The target proxy device sends a second subscription request to the first node device.
S710、目标代理设备向第二节点设备发送第二订阅请求。S710. The target proxy device sends a second subscription request to the second node device.
可选地,第二订阅请求是组播发送的,即第二订阅请求为针对目标资源的组订阅请求。Optionally, the second subscription request is sent by multicast, that is, the second subscription request is a group subscription request for the target resource.
可选地,第二订阅请求携带目标资源的资源标识和/或资源路径、订阅标识。其中,目标资源的资源标识和/或资源路径、订阅标识中的至少之一为通过组密钥加密的信息。Optionally, the second subscription request carries the resource identification and/or resource path and subscription identification of the target resource. Wherein, at least one of the resource identification and/or resource path and subscription identification of the target resource is information encrypted by the group key.
在实施过程中,目标代理设备无需解析上述加密的信息,向指定第一节点设备和第二节点设备发送组订阅消息,在消息载荷(payload)中携带了加密的信息。第一节点设备和第二节点设备收到加密的信息后使用组秘钥解析,得道订阅内容(即订阅目标信息)和订阅标识。可选地,第一节点设备和第二节点设备生成订阅成功消息,订阅成功消息也可能使用组秘钥进行加密。During the implementation process, the target proxy device does not need to parse the above encrypted information and sends a group subscription message to the designated first node device and the second node device, and the message payload carries the encrypted information. After receiving the encrypted information, the first node device and the second node device use the group secret key to analyze and obtain the subscription content (ie, subscription target information) and subscription identification. Optionally, the first node device and the second node device generate a subscription success message, and the subscription success message may also be encrypted using a group secret key.
S711、第一节点设备向目标代理设备发送第二订阅成功消息。S711. The first node device sends a second subscription success message to the target proxy device.
S712、第二节点设备向目标代理设备发送第二订阅成功消息。S712. The second node device sends a second subscription success message to the target proxy device.
S713、目标代理设备向订阅设备发送第一订阅成功消息。S713. The target proxy device sends the first subscription success message to the subscribing device.
这样,目标代理设备将上述订阅成功消息集合后返回给订阅设备。In this way, the target proxy device collects the above subscription success messages and returns them to the subscribing device.
以下说明目标代理设备检测到报告消息时的行为:The following describes the behavior of the target agent device when it detects a report message:
S714、目标代理设备接收来自第一节点设备发送的报告消息。S714. The target proxy device receives the report message sent from the first node device.
S715、目标代理设备确定设置的最大间隔值的定时器没有超时。S715. The target proxy device determines that the timer of the set maximum interval value has not timed out.
S716、目标代理设备接收来自第二节点设备发送的报告消息。S716. The target proxy device receives the report message sent from the second node device.
S717、聚合第一节点设备发送的报告消息和第二节点设备发送的报告消息。S717. Aggregate the report message sent by the first node device and the report message sent by the second node device.
S718、在最大间隔值的定时器超时的情况下,目标代理设备向订阅设备发送第一通知消息,第一通知消息携带聚合第一节点设备发送的报告消息和第二节点设备发送的报告消息得到的消息。S718. When the timer of the maximum interval value times out, the target proxy device sends a first notification message to the subscribing device. The first notification message carries and aggregates the report message sent by the first node device and the report message sent by the second node device. news.
可选地,关于S714至S718的说明,可以参照图6对应的实施例中的S620至S624的相关说明,此处不再赘述。Optionally, for descriptions of S714 to S718, reference may be made to the relevant descriptions of S620 to S624 in the embodiment corresponding to FIG. 6 , which will not be described again here.
需要理解地是,订阅设备、目标代理设备、第一节点设备以及第二节点设备可以执行S701至718中的部分步骤或全部步骤,本申请实施例对此不作限制。It should be understood that the subscribing device, the target proxy device, the first node device, and the second node device may perform some or all of the steps in S701 to S718, and this is not limited in the embodiment of the present application.
需要说明的是,第一节点设备以及第二节点设备为一个或多个目标节点设备中的设备。It should be noted that the first node device and the second node device are devices in one or more target node devices.
在本申请实施例中,可以一次订阅一组设备,通过确定一个subscribe proxy(对应上述的目标代理设备),可以通过目标代理设备订阅组设备(对应上述实施例中的第一节点设备和/或第二节点设备),并对报告消息进行集合和管理,简化目标APP对订阅的管理。In the embodiment of this application, a group of devices can be subscribed at a time. By determining a subscribe proxy (corresponding to the above-mentioned target proxy device), the group device (corresponding to the first node device and/or the above-mentioned embodiment) can be subscribed through the target proxy device. Second node device), collects and manages report messages, and simplifies the management of subscriptions by the target APP.
以上结合附图详细描述了本申请的优选实施方式,但是,本申请并不限于上述实施方式中的具体细节,在本申请的技术构思范围内,可以对本申请的技术方案进行多种简单变型,这些简单变型均属于本申请的保护范围。例如,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合,为了避免不必要的重复,本申请对各种可能的组合方式不再另行说明。又例如,本申请的各种不同的实施方式之间也可以进行任意组合,只要其不违背本申请的思想,其同样应当视为本申请所公开的内容。又例如,在不冲突的前提下,本申请描述的各个实施例和/或各个实施 例中的技术特征可以和现有技术任意的相互组合,组合之后得到的技术方案也应落入本申请的保护范围。The preferred embodiments of the present application have been described in detail above with reference to the accompanying drawings. However, the present application is not limited to the specific details of the above-mentioned embodiments. Within the scope of the technical concept of the present application, various simple modifications can be made to the technical solutions of the present application. These simple modifications all belong to the protection scope of this application. For example, each specific technical feature described in the above-mentioned specific embodiments can be combined in any suitable way without conflict. In order to avoid unnecessary repetition, this application will no longer describe various possible combinations. Specify otherwise. For another example, any combination of various embodiments of the present application can be carried out. As long as they do not violate the idea of the present application, they should also be regarded as the contents disclosed in the present application. For another example, on the premise of no conflict, the various embodiments described in this application and/or the technical features in each embodiment can be arbitrarily combined with the existing technology, and the technical solution obtained after the combination shall also fall within the scope of this application. protected range.
还应理解,在本申请的各种方法实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。此外,在本申请实施例中,术语“下行”、“上行”和“侧行”用于表示信号或数据的传输方向,其中,“下行”用于表示信号或数据的传输方向为从站点发送至小区的用户设备的第一方向,“上行”用于表示信号或数据的传输方向为从小区的用户设备发送至站点的第二方向,“侧行”用于表示信号或数据的传输方向为从用户设备1发送至用户设备2的第三方向。例如,“下行信号”表示该信号的传输方向为第一方向。另外,本申请实施例中,术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。具体地,A和/或B可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should also be understood that in the various method embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its functions and internal logic, and should not be used in this application. The execution of the examples does not constitute any limitations. In addition, in the embodiments of this application, the terms "downlink", "uplink" and "sidelink" are used to indicate the transmission direction of signals or data, where "downlink" is used to indicate that the transmission direction of signals or data is from the station. The first direction to the user equipment of the cell, "uplink" is used to indicate that the transmission direction of the signal or data is the second direction from the user equipment of the cell to the site, and "sidelink" is used to indicate that the transmission direction of the signal or data is A third direction sent from User Device 1 to User Device 2. For example, "downlink signal" indicates that the transmission direction of the signal is the first direction. In addition, in the embodiment of this application, the term "and/or" is only an association relationship describing associated objects, indicating that three relationships can exist. Specifically, A and/or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this article generally indicates that the related objects are an "or" relationship.
图8为本申请实施例提供的通信装置的结构组成示意图,应用于订阅设备,如图8所示,所述通信装置800包括:通信单元801,用于向目标代理设备发送第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备,所述第一订阅请求用于订阅所述一个或多个目标节点设备中的目标资源。Figure 8 is a schematic structural diagram of a communication device provided by an embodiment of the present application, which is applied to a subscription device. As shown in Figure 8, the communication device 800 includes: a communication unit 801, used to send a first subscription request to the target proxy device; The first subscription request includes a target group identifier, the target group identifier corresponds to one or more target node devices, and the first subscription request is used to subscribe to target resources in the one or more target node devices.
在一些实施例中,通信装置800还包括:确定单元,用于确定第一订阅请求。In some embodiments, the communication device 800 further includes: a determining unit configured to determine the first subscription request.
在一些实施例中,所述第一订阅请求还包括订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。In some embodiments, the first subscription request further includes subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
在一些实施例中,所述第一订阅请求还包括订阅标识;所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。In some embodiments, the first subscription request further includes a subscription identifier; the subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and the target node device.
在一些实施例中,所述第一订阅请求还包括预定时间间隔;所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;其中,所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化。In some embodiments, the first subscription request further includes a predetermined time interval; the predetermined time interval is used to indicate the time for the target proxy device to send the first notification message and/or the second notification message to the subscribing device. interval; wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
在一些实施例中,通信单元801,还用于:广播代理发现请求;接收一个或多个代理设备发送的代理发现响应;所述一个或多个代理设备包括所述目标代理设备,所述代理发现响应包括:所述代理设备支持订阅的目标节点设备的节点标识和/或所述代理设备支持订阅的目标节点设备组的组标识。In some embodiments, the communication unit 801 is also configured to: broadcast a proxy discovery request; receive a proxy discovery response sent by one or more proxy devices; the one or more proxy devices include the target proxy device, and the proxy The discovery response includes: the node identifier of the target node device to which the proxy device supports subscription and/or the group identifier of the target node device group to which the proxy device supports subscription.
在一些实施例中,所述代理发现请求包括一个或多个节点标识和/或一个或多个组标识;In some embodiments, the proxy discovery request includes one or more node identifiers and/or one or more group identifiers;
所述代理设备支持订阅的目标节点设备的节点标识,是从所述一个或多个节点标识中确定的;The node identifier of the target node device to which the proxy device supports subscription is determined from the one or more node identifiers;
所述代理设备支持订阅的目标节点设备组的组标识,是从所述一个或多个组标识中确定的。The group identifier of the target node device group to which the proxy device supports subscription is determined from the one or more group identifiers.
在一些实施例中,确定单元,还用于:从所述一个或多个代理设备中确定所述目标代理设备;其中,所述目标代理设备发送的所述代理发现响应包括:所述目标组标识和/或所述一个或多个目标节点设备的节点标识。In some embodiments, the determining unit is further configured to: determine the target proxy device from the one or more proxy devices; wherein the proxy discovery response sent by the target proxy device includes: the target group Identity and/or node identification of the one or more target node devices.
在一些实施例中,通信单元801,还用于:接收所述目标代理设备发送第一订阅成功消息;所述第一订阅成功消息用于指示对所述一个或多个目标节点设备中的所述目标资源订阅成功。In some embodiments, the communication unit 801 is further configured to: receive a first subscription success message sent by the target proxy device; the first subscription success message is used to indicate that all of the one or more target node devices are The target resource is subscribed successfully.
在一些实施例中,通信单元801,还用于:接收所述目标代理设备发送的第一通知消息和/或第二通知消息;In some embodiments, the communication unit 801 is also configured to: receive the first notification message and/or the second notification message sent by the target proxy device;
其中,所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化。Wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
在一些实施例中,所述订阅设备与所述目标代理设备之间传输的信息,是通过组密钥加密的信息。In some embodiments, the information transmitted between the subscribing device and the target proxy device is information encrypted by a group key.
在一些实施例中,所述第一订阅请求中包括未加密的以下至少之一:所述目标组标识、预定时间间隔,以及通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;In some embodiments, the first subscription request includes unencrypted at least one of the following: the target group identification, a predetermined time interval, and at least one of the following encrypted by a group key: subscription target information, subscription identification ;
其中,所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径;Wherein, the subscription target information is used to indicate the resource identifier and/or resource path of the target resource;
所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化;The predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device; the first notification message is used to indicate the time interval in the target node device. Update content of the target resource; the second notification message is used to indicate that the target resource in the target node device has not changed;
所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
在一些实施例中,所述预定时间间隔包括最小时间间隔和/或最大时间间隔;所述最小时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最小的时间间隔;所述最大时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最大的时间间隔;其中,所述相邻两个通知消息均为第一通知消息,或者均为第二通知消息,或者一个为第一通知消息,另一个为第二通知消息。In some embodiments, the predetermined time interval includes a minimum time interval and/or a maximum time interval; the minimum time interval is used to indicate the interval between two adjacent notification messages sent by the target proxy device to the subscribing device. The minimum time interval; the maximum time interval is used to indicate the maximum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device; wherein the two adjacent notification messages are both The first notification messages are either both second notification messages, or one is the first notification message and the other is the second notification message.
在一些实施例中,通信单元801,还用于:向所述目标代理设备发送代理配置簇;接收所述目标代 理设备发送的对所述代理配置簇的应答消息;其中,所述代理配置簇包括以下至少之一:代理全部节点的指示信息、资源列表、组列表;所述资源列表包括一个或多个节点标识;所述一个或多个节点标识包括所述一个或多个目标节点设备的节点标识;所述组列表包括一个或多个组标识;所述一个或多个组标识包括所述目标组标识。In some embodiments, the communication unit 801 is further configured to: send a proxy configuration cluster to the target proxy device; receive a response message to the proxy configuration cluster sent by the target proxy device; wherein, the proxy configuration cluster Including at least one of the following: indication information, resource list, and group list of all proxy nodes; the resource list includes one or more node identifiers; the one or more node identifiers include the one or more target node devices Node identifier; the group list includes one or more group identifiers; the one or more group identifiers include the target group identifier.
在一些实施例中,通信单元801,还用于:向所述一个或多个目标节点设备发送有效代理簇;所述有效代理簇包括以下至少之一:有效代理列表、有效组代理列表;In some embodiments, the communication unit 801 is also configured to: send an effective agent cluster to the one or more target node devices; the effective agent cluster includes at least one of the following: an effective agent list, an effective group agent list;
所述有效代理列表包括:可订阅所述目标节点设备的代理标识;The effective proxy list includes: proxy identification that can subscribe to the target node device;
所述有效组代理列表包括:可订阅组中的所述目标节点设备的代理标识。The effective group proxy list includes: proxy identifiers of the target node devices in the subscribing group.
图9为本申请实施例提供的另一通信装置的结构组成示意图,应用于目标代理设备,如图9所示,所述通信装置900包括:Figure 9 is a schematic structural composition diagram of another communication device provided by an embodiment of the present application, which is applied to a target proxy device. As shown in Figure 9, the communication device 900 includes:
通信单元901,用于接收订阅设备发送的第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备;Communication unit 901, configured to receive a first subscription request sent by a subscription device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or more target node devices;
所述通信单元901,还用于向所述一个或多个目标节点设备组播第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源;The communication unit 901 is further configured to multicast a second subscription request to the one or more target node devices; the second subscription request is used to request to subscribe to target resources in the target node device;
所述通信单元,还用于接收所述一个或多个目标节点设备发送的第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。The communication unit is further configured to receive a second subscription success message sent by the one or more target node devices; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
在一些实施例中,所述通信装置900还包括:确定单元,用于确定第二订阅请求。In some embodiments, the communication device 900 further includes: a determining unit configured to determine the second subscription request.
在一些实施例中,所述第一订阅请求还包括订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。In some embodiments, the first subscription request further includes subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
在一些实施例中,所述第一订阅请求还包括订阅标识;所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。In some embodiments, the first subscription request further includes a subscription identifier; the subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and the target node device.
在一些实施例中,所述第一订阅请求还包括预定时间间隔;所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;其中,所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化。In some embodiments, the first subscription request further includes a predetermined time interval; the predetermined time interval is used to indicate the time for the target proxy device to send the first notification message and/or the second notification message to the subscribing device. interval; wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
在一些实施例中,所述第二订阅请求包括:订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。In some embodiments, the second subscription request includes: subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
在一些实施例中,所述第二订阅请求还包括所述订阅设备向所述目标代理设备发送的订阅标识;或者,所述第二订阅请求还包括所述目标代理设备确定的订阅标识;或者,所述第二订阅成功消息包括所述目标节点设备确定的订阅标识;其中,所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。In some embodiments, the second subscription request further includes a subscription identification sent by the subscribing device to the target proxy device; or, the second subscription request further includes a subscription identification determined by the target proxy device; or , the second subscription success message includes a subscription identifier determined by the target node device; wherein the subscription identifier is used to identify a subscription relationship between the subscription device, the target proxy device, and the target node device.
在一些实施例中,确定单元,还用于:确定所述订阅设备和/或所述目标代理设备,具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。In some embodiments, the determining unit is further configured to: determine that the subscribing device and/or the target proxy device has the authority to subscribe to the target resource in each of the one or more target node devices. .
在一些实施例中,确定单元,还用于:确定所述目标组标识对应的权限,包括订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。In some embodiments, the determining unit is further configured to determine the permissions corresponding to the target group identification, including the permissions to subscribe to the target resources in each of the one or more target node devices.
在一些实施例中,通信单元901,还用于:向所述一个或多个目标节点设备发送第二请求;所述第二请求用于请求所述目标节点设备对应的一个或多个代理设备的第二权限信息;所述一个或多个代理设备包括所述目标代理设备;所述一个或多个代理设备的第二权限信息,用于指示是否具有订阅所述目标节点设备中的目标资源的权限;接收所述一个或多个目标节点设备发送的所述第二权限信息。In some embodiments, the communication unit 901 is further configured to: send a second request to the one or more target node devices; the second request is used to request one or more proxy devices corresponding to the target node device. The second permission information of the one or more proxy devices includes the target proxy device; the second permission information of the one or more proxy devices is used to indicate whether to subscribe to the target resource in the target node device. permission; receiving the second permission information sent by the one or more target node devices.
在一些实施例中,通信单元901,还用于:接收所述订阅设备广播的代理发现请求;向所述订阅设备发送代理发现响应;所述一个或多个代理设备包括所述目标代理设备,所述代理发现响应包括:所述目标代理设备支持订阅的目标节点设备的节点标识和/或目标代理设备支持订阅的目标节点设备组的组标识。In some embodiments, the communication unit 901 is also configured to: receive a proxy discovery request broadcast by the subscribing device; send a proxy discovery response to the subscribing device; the one or more proxy devices include the target proxy device, The agent discovery response includes: a node identifier of a target node device to which the target agent device supports subscription and/or a group identifier of a target node device group to which the target agent device supports subscription.
在一些实施例中,所述代理发现请求包括一个或多个节点标识和/或一个或多个组标识;In some embodiments, the proxy discovery request includes one or more node identifiers and/or one or more group identifiers;
所述目标代理设备支持订阅的目标节点设备的节点标识,是从所述一个或多个节点标识中确定的;The node identifier of the target node device that the target proxy device supports subscription is determined from the one or more node identifiers;
所述目标代理设备支持订阅的目标节点设备组的组标识,是从所述一个或多个组标识中确定的。The group identifier of the target node device group to which the target proxy device supports subscription is determined from the one or more group identifiers.
在一些实施例中,通信单元901,还用于:向所述订阅设备发送第一订阅成功消息;所述第一订阅成功消息用于指示对所述一个或多个目标节点设备中的所述目标资源订阅成功。In some embodiments, the communication unit 901 is further configured to: send a first subscription success message to the subscription device; the first subscription success message is used to indicate that the one or more target node devices are The target resource is subscribed successfully.
在一些实施例中,所述订阅设备与所述目标代理设备之间传输的信息,是通过组密钥加密的信息;和/或,所述目标代理设备与所述目标节点设备之间传输的信息,是通过组密钥加密的信息。In some embodiments, the information transmitted between the subscribing device and the target proxy device is information encrypted by a group key; and/or the information transmitted between the target proxy device and the target node device Information is information encrypted by a group key.
在一些实施例中,所述第一订阅请求中包括未加密的以下至少之一:所述目标组标识、预定时间间隔,以及通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;所述第二订阅请求中包括所述通 过组密钥加密的以下至少之一:订阅目标信息、订阅标识;In some embodiments, the first subscription request includes unencrypted at least one of the following: the target group identification, a predetermined time interval, and at least one of the following encrypted by a group key: subscription target information, subscription identification ; The second subscription request includes at least one of the following encrypted by the group key: subscription target information, subscription identification;
其中,所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径;Wherein, the subscription target information is used to indicate the resource identifier and/or resource path of the target resource;
所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化;The predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device; the first notification message is used to indicate the time interval in the target node device. Update content of the target resource; the second notification message is used to indicate that the target resource in the target node device has not changed;
所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
在一些实施例中,所述预定时间间隔包括最小时间间隔和/或最大时间间隔;所述最小时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最小的时间间隔;所述最大时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最大的时间间隔;其中,所述相邻两个通知消息均为第一通知消息,或者均为第二通知消息,或者一个为第一通知消息,另一个为第二通知消息。In some embodiments, the predetermined time interval includes a minimum time interval and/or a maximum time interval; the minimum time interval is used to indicate the interval between two adjacent notification messages sent by the target proxy device to the subscribing device. The minimum time interval; the maximum time interval is used to indicate the maximum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device; wherein the two adjacent notification messages are both The first notification messages are either both second notification messages, or one is the first notification message and the other is the second notification message.
在一些实施例中,所述预定时间间隔包括最小时间间隔;通信单元901,还用于:在所述最小时间间隔内所述目标代理设备接收到一个或多个所述目标节点设备发送的报告消息的情况下,向所述订阅设备发送第一通知消息;其中,所述报告消息包括所述目标节点设备中的目标资源的更新内容;所述第一通知消息包括所述一个或多个所述目标节点设备中的目标资源的更新内容。In some embodiments, the predetermined time interval includes a minimum time interval; the communication unit 901 is further configured to: within the minimum time interval, the target proxy device receives one or more reports sent by the target node device. In the case of a message, send a first notification message to the subscribing device; wherein the report message includes the updated content of the target resource in the target node device; the first notification message includes the one or more Describes the updated content of the target resource in the target node device.
在一些实施例中,所述预定时间间隔包括最小时间间隔和最大时间间隔;通信单元901,还用于:在所述最小时间间隔内所述目标代理设备没有接收到任意所述目标节点设备发送的报告消息,且在所述最大时间间隔内接收到一个或多个所述目标节点设备发送的报告消息的情况下,向所述订阅设备发送第一通知消息;其中,所述报告消息包括所述目标节点设备中的目标资源的更新内容;所述第一通知消息包括所述一个或多个所述目标节点设备中的目标资源的更新内容。In some embodiments, the predetermined time interval includes a minimum time interval and a maximum time interval; the communication unit 901 is also configured to: within the minimum time interval, the target proxy device does not receive any message sent by the target node device. a report message, and if a report message sent by one or more target node devices is received within the maximum time interval, send a first notification message to the subscribing device; wherein the report message includes the The update content of the target resource in the target node device; the first notification message includes the update content of the target resource in the one or more target node devices.
在一些实施例中,所述预定时间间隔包括最大时间间隔;通信单元901,还用于:在所述最大时间间隔内所述目标代理设备没有接收到任意所述目标节点设备发送的报告消息的情况下,向所述订阅设备发送第二通知消息;其中,所述第二通知消息用于指示所述一个或多个目标节点设备中的资源未变化。In some embodiments, the predetermined time interval includes a maximum time interval; the communication unit 901 is further configured to: within the maximum time interval, the target proxy device does not receive any report message sent by the target node device. In this case, a second notification message is sent to the subscribing device; wherein the second notification message is used to indicate that resources in the one or more target node devices have not changed.
在一些实施例中,通信单元901,还用于:接收所述订阅设备或配置设备发送的代理配置簇;向所述订阅设备或所述配置设备发送对所述代理配置簇的应答消息;其中,所述代理配置簇包括以下至少之一:代理全部节点的指示信息、资源列表、组列表;所述资源列表包括一个或多个节点标识;所述一个或多个节点标识包括所述一个或多个节点设备的节点标识;所述组列表包括一个或多个组标识;所述一个或多个组标识包括所述目标组标识。In some embodiments, the communication unit 901 is further configured to: receive the agent configuration cluster sent by the subscribing device or the configuration device; send a response message to the agent configuration cluster to the subscribing device or the configuration device; wherein , the agent configuration cluster includes at least one of the following: indication information, resource lists, and group lists of all agent nodes; the resource list includes one or more node identifiers; the one or more node identifiers include the one or Node identifiers of multiple node devices; the group list includes one or more group identifiers; the one or more group identifiers include the target group identifier.
图10为本申请实施例提供的又一通信装置的结构组成示意图,应用于目标节点设备,如图10所示,所述通信装置1000包括:通信单元1001,用于接收目标代理设备组播的第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源;所述通信单元1001,还用于向所述目标代理设备发送第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。Figure 10 is a schematic structural composition diagram of another communication device provided by an embodiment of the present application, which is applied to a target node device. As shown in Figure 10, the communication device 1000 includes: a communication unit 1001, used to receive multicast messages from the target agent device. a second subscription request; the second subscription request is used to request to subscribe to the target resource in the target node device; the communication unit 1001 is also used to send a second subscription success message to the target proxy device; the third The second subscription success message indicates that the subscription to the target resource in the target node device is successful.
在一些实施例中,所述通信装置1000还包括:确定单元,用于确定第二订阅成功消息。In some embodiments, the communication device 1000 further includes: a determining unit configured to determine a second subscription success message.
在一些实施例中,所述第二订阅请求包括:订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。In some embodiments, the second subscription request includes: subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
在一些实施例中,所述第二订阅请求包括所述订阅设备向所述目标代理设备发送的订阅标识;或者,In some embodiments, the second subscription request includes a subscription identification sent by the subscribing device to the target proxy device; or,
所述第二订阅请求包括所述目标代理设备确定的订阅标识;或者,所述第二订阅成功消息包括所述目标节点设备确定的订阅标识;其中,所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The second subscription request includes a subscription identifier determined by the target proxy device; or the second subscription success message includes a subscription identifier determined by the target node device; wherein the subscription identifier is used to identify the subscription device , the subscription relationship between the target proxy device and the target node device.
在一些实施例中,通信单元1001,还用于:接收所述目标代理设备发送的第二请求;所述第二请求用于请求所述目标节点设备对应的一个或多个代理设备的第二权限信息;所述一个或多个代理设备包括所述目标代理设备;所述一个或多个代理设备的第二权限信息,用于指示是否具有订阅所述目标节点设备中的目标资源的权限;向所述目标代理设备发送所述第二权限信息。In some embodiments, the communication unit 1001 is further configured to: receive a second request sent by the target proxy device; the second request is used to request a second request from one or more proxy devices corresponding to the target node device. Permission information; the one or more proxy devices include the target proxy device; the second permission information of the one or more proxy devices is used to indicate whether it has the permission to subscribe to the target resource in the target node device; Send the second permission information to the target proxy device.
在一些实施例中,通信单元1001,还用于:向所述目标代理设备发送报告消息;所述报告消息包括所述目标节点设备中的目标资源的更新内容。In some embodiments, the communication unit 1001 is further configured to: send a report message to the target proxy device; the report message includes the update content of the target resource in the target node device.
在一些实施例中,所述目标节点设备与所述目标代理设备之间传输的信息,是通过组密钥加密的信息。In some embodiments, the information transmitted between the target node device and the target proxy device is information encrypted by a group key.
在一些实施例中,所述第二订阅请求中包括通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;In some embodiments, the second subscription request includes at least one of the following encrypted by a group key: subscription target information, subscription identification;
其中,所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径;Wherein, the subscription target information is used to indicate the resource identifier and/or resource path of the target resource;
所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
在一些实施例中,通信单元1001,还用于:接收订阅设备或配置设备发送的有效代理簇;所述有 效代理簇包括以下至少之一:有效代理列表、有效组代理列表;所述有效代理列表包括:可订阅所述目标节点设备的代理标识;所述有效组代理列表包括:可订阅组中的所述目标节点设备的代理标识。In some embodiments, the communication unit 1001 is also configured to: receive an effective agent cluster sent by a subscribing device or a configuration device; the effective agent cluster includes at least one of the following: an effective agent list, an effective group agent list; the effective agent The list includes: the agent identification of the target node device that can be subscribed; and the effective group agent list includes: the agent identification of the target node device in the subscribing group.
本领域技术人员应当理解,本申请实施例的上述通信装置的相关描述可以参照本申请实施例的通信方法的相关描述进行理解。Persons skilled in the art should understand that the relevant description of the above-mentioned communication device in the embodiment of the present application can be understood with reference to the relevant description of the communication method in the embodiment of the present application.
图11为本申请实施例提供的一种通信设备示意性结构图,该通信设备1100可以包括以下之一:订阅设备、目标代理设备、目标节点设备。图11所示的通信设备1100可以包括处理器1110和存储器1120,所述存储器1120存储有可在处理器1110上运行的计算机程序,所述处理器1110执行所述程序时实现上述任一实施例中的通信方法。Figure 11 is a schematic structural diagram of a communication device provided by an embodiment of the present application. The communication device 1100 may include one of the following: a subscription device, a target agent device, and a target node device. The communication device 1100 shown in Figure 11 may include a processor 1110 and a memory 1120. The memory 1120 stores a computer program that can be run on the processor 1110. When the processor 1110 executes the program, any of the above embodiments can be implemented. communication methods.
可选地,存储器1120可以是独立于处理器1110的一个单独的器件,也可以集成在处理器1110中。Alternatively, the memory 1120 may be a separate device independent of the processor 1110, or may be integrated into the processor 1110.
在一些实施例中,如图11所示,通信设备1100还可以包括收发器1130,处理器1110可以控制该收发器1130与其他设备进行通信,具体地,可以向其他设备发送信息或数据,或接收其他设备发送的信息或数据。In some embodiments, as shown in Figure 11, the communication device 1100 may also include a transceiver 1130, and the processor 1110 may control the transceiver 1130 to communicate with other devices, specifically, may send information or data to other devices, or Receive information or data from other devices.
其中,收发器1130可以包括发射机和接收机。收发器1130还可以进一步包括天线,天线的数量可以为一个或多个。Among them, the transceiver 1130 may include a transmitter and a receiver. The transceiver 1130 may further include an antenna, and the number of antennas may be one or more.
在一些实施例中,该通信设备1100具体可为本申请实施例的订阅设备、目标代理设备、目标节点设备,并且该通信设备1100可以实现本申请实施例的各个方法中由订阅设备、目标代理设备、目标节点设备实现的相应流程,为了简洁,在此不再赘述。In some embodiments, the communication device 1100 may specifically be a subscription device, a target agent device, and a target node device in the embodiments of the present application, and the communication device 1100 may implement the subscription device, target agent, etc. in each method of the embodiments of the present application. For the sake of simplicity, the corresponding processes for device and target node device implementation will not be described again here.
本申请实施例还提供了一种计算机存储介质,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现本申请任一实施例中的通信方法。Embodiments of the present application also provide a computer storage medium that stores one or more programs, and the one or more programs can be executed by one or more processors to implement any implementation of the present application. Communication method in the example.
在一些实施例中,该计算机可读存储介质可应用于本申请实施例中的订阅设备、目标代理设备、目标节点设备,并且该计算机程序使得计算机执行本申请实施例的各个方法中由订阅设备、目标代理设备、目标节点设备实现的相应流程,为了简洁,在此不再赘述。In some embodiments, the computer-readable storage medium can be applied to the subscription device, the target proxy device, and the target node device in the embodiments of the present application, and the computer program causes the computer to perform the various methods in the embodiments of the present application by the subscription device. , the corresponding processes implemented by the target agent device and the target node device will not be described again for the sake of simplicity.
图12为本申请实施例的芯片的示意性结构图,图12所示的芯片1200包括处理器1210,处理器1210用于从存储器中调用并运行计算机程序,以执行本申请任一实施例中的方法。Figure 12 is a schematic structural diagram of a chip according to an embodiment of the present application. The chip 1200 shown in Figure 12 includes a processor 1210. The processor 1210 is used to call and run a computer program from the memory to execute any embodiment of the present application. Methods.
在一些实施例中,如图12所示,芯片1200还可以包括存储器1220。其中,处理器1210可以从存储器1220中调用并运行计算机程序,以实现本申请实施例中的方法。In some embodiments, as shown in FIG. 12 , chip 1200 may also include memory 1220 . The processor 1210 can call and run the computer program from the memory 1220 to implement the method in the embodiment of the present application.
其中,存储器1220可以是独立于处理器1210的一个单独的器件,也可以集成在处理器1210中。The memory 1220 may be a separate device independent of the processor 1210, or may be integrated into the processor 1210.
在一些实施例中,该芯片1200还可以包括输入接口1230。其中,处理器1210可以控制该输入接口1230与其他设备或芯片进行通信,具体地,可以获取其他设备或芯片发送的信息或数据。In some embodiments, the chip 1200 may also include an input interface 1230. The processor 1210 can control the input interface 1230 to communicate with other devices or chips, and specifically, can obtain information or data sent by other devices or chips.
在一些实施例中,该芯片1200还可以包括输出接口1240。其中,处理器1210可以控制该输出接口1240与其他设备或芯片进行通信,具体地,可以向其他设备或芯片输出信息或数据。In some embodiments, the chip 1200 may also include an output interface 1240. The processor 1210 can control the output interface 1240 to communicate with other devices or chips. Specifically, it can output information or data to other devices or chips.
在一些实施例中,该芯片可应用于本申请实施例中的订阅设备、目标代理设备、目标节点设备,并且该芯片可以实现本申请实施例的各个方法中由订阅设备、目标代理设备、目标节点设备实现的相应流程,为了简洁,在此不再赘述。In some embodiments, the chip can be applied to the subscription device, the target proxy device, and the target node device in the embodiments of the present application, and the chip can implement the subscription device, the target proxy device, and the target node device in the various methods of the embodiments of the present application. The corresponding process of node device implementation will not be described here for the sake of simplicity.
应理解,本申请实施例提到的芯片还可以称为系统级芯片,系统芯片,芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-chip or system-on-chip, etc.
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括计算机存储介质,所述计算机存储介质存储计算机程序,所述计算机程序包括能够由一个或多个处理器执行的指令,当所述指令由所述一个或多个处理器执行时实现本申请任一实施例中的通信方法。Embodiments of the present application also provide a computer program product. The computer program product includes a computer storage medium. The computer storage medium stores a computer program. The computer program includes instructions that can be executed by one or more processors. When When the instructions are executed by the one or more processors, the communication method in any embodiment of the present application is implemented.
在一些实施例中,该计算机程序产品可应用于本申请实施例中的订阅设备、目标代理设备、目标节点设备,并且该计算机程序指令使得计算机执行本申请实施例的各个方法中由订阅设备、目标代理设备、目标节点设备实现的相应流程,为了简洁,在此不再赘述。In some embodiments, the computer program product can be applied to the subscription device, the target proxy device, and the target node device in the embodiments of the present application, and the computer program instructions cause the computer to perform the various methods in the embodiments of the present application by the subscription device, For the sake of simplicity, the corresponding processes implemented by the target agent device and the target node device will not be described again here.
可选地,本申请实施例中的计算机程序产品在另一些实施例中也可以称为软件产品。Optionally, the computer program product in the embodiment of this application may also be called a software product in other embodiments.
本申请实施例还提供了一种计算机程序,所述计算机程序使得计算机执行本申请任一实施例中的通信方法。An embodiment of the present application also provides a computer program, which causes a computer to execute the communication method in any embodiment of the present application.
在一些实施例中,该计算机程序可应用于本申请实施例中的订阅设备、目标代理设备、目标节点设备,当该计算机程序在计算机上运行时,使得计算机执行本申请实施例的各个方法中由订阅设备、目标代理设备、目标节点设备实现的相应流程,为了简洁,在此不再赘述。In some embodiments, the computer program can be applied to the subscription device, target proxy device, and target node device in the embodiments of the present application. When the computer program is run on the computer, it causes the computer to perform various methods in the embodiments of the present application. The corresponding processes implemented by the subscription device, the target proxy device, and the target node device will not be described again for the sake of simplicity.
本申请实施例的处理器、通信装置或者芯片可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器、通信装置或者芯片可以包括以下任一个或多个的集成:通用处理器、特定用途集成电路(Application Specific Integrated Circuit,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理装置(Digital Signal Processing Device,DSPD)、可编程逻辑装置(Programmable Logic Device, PLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)、嵌入式神经网络处理器(neural-network processing units,NPU)、控制器、微控制器、微处理器、可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。The processor, communication device or chip in the embodiment of the present application may be an integrated circuit chip and has signal processing capabilities. During the implementation process, each step of the above method embodiment can be completed through an integrated logic circuit of hardware in the processor or instructions in the form of software. The above-mentioned processor, communication device or chip may include the integration of any one or more of the following: general-purpose processor, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), graphics Processor (Graphics Processing Unit, GPU), embedded neural network processing units (NPU), controller, microcontroller, microprocessor, programmable logic device, discrete gate or transistor logic device, discrete Hardware components. Each method, step and logical block diagram disclosed in the embodiment of this application can be implemented or executed. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
可以理解,本申请实施例中的存储器或计算机存储介质可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory or computer storage medium in the embodiments of the present application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Among them, non-volatile memory can be read-only memory (Read-Only Memory, ROM), programmable read-only memory (Programmable ROM, PROM), erasable programmable read-only memory (Erasable PROM, EPROM), electrically removable memory. Erase programmable read-only memory (Electrically EPROM, EEPROM) or flash memory. Volatile memory may be Random Access Memory (RAM), which is used as an external cache. By way of illustration, but not limitation, many forms of RAM are available, such as static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (Synchlink DRAM, SLDRAM) ) and direct memory bus random access memory (Direct Rambus RAM, DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
应理解,上述存储器或计算机存储介质为示例性但不是限制性说明,例如,本申请实施例中的存储器还可以是静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch link DRAM,SLDRAM)以及直接内存总线随机存取存储器(Direct Rambus RAM,DR RAM)等等。也就是说,本申请实施例中的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It should be understood that the above-mentioned memory or computer storage medium is illustrative but not restrictive. For example, the memory in the embodiment of the present application can also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM) , DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM) ), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is, memories in embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be described again here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. 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. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,)ROM、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory,) ROM, random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application. should be covered by the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.

Claims (49)

  1. 一种通信方法,所述方法包括:A communication method, the method includes:
    订阅设备向目标代理设备发送第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备,所述第一订阅请求用于订阅所述一个或多个目标节点设备中的目标资源。The subscription device sends a first subscription request to the target proxy device; the first subscription request includes a target group identifier, the target group identifier corresponds to one or more target node devices, and the first subscription request is used to subscribe to the one or more target node devices. Target resources in multiple target node devices.
  2. 根据权利要求1所述的方法,其中,所述第一订阅请求还包括订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。The method according to claim 1, wherein the first subscription request further includes subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  3. 根据权利要求1或2所述的方法,其中,所述第一订阅请求还包括订阅标识;所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The method according to claim 1 or 2, wherein the first subscription request further includes a subscription identifier; the subscription identifier is used to identify the connection between the subscription device, the target proxy device and the target node device. Subscription relationship.
  4. 根据权利要求1至3任一项所述的方法,其中,所述第一订阅请求还包括预定时间间隔;The method according to any one of claims 1 to 3, wherein the first subscription request further includes a predetermined time interval;
    所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;The predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device;
    其中,所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化。Wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
  5. 根据权利要求1至4任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further includes:
    所述订阅设备广播代理发现请求;The subscribing device broadcasts a proxy discovery request;
    所述订阅设备接收一个或多个代理设备发送的代理发现响应;所述一个或多个代理设备包括所述目标代理设备,所述代理发现响应包括:所述代理设备支持订阅的目标节点设备的节点标识和/或所述代理设备支持订阅的目标节点设备组的组标识。The subscribing device receives a proxy discovery response sent by one or more proxy devices; the one or more proxy devices include the target proxy device, and the proxy discovery response includes: the proxy device supports a subscribed target node device. The node identifier and/or the group identifier of the target node device group to which the proxy device supports subscription.
  6. 根据权利要求5所述的方法,其中,所述代理发现请求包括一个或多个节点标识和/或一个或多个组标识;The method of claim 5, wherein the agent discovery request includes one or more node identifiers and/or one or more group identifiers;
    所述代理设备支持订阅的目标节点设备的节点标识,是从所述一个或多个节点标识中确定的;The node identifier of the target node device to which the proxy device supports subscription is determined from the one or more node identifiers;
    所述代理设备支持订阅的目标节点设备组的组标识,是从所述一个或多个组标识中确定的。The group identifier of the target node device group to which the proxy device supports subscription is determined from the one or more group identifiers.
  7. 根据权利要求5或6所述的方法,其中,所述方法还包括:The method according to claim 5 or 6, wherein the method further includes:
    所述订阅设备从所述一个或多个代理设备中确定所述目标代理设备;其中,所述目标代理设备发送的所述代理发现响应包括:所述目标组标识和/或所述一个或多个目标节点设备的节点标识。The subscribing device determines the target proxy device from the one or more proxy devices; wherein the proxy discovery response sent by the target proxy device includes: the target group identifier and/or the one or more proxy devices. The node ID of the target node device.
  8. 根据权利要求1至7任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further includes:
    所述订阅设备接收所述目标代理设备发送第一订阅成功消息;所述第一订阅成功消息用于指示对所述一个或多个目标节点设备中的所述目标资源订阅成功。The subscription device receives a first subscription success message sent by the target proxy device; the first subscription success message is used to indicate successful subscription to the target resource in the one or more target node devices.
  9. 根据权利要求1至8任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 8, wherein the method further includes:
    所述订阅设备接收所述目标代理设备发送的第一通知消息和/或第二通知消息;The subscribing device receives the first notification message and/or the second notification message sent by the target proxy device;
    其中,所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化。Wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
  10. 根据权利要求1至9任一项所述的方法,其中,所述订阅设备与所述目标代理设备之间传输的信息,是通过组密钥加密的信息。The method according to any one of claims 1 to 9, wherein the information transmitted between the subscribing device and the target proxy device is information encrypted by a group key.
  11. 根据权利要求1至9任一项所述的方法,其中,所述第一订阅请求中包括未加密的以下至少之一:所述目标组标识、预定时间间隔,以及通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;The method according to any one of claims 1 to 9, wherein the first subscription request includes at least one of unencrypted: the target group identification, a predetermined time interval, and the following encrypted by a group key At least one of: subscription target information, subscription identification;
    其中,所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径;Wherein, the subscription target information is used to indicate the resource identifier and/or resource path of the target resource;
    所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化;The predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device; the first notification message is used to indicate the time interval in the target node device. Update content of the target resource; the second notification message is used to indicate that the target resource in the target node device has not changed;
    所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
  12. 根据权利要求4或11所述的方法,其中,所述预定时间间隔包括最小时间间隔和/或最大时间间隔;The method according to claim 4 or 11, wherein the predetermined time interval includes a minimum time interval and/or a maximum time interval;
    所述最小时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最小的时间间隔;The minimum time interval is used to indicate the minimum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device;
    所述最大时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最大的时间间隔;The maximum time interval is used to indicate the maximum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device;
    其中,所述相邻两个通知消息均为第一通知消息,或者均为第二通知消息,或者一个为第一通知消息,另一个为第二通知消息。Wherein, the two adjacent notification messages are both first notification messages, or both are second notification messages, or one is the first notification message and the other is the second notification message.
  13. 根据权利要求1至12任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 12, wherein the method further includes:
    所述订阅设备向所述目标代理设备发送代理配置簇;The subscribing device sends a proxy configuration cluster to the target proxy device;
    所述订阅设备接收所述目标代理设备发送的对所述代理配置簇的应答消息;The subscribing device receives a response message sent by the target proxy device to the proxy configuration cluster;
    其中,所述代理配置簇包括以下至少之一:代理全部节点的指示信息、资源列表、组列表;Wherein, the agent configuration cluster includes at least one of the following: indication information, resource list, and group list of all agent nodes;
    所述资源列表包括一个或多个节点标识;所述一个或多个节点标识包括所述一个或多个目标节点设备的节点标识;The resource list includes one or more node identifiers; the one or more node identifiers include node identifiers of the one or more target node devices;
    所述组列表包括一个或多个组标识;所述一个或多个组标识包括所述目标组标识。The group list includes one or more group identifiers; the one or more group identifiers include the target group identifier.
  14. 根据权利要求1至13任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 13, wherein the method further includes:
    所述订阅设备向所述一个或多个目标节点设备发送有效代理簇;所述有效代理簇包括以下至少之一:有效代理列表、有效组代理列表;The subscription device sends an effective agent cluster to the one or more target node devices; the effective agent cluster includes at least one of the following: an effective agent list, an effective group agent list;
    所述有效代理列表包括:可订阅所述目标节点设备的代理标识;The effective proxy list includes: proxy identification that can subscribe to the target node device;
    所述有效组代理列表包括:可订阅组中的所述目标节点设备的代理标识。The effective group proxy list includes: proxy identifiers of the target node devices in the subscribing group.
  15. 一种通信方法,所述方法包括:A communication method, the method includes:
    目标代理设备接收订阅设备发送的第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备;The target proxy device receives the first subscription request sent by the subscription device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or more target node devices;
    所述目标代理设备向所述一个或多个目标节点设备组播第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源;The target proxy device multicasts a second subscription request to the one or more target node devices; the second subscription request is used to request to subscribe to a target resource in the target node device;
    所述目标代理设备接收所述一个或多个目标节点设备发送的第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。The target proxy device receives a second subscription success message sent by the one or more target node devices; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  16. 根据权利要求15所述的方法,其中,所述第一订阅请求还包括订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。The method according to claim 15, wherein the first subscription request further includes subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  17. 根据权利要求15或16所述的方法,其中,所述第一订阅请求还包括订阅标识;所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The method according to claim 15 or 16, wherein the first subscription request further includes a subscription identifier; the subscription identifier is used to identify the connection between the subscription device, the target proxy device and the target node device. Subscription relationship.
  18. 根据权利要求15至17任一项所述的方法,其中,所述第一订阅请求还包括预定时间间隔;The method according to any one of claims 15 to 17, wherein the first subscription request further includes a predetermined time interval;
    所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;The predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device;
    其中,所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化。Wherein, the first notification message is used to indicate the update content of the target resource in the target node device; the second notification message is used to indicate that the target resource in the target node device has not changed.
  19. 根据权利要求15至18任一项所述的方法,其中,所述第二订阅请求包括:订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。The method according to any one of claims 15 to 18, wherein the second subscription request includes: subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  20. 根据权利要求15至19任一项所述的方法,其中,The method according to any one of claims 15 to 19, wherein,
    所述第二订阅请求还包括所述订阅设备向所述目标代理设备发送的订阅标识;或者,The second subscription request also includes a subscription identification sent by the subscribing device to the target proxy device; or,
    所述第二订阅请求还包括所述目标代理设备确定的订阅标识;或者,The second subscription request also includes the subscription identification determined by the target proxy device; or,
    所述第二订阅成功消息包括所述目标节点设备确定的订阅标识;The second subscription success message includes the subscription identification determined by the target node device;
    其中,所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。Wherein, the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device and the target node device.
  21. 根据权利要求15至20任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 15 to 20, wherein the method further comprises:
    所述目标代理设备确定所述订阅设备和/或所述目标代理设备,具有订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。The target proxy device determines that the subscription device and/or the target proxy device has the authority to subscribe to the target resource in each of the one or more target node devices.
  22. 根据权利要求15至20任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 15 to 20, wherein the method further comprises:
    所述目标代理设备确定所述目标组标识对应的权限,包括订阅所述一个或多个目标节点设备中每个目标节点设备中的目标资源的权限。The target proxy device determines the permission corresponding to the target group identifier, including the permission to subscribe to the target resource in each of the one or more target node devices.
  23. 根据权利要求15至22任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 15 to 22, wherein the method further comprises:
    所述目标代理设备向所述一个或多个目标节点设备发送第二请求;所述第二请求用于请求所述目标节点设备对应的一个或多个代理设备的第二权限信息;所述一个或多个代理设备包括所述目标代理设备;所述一个或多个代理设备的第二权限信息,用于指示是否具有订阅所述目标节点设备中的目标资源的权限;The target proxy device sends a second request to the one or more target node devices; the second request is used to request second permission information of one or more proxy devices corresponding to the target node device; the one or multiple proxy devices include the target proxy device; the second permission information of the one or more proxy devices is used to indicate whether it has the permission to subscribe to the target resource in the target node device;
    所述目标代理设备接收所述一个或多个目标节点设备发送的所述第二权限信息。The target proxy device receives the second permission information sent by the one or more target node devices.
  24. 根据权利要求15至23任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 15 to 23, wherein the method further includes:
    所述目标代理设备接收所述订阅设备广播的代理发现请求;The target proxy device receives the proxy discovery request broadcast by the subscribing device;
    所述目标代理设备向所述订阅设备发送代理发现响应;所述代理发现响应包括:所述目标代理设备支持订阅的目标节点设备的节点标识和/或目标代理设备支持订阅的目标节点设备组的组标识。The target proxy device sends a proxy discovery response to the subscribing device; the proxy discovery response includes: the node identification of the target node device that the target proxy device supports subscription and/or the target node device group that the target proxy device supports subscription. Group ID.
  25. 根据权利要求24所述的方法,其中,所述代理发现请求包括一个或多个节点标识和/或一个或多个组标识;The method of claim 24, wherein the agent discovery request includes one or more node identifiers and/or one or more group identifiers;
    所述目标代理设备支持订阅的目标节点设备的节点标识,是从所述一个或多个节点标识中确定的;The node identifier of the target node device that the target proxy device supports subscription is determined from the one or more node identifiers;
    所述目标代理设备支持订阅的目标节点设备组的组标识,是从所述一个或多个组标识中确定的。The group identifier of the target node device group to which the target proxy device supports subscription is determined from the one or more group identifiers.
  26. 根据权利要求15至25任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 15 to 25, wherein the method further comprises:
    所述目标代理设备向所述订阅设备发送第一订阅成功消息;所述第一订阅成功消息用于指示对所述一个或多个目标节点设备中的所述目标资源订阅成功。The target proxy device sends a first subscription success message to the subscription device; the first subscription success message is used to indicate successful subscription to the target resource in the one or more target node devices.
  27. 根据权利要求15至26任一项所述的方法,其中,所述订阅设备与所述目标代理设备之间传输的信息,是通过组密钥加密的信息;和/或,The method according to any one of claims 15 to 26, wherein the information transmitted between the subscribing device and the target proxy device is information encrypted by a group key; and/or,
    所述目标代理设备与所述目标节点设备之间传输的信息,是通过组密钥加密的信息。The information transmitted between the target proxy device and the target node device is information encrypted by a group key.
  28. 根据权利要求15至26任一项所述的方法,其中,所述第一订阅请求中包括未加密的以下至少之一:所述目标组标识、预定时间间隔,以及通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;所述第二订阅请求中包括所述通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;The method according to any one of claims 15 to 26, wherein the first subscription request includes at least one of the following unencrypted: the target group identification, a predetermined time interval, and the following encrypted by a group key At least one of: subscription target information and subscription identification; the second subscription request includes at least one of the following encrypted by the group key: subscription target information and subscription identification;
    其中,所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径;Wherein, the subscription target information is used to indicate the resource identifier and/or resource path of the target resource;
    所述预定时间间隔用于指示所述目标代理设备向所述订阅设备发送第一通知消息和/或第二通知消息的时间间隔;所述第一通知消息用于指示所述目标节点设备中的目标资源的更新内容;所述第二通知消息用于指示所述目标节点设备中的目标资源未变化;The predetermined time interval is used to indicate the time interval for the target proxy device to send the first notification message and/or the second notification message to the subscribing device; the first notification message is used to indicate the time interval in the target node device. Update content of the target resource; the second notification message is used to indicate that the target resource in the target node device has not changed;
    所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
  29. 根据权利要求18或28所述的方法,其中,所述预定时间间隔包括最小时间间隔和/或最大时间间隔;The method according to claim 18 or 28, wherein the predetermined time interval includes a minimum time interval and/or a maximum time interval;
    所述最小时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最小的时间间隔;The minimum time interval is used to indicate the minimum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device;
    所述最大时间间隔用于指示所述目标代理设备向所述订阅设备发送的相邻两个通知消息之间最大的时间间隔;The maximum time interval is used to indicate the maximum time interval between two adjacent notification messages sent by the target proxy device to the subscribing device;
    其中,所述相邻两个通知消息均为第一通知消息,或者均为第二通知消息,或者一个为第一通知消息,另一个为第二通知消息。Wherein, the two adjacent notification messages are both first notification messages, or both are second notification messages, or one is the first notification message and the other is the second notification message.
  30. 根据权利要求18、28或29所述的方法,其中,所述预定时间间隔包括最小时间间隔;所述方法还包括:在所述最小时间间隔内所述目标代理设备接收到一个或多个所述目标节点设备发送的报告消息的情况下,所述目标代理设备向所述订阅设备发送第一通知消息;The method according to claim 18, 28 or 29, wherein the predetermined time interval includes a minimum time interval; the method further includes: within the minimum time interval, the target proxy device receives one or more of the In the case of a report message sent by the target node device, the target proxy device sends a first notification message to the subscribing device;
    其中,所述报告消息包括所述目标节点设备中的目标资源的更新内容;Wherein, the report message includes the updated content of the target resource in the target node device;
    所述第一通知消息包括所述一个或多个所述目标节点设备中的目标资源的更新内容。The first notification message includes updated content of target resources in the one or more target node devices.
  31. 根据权利要求18、28或29所述的方法,其中,所述预定时间间隔包括最小时间间隔和最大时间间隔;所述方法还包括:在所述最小时间间隔内所述目标代理设备没有接收到任意所述目标节点设备发送的报告消息,且在所述最大时间间隔内接收到一个或多个所述目标节点设备发送的报告消息的情况下,所述目标代理设备向所述订阅设备发送第一通知消息;The method according to claim 18, 28 or 29, wherein the predetermined time interval includes a minimum time interval and a maximum time interval; the method further includes: the target proxy device does not receive a signal within the minimum time interval. Any report message sent by the target node device, and if one or more report messages sent by the target node device are received within the maximum time interval, the target proxy device sends the third report message to the subscribing device. a notification message;
    其中,所述报告消息包括所述目标节点设备中的目标资源的更新内容;Wherein, the report message includes the updated content of the target resource in the target node device;
    所述第一通知消息包括所述一个或多个所述目标节点设备中的目标资源的更新内容。The first notification message includes updated content of target resources in the one or more target node devices.
  32. 根据权利要求18、28或29所述的方法,其中,所述预定时间间隔包括最大时间间隔;所述方法还包括:在所述最大时间间隔内所述目标代理设备没有接收到任意所述目标节点设备发送的报告消息的情况下,所述目标代理设备向所述订阅设备发送第二通知消息;The method according to claim 18, 28 or 29, wherein the predetermined time interval includes a maximum time interval; the method further includes: the target proxy device does not receive any of the targets within the maximum time interval. In the case of a report message sent by the node device, the target proxy device sends a second notification message to the subscribing device;
    其中,所述第二通知消息用于指示所述一个或多个目标节点设备中的资源未变化。Wherein, the second notification message is used to indicate that resources in the one or more target node devices have not changed.
  33. 根据权利要求14至30任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 14 to 30, wherein the method further comprises:
    所述目标代理设备接收所述订阅设备或配置设备发送的代理配置簇;The target proxy device receives the proxy configuration cluster sent by the subscription device or configuration device;
    所述目标代理设备向所述订阅设备或所述配置设备发送对所述代理配置簇的应答消息;The target proxy device sends a response message to the proxy configuration cluster to the subscription device or the configuration device;
    其中,所述代理配置簇包括以下至少之一:代理全部节点的指示信息、资源列表、组列表;Wherein, the agent configuration cluster includes at least one of the following: indication information, resource list, and group list of all agent nodes;
    所述资源列表包括一个或多个节点标识;所述一个或多个节点标识包括所述一个或多个节点设备的节点标识;所述组列表包括一个或多个组标识;所述一个或多个组标识包括所述目标组标识。The resource list includes one or more node identifiers; the one or more node identifiers include node identifiers of the one or more node devices; the group list includes one or more group identifiers; the one or more node identifiers include: The group identifier includes the target group identifier.
  34. 一种通信方法,所述方法包括:A communication method, the method includes:
    目标节点设备接收目标代理设备组播的第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源;The target node device receives a second subscription request multicast by the target proxy device; the second subscription request is used to request to subscribe to a target resource in the target node device;
    所述目标节点设备向所述目标代理设备发送第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。The target node device sends a second subscription success message to the target proxy device; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  35. 根据权利要求34所述的方法,其中,所述第二订阅请求包括:订阅目标信息;所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径。The method according to claim 34, wherein the second subscription request includes: subscription target information; the subscription target information is used to indicate the resource identifier and/or resource path of the target resource.
  36. 根据权利要求32或33所述的方法,其中,The method according to claim 32 or 33, wherein,
    所述第二订阅请求包括所述订阅设备向所述目标代理设备发送的订阅标识;或者,The second subscription request includes a subscription identification sent by the subscribing device to the target proxy device; or,
    所述第二订阅请求包括所述目标代理设备确定的订阅标识;或者,The second subscription request includes the subscription identification determined by the target proxy device; or,
    所述第二订阅成功消息包括所述目标节点设备确定的订阅标识;The second subscription success message includes the subscription identification determined by the target node device;
    其中,所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。Wherein, the subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device and the target node device.
  37. 根据权利要求34至36任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 34 to 36, wherein the method further comprises:
    所述目标节点设备接收所述目标代理设备发送的第二请求;所述第二请求用于请求所述目标节点设备对应的一个或多个代理设备的第二权限信息;所述一个或多个代理设备包括所述目标代理设备;所述一个或多个代理设备的第二权限信息,用于指示是否具有订阅所述目标节点设备中的目标资源的权限;The target node device receives a second request sent by the target proxy device; the second request is used to request second permission information of one or more proxy devices corresponding to the target node device; the one or more proxy devices The proxy device includes the target proxy device; second permission information of the one or more proxy devices, used to indicate whether it has the permission to subscribe to the target resource in the target node device;
    所述目标节点设备向所述目标代理设备发送所述第二权限信息。The target node device sends the second permission information to the target proxy device.
  38. 根据权利要求34至37任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 34 to 37, wherein the method further comprises:
    所述目标节点设备向所述目标代理设备发送报告消息;所述报告消息包括所述目标节点设备中的目标资源的更新内容。The target node device sends a report message to the target proxy device; the report message includes updated content of the target resource in the target node device.
  39. 根据权利要求34至38任一项所述的方法,其中,所述目标节点设备与所述目标代理设备之间传输的信息,是通过组密钥加密的信息。The method according to any one of claims 34 to 38, wherein the information transmitted between the target node device and the target proxy device is information encrypted by a group key.
  40. 根据权利要求34至38任一项所述的方法,其中,所述第二订阅请求中包括通过组密钥加密的以下至少之一:订阅目标信息、订阅标识;The method according to any one of claims 34 to 38, wherein the second subscription request includes at least one of the following encrypted by a group key: subscription target information, subscription identification;
    其中,所述订阅目标信息用于指示所述目标资源的资源标识和/或资源路径;Wherein, the subscription target information is used to indicate the resource identifier and/or resource path of the target resource;
    所述订阅标识用于标识所述订阅设备、所述目标代理设备以及所述目标节点设备之间的订阅关系。The subscription identifier is used to identify the subscription relationship between the subscription device, the target proxy device, and the target node device.
  41. 根据权利要求34至40任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 34 to 40, wherein the method further comprises:
    所述目标节点设备接收订阅设备或配置设备发送的有效代理簇;所述有效代理簇包括以下至少之一:有效代理列表、有效组代理列表;所述有效代理列表包括:可订阅所述目标节点设备的代理标识;所述有效组代理列表包括:可订阅组中的所述目标节点设备的代理标识。The target node device receives an effective agent cluster sent by a subscription device or a configuration device; the effective agent cluster includes at least one of the following: an effective agent list, an effective group agent list; the effective agent list includes: the target node that can be subscribed to The agent identification of the device; the effective group agent list includes: the agent identification of the target node device in the subscribing group.
  42. 一种通信装置,包括:通信单元,用于向目标代理设备发送第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备,所述第一订阅请求用于订阅所述一个或多个目标节点设备中的目标资源。A communication device, including: a communication unit configured to send a first subscription request to a target proxy device; the first subscription request includes a target group identifier, the target group identifier corresponds to one or more target node devices, and the third A subscription request is used to subscribe to target resources in the one or more target node devices.
  43. 一种通信装置,包括:通信单元,用于接收订阅设备发送的第一订阅请求;所述第一订阅请求包括目标组标识,所述目标组标识对应一个或多个目标节点设备;A communication device, including: a communication unit configured to receive a first subscription request sent by a subscription device; the first subscription request includes a target group identifier, and the target group identifier corresponds to one or more target node devices;
    所述通信单元,还用于向所述一个或多个目标节点设备组播第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源;The communication unit is further configured to multicast a second subscription request to the one or more target node devices; the second subscription request is used to request to subscribe to target resources in the target node device;
    所述通信单元,还用于接收所述一个或多个目标节点设备发送的第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。The communication unit is further configured to receive a second subscription success message sent by the one or more target node devices; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  44. 一种通信装置,包括:通信单元,用于接收目标代理设备组播的第二订阅请求;所述第二订阅请求用于请求订阅所述目标节点设备中的目标资源;A communication device, including: a communication unit configured to receive a second subscription request multicast by a target proxy device; the second subscription request is used to request a subscription to a target resource in the target node device;
    所述通信单元,还用于向所述目标代理设备发送第二订阅成功消息;所述第二订阅成功消息指示对所述目标节点设备中的目标资源订阅成功。The communication unit is further configured to send a second subscription success message to the target proxy device; the second subscription success message indicates that the subscription to the target resource in the target node device is successful.
  45. 一种通信设备,包括:处理器和存储器,所述存储器存储有可在处理器上运行的计算机程序,A communication device including: a processor and a memory, the memory storing a computer program executable on the processor,
    所述处理器执行所述程序时实现权利要求1至14任一项,或者15至33任一项,或者34至41任一项所述方法。When the processor executes the program, the method described in any one of claims 1 to 14, or any one of claims 15 to 33, or any one of claims 34 to 41 is implemented.
  46. 一种计算机存储介质,所述计算机存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求1至14任一项,或者15至33任一项,或者34至41任一项所述方法。A computer storage medium that stores one or more programs, and the one or more programs can be executed by one or more processors to implement any one of claims 1 to 14, or 15 to 15 Any one of 33, or the method described in any one of 34 to 41.
  47. 一种芯片,包括:处理器,用于从存储器中调用并运行计算机程序,以执行如权利要求1至14任一项,或者15至33任一项,或者34至41任一项所述方法。A chip, including: a processor for calling and running a computer program from a memory to execute the method described in any one of claims 1 to 14, or any one of claims 15 to 33, or any one of claims 34 to 41 .
  48. 一种计算机程序产品,所述计算机程序产品包括计算机存储介质,所述计算机存储介质存储计算机程序,所述计算机程序包括能够由一个或多个处理器执行的指令,当所述指令由所述一个或多个处理器执行时实现权利要求1至14任一项,或者15至33任一项,或者34至41任一项所述方法。A computer program product including a computer storage medium storing a computer program including instructions executable by one or more processors, which when the instructions are executed by the one When executed by multiple processors, the method described in any one of claims 1 to 14, or any one of claims 15 to 33, or any one of claims 34 to 41 is implemented.
  49. 一种计算机程序,所述计算机程序使得计算机执行如权利要求1至14任一项,或者15至33任一项,或者34至41任一项所述方法。A computer program that causes a computer to execute the method described in any one of claims 1 to 14, or any one of claims 15 to 33, or any one of claims 34 to 41.
PCT/CN2022/110575 2022-08-05 2022-08-05 Communication method, apparatus and device, and storage medium, chip, product and program WO2024026838A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/110575 WO2024026838A1 (en) 2022-08-05 2022-08-05 Communication method, apparatus and device, and storage medium, chip, product and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/110575 WO2024026838A1 (en) 2022-08-05 2022-08-05 Communication method, apparatus and device, and storage medium, chip, product and program

Publications (1)

Publication Number Publication Date
WO2024026838A1 true WO2024026838A1 (en) 2024-02-08

Family

ID=89848255

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/110575 WO2024026838A1 (en) 2022-08-05 2022-08-05 Communication method, apparatus and device, and storage medium, chip, product and program

Country Status (1)

Country Link
WO (1) WO2024026838A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103518350A (en) * 2012-05-14 2014-01-15 华为技术有限公司 Method and system for group communication, group server and group member device
CN103581307A (en) * 2013-10-17 2014-02-12 北京邮电大学 Publishing/subscribing system based on clusters and method for guaranteeing reliability of publishing/subscribing system based on clusters
US20150236915A1 (en) * 2012-10-22 2015-08-20 Nokia Solutions And Networks Oy Methods, apparatuses, system, related computer program product for routing and processing policy requests related to group subscription
CN110602136A (en) * 2019-09-25 2019-12-20 华为技术有限公司 Cluster access method and related product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103518350A (en) * 2012-05-14 2014-01-15 华为技术有限公司 Method and system for group communication, group server and group member device
US20150236915A1 (en) * 2012-10-22 2015-08-20 Nokia Solutions And Networks Oy Methods, apparatuses, system, related computer program product for routing and processing policy requests related to group subscription
CN103581307A (en) * 2013-10-17 2014-02-12 北京邮电大学 Publishing/subscribing system based on clusters and method for guaranteeing reliability of publishing/subscribing system based on clusters
CN110602136A (en) * 2019-09-25 2019-12-20 华为技术有限公司 Cluster access method and related product

Similar Documents

Publication Publication Date Title
US11750702B2 (en) Subscription and notification service
US11711682B2 (en) Cross-resource subscription for M2M service layer
EP3100471B1 (en) Context-aware and proximity-aware service layer connectivity management
EP3025525B1 (en) End-to-end m2m service layer sessions
US9071925B2 (en) System and method for communicating data between an application server and an M2M device
EP3298806B1 (en) Methods and apparatus for analyzing and grouping service layer subscriptions and notifications for enhanced efficiency
EP3905728A1 (en) Data transmission system, method, and device
EP3163798B1 (en) Method for processing request messages in wireless communication system, and device for same
US20220321678A1 (en) System and methods for service layer cache management
JP7246379B2 (en) Service layer message templates in communication networks
KR20200005492A (en) Method and apparatus for resource management
WO2020177020A1 (en) Internet of things device discovery method, apparatus, and terminal device
WO2024026838A1 (en) Communication method, apparatus and device, and storage medium, chip, product and program
EP3320650B1 (en) Service layer anycast and somecast
EP4210368A1 (en) Authentication method and apparatus thereof
WO2022116110A1 (en) Access authentication method and apparatus, device, and storage medium
WO2023108628A1 (en) Communication method and apparatus, and device, storage medium, chip, product and program
WO2022160275A1 (en) Wireless communication method, and devices and storage medium
WO2023279977A1 (en) Network nodes and methods therein for event monitoring
WO2022228229A1 (en) Terminal information sharing method and communication apparatus

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: 22953645

Country of ref document: EP

Kind code of ref document: A1