Processing method and device for proxy subscription, computer device and storage medium
By stopping the proxy subscription action when the proxy subscription permission is revoked, the problem of the proxy device still being able to access the source node resources after the proxy permission is revoked is solved, thus improving security and management efficiency.
Patent Information
- Application Number
- CN202280099228.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-18
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-11-18
AI Technical Summary
When the proxy subscription permission of the proxy device is revoked, the existing technology cannot efficiently manage and stop the proxy subscription relationship between the proxy device and the source node, which affects security and efficiency.
When the proxy subscription permission is revoked, the source node and proxy device perform corresponding operations to stop the proxy subscription action, including deleting the proxy device's permission information and canceling the subscription relationship, and managing the proxy device's permissions through access control lists and valid proxy lists.
It improves the security and management efficiency of proxy subscription scenarios, prevents proxy devices from still accessing source node resources after permissions are revoked, and enhances the management and control of subscription relationships.
Smart Images

Figure CN119769121B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to a processing method, apparatus, computer device, and storage medium for proxy subscription. Background Technology
[0002] With the continuous development of Internet of Things (IoT) technology, more and more IoT devices are bringing great convenience to users' production and life in many fields such as smart homes and industrial production.
[0003] In related technologies, when a proxy device has the proxy-related permissions of the source node, client devices in the Internet of Things (IoT) can subscribe to resources from the source node (such as a server device) through the proxy device to achieve control and management of the source node. The aforementioned proxy-related permissions can be configured by the user through device settings. Summary of the Invention
[0004] This application provides a method, apparatus, computer device, and storage medium for proxy subscription processing. This solution can improve the security of proxy subscription scenarios. The technical solution is as follows:
[0005] On one hand, embodiments of this application provide a processing method for proxy subscription, the method being executed by the source node, the method comprising:
[0006] If the proxy device cancels its proxy subscription permission to the source node, a first operation is performed; the first operation is used to stop the proxy subscription-related actions between the proxy device and the proxy device.
[0007] The proxy subscription permission includes the permission for the proxy device to subscribe to resources in the source node as a proxy for the client node.
[0008] On one hand, embodiments of this application provide a processing method for proxy subscriptions, executed by a proxy device, the method comprising:
[0009] If the proxy device's proxy subscription permission to the source node is revoked, a second operation is performed; the second operation is used to stop the proxy subscription-related actions from the source node.
[0010] The proxy subscription permission includes the permission for the proxy device to subscribe to resources in the source node as a proxy for the client node.
[0011] On the other hand, embodiments of this application provide a processing apparatus for proxy subscription, the apparatus comprising:
[0012] The processing module is configured to perform a first operation when the proxy device's proxy subscription permission to the source node is revoked; the first operation is configured to stop the proxy subscription-related actions between the proxy device and the proxy device.
[0013] The proxy subscription permission includes the permission for the proxy device to subscribe to resources in the source node as a proxy for the client node.
[0014] On the other hand, embodiments of this application provide a processing apparatus for proxy subscription, the apparatus comprising:
[0015] The processing module is configured to perform a second operation when the proxy device's proxy subscription permission to the source node is revoked; the second operation is configured to stop the proxy subscription-related actions from the source node.
[0016] The proxy subscription permission includes the permission for the proxy device to subscribe to resources in the source node as a proxy for the client node.
[0017] On the other hand, embodiments of this application provide a computer device, which is implemented as a proxy device or a source node, and the computer device includes a processor, a memory, and a transceiver;
[0018] The memory stores a computer program, which is executed by the processor to enable the computer device to implement the above-described processing method for proxy subscription.
[0019] In another aspect, embodiments of this application provide a computer device, which includes a processor, a memory, and a transceiver. The memory stores a computer program, which is executed by the processor to implement the above-described processing method for proxy subscription.
[0020] In another aspect, embodiments of this application also provide a computer-readable storage medium storing a computer program, which is loaded and executed by a processor to implement the above-described processing method for proxy subscription.
[0021] In another aspect, this application also provides a chip for operation in a computer device to enable the computer device to perform the above-described processing method for proxy subscription.
[0022] In another aspect, this application provides a computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned processing method for proxy subscription.
[0023] In another aspect, this application provides a computer program that is executed by the processor of a computer device to implement the above-described processing method for proxy subscription.
[0024] The technical solution provided in this application can bring the following beneficial effects:
[0025] If the proxy device's permission to subscribe to resources on the source node is revoked, the source node can perform a first operation to stop the proxy subscription-related actions between the source node and the proxy device. This process does not require the user to perform additional steps to stop the proxy subscription-related actions between the source node and the proxy device, thus improving the efficiency of subscription relationship management. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a schematic diagram of the network architecture of the Internet of Things provided in one embodiment of this application;
[0028] Figure 2 This is a schematic diagram of a proxy subscription initiation process provided in one embodiment of this application;
[0029] Figure 3 This is a flowchart of a processing method for proxy subscription provided in one embodiment of this application;
[0030] Figure 4 This is a framework diagram of a processing flow for proxy subscription provided in one embodiment of this application;
[0031] Figure 5 This is a framework diagram of a processing flow for proxy subscription provided in one embodiment of this application;
[0032] Figure 6 This is a flowchart of a processing method for proxy subscription provided in one embodiment of this application;
[0033] Figure 7 This is a flowchart of a processing method for proxy subscription provided in one embodiment of this application;
[0034] Figure 8 This is a framework diagram of a processing flow for proxy subscription provided in one embodiment of this application;
[0035] Figure 9This is a framework diagram of a processing flow for proxy subscription provided in one embodiment of this application;
[0036] Figure 10 This is a framework diagram of a processing flow for proxy subscription provided in one embodiment of this application;
[0037] Figure 11 This is a framework diagram of a processing flow for proxy subscription provided in one embodiment of this application;
[0038] Figure 12 This is a block diagram of a processing apparatus for proxy subscription provided in one embodiment of this application;
[0039] Figure 13 This is a block diagram of a processing apparatus for proxy subscription provided in one embodiment of this application;
[0040] Figure 14 This is a schematic diagram of the structure of a computer device provided in one embodiment of this application. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0042] The network architecture and business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0043] Please refer to Figure 1 This illustration shows a schematic diagram of an Internet of Things (IoT) network architecture provided in one embodiment of this application. The IoT network architecture may include: a source node 110 ( Figure 1 The diagram shows source node 110a and source node 110b), and client device 120. Figure 1 The network architecture is shown as client device 120a and client device 120b), proxy device 130 and configuration device 140; optionally, the network architecture may also include cloud server 150.
[0044] Source node 110 can be a device used in the Internet of Things (IoT) to provide server-side functions corresponding to the IoT protocol.
[0045] For example, source node 110 can be a smart home device, such as smart lights, smart TVs, smart air conditioners, smart refrigerators, smart microwave ovens, smart rice cookers, robot vacuum cleaners, smart speakers, smart switches, etc.
[0046] Alternatively, source node 110 can be industrial production equipment, such as lathes, industrial robots, solar panels, wind turbines, etc.
[0047] Alternatively, source node 110 can be a commercial service device, such as a vending machine, etc.
[0048] Alternatively, source node 110 can be an intelligent monitoring device, such as a surveillance camera, infrared sensor, sound sensor, temperature sensor, etc.
[0049] In one possible implementation, the client device 120 can be a user-side terminal device. For example, the client device 120 can be a smart controller, smart remote control, smartphone, tablet, smartwatch, smart TV, gateway, etc.; or, the client device 120 can also be a personal computer, such as a desktop computer, portable computer, personal workstation, etc.
[0050] Alternatively, the client device 120 could also be another device that provides server-side functionality corresponding to the IoT protocol.
[0051] In another possible implementation, the client device 120 is a client entity (which may be a virtual entity) running on the terminal device. For example, the client device 120 may be an application (APP) running on the terminal device for accessing, controlling, and managing IoT devices.
[0052] In one possible implementation, the aforementioned proxy device 130 connects both the source node 110 and the client device 120, and provides the client device 120 with a service to subscribe to resources from the source node 110.
[0053] The configuration device 140 can be a user-side terminal device. For example, the configuration device 140 can be a smartphone, tablet, smartwatch, smart TV, etc.
[0054] In another possible implementation, the configuration device 140 can also be a client entity (which can be a virtual entity) running on a terminal device. For example, the configuration device 140 can be an APP running on a smartphone for managing and configuring the source node 110, the client device 120, and the agent device 130.
[0055] The cloud server 150 is a server deployed on the network side. For example, the cloud server 150 can store relevant information about each source node 110, such as the current resource status, bound accounts, etc.; the cloud server 150 can also provide a service interface for remote access to the source node 110, so that users can remotely manage or control the source node 110.
[0056] In this application embodiment, the source node 110, client device 120, proxy device 130, configuration device 140, and cloud server 150 can be electronic devices that meet the same or different Internet of Things protocols. For example, they can be electronic devices that meet the Matter protocol (or the Connected Home over IP Working Group, CHIP) project under the Connectivity Standards Alliance (CSA) (or Zigbee Alliance).
[0057] Taking the aforementioned source node 110, client device 120, proxy device 130, and configuration device 140 as examples of Matter devices, the data model of Matter devices has the following characteristics:
[0058] 1) A Matter device contains one or more endpoints, which are represented by endpoint numbers (also abbreviated as endpoint-no).
[0059] For example, a Matter device is a spotlight with three bulbs, and each bulb corresponds to an endpoint. In other words, an actual physical device can contain multiple endpoints (or it can contain only one endpoint). Another example is a Matter device is a socket with four holes, and each hole can correspond to an Endpoint.
[0060] 2) Each Endpoint corresponds to one or more Device Types, which are represented by Device IDs.
[0061] For example, a Matter device is an air conditioning device, which includes a thermostat and a fan. The thermostat and the fan are located at the same endpoint. The thermostat corresponds to one device type, and the fan corresponds to another device type. The thermostat and the fan can be controlled through the same endpoint.
[0062] 3) Each Endpoint contains multiple clusters, which are divided into server and client types, and the corresponding cluster IDs are the same.
[0063] 4) Each Cluster contains multiple attributes, events, and commands, represented by Attribute ID, Event ID, and Command ID, respectively. Attributes and Events have corresponding data types.
[0064] The aforementioned source node 110, client device 120, agent device 130, and configuration device 140, etc., can also be Zigbee devices. The data model of Zigbee devices is similar in structure to that of Matter devices, except that Zigbee devices do not have Events in their data model.
[0065] 1) Proxy subscription
[0066] In various embodiments of this application, client devices in the Internet of Things can subscribe to resources from the source node through a proxy device; for example, in the above... Figure 1 In the network architecture shown, client device 120b can subscribe to resources from source node 110b through proxy device 130.
[0067] Please refer to Figure 2 This illustrates a schematic diagram of a proxy subscription initiation process provided in one embodiment of this application. Figure 2 As shown, the process of a client device initiating a proxy subscription is as follows:
[0068] S21, the client device sends a subscription request to the proxy device to initiate a resource subscription to the source node, in order to request to subscribe to the C1 resource on the aforementioned source node.
[0069] C1 resources can be any resource on the source node, including functional resources such as switches.
[0070] In some scenarios, the client device can also be called the subscription device, and the source node mentioned above can also be called the subscription target device or subscription target node, etc.
[0071] S22, the agent device sends a ReportData message to the source node to notify the client device that it does not have the resources of the source node at the moment.
[0072] During this process, the proxy device can check whether the client device has subscription permissions for C1 resources on the source node, such as view permissions. Specifically, when the proxy device has proxy view permissions on the access control lists (ACLs) cluster resources on the source node, it can subscribe to or read the ACL cluster. Based on this, the proxy device can obtain the client device's subscription permissions for C1 resources on the source node, and thus determine whether the client device can subscribe to the C1 resource. Optionally, the subscription device can directly subscribe to the C1 resource on the source node, or, when subscribing to the C1 resource through a proxy device, it needs to have the permission (view permission) to subscribe to the C1 resource on the source node. For example, the ACL cluster on the source node needs to have the corresponding access control entry (ACE) for the client device.
[0073] After receiving the ReportData message, the client device can send a StatusResponse to the proxy device. Upon receiving the StatusResponse, the proxy device will send a SubscribeResponse to the client device.
[0074] S23, the proxy device initiates a subscription to the C1 resource on the source node.
[0075] During this process, the proxy device can send a subscription request to the source node to subscribe to the C1 resource on the source node. The source node sends a ReportData message to the proxy device, which contains subscription data for the C1 resource, such as the status of the C1 resource.
[0076] Optionally, after receiving the ReportData message from the source node, the proxy device sends a StatusResponse message to the source node, and after receiving the StatusResponse message, the source node sends a SubscribeResponse message to the proxy device.
[0077] S24: After the proxy device successfully subscribes to the source node, it processes the subscription process of the client device.
[0078] During this process, the proxy device can send a ReportData message to the client device, which contains the subscription data of the subscribed C1 resources; after receiving the ReportData message, the client device can send a StatusResponse message to the proxy device.
[0079] 2) Access Control List (ACL) Cluster
[0080] The ACL Cluster is deployed on each node (corresponding to the Source device mentioned above), and there is one instance for each node. When a node receives a subscription request, it first checks the ACL to see if the requester has subscription permissions.
[0081] The attributes in an ACL cluster can be shown in Table 1 below.
[0082] Table 1
[0083]
[0084] The definition of the AccessControlEntryStruct entry in the ACL in Table 1 above can be shown in Table 2 below.
[0085] Table 2
[0086] ID Name Type Access Conformance 0 FabricIndex RW M 1 Privilege AccessControlEntryPrivilegeEnum RWS M 2 AuthMode AccessControlEntryAuthmodeEnum RWS M 3 Subjects List[SubjectID] RWS M 4 Targets List[TargetStruct] RWS M
[0087] The access control entry permissions listed in Table 2 above, AccessControlEntryPrivilegeEnum, can be defined as follows:
[0088] View permissions: Read and subscribe (except ACL Cluster);
[0089] Proxy view access: read and subscribe (including ACLCluster);
[0090] Operation permission: View + execute the device's main functions (except ACL Cluster);
[0091] Management permissions: Operate + modify configuration data (except ACL Cluster);
[0092] Administrator privileges: Manage + subscribe to and modify ACL clusters.
[0093] The authentication modes listed in Table 2, AccessControlEntryAuthmodeEnum, can be defined as shown in Table 3:
[0094] Table 3
[0095] Value Name Description 1 PASE Passcode Authenticated Session 2 CASE Certificate Authenticated Session 3 GROUP Group Authenticated Session
[0096] For example, the code for an Access Control Cluster can be as follows:
[0097]
[0098]
[0099] Before a proxy device subscribes to a target resource on a source node for a client device, it can first query the source node to see if the client device has permission to subscribe to the target resource on the source node. In one possible scenario, the proxy device can subscribe to the aforementioned ACL cluster from the source node and then query the ACL cluster to see if the client device has subscription permission. However, in this process, the proxy device can obtain all ACE records on the source node, resulting in expanded privileges for the proxy device and affecting the security of querying subscription permissions through the proxy device.
[0100] 3) Proxy configuration cluster
[0101] The proxy device stores a proxy configuration cluster, which contains a list of devices that the proxy device can proxy for subscriptions. The proxy configuration cluster can be shown in Table 4 below.
[0102] Table 4
[0103]
[0104] The structure of ConfigurationStruct in Table 4 above can be shown in Table 5 below.
[0105] Table 5
[0106]
[0107] As shown in Tables 4 and 5 above, the `configurationList` property stores identifiers of nodes that can be proxied for subscription. `SourceList` specifies a subset of nodes that can be proxied for subscription. `ProxyAllNodes` indicates that all nodes can be proxied.
[0108] In this process, a proxy device directly subscribes to a Node. Within a system, a proxy device can subscribe to another proxy device to ultimately complete the Client's subscription to the Source: i.e., the subscription path is Client → Proxy Device 1 → Proxy Device 2… → Source. In this process, the subscription from the proxy device to the Source is an upstream subscription, and the subscription from the Client to the proxy device is a downstream subscription.
[0109] 4) Valid Proxies Cluster
[0110] A Valid Proxies Cluster is maintained on the source device (source node). Instances of this cluster store all proxy devices supported by that source. Resources on the source device can only be accessed through one of these proxy devices. The Valid Proxies Cluster can contain attributes as shown in Table 6 below.
[0111] Table 6
[0112] ID Name Type Range Quality Access Default Conformance 0 ValidProxyList List[ValidProxyStruct] N / A NF RW empty M
[0113] The structure of ValidProxyStruct in Table 6 above can be shown in Table 7 below.
[0114] Table 7
[0115]
[0116] The commands corresponding to the above Valid Proxies Cluster are shown in Table 8 below.
[0117] Table 8
[0118]
[0119] In Table 8, the Get Valid Proxies Request is typically used by the client to retrieve a list of proxies from the source. The client then sends a broadcast message to search for proxies, collects all responding proxies, and combines this information with the proxies retrieved from the source to determine the range of available proxies. Finally, the user selects a proxies based on other factors.
[0120] In the above scheme, if Client A selects proxy A as the proxy device and subscribes to Attribute A of source A, but the administrator may later remove proxy A from the proxy list ValidProxyList in the Valid Proxies Cluster, then how to handle the existing proxy browsing permissions and proxy subscription relationships is the problem that this application needs to solve.
[0121] Please refer to Figure 3 The diagram illustrates a flowchart of a processing method for proxy subscription provided in one embodiment of this application. This method can be executed by a source node, for example, the source node could be... Figure 1 The source node 110 in the network architecture shown; the method may include the following steps:
[0122] Step 301: If the proxy device's proxy subscription permission to the source node is cancelled, perform the first operation; the first operation is used to stop the proxy subscription-related actions between the proxy device and the proxy device; the proxy subscription permission includes the permission of the proxy device to subscribe to resources in the source node as a proxy of the client node.
[0123] In some embodiments, the first operation includes at least one of the following operations:
[0124] End the first subscription relationship; this first subscription relationship is the subscription relationship between the source node and the proxy device;
[0125] Delete the information corresponding to the first subscription relationship from the subscription list of the source node;
[0126] Delete the proxy browsing permission information for this proxy device; this proxy browsing permission information is used to indicate that the proxy device has the permission to browse information in the source node.
[0127] In some embodiments, terminating the first subscription relationship includes:
[0128] Stop sending report data messages corresponding to the first subscription relationship to the agent device.
[0129] In some embodiments, the method further includes:
[0130] Receive the first subscription request sent by the agent device; the first subscription request is used to re-establish the first subscription relationship.
[0131] Return a subscription error message to the agent device.
[0132] In some embodiments, the subscription error message returned to the agent device includes:
[0133] The agent device returns an error response message indicating that there is no valid agent.
[0134] In some embodiments, terminating the first subscription relationship includes:
[0135] Send a first report data message to the agent device; the first report data message is a report data message corresponding to the first subscription relationship and contains error information.
[0136] In some embodiments, the error message includes a no valid agent error code.
[0137] In some embodiments, the proxy browsing permission information is used to indicate that the proxy device has proxy browsing permission for the access control list (ACL) cluster in the source node.
[0138] In some embodiments, performing the first operation when canceling the proxy device's proxy subscription permission to the source node includes:
[0139] The first operation is performed if the identification information of the proxy device is removed from the list of valid proxies of the source node.
[0140] In some embodiments, performing the first operation when canceling the proxy device's proxy subscription permission to the source node includes:
[0141] Upon receiving a first deletion instruction, the first operation is executed;
[0142] The first deletion instruction is generated when the identification information of the agent device is deleted from the valid agent list of the source node.
[0143] In summary, the solution shown in this application embodiment allows the source node to perform a first operation to stop the proxy subscription-related actions between the proxy device and the proxy device when the proxy device's permission to subscribe to resources in the source node is revoked. This process does not require the user to additionally perform actions to stop the proxy subscription-related actions between the source node and the proxy device, thus improving the security of the proxy subscription scenario.
[0144] Based on the above in this application Figure 3 The content shown, taking the first operation including deleting the proxy browsing permission information of the proxy device as an example, in an exemplary scheme, the source node is set with the proxy browsing permission information of the proxy device. This proxy browsing permission information is used to indicate that the proxy device has the proxy browsing permission of the source node, that is, the proxy device can read and subscribe to resources in the source node, including ACL Cluster.
[0145] Please refer to Figure 4 This illustrates a framework diagram of a processing flow for proxy subscription provided in one embodiment of this application. In one possible application scenario, such as... Figure 4 As shown, the source node 41 contains proxy browsing permission information for the proxy device 42, indicating that the proxy device 42 is allowed to read and subscribe to resources in the source node 41, including the ACL Cluster; at the same time, the Valid Proxies Cluster of the source node 41 contains the node ID of the proxy device 42, indicating that the proxy device 42 is allowed to act as a proxy to subscribe to resources in the source node 41.
[0146] like Figure 4 As shown, when client device A initiates a proxy subscription request to proxy device 42, requesting proxy device 42 to subscribe to resources on its behalf, proxy device 42 can subscribe to the corresponding resources from source node 41 and send the subscribed resources to client device A. When a user cancels the permission for proxy device 42 to subscribe to resources in source node 41 as a proxy by configuring the device, that is, when the Node ID of proxy device 42 is removed from the Valid Proxies Cluster of source node 41, source node 41 can delete the proxy browsing permission information of proxy device 42.
[0147] Based on the above in this application Figure 3 The content shown, taking the first operation including ending the first subscription relationship as an example, please refer to... Figure 5 This illustrates a framework diagram of a processing flow for proxy subscription provided in one embodiment of this application. In one possible application scenario, such as... Figure 5 As shown, the Valid Proxies Cluster of source node 51 contains the node ID of proxy device 52, indicating that proxy device 52 is allowed to subscribe to resources in source node 51 as a proxy.
[0148] like Figure 5 As shown, when client device A initiates a proxy subscription request to proxy device 52, requesting proxy device 52 to subscribe to resources on its behalf, proxy device 52 can subscribe to the corresponding resources from source node 51 and send the subscribed resources to client device A. When a user cancels the permission for proxy device 52 to subscribe to resources in source node 51 as a proxy by configuring the device, that is, when the Node ID of proxy device 52 is removed from the Valid Proxies Cluster of source node 51, source node 51 can initiate the cancellation of the existing first subscription relationship from proxy device 52 at both source node 51 and proxy device 52.
[0149] Based on the above Figures 3 to 5 Please refer to the proposed solution. Figure 6 This document illustrates a method flowchart for processing proxy subscriptions according to an exemplary embodiment of this application. The method is executed by a proxy device, which may be... Figure 1 The proxy device 130 in the network architecture shown; such as Figure 6 As shown, the method includes:
[0150] Step 601: If the proxy device's proxy subscription permission to the source node is cancelled, perform a second operation; the second operation is used to stop the proxy subscription-related actions from the source node; the proxy subscription permission includes the permission of the proxy device to subscribe to resources in the source node as a proxy for the client node.
[0151] In some embodiments, the second operation includes at least one of the following operations:
[0152] End the second subscription relationship; this second subscription relationship is the downlink subscription relationship corresponding to the first subscription relationship; this first subscription relationship is the subscription relationship between the source node and the proxy device;
[0153] Additionally, remove the source node's identification information from the agent configuration cluster.
[0154] In some embodiments, terminating the second subscription relationship includes:
[0155] Send a first subscription request to the source node; this first subscription request is used to re-establish the first subscription relationship.
[0156] If a subscription error message is received from the source node, the second subscription relationship is terminated.
[0157] In some embodiments, the error response message is used to indicate that there is no valid agent.
[0158] In some embodiments, terminating the second subscription relationship includes:
[0159] Upon receiving a report data message containing error information corresponding to the first subscription relationship, the second subscription relationship is terminated.
[0160] In some embodiments, the error message includes a no valid agent error code.
[0161] In summary, the solution shown in this application embodiment allows the proxy device to perform a second operation to stop proxy subscription related actions from the source node when the proxy device's permission to subscribe to resources in the source node is revoked. This process does not require the user to perform additional steps to stop the proxy device from subscribing to resources in the source node, thus improving the efficiency of subscription relationship management.
[0162] Based on the above Figures 3 to 6 Please refer to the proposed solution. Figure 7 The document illustrates a flowchart of a processing method for proxy subscription provided in one embodiment of this application. This method can be executed interactively by a proxy device, a configuration device, and a source node. For example, the proxy device, configuration device, and source node can each be... Figure 1 The network architecture shown includes proxy device 130, configuration device 140, and source node 110; the method may include the following steps:
[0163] Step 701: Configure the device to cancel the proxy device's proxy subscription permission to the source node.
[0164] In some embodiments, users can configure the device to revoke the proxy device's proxy subscription permission to the source node.
[0165] For example, if a user selects the option to cancel the proxy device's proxy subscription permission to the source node in the configuration device, the configuration device can send a removal command to the source node. This removal command can be used to trigger the source node to delete the proxy device's identification information (such as Node ID) from the list of valid proxies (such as ValidProxyList in Valid Proxies Cluster, as shown in Tables 6 and 7).
[0166] Step 702: The source node removes the identifier information of the proxy device from the source node's list of valid proxies.
[0167] In some embodiments, after receiving a removal instruction from the configuration device, the source node removes the Node ID of the proxy device from the local ValidProxyList. After that, the proxy device will not be used as a valid proxy for the source node, or in other words, the client device will not be able to find the proxy device when querying the valid proxy for the source node.
[0168] Step 703: The source node deletes the proxy subscription permission information of the proxy device from the source node.
[0169] In some embodiments, the proxy subscription permission information is used to indicate that the proxy device has permission to subscribe to the proxy for the access control list (ACL) cluster in the source node.
[0170] The aforementioned proxy subscription permission information can be used to indicate that the proxy device has Proxyview permission to the source node. With this Proxyview permission, the proxy device can read and subscribe to resources in the source node that include ACLCluster.
[0171] In some embodiments, deleting the proxy subscription permission information of the proxy device from the source node when canceling the proxy device's proxy subscription permission to the source node includes:
[0172] If the identifier information of the proxy device is removed from the list of valid proxies of the source node, the proxy subscription permission information of the proxy device in the source node shall also be removed.
[0173] In this embodiment, the step of deleting the proxy subscription permission information of the proxy device can be automatically executed by the source node. For example, when the source node completes the action of deleting the Node ID of the proxy device from the local ValidProxyList, it automatically executes the step of deleting the proxy view permission of the proxy device; or, when the source node receives a removal instruction that triggers the deletion of the Node ID of the proxy device from the ValidProxyList, it can automatically trigger the step of deleting the proxy view permission of the proxy device.
[0174] In some embodiments, deleting the proxy subscription permission information of the proxy device from the source node when canceling the proxy device's proxy subscription permission to the source node includes:
[0175] Upon receiving the first deletion instruction, delete the proxy subscription permission information of the proxy device in the source node;
[0176] The first deletion instruction can be an instruction sent by the configuration device when it deletes the identification information of the agent device from the valid agent list of the source node.
[0177] In this embodiment, the step of deleting the proxy subscription permission information of the proxy device can be triggered by the configuration device to be executed by the source node. For example, the configuration device can cancel the proxy device's proxy subscription permission to the source node, and can also send a first deletion command to the source node. After receiving the first deletion command, the source node can delete the proxy device's Proxy view permission according to the first deletion command.
[0178] In some embodiments, the first deletion instruction can be sent to the source node independently of the aforementioned removal instruction. For example, the first deletion instruction and the removal instruction can be sent to the source node by the configuration device through different messages. Alternatively, the first deletion instruction and the removal instruction can be sent to the source node by the configuration device through the same message; for example, the first deletion instruction and the removal instruction can be carried in different fields of the message.
[0179] In some embodiments, the first deletion instruction may also be included in the removal instruction and sent to the source node. For example, the removal instruction may include a deletion identifier (i.e., the first deletion instruction), which instructs the source node to delete the proxy view permissions of the proxy device. Upon receiving the removal instruction, the source node removes the Node ID of the proxy device from its local ValidProxyList. Simultaneously, the source node detects that the removal instruction also includes a deletion identifier and deletes the proxy view permissions of the proxy device based on this identifier.
[0180] Step 704: The source node checks whether a first subscription relationship exists in the source node; the first subscription relationship is the subscription relationship between the source node and the proxy device.
[0181] In some embodiments, the source node can check whether a first subscription relationship exists by checking whether a subscription initiated from the proxy device exists in the subscription list (e.g., querying whether the proxy device's NodeID exists in the subscription list, or querying whether a subscription relationship record associated with the proxy device's NodeID exists in the subscription list).
[0182] If the source node determines that a subscription initiated from the proxy device exists in the subscription list, then the aforementioned first subscription relationship is confirmed to exist.
[0183] Step 705: If the first subscription relationship exists in the source node, the source node terminates the first subscription relationship.
[0184] When the source node determines that a subscription initiated from the proxy device exists in the subscription list, it can terminate the subscription initiated from the proxy device.
[0185] In some embodiments, the source node may also delete the information corresponding to the first subscription relationship from the source node's subscription list.
[0186] Step 706: The proxy device terminates the second subscription relationship; the second subscription relationship is the downlink subscription relationship corresponding to the first subscription relationship.
[0187] In some embodiments, the agent device may also remove the source node's identification information from the agent configuration cluster.
[0188] In some embodiments, the process by which the source node terminates the first subscription relationship may include:
[0189] Stop sending report data messages corresponding to the first subscription relationship to the agent device.
[0190] Once the source node detects a subscription initiated by the proxy device in its subscription list (i.e., a first subscription relationship exists), it can stop sending report data messages corresponding to the first subscription relationship to the proxy device (please refer to the above). Figure 2 Step S24 in the above process will terminate the first subscription relationship.
[0191] In some embodiments, the method further includes:
[0192] The source node receives the first subscription request sent by the proxy device; this first subscription request is used to re-establish the first subscription relationship.
[0193] The source node returns a subscription error message to the proxy device.
[0194] If the proxy device fails to receive the report data message corresponding to the first subscription relationship from the source node, it may re-initiate the establishment of the first subscription relationship, that is, send the first subscription request to the source node. At this time, the source node can return a subscription error message to the proxy device. After receiving the subscription error message, the proxy device can cancel the first subscription relationship on the proxy device side, for example, by no longer sending the subscription request to re-establish the first subscription relationship, and by deleting the node ID of the source node in the sourcelist of the proxy configuration cluster maintained by the proxy device.
[0195] Accordingly, the process by which the proxy device terminates the second subscription relationship may include: sending a first subscription request to the source node; the first subscription request being used to re-establish the first subscription relationship; and terminating the second subscription relationship upon receiving a subscription error message returned by the source node.
[0196] The termination of the second subscription relationship may include sending a notification message about a proxy subscription error to the client device corresponding to the second subscription relationship.
[0197] In some embodiments, the subscription error message returned to the agent device includes:
[0198] The agent device returns an error response message indicating that there is no valid agent.
[0199] The aforementioned subscription error message could be a "No valid proxy" error response message.
[0200] In some embodiments, the process of terminating the first subscription relationship may include:
[0201] Send a first report data message to the agent device; the first report data message is a report data message corresponding to the first subscription relationship and contains error information.
[0202] In this embodiment, after the source node detects that there is a subscription initiated by the proxy device in the subscription list (i.e., there is a first subscription relationship), it can send the last report data message corresponding to the first subscription relationship to the proxy device. The report data message may contain an error message. After receiving the subscription error message, the proxy device can cancel the first subscription relationship on the proxy device side, for example, by deleting the node ID of the source node in the sourcelist of the proxy configuration cluster maintained by the proxy device.
[0203] In some embodiments, the error message includes a no valid agent error code.
[0204] In this embodiment of the application, the error message may include No Valid Proxy ErrorCode.
[0205] Accordingly, the process of the agent device terminating the second subscription relationship may include: terminating the second subscription relationship upon receiving a report data message containing error information corresponding to the first subscription relationship.
[0206] In summary, the solution shown in this application embodiment allows the source node to delete the proxy device's proxy browsing permission for information on the source node when the proxy device's permission to subscribe to resources on the source node is revoked. This avoids the situation where the proxy device can still view information on the source node after the proxy subscription permission is revoked, thus improving the security of the proxy subscription scenario.
[0207] Based on the above in this application Figure 7 The content shown, taking the first operation including deleting the proxy browsing permission information of the proxy device and ending the first subscription relationship, and the first operation including ending the second subscription relationship as an example, shows that the source node has the proxy browsing permission information of the proxy device, which is used to indicate that the proxy device has the proxy browsing permission Proxy view of the source node.
[0208] Please refer to Figure 8 This illustrates a framework diagram of a processing flow for proxy subscription provided in one embodiment of this application. In one possible application scenario, such as... Figure 8 As shown, the source node 81 contains proxy browsing permission information for the proxy device 82, indicating that the proxy device 82 is allowed to read and subscribe to resources in the source node 81, including ACL clusters; at the same time, the Valid Proxies Cluster of the source node 81 contains the node ID of the proxy device 82, indicating that the proxy device 82 is allowed to act as a proxy to subscribe to resources in the source node 81.
[0209] like Figure 8As shown, when client device A initiates a proxy subscription request to proxy device 82, requesting proxy device 82 to subscribe to resources on its behalf, proxy device 82 can subscribe to the corresponding resources from source node 81 and send the subscribed resources to client device A. When a user cancels the permission for proxy device 82 to subscribe to resources in source node 81 as a proxy by configuring the device, that is, when the Node ID of proxy device 82 is removed from the Valid Proxies Cluster of source node 81, source node 81 can delete the proxy browsing permission information of proxy device 82. At the same time, source node 81 initiates the cancellation of the existing first subscription relationship from proxy device 82 at both source node 81 and proxy device 82, and proxy device 82 can cancel the downstream subscription relationship of the first subscription relationship.
[0210] Based on the above Figure 7 or Figure 8 Please refer to the proposed solution. Figure 9 This document illustrates a framework diagram of a proxy subscription processing flow provided in one embodiment of this application. Taking the proxy device as ProxyNode, the client node as ClientNode, and the source node as SourceNode as an example, as follows... Figure 9 As shown, the processing flow for proxy subscriptions may include the following steps:
[0211] S901, the ClientNode and ProxyNode have completed the subscription to a resource on the SourceNode.
[0212] In S902, the ProxyNode and SourceNode have also established a subscription relationship, which can be understood as the proxy service of the subscription in step S901.
[0213] In step S903, the `validproxylist` property in the Valid Proxies Cluster on the SourceNode is modified, specifically by removing the ProxyNode's Node ID from the `validproxylist`. Here, the ProxyNode refers to the proxy device involved in steps S901 and S902.
[0214] S904. If the ProxyNode is not a proxy device supported by the SourceNode after the SourceNode has completed the operation in step S903, then the ProxyNode's ProxyView permission for the ACL Cluster should be deleted.
[0215] ① If the ProxyNode loses its ProxyView permission for the ACL Cluster, it will be unable to subscribe to resources on the SourceNode for other Clients.
[0216] ②The deletion action may be initiated by the admin device (i.e., the configuration device), or it may be automatically executed by the SourceNode during or after step S903 is completed.
[0217] S905, check if the subscription list contains subscriptions initiated from the ProxyNode.
[0218] S906, if it exists, terminate the subscription relationship. One method is to stop sending ReportData messages to the ProxyNode, thus terminating the subscription relationship between the SourceNode and the ProxyNode by not sending ReportData messages.
[0219] In S907, if the ProxyNode fails to receive ReportData messages, it will determine that the subscription relationship has been lost. The ProxyNode may then initiate a resubscription process, which involves sending a new subscription request to the SourceNode.
[0220] In step S908, the SourceNode sends a "No valid proxy" error response to the new subscription request in step S907.
[0221] S909, after the ProxyNode fails to establish a subscription relationship with the SourceNode, it terminates the subscription relationship with the ClientNode.
[0222] Please refer to Figure 10 This document illustrates a framework diagram of a proxy subscription processing flow provided in one embodiment of this application. Taking the proxy device as ProxyNode, the client node as ClientNode, and the source node as SourceNode as an example, as follows... Figure 10 As shown, the processing flow for proxy subscriptions may include the following steps:
[0223] S1001, ClientNode and ProxyNode have completed the subscription of a resource on SourceNode.
[0224] In S1002, the ProxyNode and SourceNode have also established a subscription relationship, which can be understood as the proxy service for the subscription in step S1001.
[0225] In step S1003, the `validproxylist` property in the Valid Proxies Cluster on the SourceNode is modified, specifically by removing the ProxyNode's Node ID from the `validproxylist`. Here, `ProxyNode` refers to the proxy device involved in steps S1001 and S1002.
[0226] S1004, SourceNode Step: If the ProxyNode is not a proxy device supported by the SourceNode after completing the operation in step S1003, then the ProxyNode's ProxyView permission for the ACL Cluster should be deleted.
[0227] Note 1: If the ProxyNode loses ProxyView permissions to the ACL Cluster, it will be unable to subscribe to resources on the SourceNode for other Clients.
[0228] Note 2: The deletion action may be initiated by the admin device, or it may be automatically executed by the SourceNode during or after step S1003 is completed.
[0229] S1005, Check if there are any subscriptions initiated from the ProxyNode in the subscription list.
[0230] S1006, if applicable, the SourceNode sends a ReportData message to the ProxyNode, which contains the No Valid Proxy ErrorCode.
[0231] S1007, after receiving the above information, the ProxyNode terminates its subscription relationship with the SourceNode and may remove the SourceNode's ID from the sourcelist in its maintained proxy configuration cluster.
[0232] S1008, the ProxyNode terminates its downlink subscription relationship with the ClientNode.
[0233] Among them, the above Figures 3 to 10 The scheme shown is only illustrated by the example of the source node canceling the first subscription relationship. In some embodiments, even if the source node cancels the proxy device's proxy subscription permission for the source node, the existing proxy subscription relationship between the proxy device and the resources in the source node can still be maintained.
[0234] Please refer to Figure 11This document illustrates a framework diagram of a proxy subscription processing flow provided in one embodiment of this application. Taking the proxy device as ProxyNode, the client node as ClientNode, and the source node as SourceNode as an example, as follows... Figure 11 As shown, the processing flow for proxy subscriptions may include the following steps:
[0235] S1101, ClientNode and ProxyNode have completed the subscription to a resource on SourceNode.
[0236] In S1102, the ProxyNode and SourceNode have also established a subscription relationship, which can be understood as a proxy service for the subscription in step S1101.
[0237] S1103, the validproxylist property in the Valid Proxies Cluster on the SourceNode is modified, and the Node ID of the ProxyNode is removed from the validproxylist. Here, ProxyNode refers to the proxy device mentioned in the prerequisites.
[0238] S1104, the subscription relationship between ClientNode, Proxy Node and SourceNode remains unaffected and continues to be maintained.
[0239] S1105, if the ClientNode needs to subscribe to another resource located on the SourceNode, it may re-initiate the proxy discovery process. That is, before or after sending a broadcast query for available proxies, it will retrieve the validproxieslist from the SourceNode. The ProxyNode is no longer in this list.
[0240] S1106, the ClientNode broadcasts a request to obtain a valid proxy and receives a response from one or more proxy devices.
[0241] In step S1107, the Client determines available proxies based on the validproxieslist and a subset of the response messages from step S1106. It is foreseeable that proxy nodes that have been removed from the validproxylist are not included in this subset. In other words, deleted proxy nodes cannot act as proxies for this ClientNode.
[0242] In other words, this ProxyNode will not act as a proxy for any Client to subscribe to the SourceNode.
[0243] The solution described in the above embodiments of this application clarifies how to handle existing proxies when a proxy is removed from the validproxieslist; browsing permissions and subscription relationships can reduce connection disruptions or failure to reflect user intent caused by inconsistent understanding of scenarios in cross-brand interoperable products, thus improving the stability of the solution.
[0244] Please refer to Figure 12 This diagram illustrates a block diagram of a processing apparatus for proxy subscription according to an embodiment of this application. The apparatus has the functionality performed by the source node in the various method embodiments described above. Figure 12 As shown, the processing device 1200 for proxy subscription may include:
[0245] Processing module 1201 is configured to perform a first operation when the proxy device cancels its proxy subscription permission to the source node; the first operation is configured to stop the proxy subscription-related actions between the proxy device and the proxy device.
[0246] The proxy subscription permission includes the permission for the proxy device to subscribe to resources in the source node as a proxy for the client node.
[0247] In some embodiments, the processing module 1201 is configured to perform at least one of the following operations:
[0248] End the first subscription relationship; the first subscription relationship is the subscription relationship between the source node and the proxy device.
[0249] Delete the information corresponding to the first subscription relationship from the subscription list of the source node;
[0250] Delete the proxy browsing permission information of the proxy device; the proxy browsing permission information is used to indicate that the proxy device has the permission to browse the information in the source node.
[0251] In some embodiments, the processing module 1201 is configured to stop sending the report data message corresponding to the first subscription relationship to the agent device.
[0252] In some embodiments, the apparatus further includes:
[0253] The receiving module is configured to receive a first subscription request sent by the proxy device; the first subscription request is used to re-establish the first subscription relationship.
[0254] The sending module is used to return a subscription error message to the agent device.
[0255] In some embodiments, the sending module is configured to return an error response message indicating that there is no valid proxy to the proxy device.
[0256] In some embodiments, the processing module 1201 is configured to send a first report data message to the agent device; the first report data message is a report data message corresponding to the first subscription relationship and containing error information.
[0257] In some embodiments, the error message includes a no valid agent error code.
[0258] In some embodiments, the proxy browsing permission information is used to indicate that the proxy device has permission to browse the access control list (ACL) cluster in the source node.
[0259] In some embodiments, the processing module 1201 is configured to perform the first operation when the identification information of the proxy device is deleted from the valid proxy list of the source node.
[0260] In some embodiments, the processing module 1201 is configured to perform the first operation upon receiving a first deletion instruction;
[0261] The first deletion instruction is generated when the identification information of the proxy device is deleted from the valid proxy list of the source node.
[0262] Please refer to Figure 13 This diagram illustrates a block diagram of a processing apparatus for proxy subscription according to an embodiment of this application. The apparatus has the functions performed by the proxy device in the various method embodiments described above. Figure 13 As shown, the processing device 1300 for proxy subscription may include:
[0263] The processing module 1301 is configured to perform a second operation when the proxy device's proxy subscription permission to the source node is revoked; the second operation is configured to stop the proxy subscription-related actions from the source node.
[0264] The proxy subscription permission includes the permission for the proxy device to subscribe to resources in the source node as a proxy for the client node.
[0265] In some embodiments, the processing module 1301 is configured to perform at least one of the following operations:
[0266] End the second subscription relationship; the second subscription relationship is the downlink subscription relationship corresponding to the first subscription relationship; the first subscription relationship is the subscription relationship between the source node and the proxy device;
[0267] In addition, the identification information of the source node is removed from the agent configuration cluster.
[0268] In some embodiments, the processing module 1301 is used for,
[0269] Send a first subscription request to the source node; the first subscription request is used to re-establish the first subscription relationship;
[0270] If a subscription error message is received from the source node, the second subscription relationship is terminated.
[0271] In some embodiments, the error response message is used to indicate that there is no valid agent.
[0272] In some embodiments, the processing module 1301 is configured to terminate the second subscription relationship upon receiving a report data message containing error information corresponding to the first subscription relationship.
[0273] In some embodiments, the error message includes a no valid agent error code.
[0274] It should be noted that the device provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0275] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.
[0276] Please refer to Figure 14 The diagram illustrates the structure of a computer device 1400 according to an embodiment of this application. The computer device 1400 may include: a processor 1401, a receiver 1402, a transmitter 1403, a memory 1404, and a bus 1405.
[0277] The processor 1401 includes one or more processing cores, and the processor 1401 executes various functional applications and information processing by running software programs and modules.
[0278] The receiver 1402 and the transmitter 1403 can be implemented as a communication component, which can be a communication chip. This communication chip can also be called a transceiver.
[0279] The memory 1404 is connected to the processor 1401 via the bus 1405.
[0280] The memory 1404 can be used to store computer programs, and the processor 1401 is used to execute the computer programs to implement the various steps in the above method embodiments.
[0281] Furthermore, the memory 1404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, including but not limited to: magnetic disks or optical disks, electrically erasable programmable read-only memory, erasable programmable read-only memory, static on-demand memory, read-only memory, magnetic memory, flash memory, and programmable read-only memory.
[0282] In one exemplary embodiment, when the computer device 1400 is implemented as a source node, the processor is configured to perform a first operation when the proxy device's proxy subscription permission to the source node is revoked; the first operation is configured to stop performing proxy subscription-related actions with the proxy device; wherein the proxy subscription permission includes the permission of the proxy device to subscribe to resources in the source node as a proxy for the client node.
[0283] In one exemplary embodiment, when the computer device 1400 is implemented as a proxy device, the processor is configured to perform a second operation when the proxy device's proxy subscription permission to the source node is revoked; the second operation is configured to stop proxy subscription-related actions from the source node; wherein the proxy subscription permission includes the permission of the proxy device to subscribe to resources in the source node as a proxy for the client node.
[0284] The processes executed by the processor 1401 and / or transceiver 1402 in the aforementioned computer device 1400 can refer to the various steps executed by the source node or proxy device in the above-described method embodiments.
[0285] This application also provides a computer-readable storage medium storing a computer program, which is loaded and executed by a processor to implement all or part of the steps performed by the proxy device or source node in the above-described method embodiments.
[0286] This application also provides a chip for operation in a computer device to enable the computer device to perform all or part of the steps performed by the proxy device or source node in the various method embodiments described above.
[0287] This application also provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform all or part of the steps executed by the proxy device or source node in the various method embodiments described above.
[0288] This application also provides a computer program executed by a processor of a computer device to implement all or part of the steps performed by the proxy device or the source node in the above-described method embodiments.
[0289] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0290] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A processing method for proxy subscription, characterized in that, The method is executed by the source node, and the method includes: If the proxy device cancels its proxy subscription permission to the source node, a first operation is performed; the first operation is used to stop the proxy subscription-related actions between the proxy device and the proxy device; the first operation includes stopping the sending of report data messages corresponding to the first subscription relationship to the proxy device. The proxy device receives a first subscription request; the first subscription request is used to re-establish a first subscription relationship; the first subscription relationship is a subscription relationship between the source node and the proxy device; the first subscription request is sent by the proxy device when it cannot receive a report data message corresponding to the first subscription relationship from the source node. The agent returns a subscription error message to the agent device, which is an error response message indicating that there is no valid agent; the error response message is used to instruct the agent device to perform a second operation; the second operation is used to stop agent subscription-related actions from the source node; the second operation includes removing the identification information of the source node from the agent configuration cluster; The proxy subscription permission includes the permission of the proxy device to subscribe to resources in the source node as a proxy for the client node; the source node, client device, and proxy device are Internet of Things (IoT) devices.
2. The method according to claim 1, characterized in that, The first operation further includes at least one of the following operations: Delete the information corresponding to the first subscription relationship from the subscription list of the source node; Delete the proxy browsing permission information of the proxy device; the proxy browsing permission information is used to indicate that the proxy device has the permission to browse the information in the source node.
3. The method according to claim 2, characterized in that, The proxy browsing permission information is used to indicate that the proxy device has the permission to browse the Access Control List (ACL) cluster in the source node.
4. The method according to any one of claims 1 to 3, characterized in that, When the proxy device cancels its proxy subscription permission to the source node, the first operation includes: The first operation is performed if the identification information of the proxy device is removed from the list of valid proxies of the source node.
5. The method according to any one of claims 1 to 3, characterized in that, When the proxy device cancels its proxy subscription permission to the source node, the first operation includes: Upon receiving the first deletion instruction, the first operation is executed; The first deletion instruction is generated when the identification information of the proxy device is deleted from the valid proxy list of the source node.
6. A processing method for proxy subscription, characterized in that, The method is executed by a proxy device, and the method includes: A first subscription request is sent to the source node; the first subscription request is used to re-establish the first subscription relationship; the first subscription request is sent by the proxy device when it cannot receive the report data message corresponding to the first subscription relationship from the source node; the source node is used to perform a first operation when the proxy device cancels the proxy subscription permission of the source node; the first operation is used to stop performing proxy subscription-related actions with the proxy device; the first operation includes stopping sending the report data message corresponding to the first subscription relationship to the proxy device; Upon receiving a subscription error message from the source node, and the subscription error message is an error response message indicating that there is no valid agent, a second operation is performed; the second operation is used to stop agent subscription-related actions from the source node; the second operation includes removing the source node's identification information from the agent configuration cluster; The proxy subscription permission includes the permission of the proxy device to subscribe to resources in the source node as a proxy for the client node; the source node, client device, and proxy device are Internet of Things (IoT) devices.
7. The method according to claim 6, characterized in that, The second operation also includes: The second subscription relationship is terminated; the second subscription relationship is the downlink subscription relationship corresponding to the first subscription relationship; the first subscription relationship is the subscription relationship between the source node and the proxy device.
8. A processing apparatus for proxy subscription, characterized in that, The device includes: The processing module is configured to perform a first operation when the proxy device's proxy subscription permission to the source node is revoked; the first operation is configured to stop performing proxy subscription-related actions with the proxy device; the first operation includes stopping the sending of report data messages corresponding to the first subscription relationship to the proxy device; A receiving module is configured to receive a first subscription request sent by the proxy device; the first subscription request is used to re-establish a first subscription relationship; the first subscription relationship is a subscription relationship between the source node and the proxy device; the first subscription request is sent by the proxy device when it cannot receive a report data message corresponding to the first subscription relationship sent by the source node. The sending module is configured to return a subscription error message to the proxy device, the subscription error message being an error response message indicating that there is no valid proxy; the error response message is configured to instruct the proxy device to perform a second operation; the second operation is configured to stop proxy subscription-related actions from the source node; the second operation includes deleting the identification information of the source node from the proxy configuration cluster; The proxy subscription permission includes the permission of the proxy device to subscribe to resources in the source node as a proxy for the client node; the source node, client device, and proxy device are Internet of Things (IoT) devices.
9. The apparatus according to claim 8, characterized in that, The processing module is also configured to perform at least one of the following operations: Delete the information corresponding to the first subscription relationship from the subscription list of the source node; Delete the proxy browsing permission information of the proxy device; the proxy browsing permission information is used to indicate that the proxy device has the permission to browse the information in the source node.
10. The apparatus according to claim 9, characterized in that, The proxy browsing permission information is used to indicate that the proxy device has the permission to browse the Access Control List (ACL) cluster in the source node.
11. The apparatus according to any one of claims 8 to 10, characterized in that, The processing module is configured to perform the first operation when the identification information of the proxy device is deleted from the valid proxy list of the source node.
12. The apparatus according to any one of claims 8 to 10, characterized in that, The processing module is configured to execute the first operation upon receiving a first deletion instruction; The first deletion instruction is generated when the identification information of the proxy device is deleted from the valid proxy list of the source node.
13. A processing apparatus for proxy subscription, characterized in that, The device includes: A processing module is configured to send a first subscription request to a source node; the first subscription request is used to re-establish a first subscription relationship; the first subscription request is sent by the proxy device when it cannot receive a report data message corresponding to the first subscription relationship from the source node; the source node is configured to perform a first operation when the proxy device's proxy subscription permission to the source node is revoked; the first operation is used to stop performing proxy subscription-related actions with the proxy device; the first operation includes stopping sending report data messages corresponding to the first subscription relationship to the proxy device; upon receiving a subscription error message returned by the source node, and the subscription error message is an error response message indicating that there is no valid proxy and the proxy device's proxy subscription permission to the source node has been revoked, a second operation is performed; the second operation is used to stop performing proxy subscription-related actions from the source node; the second operation includes deleting the source node's identification information from the proxy configuration cluster; The proxy subscription permission includes the permission of the proxy device to subscribe to resources in the source node as a proxy for the client node; the source node, client device, and proxy device are Internet of Things (IoT) devices.
14. The apparatus according to claim 13, characterized in that, The processing module is also used to perform the following operations: The second subscription relationship is terminated; the second subscription relationship is the downlink subscription relationship corresponding to the first subscription relationship; the first subscription relationship is the subscription relationship between the source node and the proxy device.
15. A computer device, characterized in that, The computer device includes a processor, memory, and transceiver; The memory stores a computer program, which the processor executes to cause the computer device to implement the processing method for proxy subscription as shown in any one of claims 1 to 5, or to cause the computer device to perform the processing method for proxy subscription as shown in claim 6 or 7.
16. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that is executed by a processor to implement the processing method for proxy subscription as described in any one of claims 1 to 6, or to cause a computer device to perform the processing method for proxy subscription as described in claim 6 or 7.
17. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the processing method for proxy subscription as described in any one of claims 1 to 5, or causing the computer device to perform the processing method for proxy subscription as described in claim 6 or 7.
Citation Information
Patent Citations
Method for processing subscription notification based on application server permission
CN101645881A
Authorization method and device for proxy subscription
CN111865888A
