WO2017198088A1 - Procédé, dispositif et système d'abonnement à une ressource - Google Patents

Procédé, dispositif et système d'abonnement à une ressource Download PDF

Info

Publication number
WO2017198088A1
WO2017198088A1 PCT/CN2017/083508 CN2017083508W WO2017198088A1 WO 2017198088 A1 WO2017198088 A1 WO 2017198088A1 CN 2017083508 W CN2017083508 W CN 2017083508W WO 2017198088 A1 WO2017198088 A1 WO 2017198088A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
subscription
information
publishing
node
Prior art date
Application number
PCT/CN2017/083508
Other languages
English (en)
Chinese (zh)
Inventor
常红娜
甘璐
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201710272801.7A external-priority patent/CN107404512B/zh
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to KR1020187035108A priority Critical patent/KR102158654B1/ko
Priority to JP2018558664A priority patent/JP6624619B2/ja
Priority to EP17798651.0A priority patent/EP3447996A4/fr
Publication of WO2017198088A1 publication Critical patent/WO2017198088A1/fr
Priority to US16/193,574 priority patent/US10637794B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present invention relates to communication technologies, and in particular, to a resource subscription method, a resource subscription device, and a resource subscription system.
  • REST Representational State Transfer, REST for short
  • REST represents an architectural style network system, such as a web application.
  • each entity or information is a resource, which can be a piece of text, a picture, a song, a service, and so on.
  • Each resource corresponds to a specific Uniform Resource Location (URL), which is obtained by accessing the URI of the resource.
  • URL Uniform Resource Location
  • RESTful systems generally use a client/server model, and nodes transfer data by hop-by-hop addressing according to the URL of the resource.
  • IoT systems adopt a RESTful architecture, and devices are connected to the cloud platform directly or through a gateway, and the data generated by the device is reported to the platform in the form of resources.
  • each device releases thousands of data per second, and the data is reported to the cloud platform through the gateway, causing the cloud platform and the gateway to be overloaded, which is prone to congestion and packet loss.
  • the real-time requirements for data are high, and delayed transmission of data may have catastrophic consequences.
  • the automobile automatic driving system, the vehicle speed sensor, the road condition detecting system, the console, the brake braking system and the like establish a connection.
  • the road condition detecting system detects that the road condition is abnormal, the road condition information needs to be reported to the console in time, and the console is based on The vehicle speed and road condition information promptly send control commands to the brake system for braking.
  • FIG. 1 is an architecture diagram of an Internet of Things cloud platform 1 based on a RESTful architecture.
  • the Internet of Things cloud platform 1 includes a device 11 , a gateway 12 , a cloud platform 13 , a gateway 14 , and a device 15 .
  • / Server ie device 15
  • devices communicate according to the resource URL hop-by-hop addressing, the transmission across the gateway requires cloud platform for message relay, the device can not directly P2P communication.
  • device 11 registers with gateway 12, device 15 registers with gateway 14, and gateway 12 and gateway 14 register with the cloud platform.
  • the device 11 needs to send a message to the device 15, and the device 11 first sends the message to the gateway 12.
  • the gateway 12 obtains the URL information of the device 15 from the message, and finds the URL of the device 15 in the local registration information, and then forwards the message to the cloud platform.
  • the cloud platform parses the URL of the device 15 in the message, and finds in the local registration information. If there is this URL resource under the gateway 14, the message is forwarded to the gateway 14, which forwards the message to the device 15.
  • the disadvantage of the Internet of Things cloud platform based on the RESTful architecture is that the device 11 and the device 15 cannot directly communicate with each other, which increases the transmission delay of the message.
  • a first aspect of the present invention provides a resource subscription system, where the system includes: a publishing device, configured to send a resource publishing request, where the resource publishing request includes publishing resource information, node identifier information of the publishing device, The IP address of the publishing device and the node identification information of the control device; the first forwarding device is configured to receive the resource issue request, and add the node identifier information of the first forwarding device to the resource issue request, according to the resource issue request The node identification information of the control device sends the resource issue request to the control device; and the control device is configured to receive the resource issue request, according to the node identification information of the first forwarding device and the node of the publishing device in the resource issue request The identification information determines path information of the publishing device, and stores the path information, the publishing resource information, and an IP address of the publishing device in a publishing device node of the network resource tree.
  • the resource subscribing system further includes: a subscribing device, configured to send a resource subscription request, where the resource subscription request includes subscription resource information, node identifier information of the subscribing device The IP address of the subscription device and the node identification information of the control device.
  • the second forwarding device is configured to receive the resource subscription request, add the node identifier information of the second forwarding device to the resource subscription request, and subscribe according to the resource.
  • the node identification information of the control device in the request sends the resource subscription request to the control device; the control device is further configured to receive the resource subscription request, according to the node identification information of the second forwarding device and the subscription device in the resource subscription request Node identification information, determining path information of the subscription device, and storing the path information, the subscription resource information, and an IP address of the subscription device in a subscription device node of the network resource tree; the control device is further configured to use the subscription Resource information is matched in the network resource tree when matched After the release resource message sent to the corresponding resource information distribution device corresponding to the IP address of the device to subscribe.
  • the subscription resource information includes a resource ID
  • the control device is further configured to match the published resource information in the network resource tree according to the resource ID of the resource subscription information. Resource ID.
  • the subscription resource information includes node identifier information of a device, and the control device is further configured to use the node identifier information and the publishing resource node stored in the network resource tree.
  • the path information in the matching is matched.
  • the subscription resource information includes a resource type
  • the control device is further configured to: in the network resource tree according to the resource type, find a publishing device that includes the resource type. node.
  • the control device is further configured to: find the subscription resource information that matches the publishing resource information, to the network resource.
  • the subscription device node is found in the tree; the IP address of the subscription device is stored to the publishing device node; and the IP address of the subscription device is sent to the publishing device to join the publishing device to the resource subscription of the subscription device.
  • control device sends the IP address of the subscription device to the publishing device according to one of path information and an IP address of the publishing device.
  • a second aspect of the present invention provides a resource subscription method, where the resource subscription method includes: the publishing device sends a resource publishing request, where the resource publishing request includes publishing resource information, and a node identifier of the publishing device.
  • the first forwarding device receives the resource issuance request, and the node identification information of the first forwarding device is added in the resource issuance request, according to the resource Sending, by the control device, the node identification information of the control device to the control device;
  • the control device receiving the resource issue request, according to the node identification information of the first forwarding device and the node of the publishing device in the resource issue request Identifying information, determining path information of the publishing device; and storing the path information, the publishing resource information, and an IP address of the publishing device in a publishing device node of the network resource tree.
  • the resource subscription method further includes: the subscribing device sends a resource subscription request, where the resource subscription request includes subscription resource information, node identifier information of the subscribing device, the subscription The IP address of the device and the node identification information of the control device; the second forwarding device receives the resource subscription request; the second forwarding device adds the node identification information of the second forwarding device in the resource subscription request; the second forwarding device Transmitting the resource subscription request to the control device according to the node identification information of the control device in the resource subscription request; the control device receives the resource subscription request; and the control device is configured according to the node identifier of the second forwarding device in the resource subscription request Determining path information of the subscription device by using the node identification information of the information and the subscription device; the control device storing the path information, the subscription resource information, and an IP address of the subscription device in a subscription device node of the network resource tree; the control device According to the subscription resource information in the network
  • the subscription resource information includes a resource ID
  • the resource subscription method further includes: the control device matching the resource ID in the network resource tree according to the resource ID of the resource subscription information.
  • the resource ID of the release resource information is a resource ID
  • the subscription resource information includes node identifier information of a device
  • the resource subscription method further includes: the control device is stored and stored according to the node identifier information.
  • the path information in the publishing resource node of the network resource tree is matched.
  • the node identifier of the first forwarding device is matched, the resources issued by the publishing device attached to the first forwarding device are subscribed.
  • the subscription resource information includes a resource type
  • the resource subscription method further includes: the control device matches the network resource tree according to the resource type, and finds A publisher node that contains the resource type.
  • the resource subscription method further includes: the control device finding the subscription that matches the publishing resource information Resource information for finding the subscription device node in the network resource tree; the control device storing an IP address of the subscription device to the issue device node; and the control device transmitting an IP address of the subscription device To the publishing device to join the publishing device to a resource subscription of the subscribing device.
  • control device further includes: sending, by the control device, the IP address of the subscription device to the publishing device according to one of path information and an IP address of the publishing device.
  • a third aspect of the present invention provides a control apparatus for use in a resource subscription system, the resource subscription system including a distribution apparatus and a first forwarding apparatus, the control apparatus and the distribution apparatus, and the first forwarding apparatus Working together, the publishing device performs information interaction with the control device through the first forwarding device, the control device includes: a memory for storing a network resource tree; and a transceiver for receiving a resource publishing request, wherein the resource is released
  • the request includes a release resource information, node identifier information of the publishing device, node identifier information of the first forwarding device, and an IP address of the publishing device, and a processor, configured to: according to the node of the first forwarding device in the resource issue request Identification information Determining the path information of the publishing device with the node identification information of the publishing device, and storing the path information, the publishing resource information, and the IP address of the publishing device in a publishing device node of the network resource tree.
  • the resource subscription system further includes a subscription device and a second forwarding device, where the transceiver is further configured to receive the resource subscription request, where the resource subscription request includes a subscription resource.
  • the subscription resource information includes a resource ID
  • the processor of the control device is further configured to match the release in the network resource tree according to the resource ID of the resource subscription information.
  • the resource ID of the resource information is further configured to match the release in the network resource tree according to the resource ID of the resource subscription information.
  • the subscription resource information includes node identifier information of a device, and the processor of the control device uses the node identifier information and the publishing resource node stored in the network resource tree.
  • the path information in the matching is matched.
  • the subscription resource information includes a resource type
  • the processor of the control device is further configured to match, according to the resource type, the network resource tree, and find the resource type Release device node.
  • the processor is further configured to: find the subscription resource information that matches the publishing resource information, for the network Locating the subscriber node in the resource tree; storing the IP address of the subscriber device to the publisher node; wherein the transceiver sends the IP address of the subscriber device to the publishing device to join the publishing device to the resource subscription of the subscription device .
  • the transceiver of the control device sends the IP address of the subscription device to the publishing device according to one of path information and an IP address of the publishing device.
  • a fourth aspect of the present invention provides a resource subscription method, where the resource subscription method includes: a transceiver of a control device receives a resource issue request, where the resource issue request includes a release resource information, and a node of the publishing device. Identification information, node identification information of the first forwarding device, and an IP address of the publishing device; the processor of the control device determines the node identifier information of the first forwarding device and the node identifier information of the publishing device according to the resource issuance request The path information of the device is published; the processor stores the path information, the publishing resource information, and the IP address of the publishing device in a publishing device node of the network resource tree.
  • the resource subscription method further includes: the transceiver receiving a resource subscription request from a subscribing device, where the resource subscription request includes subscription resource information, a node of the subscribing device Identification information, an IP address of the subscription device, and node identification information of the second forwarding device; the processor determines, according to the node identification information of the second forwarding device and the node identification information of the subscription device in the resource subscription request, the subscription device Path information; the processor stores the path information, the subscription resource information, and an IP address of the subscription device in a subscription device node of the network resource tree; the processor performs matching in the network resource tree according to the subscription resource information; After matching the corresponding publishing resource information, the transceiver sends the IP address of the subscription device to the publishing resource.
  • the publishing device corresponding to the information.
  • the subscription resource information includes a resource ID
  • the resource subscription method further includes: the processor of the control device is further configured to use, according to the resource ID of the resource subscription information, The resource ID in the network resource tree that matches the published resource information.
  • the subscription resource information includes node identifier information of a device
  • the resource subscription method further includes: the processor of the control device stores and stores the node identifier information according to the The path information in the publishing resource node of the network resource tree is matched.
  • the node identifier of the first forwarding device is matched, the resources issued by the publishing device attached to the first forwarding device are subscribed.
  • the subscription resource information includes a resource type
  • the resource subscription method further includes: the processor of the control device matches the network resource tree according to the resource type, and finds A publishing device node that includes the resource type.
  • the resource subscription method further includes: the processor finding the subscription resource information that matches the publishing resource information, to Locate the subscription device node in the network resource tree; the processor stores an IP address of the subscription device to the publishing device node; the transceiver sends the IP address of the subscription device to the publishing device to join the publishing device Subscribe to the device's resource subscription.
  • the method further includes: the transceiver of the control device sends the IP address of the subscription device to the one of the path information and the IP address of the publishing device The publishing device.
  • the publishing device and the subscribing device do not need to carry the node of the control device in the sent resource issue request and the resource subscription request.
  • the identification information, the first forwarding device and the second forwarding device may send the resource issuance request and the resource subscription request to the control device according to the registration relationship.
  • the subscribing device when the publishing device and the subscribing device support network self-discovery, the subscribing device includes the addressing information in the sent resource subscription request, and the addressing information may be an IP address, a global unique identifier, or other
  • the control device sends the addressing information of the matched subscription device to the publishing device through the first forwarding device, and when the publishing device discovers a subscription device through the network self-discovery technology, and obtains a subscription device
  • the issuing device checks whether the addressing information obtained by the network self-discovery is within the range of the addressing information sent by the control device, and only the addressing information obtained through the network self-discovery is sent by the control device. When the address information is within the range, the publishing device establishes a connection with the subscription device discovered by the network self-discovery technology, and sends a resource to the subscription device.
  • some information in the resource release request may be used as optional information, such as an IP address of the publishing device; to save storage resources, the control device is stored in the network resource tree. Some information may also be used as optional information, such as the IP address of the publishing device, the path information of the publishing device in the network resource tree, and the path information of the subscribing device in the network resource tree.
  • the subscription device and the distribution device respectively send a subscription resource request and a resource request to the control device to establish a network resource tree through the forwarding device.
  • the control device can subscribe the device to the resource information of the distributed device through a more precise or fuzzy matching manner, and can perform P2P communication between the subscription device and the publishing device to provide a resource subscription system with high transmission efficiency.
  • Figure 1 is an architectural diagram of an Internet of Things cloud platform based on a RESTful architecture
  • FIG. 2 is a structural diagram of a resource subscription system according to a first embodiment of the present invention
  • FIG. 3 is a structural diagram of a resource subscription system according to a first embodiment of the present invention.
  • Figure 4 is a structural view of a control device in accordance with a first embodiment of the present invention.
  • FIG. 5 is a signaling flowchart of a resource subscription system according to a first embodiment of the present invention
  • FIG. 6 is a signaling flowchart of a resource subscription system according to a first embodiment of the present invention.
  • FIG. 7 is a signaling flowchart of a resource subscription system according to a first embodiment of the present invention.
  • FIG. 8 is a structural diagram of a network resource tree according to a first embodiment of the present invention.
  • FIG. 9 is a structural diagram of a network resource tree according to a first embodiment of the present invention.
  • Figure 10 is a structural diagram of a control device in accordance with a first embodiment of the present invention.
  • FIG. 11 is a signaling flowchart of a resource subscription system according to a second embodiment of the present invention.
  • FIG. 12 is a structural diagram of a network resource tree according to a second embodiment of the present invention.
  • FIG. 13 is a structural diagram of another network resource tree according to a second embodiment of the present invention.
  • Table 1 is a table of definitions of abbreviations and key terms related to subsequent embodiments, please refer to it.
  • the resource subscription system 3 includes a control device 31, a gateway 32, a device 33, a gateway 34, a device 35, a cloud platform 36, and a gateway. 37.
  • the device 33 can perform information interaction with the control device 31 through the gateway 37, the gateway 32, and the cloud platform 36 in sequence.
  • the device 35 can perform information interaction with the control device 31 through the gateway 34 and the cloud platform 36.
  • the device 33 or the device 35 can be a subscription terminal or a resource publishing terminal in the resource subscription system, for example, various types of sensors and smart home appliances. , mobile phones, tablet lights, intelligent terminal equipment, etc.
  • the resource subscription system of the present invention implements a resource distribution terminal by adding a control device And the control management of the subscribing terminal, thereby implementing peer-to-peer communication between the resource issuing terminal and the subscribing terminal.
  • the added control device 31 can be independent of the cloud platform 36 or integrated with the cloud platform. Because each forwarding node processes the message consistently in the embodiment of the present invention, for the following description, all gateways or intermediate nodes on the path of the device 33 or the device 35 to the control device 31 will be collectively referred to as a forwarding device, that is,
  • the forwarding device may physically include one or more network entities.
  • the forwarding device of the device 33 to the control device 31 includes the gateway 37, the gateway 32 and the cloud platform 36.
  • 3 is a structural diagram of a resource subscription system 4 according to the first embodiment of the present invention.
  • the resource subscription system 4 includes a control device 41, a first forwarding device 42, a distribution device 43, a second forwarding device 44, and a subscription.
  • the device 45, the publishing device 43 can perform information interaction with the control device through the first forwarding device 42, and the subscription device 45 can perform information interaction with the control device 41 through the second forwarding device 44.
  • the distribution device 43 may transmit a resource issue request including the release resource information, the node identification information of the distribution device 43, the IP address of the delivery device 43, and the node identification information of the control device 41 to the first forwarding device 42, the first forwarding The device 42 may add the node identification information of the first forwarding device 42 in the resource issue request and transmit the resource issue request to the control device 41.
  • the subscribing device 45 may send a resource subscription request including the subscription resource information, the node identification information of the subscribing device 45, the IP address of the subscribing device 45, and the node identification information of the control device 41 to the second forwarding device 44, and the second forwarding device 44 may The node identification information of the second forwarding device 44 is added to the resource distribution request and the resource issuance request is transmitted to the control device 41.
  • the control device 41 can match the subscription resource information and publish the resource information. After the matching is completed, the subscribing device 45 can subscribe to the resource information of the publishing device 43 and perform P2P communication with the subscribing device 45 to obtain the resource information of the device 43.
  • FIG. 4 is a structural diagram of the control device 41.
  • the control device 41 includes a transceiver 411 , a processor 413 , a memory 415 , an output input interface 417 , and a bus 419 .
  • the processor 413, the memory 415, the input/output interface 417, and the transceiver 411 implement communication connections with each other through the bus 419.
  • the processor 413 can be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the memory 415 may be a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM).
  • Memory 415 can store operating systems and other applications.
  • the program code for implementing the technical solution provided by the embodiment of the present invention is stored in the memory 415 and executed by the processor 413 when the technical solution provided by the embodiment of the present invention is implemented by software or firmware.
  • the memory 315 also stores a network resource tree for recording network resource information.
  • the input/output interface 417 is for receiving input data and information, and outputting data such as operation results.
  • Transceiver 411 implements communication between control device 41 and other devices or communication networks using transceivers such as, but not limited to, transceivers and transceiver modules.
  • Bus 419 can include a path for communicating information between various components of control device 41, such as processor 413, memory 415, transceiver 411, and output input interface 417.
  • control device 41 shown in FIG. 4 only shows the processor 413, the memory 415, the input/output interface 417, the transceiver 411, and the bus 419, those skilled in the art will understand in the specific implementation process.
  • the control device 41 also includes other devices necessary to achieve normal operation.
  • the control device 41 may also include hardware devices that implement other additional functions, depending on the particular needs.
  • the control device 41 may also only include the devices or modules necessary to implement the embodiments of the present invention without All of the devices shown in Figure 4 are included.
  • the hardware structure shown in FIG. 4 and the above description are applicable to various forwarding devices, publishing devices, and subscription devices provided by the embodiments of the present invention.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • FIG. 5 is a signaling flowchart of the resource subscription system according to the first embodiment of the present invention, which is applicable to the resource subscription system of FIG.
  • the distribution device 43 transmits a resource issue request including the release resource information, the node identification information of the delivery device 43, the IP address of the delivery device 43, and the node identification information of the control device 41.
  • the node identification information of the publishing device 43 and the control device 41 is used to indicate the informal network address of the publishing device 43 and the control device 41.
  • the node identification information of the publishing device 43 is: / issuance device 43
  • the node identification information of the control device 41 is: / control device 41
  • the first forwarding device 42 is configured to receive the resource issuance request, and add the node identification information of the first forwarding device 42 in the resource issuance request.
  • the node identifier information of the publishing device 43 is: After the node identification information of the first forwarding device 42 is added in the resource distribution request, the first forwarding device 42/distributing device 43 is generated.
  • the first forwarding device 42 transmits a resource issue request to the control device 41 according to the node identification information of the control device 41 in the resource issue request.
  • the transceiver 411 of the control device 41 is configured to receive the resource issue request, and the processor 413 of the control device 41 is configured according to the node identifier information of the first forwarding device 42 and the node identifier information of the publishing device 43 in the resource issue request.
  • the path information of the issuing device 43 is determined.
  • the path information may be: / control device 41 / first forwarding device 42 / publishing device 43.
  • FIG. 9 is a structural diagram of the network resource tree 6 .
  • the processor 413 stores the path information, the published resource information, and the IP address of the publishing device 43 in the network resource tree. Release device node 63 of 6.
  • the processor 413 determines the path information of the distribution device 43, it is possible to know which node of the network resource tree 6 the path information, the distribution resource information, and the IP address of the distribution device 43 should be stored. It should be noted that if the publishing device node 63 does not exist, the processor 413 can establish the publishing device node 63 according to the path information at an appropriate location on the network resource tree. If the publishing device node 63 already exists, the publishing device node 63 can be updated. The existing information; the path information of one device can form a network resource tree with only one device node, and the path information of multiple devices can form a network resource tree with multiple device nodes.
  • the subscribing device 45 sends a resource subscription request, where the resource subscription request includes the subscription resource information, the node identification information of the subscribing device 45, the IP address of the subscribing device 45, and the control device 41.
  • the resource subscription request includes the subscription resource information, the node identification information of the subscribing device 45, the IP address of the subscribing device 45, and the control device 41.
  • Node identification information for example, the node identification information of the subscription device 45 is: /subscribing device 45, and the node identification information of the control device 41 is: / control device 41.
  • the second forwarding device 44 is configured to receive the resource subscription request, and add the node identification information of the second forwarding device 44 in the resource subscription request.
  • the node identifier information of the subscription device 45 is: /subscribing device 45.
  • the second forwarding device 44/subscribing device 45 is generated.
  • the second forwarding device 44 is in accordance with the node of the control device 41 in the resource issue request. The identification information transmits a resource subscription request to the control device 41.
  • the transceiver 411 of the control device 43 is configured to receive the resource subscription request, and the processor 413 of the control device 41 determines the node identification information of the second forwarding device 44 and the node identification information of the subscription device 45 according to the resource subscription request.
  • the path information of the subscribing device 45 is determined.
  • the path information may be: / control device 41 / second forwarding device 44 / subscribing device 45.
  • FIG. 8 is a structural diagram of the network resource tree 6 .
  • the processor 413 stores the path information, the subscription resource information, and the IP address of the subscribing device 45 in the network resource tree. Subscriber node 65 of 6.
  • the processor 413 determines the path information of the subscribing device 45, it can be known which node of the network resource tree 6 the path information, the subscription resource information, and the IP address of the subscribing device 45 should be stored. It should be noted that if the subscription device node 65 does not exist, the processor 413 can establish the subscription device node 65 according to the path information at the appropriate location on the network resource tree. If the subscription device node 65 already exists, the subscription device node 65 can be updated. Information that exists.
  • the publishing device 43 and the subscribing device 45 perform information interaction with the control device through different forwarding devices, but the publishing device 43 and the subscribing device 45 may also pass through the same forwarding device (for example, the second forwarding device). 44) performing information exchange with the control device, which can form a network resource tree 7 as shown in FIG. 9.
  • both the subscription device node 75 and the issue device node 73 are child nodes of the second forwarding device node 74
  • the subscription device node 65 and the distribution device node 63 are the child nodes of the second forwarding device node 64 and the first forwarding device node 62, respectively.
  • the publishing device node and the subscribing device node are all placed in the same network resource tree, and the node type is determined according to the attribute of each node in the network resource tree (for example, the publishing device node)
  • the publishing device node and the subscribing device node may be stored in different network resource trees, that is, the publishing device node is stored in the publishing network resource tree, that is, the subscribing device node is stored in the subscription.
  • the network resource tree, the publishing network resource tree, and the subscription network resource tree can respectively set attributes to distinguish who is publishing the network resource tree and subscribe to the network resource tree.
  • step 511 the processor 413 of the control device 41 performs matching in the network resource tree according to the subscription resource information, and if the matching distributed resource information cannot be found,
  • step 514 the transceiver 411 of the control device 41 sends a warning message to the second forwarding device 44 for forwarding to the subscription device 45. If a matching distribution resource information is found, it represents a resource in the network resource tree that the subscription device 45 needs to subscribe to (for example, temperature information of the distribution device 43).
  • the possible matching methods include at least the following three types:
  • the processor 413 of the control device 41 finds, on the network resource tree, whether there is a matching resource ID of the published resource information according to the resource ID of the resource subscription information, so as to the network resource tree.
  • the publishing device node is found, the processor 413 stores the IP address of the subscribing device 45 to the publishing device node, and the transceiver 411 sends the IP address of the subscribing device 45 to the publishing device 43 to complete the resource subscription of the subscribing device 45 to the publishing device 43.
  • the resource ID may indicate which device has which resources, for example, the resource ID is 0001, and 0001 may represent the temperature information of the issuing device 43. Therefore, the processor 413 can find the publishing device node corresponding to the publishing device 43 on the network resource tree according to the resource ID, and store the IP address of the subscribing device 45 to the publishing device node, taking the network resource tree 6 as an example, and reading the device 45 The IP address is stored to the issuer node 63.
  • the publishing device 43 receives the subscription device 45 After the IP address, the temperature information of the distribution device 43 can be transmitted to the subscribing device 45 via P2P communication.
  • the processor 413 of the control device 41 searches for a forwarding device ID of the matching publishing resource information on the network resource tree according to the forwarding device ID of the resource subscription information.
  • the forwarding device node is found in the path resource tree, and the processor 413 stores the IP address of the subscribing device 45 to the publishing device node subordinate to the forwarding device node; the transceiver 411 sends the IP address of the subscribing device 45 to the distribution corresponding to the publishing device node.
  • the device 43 is configured to complete the resource subscription of the publishing device 45 to the publishing device 43.
  • the forwarding device ID may indicate a forwarding device, such as the first forwarding device 42. Therefore, the processor 413 can find the first forwarding device node 62 corresponding to the first forwarding device 42 on the network resource tree 6 according to the forwarding device ID, and store the IP address of the subscription device 45 to the release of the first forwarding device node 62. Device node 63.
  • the distribution device 43 can transmit all resource information (e.g., temperature information) of the distribution device 43 to the subscribing device 45 via P2P communication.
  • the IP address of the subscribing device 45 will be stored to all the publishing device nodes subordinate to the first forwarding device node 62, and the IP address of the subscribing device 45. It will also be transmitted to all the publishing devices corresponding to all the publishing device nodes. After receiving the IP address of the subscribing device 45, each publishing device can transmit all its own resource information (such as temperature information) through P2P communication. To the subscription device 45, in other words, the subscription device 45 will receive all resource information from each of the distribution devices.
  • resource information such as temperature information
  • the processor 413 will find all the distribution device nodes including the resource type according to the resource type, and store the IP address of the subscription device 45 to all the delivery device nodes; the transceiver 411 will send the subscription device.
  • the IP address of 45 is addressed to all publishing devices (including publishing device 43) to complete the subscription of resources for all publishing devices by subscription device 45.
  • the processor 413 of the control device 41 finds all the distribution device nodes including the resource type on the network resource tree 6 according to the resource type, and stores the subscription.
  • the IP address of the device 45 to all the publishing device nodes including the resource type of the temperature the transceiver 411 will send the IP address of the subscribing device 45 to all the publishing devices including the resource type (including the publishing device 43), all including the temperature.
  • the type publishing device can transmit its own temperature information to the subscribing device 45 through P2P communication.
  • the subscription device 45 may receive multiple pieces of temperature information from different publishing devices.
  • step 512 the processor 413 of the control device 41 will confirm the subscription QoS parameter. If the matching QoS parameters are matched, if not, step 514 is performed, and the transceiver 411 of the control device 41 sends a warning message to the second forwarding device 44 for forwarding to the subscribing device 45.
  • step 513 After the processor finds the publishing device node, it will confirm that the subscribing device 45 matches the access policy.
  • step 514 the transceiver 411 of the control device 41 sends a warning message to the second forwarding.
  • Device 44 is forwarded to subscription device 45. If the subscribing device 45 matches the access policy, step 515 is performed.
  • the subscription QoS parameter matches the QoS parameter. If the subscription QoS parameter is 20 ms and the QoS parameter is 40 ms, the subscription QoS parameter does not match. Publish QoS parameters. Moreover, if the access policy is to allow any subscribing device to subscribe to the resource, the subscribing device 45 matches the access policy; if the access policy does not allow the subscribing device 45 to subscribe to the resource, the subscribing device 45 does not match the access policy. It should be noted that the steps 512 and 513 are optional, and the order of the steps 511, 512, and 513 can be interchanged, and is not limited thereto.
  • the processor 413 of the control device 41 may update the network resource tree according to the foregoing manner. Or establishing a corresponding publishing device node, the processor 413 further searching for a subscription resource information matching the publishing resource information of another publishing device on the network resource tree, so as to find the subscription device node in the network resource tree.
  • the processor 413 will store the IP address of the subscribing device to the publishing device node of another publishing device, and the transceiver 411 of the control device 41 sends the IP address of the subscribing device to another publishing device to Automatically add another publishing device to the resource subscription of the subscribing device.
  • the subscription resource information includes the forwarding device ID and the network resource tree includes the forwarding device node
  • the publishing device node of another publishing device belongs to the child node including the forwarding device node
  • the control device 41 should automatically The publishing device should join the resource subscription of the subscribing device.
  • the subscription resource information includes a resource type and another publishing device also has the same resource type, it means that the control device 41 should automatically join another resource device to the subscription device's resource subscription.
  • step 515 the processor 413 of the control device 41 stores the IP address of the subscribing device 45 to the issuing device node; in step 516, the transceiver 411 of the control device 41 transmits the IP address of the subscribing device 45 to the first forwarding device. 42. In step 517, the first forwarding device 42 forwards the IP address of the subscribing device 45 to the publishing device 43. It should be noted that step 516 and step 517 are to transmit the IP address of the subscription device 45 to the delivery device 43 in a hop-by-hop manner. The control device 41 can also directly send the IP address of the subscription device 45 according to the IP address of the distribution device 43. To the delivery device 43.
  • the publishing device 43 can perform P2P communication with the subscribing device 45 according to the IP address of the subscribing device 45 to transmit the resources subscribed by the subscribing device 45 (for example, the publishing device 43 Temperature information) to the subscription device 45.
  • the publishing device 43 and the subscribing device 45 may respectively carry respective certificates in the resource issue request and the resource subscription request, so that the control device 41 obtains the respective certificates of the publishing device 43 and the subscribing device 45.
  • the control device 41 can transmit the certificate of the subscribing device 45 to the delivery device 43 to authenticate the distribution device 43.
  • the control device 41 also transmits the certificate of the distribution device 43 to the subscribing device 45 for the subscription device 45 to authenticate.
  • the distribution device 43 can perform P2P communication with the subscription device 45 based on the IP address of the subscription device 45.
  • one or more software modules are stored in the memory 415 of the control device 41, and the modules can implement the software through the program code in the processor 413 and the memory 415.
  • the subscription device 45 and the distribution device 43 can respectively send a subscription resource request and issue a resource request to the control device 41 to establish a network resource tree through the forwarding device. Thereafter, the control device 41 can make the subscription device subscribe to the resource information of the distribution device through a more precise or fuzzy matching manner, and can enable the subscription device 45 to perform P2P communication with the distribution device 43 to balance the transmission efficiency and the subscription efficiency.
  • an embodiment of the present invention further provides a structural diagram of a control device.
  • the control device 8 includes a receiving unit 81, a confirming unit 82, a matching unit 83, a transmitting unit 84, and a storage unit 85.
  • the receiving unit 81 is configured to receive a resource publishing request of the publishing device, where the resource publishing request includes the publishing resource information, the node identifier information of the publishing device, the node identifier information of the first forwarding device, and the IP address of the publishing device. .
  • the confirming unit 82 is configured to determine path information of the publishing device according to the node identifier information of the first forwarding device and the node identifier information of the publishing device in the resource issuing request.
  • the storage unit 85 is configured to store the path information, the distribution resource information, and the IP address of the distribution device in a distribution device node of the network resource tree.
  • the receiving unit 81 is further configured to receive the resource subscription request, where the resource subscription request includes subscription resource information, node identifier information of the subscription device, an IP address of the subscription device, and node identifier information of the second forwarding device.
  • the confirming unit 82 is further configured to determine path information of the subscribing device according to the node identifier information of the second forwarding device and the node identifier information of the subscribing device in the resource subscription request.
  • the storage unit 85 is further configured to store the path information, the subscription resource information, and an IP address of the subscription device in a subscription device node of the network resource tree.
  • the matching unit 83 is configured to perform matching in the network resource tree according to the subscription resource information.
  • the sending unit 84 is configured to: after matching the corresponding publishing resource information, the transceiver sends the IP address of the subscribing device to the publishing device corresponding to the publishing resource information. Thereby, the subscribing device subscribes to the resource information of the distribution device and enables the subscribing device to perform P2P communication with the distribution device.
  • control device 10 is presented in the form of a functional unit.
  • a "unit” herein may refer to an application-specific integrated circuit (ASIC), circuitry, a processor and memory that executes one or more software or firmware programs, integrated logic circuitry, and/or other functions that provide the functionality described above.
  • ASIC application-specific integrated circuit
  • the control device 8 can take the form shown in FIG.
  • the receiving unit 81, the confirming unit 82, the matching unit 83, the transmitting unit 84, and the storage unit 85 can be realized by the processor, the transceiver, and the memory of FIG.
  • the embodiment of the present invention further provides a computer storage medium for storing computer software instructions used by the control device shown in FIG. 10 above, which includes a program for executing the above embodiment. Resource subscriptions can be implemented by executing stored programs.
  • the distribution device performs P2P communication with the subscribing device according to the IP address of the subscribing device sent by the control device, and transmits the subscribed resource to the subscribing device.
  • devices or devices with network self-discovery functions such as a publishing device and a subscription device that support the DDS protocol, which can discover other devices in the network by multicast or multicast or other technologies. P2P communication.
  • the publishing device and the subscription device have the network self-discovery function, the publishing device can discover the publishing device and communicate with the publishing device without controlling the device, so that in the resource subscription system as shown in FIG. 3 or FIG.
  • the devices are released or released.
  • the communication between the device and the subscription device will be in a state of lack of overall control and supervision.
  • the cloud platform (the cloud platform combined with the control device) or the control device cannot sense which devices in the system are communicating and communicating with the P2P, which is not conducive to the cloud.
  • the platform or control device has unified management and resource control of the system, and there are also certain security risks.
  • the embodiment of the present invention provides a second embodiment of the present invention for a distribution device and a subscription device having a network self-discovery function.
  • the subscription device reports the resource information and the node identification information to be released to the control device.
  • the resource information, the node identification information, and the addressing information to be advertised by the subscribing device are reported to the control device, where the addressing information is the addressing information carried by the subscribing device when performing the network self-discovery, and the addressing information may be the node identification information.
  • the control device matches the publishing resource and the subscription resource according to the matching rule. Transmitting, by the publishing device, addressing information of the subscribed device that can communicate; after the publishing device discovers a certain subscription device through the network self-discovery function, checking whether the subscription device is included in the range of the communicable subscription device according to the addressing information of the subscription device, if Yes, a P2P connection is established with the subscribing device, and if not, no P2P connection is established with the device.
  • GUID Globally Unique Indentifier
  • the second embodiment only the device or device directly connected to the control device needs to configure the address of the control device, and the publishing device and the subscription device do not need to be configured.
  • the address of the control device, the device in the resource subscription system communicates according to the registration relationship; the device 33 in FIG. 2 registers with the gateway 37 and sends a resource release message to the gateway 37, and the gateway 37 registers with the gateway 32 and forwards the receipt to the gateway 32.
  • the resource release message, the gateway 32 registers with the cloud platform 36 and forwards the received resource release message to the cloud platform 36, and the cloud platform 36 registers with the control device 31 and sends the received resource release message to the control device 31.
  • the control device 31 transmits a message to the device 33, it is also sent to the device 33 through the registration relationship layer.
  • the node to which the publishing device 43 registers that is, the first forwarding device 42, sends a resource issue request, and the resource issue request includes the release of resource information (such as resource name and attribute) and the node identifier information of the publishing device 43.
  • the node identification information of the publishing device 43 is used to indicate the informal web address of the publishing device 43.
  • the node identification information of the publishing device 43 is: / publishing device 43.
  • the first forwarding device 42 is configured to receive the resource issuance request, and add the node identification information of the first forwarding device 42 in the resource issuance request.
  • the node identifier information of the publishing device 43 is: After the node identification information of the first forwarding device 42 is added in the resource distribution request, the first forwarding device 42/distributing device 43 is generated.
  • step 1103 the first forwarding device 42 transmits a resource issue request to its registered control device 41.
  • control device 41 determines the path information of the publishing device 43 (ie, the path of the publishing device in the network resource tree). For details, see 504.
  • the processor 413 stores the release resource information in the issuer node 123 of the network resource tree 12 as shown in FIG. Specifically, after the processor 413 determines the path information of the distribution device 43, it is possible to know which node of the network resource tree 12 the distribution resource information should be stored. It should be noted that, if the publishing device node 123 does not exist, the processor 413 can establish the publishing device node 123 according to the path information at an appropriate location on the network resource tree. If the publishing device node 123 already exists, the publishing device node 123 can be updated. The existing information; the path information of one device can form a network resource tree with only one device node, and the path information of multiple devices can form a network resource tree with multiple device nodes.
  • the subscribing device 45 sends a resource subscription request including the subscription resource information, the node identification information of the subscribing device 45, and the addressing information of the subscribing device 45.
  • the node identification information of the subscribing device 45 is used to indicate the informal web site of the subscribing device 45.
  • the node identification information of the subscription device 45 is: /subscribing device 45.
  • the addressing information of the subscribing device 45 is its own addressing information that the subscribing device 45 carries when the network self-discovers.
  • the addressing information of the subscribing device 45 may be the same as the node identification information, which is: /subscribing device 45, or an IP address, when the subscribing device 45 performs network self-discovery through the DDS protocol, the addressing of the subscribing device 45
  • the information can also be a GUID.
  • the second forwarding device 44 is configured to receive the resource subscription request, and add the node identification information of the second forwarding device 44 in the resource subscription request. For details, refer to the description of step 507.
  • step 1108 the second forwarding device 44 forwards the resource subscription request to its registered control device 41.
  • step 1109 the control device 41 determines the path information of the subscribing device 45 (ie, the path of the subscribing device in the network resource tree). For details, refer to the description of step 509.
  • the processor 413 of the control device 41 stores the subscription resource information and the addressing information of the subscribing device 45 in the subscribing device node 125 of the network resource tree 12. Specifically, after the processor 413 determines the path information of the subscribing device 45, it can be known which node of the network resource tree 12 the subscription resource information and the addressing information of the subscribing device 45 should be stored. It should be noted that if the subscription device node 125 does not exist, the processor 413 can establish the subscription device node 125 at the appropriate location on the network resource tree according to the path information. If the subscription device node 125 already exists, the subscription device node 125 can be updated. Information that exists.
  • the publishing device 43 and the subscribing device 45 perform information interaction with the control device through different forwarding devices, but the publishing device 43 and the subscribing device 45 may also pass through the same forwarding device (for example, the second forwarding device).
  • Information interaction with the control device which may form a network resource tree 13 as shown in FIG. 13, in which the subscription device node 135 and the distribution device node 133 are both child nodes of the second forwarding device node 134.
  • the publishing device node and the subscribing device node are all placed in the same network resource tree, and the node type is determined according to the attribute of each node in the network resource tree (for example, the publishing device node)
  • the publishing device node and the subscribing device node may be stored in different network resource trees, that is, the publishing device node is stored in the publishing network resource tree, that is, the subscribing device node is stored in the subscription.
  • the network resource tree, the publishing network resource tree, and the subscription network resource tree can respectively set attributes to distinguish who is publishing the network resource tree and subscribe to the network resource tree.
  • step 1111 the processor 413 of the control device 41 performs matching in the network resource tree according to the subscription resource information. If the matching distribution resource information cannot be found, optionally, step 1114, the transceiver 411 of the control device 41 may be performed. A warning message is sent to the second forwarding device 44 for forwarding to the subscription device 45. If a matching publishing resource information is found, it represents a resource in the network resource tree that the subscription device 45 needs to subscribe to (for example, temperature information of the publishing device 43).
  • control device 41 performs the matching according to the resource information reported by the subscribing device and the publishing device, and the form and content of the resource information may be multiple, which is not limited in the embodiment of the present invention.
  • the matching method is described as an example:
  • the processor 413 of the control device 41 finds, on the network resource tree, whether there is a resource ID of the matching release resource information according to the resource ID of the resource subscription information, when in the network resource tree.
  • the matching issuer node is found, the processor 413 stores the addressing information of the subscribing device 45 to the issuer node; the transceiver 411 sends the addressing information of the subscribing device 45 to the issue device 43, see steps 1116 and 1117.
  • the resource ID may indicate which device has which resources, for example, the resource ID is 0001, and 0001 may represent the temperature information of the issuing device 43. Therefore, the processor 413 can find the publishing device node corresponding to the publishing device 43 on the network resource tree according to the resource ID, and store the addressing information of the subscribing device 45 to the publishing device node. Taking the network resource tree 12 as an example, the subscribing device 45 The addressing information is stored to the issuer node 123.
  • the processor 413 of the control device 41 searches for a forwarding device ID of the matching publishing resource information on the network resource tree according to the forwarding device ID of the resource subscription information.
  • the forwarding device node is found in the path resource tree, and the processor 413 stores the addressing information of the subscribing device 45 to the issuing device node subordinate to the forwarding device node; the transceiver 411 sends the addressing information of the subscribing device 45 to correspond to the publishing device node.
  • Publishing device 43 publishing device 43.
  • the forwarding device ID may indicate a forwarding device, such as the first forwarding device 42. Therefore, the processor 413 can find the first forwarding device node 122 corresponding to the first forwarding device 42 on the network resource tree 12 according to the forwarding device ID, and store the addressing information of the subscription device 45 to the subordinates of the first forwarding device node 122.
  • the device node 123 is issued.
  • the IP address of the subscribing device 45 will be stored to all the publishing device nodes subordinate to the first forwarding device node 122, and the addressing device 45 addresses. Information will also be transmitted to all publishing devices corresponding to all publishing device nodes.
  • the processor 413 will find all the distribution device nodes including the resource type according to the resource type, and store the addressing information of the subscription device 45 to all the delivery device nodes; the transceiver 411 will send the subscription.
  • the addressing information of device 45 is to all of the publishing devices (including publishing device 43).
  • the processor 413 of the control device 41 finds all the distribution device nodes including the resource type on the network resource tree 12 according to the resource type, and stores the subscription.
  • the addressing information of the device 45 is to all of the issuing device nodes including the resource type of the temperature, and the transceiver 411 will send the addressing information of the subscribing device 45 to all of the publishing devices (including the publishing device 43) including the resource type of the temperature.
  • the control device 41 does not perform further matching of the steps 1112 and 1113. If the resource subscription request includes the subscription QoS parameter and the resource release request includes the QoS parameter and the access policy, the control device 41 finds the matching issue device node in the step 1111. Alternatively, the control device 41 may perform steps 1112 and 1113. QoS parameter matching and matching of the access policy are performed. In this case, the processor 413 can store the addressing information of the subscribing device 45 to the publishing device node only after the steps 1111, 1112 and 1113 are successfully matched (see 1115). Step), the transceiver 411 sends the addressing information of the subscribing device 45 to the release. Device 43 (see step 1116).
  • step 1111 After the step 1111 is completed, if the publishing device node is found, and the resource subscription request includes the subscription QoS parameter and the resource release request includes the QoS parameter and the access policy, optionally, the processor 413 of the control device 41, in step 1112, It is determined that the subscription QoS parameter matches the QoS parameter, if not, optionally, step 1114 is performed, and the transceiver 411 of the control device 41 sends a warning message to the second forwarding device 44 for forwarding to the subscription device 45. If the subscription QoS parameter matches the QoS parameter, the process may be performed in step 1113. After the processor finds the publishing device node, the acknowledgment subscription device 45 matches the access policy. If no, the process is performed. Step 1114, the control device is executed. The transceiver 411 of 41 sends a warning message to the second forwarding device 44 for forwarding to the subscription device 45. If the subscription device 45 matches the access policy, step 1115 is performed.
  • the subscription QoS parameter matches the QoS parameter. If the subscription QoS parameter is 20 ms and the QoS parameter is 40 ms, the subscription QoS parameter does not match. Publish QoS parameters. Moreover, if the access policy is to allow any subscribing device to subscribe to the resource, the subscribing device 45 matches the access policy; if the access policy does not allow the subscribing device 45 to subscribe to the resource, the subscribing device 45 does not match the access policy. It should be noted that the step 1112 and the step 1113 are optional, and the order of the step 1111, the step 1112, and the step 1113 can be interchanged, and is not limited thereto.
  • control device 41 may perform other dimensions of control on the P2P communication-enabled publishing device and the subscribing device according to the locally configured P2P communication management rules. For example, the control device 41 divides the devices in the network into groups or domains. Only the publishing device and the subscribing device belonging to the same group or the same domain can perform P2P communication. Taking the network resource tree 12 as an example, the control device will use the first forwarding device. The subordinate device is used as the packet 1, and the device under the second forwarding device is used as the packet 2.
  • the device in the packet can communicate by P2P, and the device between the packets is in security consideration, and the P2P communication is prohibited.
  • the control device 41 performs resource information matching. In the process, even if the resource information of the subscribing device 45 and the distribution device 43 match, since the two do not belong to the same packet, the P2P communication cannot be performed, and the control device 41 does not transmit the addressing information of the subscribing device 45 to the distribution device 43.
  • the P2P communication management rule that is locally configured by the control device is not limited in the embodiment of the present invention.
  • the processor 413 of the control device 41 may update the network resource tree according to the foregoing manner. Or establishing a corresponding publishing device node, the processor 413 further searching for a subscription resource information matching the publishing resource information of another publishing device on the network resource tree, so as to find the subscription device node in the network resource tree. If the matching subscription resource information is found, the processor 413 will store the addressing information of the subscribing device to the issuing device node of the other publishing device, and the transceiver 411 of the control device 41 transmits the addressing information of the subscribing device to the other publishing device. To automatically join another publishing device to the subscription device's resource subscription.
  • the subscription resource information includes the forwarding device ID and the network resource tree includes the forwarding device node
  • the publishing device node of another publishing device belongs to the child node including the forwarding device node
  • the control device 41 should automatically The publishing device should join the resource subscription of the subscribing device.
  • the subscription resource information includes a resource type and another publishing device also has the same resource type, it means that the control device 41 should automatically join another resource device to the subscription device's resource subscription.
  • step 1115 the processor 413 of the control device 41 stores the addressing information of the subscribing device 45 to the issuing device node; in step 1116, the transceiver 411 of the control device 41 transmits the addressing information of the subscribing device 45 to the first Forwarding device 42. In step 1117, the first forwarding device 42 forwards the addressing information of the subscribing device 45 to the publishing device 43. It should be noted that step 1116 and step 1117 are to transmit the addressing information of the subscribing device 45 to the issuing device 43 in a hop-by-hop manner. After receiving the addressing information of the subscribing device 45, the publishing device 43 records the addressing information of the subscribing device 45, as recorded in the list of communicable devices.
  • the publishing device 43 and the subscribing device 45 discover each other during the network self-discovery process.
  • the publishing device 43 receives the addressing information of the subscribing device 45 during the network self-discovery process.
  • step 1119 the publishing device 43 checks whether the addressing information of the subscribing device 45 received during the network self-discovery process is in the communicable device list, and if so, in step 1120, establishes a P2P connection with the subscribing device 45, The subscription resource is posted to the subscription device 45; if not, the connection is not established with the subscription device 45.
  • the publishing device 43 and the subscribing device 45 need not configure the address of the control device 41, and only need to report the publishing resource and the subscription resource according to the registration relationship level, and the control device 41 issues the resource and according to a certain rule. After the subscription resources are matched, the communicable list is delivered to the publishing device 43. Before the publishing device 43 and the subscribing device 45 establish a P2P connection according to their own network self-discovery capabilities, the publishing device 43 also needs to check whether the subscribing device 45 is released by the control device 41.
  • the resource subscription method described in the second embodiment fully utilizes the network self-discovery capability of the publishing device and the subscription device itself to implement P2P communication between devices or devices, and on the other hand,
  • the control device 41 controls the P2P communication, and adds a central control node based on the P2P communication, that is, the communication efficiency is ensured, and the central control node needs to control and schedule the system.
  • each functional module of the control device shown in FIG. 10 needs to perform the following functions:
  • the receiving unit 81 is configured to receive a resource publishing request of the publishing device, where the resource publishing request includes publishing resource information, node identifier information of the publishing device, and node identifier information of the first forwarding device.
  • the confirming unit 82 is configured to determine path information of the publishing device according to the node identifier information of the first forwarding device and the node identifier information of the publishing device in the resource issuing request.
  • the storage unit 85 is configured to store the release resource information in a distribution device node of the network resource tree.
  • the receiving unit 81 is further configured to receive the resource subscription request, where the resource subscription request includes subscription resource information, node identifier information of the subscription device, addressing information of the subscription device, and node identifier information of the second forwarding device.
  • the confirming unit 82 is further configured to determine path information of the subscribing device according to the node identifier information of the second forwarding device and the node identifier information of the subscribing device in the resource subscription request.
  • the storage unit 85 is further configured to store the subscription resource information and the addressing information of the subscription device in a subscription device node of the network resource tree.
  • the matching unit 83 is configured to perform matching in the network resource tree according to the subscription resource information.
  • the sending unit 84 is configured to: after matching the corresponding publishing resource information, the transceiver sends the addressing information of the subscribing device to the publishing device corresponding to the publishing resource information.
  • the embodiment of the present invention further provides a computer storage medium for storing computer software instructions used by the control device shown in FIG. 10 above, which includes a program for executing the second embodiment. Resource subscriptions can be implemented by executing stored programs.
  • the first embodiment and the second embodiment provided by the present invention are two different specific implementations under the same inventive concept, and the solutions adopted by the two embodiments are all to release the resource release information of the publishing device and the subscription device.
  • the resource subscription information is reported to the control device, and the control device performs matching of the publishing resource and the subscription resource according to a certain policy or principle, and sends the information of the subscribing device to the publishing device, so that the publishing device directly sends the published resource to the subscription.
  • the device through the invention concept, not only ensures the control of the system in the system, but also realizes the P2P communication between the publishing device and the subscribing device, and realizes the P2P communication under the premise of the central control, or the device in the system or Communication between nodes
  • the letter is both controllable (control device controls the publishing and subscription resources) and efficient (P2P communication between the publishing device and the subscribing device).
  • embodiments of the present invention can be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

La présente invention concerne un système d'abonnement à une ressource de réseau, un dispositif d'abonnement et un dispositif de publication qui peuvent respectivement envoyer une demande de ressource d'abonnement et publier une demande de ressource au moyen d'un dispositif de transfert, à un dispositif de commande afin d'établir un arbre de ressources de réseau. Ensuite, au moyen d'une manière de correspondance précise ou floue, le dispositif de commande peut amener le dispositif d'abonnement à s'abonner à des informations de ressources d'un dispositif de publication et permettre au dispositif d'abonnement d'effectuer des communications P2P avec le dispositif de libération de façon à assurer l'efficacité de transmission ainsi que l'efficacité de l'abonnement.
PCT/CN2017/083508 2016-05-19 2017-05-08 Procédé, dispositif et système d'abonnement à une ressource WO2017198088A1 (fr)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020187035108A KR102158654B1 (ko) 2016-05-19 2017-05-08 자원 구독 방법, 자원 구독 장치, 및 자원 구독 시스템
JP2018558664A JP6624619B2 (ja) 2016-05-19 2017-05-08 リソースサブスクリプション方法、リソースサブスクリプション装置、及びリソースサブスクリプションシステム
EP17798651.0A EP3447996A4 (fr) 2016-05-19 2017-05-08 Procédé, dispositif et système d'abonnement à une ressource
US16/193,574 US10637794B2 (en) 2016-05-19 2018-11-16 Resource subscription method, resource subscription apparatus, and resource subscription system

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201610338540.X 2016-05-19
CN201610338540 2016-05-19
CN201710272801.7A CN107404512B (zh) 2016-05-19 2017-04-24 资源订阅方法、资源订阅装置和资源订阅系統
CN201710272801.7 2017-04-24

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/193,574 Continuation US10637794B2 (en) 2016-05-19 2018-11-16 Resource subscription method, resource subscription apparatus, and resource subscription system

Publications (1)

Publication Number Publication Date
WO2017198088A1 true WO2017198088A1 (fr) 2017-11-23

Family

ID=60324814

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/083508 WO2017198088A1 (fr) 2016-05-19 2017-05-08 Procédé, dispositif et système d'abonnement à une ressource

Country Status (1)

Country Link
WO (1) WO2017198088A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2020158154A1 (ja) * 2019-01-28 2021-10-28 日本電信電話株式会社 メッセージ送受信方法、通信装置、及びプログラム

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047618A (zh) * 2006-03-29 2007-10-03 华为技术有限公司 获取网络路径信息的方法和系统
CN101834853A (zh) * 2010-04-02 2010-09-15 中国科学院软件研究所 匿名资源共享方法和系统
CN102130801A (zh) * 2010-01-20 2011-07-20 腾讯科技(深圳)有限公司 数据传输方法及系统
CN102546225A (zh) * 2010-12-08 2012-07-04 中国电信股份有限公司 视频资源共享方法和管理平台
WO2015081786A1 (fr) * 2013-12-05 2015-06-11 华为技术有限公司 Procédé et appareil de mise en œuvre de notification d'abonnement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047618A (zh) * 2006-03-29 2007-10-03 华为技术有限公司 获取网络路径信息的方法和系统
CN102130801A (zh) * 2010-01-20 2011-07-20 腾讯科技(深圳)有限公司 数据传输方法及系统
CN101834853A (zh) * 2010-04-02 2010-09-15 中国科学院软件研究所 匿名资源共享方法和系统
CN102546225A (zh) * 2010-12-08 2012-07-04 中国电信股份有限公司 视频资源共享方法和管理平台
WO2015081786A1 (fr) * 2013-12-05 2015-06-11 华为技术有限公司 Procédé et appareil de mise en œuvre de notification d'abonnement

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2020158154A1 (ja) * 2019-01-28 2021-10-28 日本電信電話株式会社 メッセージ送受信方法、通信装置、及びプログラム
JP7030217B2 (ja) 2019-01-28 2022-03-04 日本電信電話株式会社 メッセージ送受信方法、通信装置、及びプログラム
US11582320B2 (en) 2019-01-28 2023-02-14 Nippon Telegraph And Telephone Corporation Message transmitting and receiving method, communication apparatus, and program

Similar Documents

Publication Publication Date Title
CN107404512B (zh) 资源订阅方法、资源订阅装置和资源订阅系統
KR102046700B1 (ko) 메시지 버스 서비스 디렉토리
WO2019242574A1 (fr) Procédé de routage d'un service de l'internet des objets
WO2019141111A1 (fr) Procédé de communication et appareil de communication
EP2583415B1 (fr) Procédé, noeud diameter et support lisible par ordinateur pour fournir un enregistrement dynamique de clé de routage basé sur l'origine dans un réseau diameter
AU2006335155B2 (en) Optimizing communication using scaleable peer groups
EP1542409B1 (fr) Protocole de communication aux réseaux ad hoc à bonds multiple
US7978631B1 (en) Method and apparatus for encoding and mapping of virtual addresses for clusters
JP6302050B2 (ja) 改善された発見のためのシステムおよび方法
US20180063879A1 (en) Apparatus and method for interoperation between internet-of-things devices
JP2016105611A (ja) ハイブリッドネットワーク内のトポロジ発見
Li et al. A comparative study of MobilityFirst and NDN based ICN-IoT architectures
TW200803303A (en) Inter-proximity communication within a rendezvous federation
JP6599546B2 (ja) サービス層におけるアンルートリソース発見を可能にする方法
CN111726293B (zh) 一种报文传输方法及装置
JP2021536711A (ja) 通信可能に結合される通信デバイスのネットワークでのメッセージの選択的転送をサポートする方法およびデバイス
US20140369349A1 (en) Dvpn large-scale networking and spoke
US9888001B2 (en) Methods, systems, and computer readable media for negotiating diameter capabilities
Moritz et al. Devices profile for web services in wireless sensor networks: Adaptations and enhancements
WO2018045949A1 (fr) Procédé de transmission de messages, dispositif, et système de réseau
CN109981462B (zh) 一种报文处理方法及装置
WO2017198088A1 (fr) Procédé, dispositif et système d'abonnement à une ressource
WO2012146104A1 (fr) Procédé, dispositif et système de mise à jour d'informations de port
Rodrigues et al. Zigzag: A middleware for service discovery in future internet
JP2006171917A (ja) 無線マルチホップアドホックネットワークのためのプロトコル

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2018558664

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2017798651

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017798651

Country of ref document: EP

Effective date: 20181119

ENP Entry into the national phase

Ref document number: 20187035108

Country of ref document: KR

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17798651

Country of ref document: EP

Kind code of ref document: A1