A cross-domain service discovery method based on distributed soft bus

Through distributed soft bus technology, cross-domain service discovery is realized, solving the limitations of traditional LAN service discovery, improving the flexibility and communication range between devices, promoting the development of the Internet of Things and edge computing, and supporting rapid communication between devices. Communication and collaboration.

CN118400420BActive Publication Date: 2024-10-01WEAPON EQUIP RES INST OF CHINA NAT WEAPON EQUIP GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850995.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Traditional LAN service discovery methods cannot achieve cross-domain service discovery and are limited by specific network structures and protocols. They lack flexibility and cannot meet the device communication and collaboration needs of technologies such as the Internet of Things and edge computing in different network environments.

Method used

Adopting a cross-domain service discovery method based on distributed soft bus, through initialization equipment, connection between convergence nodes and SDR equipment, service list synchronization and location optimization algorithms, the service discovery and use of equipment in different network environments are realized to ensure the accuracy of service discovery. Flexibility and continuity.

Benefits of technology

It realizes cross-domain service discovery of devices in different network environments, improves the flexibility and communication range between devices, promotes the development of the Internet of Things and edge computing, and supports fast communication and collaboration between devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400420B_ABST
    Figure CN118400420B_ABST
Patent Text Reader

Abstract

The present invention proposes a cross-domain service discovery method based on a distributed soft bus, which relates to the field of cross-domain service communication technology. The method includes: initializing at least two devices in a local area network, and the devices in the local area network summarize their own service capabilities and service methods to a local aggregation node; each of the aggregation nodes establishes a connection with an SDR device, and mutually publishes the service capabilities and service methods of the devices in the local area network in a unicast manner; each of the aggregation nodes receives the service capabilities and service methods published by other aggregation nodes, saves them in a local service list, and synchronizes the local service list to the devices in the local area network; each device in the local area network performs cross-domain service discovery and service use according to the synchronized local service list. The method realizes the cross-domain service discovery function, improves the flexibility of service discovery, facilitates rapid communication and collaboration between devices, and promotes the development of fields such as the Internet of Things and edge computing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cross-domain service communication, and in particular to a cross-domain service discovery method based on a distributed soft bus. Background Art

[0002] In traditional LAN environments, service discovery between devices usually relies on specific protocols or technologies, such as multicast or broadcast-based service discovery protocols. However, these methods have some limitations, including: Traditional methods can usually only perform service discovery within the scope of the LAN and cannot achieve cross-domain service discovery.

[0003] Typically, service types need to be defined in advance, which limits the flexibility of service discovery. Traditional methods usually rely on specific network structures and protocols, which are not universal and flexible enough. In recent years, with the development of distributed soft bus technology, a new network communication method has emerged, which has the following characteristics: distributed soft bus technology can achieve flexible device connection and communication, supporting various types of devices and application scenarios; distributed soft bus technology can achieve cross-domain communication, so that devices can communicate and collaborate in different network environments; distributed soft bus technology usually has self-organizing networking capabilities and can dynamically adapt to changes in network topology. With the development of technologies such as the Internet of Things and edge computing, more and more devices need to communicate and collaborate in different network environments. Therefore, it has become an important requirement to achieve cross-domain service discovery so that devices can discover and use services in other networks. Summary of the invention

[0004] In view of the above technical status, the present invention aims to provide a cross-domain service discovery method based on a distributed soft bus, which can break through the limitations of traditional LAN service discovery and realize service discovery and use of devices in different network environments.

[0005] The present invention provides a cross-domain service discovery method based on a distributed soft bus.

[0006] The method is implemented in a distributed soft bus system: cross-domain devices discover each other and publish their respective service capabilities and service modes.

[0007] The method comprises:

[0008] Step 1, initializing at least two devices in the local area network, wherein the devices in the local area network summarize their service capabilities and service modes to the local aggregation node;

[0009] Step 2: Establish a connection between each aggregation node and the SDR device, and mutually publish the service capabilities and service modes of the devices in the local area network that are locally aggregated in a unicast manner;

[0010] Step 3, after receiving the service capabilities and service modes published by other aggregation nodes, each of the aggregation nodes saves them into a local service list, and synchronizes the local service list to the devices in the local area network;

[0011] Step 4: Each device in the local area network performs cross-domain service discovery and service use according to the synchronized local service list.

[0012] In particular, the step 2 specifically includes:

[0013] The aggregation node sends a broadcast to the designated SDR device port;

[0014] After receiving the unicast reply from the SDR device, obtain the IP address and port information of the SDR device through parsing;

[0015] Establish a TCP connection with the SDR device through the obtained IP address and port information, and subscribe to the messages of the SDR device;

[0016] When the SDR device detects that other aggregation nodes are online, it notifies the connected aggregation nodes of the status and IP address information of the other aggregation nodes;

[0017] After receiving the notification, the connected aggregation node establishes a connection with other newly online aggregation nodes to achieve cross-domain service discovery.

[0018] In particular, the method further includes: adjusting the location of the aggregation node by a location optimization algorithm to optimize network performance; wherein the optimization algorithm is:

[0019]

[0020] By analyzing H [ u , v ] distribution of different frequency components, evaluate the performance of the network and optimize the network; among them, m and n is the index variable on the spatial domain; m Indicates the row index, the value range is 0 to M -1; n Indicates the column index, the value range is 0 to N -1; h [ m , n ] indicates that the position in the spatial domain is ( m , n ) at the network signal strength; u and v is the index variable in the frequency domain, corresponding to the frequency components in the horizontal and vertical dimensions respectively; H [ u ,v ] is the frequency component in the frequency domain ( u , v ) is the network performance representation at; M represents the total number of rows in the spatial domain, N Represents the total number of columns in the spatial domain.

[0021] In particular, the location of the aggregation node is adjusted through the location optimization algorithm to optimize the network performance, including:

[0022] Take the received location coordinate data of all devices in the local area network as input and construct h [ m , n ]; further obtained by the position optimization algorithm H [ u , v ];calculate H [ u , v ] modulus value| H [ u , v ]|, determine the peak area and valley area of ​​the modulus value;

[0023] Traverse the location coordinates of different candidate aggregation nodes and calculate the objective function value for each candidate location; select the candidate location coordinates that make the objective function value optimal as the new location of the aggregation node; implement the new aggregation node location and republish the updated location information; each device re-evaluates the service availability and quality based on the new aggregation node location information.

[0024] In particular, the local service list includes service metadata information. After receiving the local service list, other aggregation nodes classify and sort the services according to the service metadata information.

[0025] In particular, the services are classified and sorted according to the service metadata information; specifically including:

[0026] Classify services; the classification results include: video services, audio services and computing services;

[0027] The services are sorted; wherein: within each service category, priorities are set for the services according to QoS parameters, and weights of different QoS parameters are set, a comprehensive priority score is calculated, and the services are sorted by the comprehensive priority score or by a single key QoS parameter, and a secondary sorting is performed in combination with the service cost; when the device in the local area network initiates a service request, the service type, QoS and other filtering conditions are set; the aggregation node matches the local service list with the filtering conditions.

[0028] In particular, when devices in a local area network use cross-domain services, they select the best service provider node based on service quality and latency, and establish a direct service session to avoid forwarding data traffic through multiple aggregation nodes.

[0029] In particular, the method further comprises: adopting a master-slave mechanism between the SDR device and the aggregation node, so that when the master device fails, it can automatically switch to the backup device to ensure the continuity of service discovery.

[0030] In particular, the method further includes: deploying at least two SDR devices in each local area network, the master SDR device is responsible for establishing connections with all aggregation nodes and exchanging service publishing / subscribing information; the backup SDR device is in a listening state, and when a failure of the master SDR device is detected, it automatically switches to the role of the master SDR device; when switching occurs, the new master SDR device notifies all aggregation nodes of its new state to ensure the continuity of the service discovery information path.

[0031] In particular, the method also includes: in each local area network, deploying at least two aggregation nodes, the main aggregation node is responsible for aggregating local service information and interacting with the SDR device to publish / subscribe; the backup aggregation node continuously monitors the status of the main aggregation node, and automatically switches to the role of the main aggregation node when the main aggregation node fails. The new main aggregation node re-establishes a connection with the SDR device and re-publishes local service information to ensure the continuity of local domain service discovery.

[0032] The method provided by the present invention has the following beneficial technical effects:

[0033] 1. Realize cross-domain service discovery function: This invention breaks through the limitations of traditional LAN service discovery by introducing distributed soft bus technology, and realizes the cross-domain service discovery function of devices in different network environments. This allows devices to more flexibly discover and use services in other networks, expanding the communication range between devices.

[0034] 2. Improved flexibility of service discovery: Traditional LAN service discovery is usually limited to predefined service types and LAN ranges, lacking flexibility. The cross-domain service discovery method introduced by the present invention is no longer limited to specific service types and LAN ranges, allowing devices to flexibly discover and use various types of services according to actual needs, improving the flexibility and applicability of service discovery.

[0035] 3. Facilitate rapid communication and collaboration between devices: Through the present invention, devices can quickly discover and use services in other networks without having to know the specific location and network topology of the target device in advance, thereby achieving rapid communication and collaboration between devices. This is of great significance for realizing intelligent interconnection and collaborative work between IoT devices.

[0036] 4. Promotes the development of the Internet of Things and edge computing: The present invention provides an effective cross-domain service discovery method, which provides technical support for the development of the Internet of Things and edge computing. By achieving cross-domain communication and collaboration between devices, the application and development of the Internet of Things and edge computing technologies can be further promoted, providing more convenient services and experiences for intelligent life and work. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 The figure is a flow chart of a cross-domain service discovery method based on a distributed soft bus according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0039] The present invention provides a cross-domain service discovery method based on a distributed soft bus, such as Figure 1 As shown, in a distributed soft bus system, cross-domain devices are able to discover each other and publish their respective service capabilities and service modes, including the following steps:

[0040] Step 1: Initialize at least two devices in the local area network, and the devices in the local area network summarize their own service capabilities and service modes to the local aggregation node.

[0041] In step 1, you need to initialize at least two devices in the LAN. These devices can be various types of network devices, such as sensors, smartphones, smart home devices, etc. They can be connected to the LAN via wired or wireless means.

[0042] Once the devices are initialized, they will summarize their service capabilities and service methods to the local aggregation node. Specifically, these service capabilities and service methods may include: service type and function; devices may provide various types of services, such as data collection, data processing, remote control, etc.

[0043] Communication protocols and interfaces: Devices may support different communication protocols and interfaces, such as Wi-Fi, Bluetooth, Zigbee, etc. Data formats and transmission methods: Devices may use different data formats and transmission methods, such as JSON, XML, TCP / IP, etc. Security and permission control: Devices may have different security requirements and permission control mechanisms, such as encrypted transmission, access control, etc. Devices within the LAN will aggregate their service capabilities and service mode information, and send this information to the local aggregation node through the communication method within the LAN. The aggregation node is responsible for collecting and integrating information from different devices, and providing a unified service list and interface for subsequent cross-domain service discovery.

[0044] Step 2: Each of the aggregation nodes establishes a connection with a software defined radio (SDR) device, and mutually publishes the locally aggregated service capabilities and service modes of the devices in the local area network in a unicast manner.

[0045] The step 2 specifically includes: the aggregation node sends a broadcast to the designated SDR device port; after receiving the unicast reply from the SDR device, the aggregation node obtains the IP address and port information of the SDR device through parsing; through the obtained IP address and port information, a TCP connection is established with the SDR device, and the message of the SDR device is subscribed; when the SDR device detects that other aggregation nodes are online, the status and IP address information of the other aggregation nodes are notified to the connected aggregation nodes; after receiving the notification, the connected aggregation node establishes a connection with other newly online aggregation nodes to realize cross-domain service discovery.

[0046] Step 3: After receiving the service capabilities and service modes published by other aggregation nodes, each aggregation node saves them into a local service list, and synchronizes the local service list with devices in the local area network.

[0047] Once the sink node receives the service capabilities and service methods published by other sink nodes, it needs to save this information to the local service list and synchronize the updated service list to the devices in the LAN. The specific steps are as follows:

[0048] Receive service information from other sink nodes. The sink node should have the function of receiving service capability and service mode information published by other sink nodes. This can be achieved by establishing appropriate communication connections in the network and monitoring the service information published by other sink nodes.

[0049] Once the sink node receives the service information published by other sink nodes, it should save the information to the local service list. The service list may be a data structure used to store information about various services, such as service type, function description, communication protocol, data format, etc.

[0050] After saving the service information published by other sink nodes, the sink node needs to ensure that the local service list is up to date. This may require some data processing and update operations to ensure that the list contains the latest service information.

[0051] Once the local service list is updated, the sink node needs to synchronize the updated service list to the devices in the local area network. This can be done by broadcasting or unicasting the updated service list to the devices in the local area network.

[0052] After receiving the updated service list sent by the aggregation node, the devices in the LAN should perform corresponding processing, which may involve parsing the service list and updating the service capability and service mode information of the device to ensure that the device can discover and use the latest services.

[0053] Through the above steps, the aggregation node can receive and process the service information published by other aggregation nodes, and ensure that the devices in the local area network always have the latest service list, thereby realizing the function of cross-domain service discovery and use.

[0054] Step 4: Each device in the local area network performs cross-domain service discovery and service use according to the synchronized local service list.

[0055] Once the devices in the LAN receive the local service list synchronized by the aggregation node, they can start cross-domain service discovery and service usage. The following are the specific steps: Parsing the local service list, the device first needs to parse the local service list to obtain the service information available in other networks. The parsing process may involve formatting and data extraction operations on the service list.

[0056] The device uses the parsed local service list to discover services available in other networks. This can be achieved by comparing the service information in the local service list with the device's own needs. The device may search for services in the service list that match its needs and select the appropriate service to connect and use.

[0057] Once a device has discovered a suitable service, it can attempt to connect to the service. The connection process may involve communication negotiation with the service provider and operations to establish a connection to ensure that the device can effectively communicate and exchange data with the service.

[0058] Once the connection is established, the device can start using the discovered service capabilities. This may include sending requests to the service, receiving and processing data returned by the service, etc., to achieve the functions and services required by the device.

[0059] The device may periodically monitor the status of the connected services to ensure the availability and stability of the services.

[0060] Through the above steps, devices in the LAN can use the local service list to perform cross-domain service discovery and use services provided in other networks, thereby achieving cross-domain communication and collaboration between devices.

[0061] The local service list includes service metadata information. After receiving the local service list, other aggregation nodes classify and sort the services according to the service metadata information.

[0062] Classifying and sorting services according to the service metadata information specifically includes: classifying services; classification results include: video services, audio services and computing services; sorting services; wherein: within each service category, setting priorities for services according to QoS parameters, setting weights for different QoS parameters, calculating comprehensive priority scores, sorting by comprehensive priority scores or by a single key QoS parameter, and performing secondary sorting in combination with service costs; when initiating a service request, the device in the local area network sets the service type, QoS and other filtering conditions; the aggregation node matches the local service list with the filtering conditions.

[0063] When devices in the LAN use cross-domain services, they select the best service provider node based on service quality and latency, and establish a direct service session to avoid data traffic being forwarded through multiple aggregation nodes.

[0064] A master-slave mechanism is adopted between the SDR device and the aggregation node. When the master device fails, it can automatically switch to the backup device to ensure the continuity of service discovery.

[0065] The method also includes: deploying at least two SDR devices in each local area network, the main SDR device is responsible for establishing connections with all aggregation nodes and exchanging service publishing / subscribing information; the backup SDR device is in a listening state, and when a failure of the main SDR device is detected, it automatically switches to the role of the main SDR device; when switching occurs, the new main SDR device notifies all aggregation nodes of its new state to ensure the continuity of the service discovery information path.

[0066] In each LAN, at least two aggregation nodes are deployed. The main aggregation node is responsible for aggregating local service information and interacting with the SDR device to publish / subscribe. The backup aggregation node continuously monitors the status of the main node and automatically switches to the role of the main aggregation node when the main aggregation node fails. The new main aggregation node re-establishes a connection with the SDR device and re-publishes local service information to ensure the continuity of local domain service discovery.

[0067] The method further includes adjusting the location of the aggregation node by a location optimization algorithm to optimize network performance; wherein the optimization algorithm is:

[0068]

[0069] By analyzing H [ u , v ] distribution of different frequency components, evaluate the performance of the network and optimize the network; among them, m and n is the index variable on the spatial domain; m Indicates the row index, the value range is 0 to M-1; n Indicates the column index, the value range is 0 to N -1; h [ m , n ] indicates that the position in the spatial domain is ( m , n ) at the network signal strength; u and v is the index variable in the frequency domain, corresponding to the frequency components in the horizontal and vertical dimensions respectively; H [ u , v ] is the frequency component in the frequency domain ( u , v ) is the network performance representation at; M represents the total number of rows in the spatial domain, N Represents the total number of columns in the spatial domain.

[0070] The location of the aggregation node is adjusted through the location optimization algorithm to optimize the network performance, which includes: taking the location coordinate data of all devices in the LAN as input, constructing h [ m , n ]; further obtained by the position optimization algorithm H [ u , v ];calculate H [ u , v ] modulus value| H [ u , v ]|, determine the modulus peak area and valley area; traverse the location coordinates of different candidate aggregation nodes, and calculate the objective function value for each candidate location; select the candidate location coordinates that make the objective function value optimal as the new location of the aggregation node; implement the new aggregation node location and republish the updated location information; each device re-evaluates the service availability and quality based on the new aggregation node location information.

[0071] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0072] It is obvious to those skilled in the art that the embodiments of the present invention are not limited to the details of the above exemplary embodiments, and that the embodiments of the present invention can be implemented in other specific forms without departing from the spirit or basic features of the embodiments of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the embodiments of the present invention is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the embodiments of the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units, modules or devices stated in the system, device or terminal claims can also be implemented by the same unit, module or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0073] Finally, it should be noted that the above implementation modes are only used to illustrate the technical solutions of the embodiments of the present invention and are not intended to limit them. Although the embodiments of the present invention have been described in detail with reference to the above preferred implementation modes, those skilled in the art should understand that the technical solutions of the embodiments of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A cross-domain service discovery method based on a distributed soft bus, characterized in that: The method is implemented in a distributed soft bus system: cross-domain devices discover each other and publish their respective service capabilities and service modes; The method comprises: Step 1: Initialize at least two devices in the local area network, and the devices in the local area network summarize their service capabilities and service modes to the local aggregation node; Step 2: Each of the aggregation nodes establishes a connection with the SDR device, and mutually publishes the service capabilities and service modes of the devices in the local area network that are locally aggregated in a unicast manner; Step 3: After receiving the service capabilities and service modes published by other aggregation nodes, each aggregation node saves them into a local service list and synchronizes the local service list to devices in the local area network; Step 4: Each device in the local area network performs cross-domain service discovery and service use according to the synchronized local service list; Wherein, the step 2 specifically includes: The aggregation node sends a broadcast to the designated SDR device port; After receiving the unicast reply from the SDR device, obtain the IP address and port information of the SDR device through parsing; Establish a TCP connection with the SDR device through the obtained IP address and port information, and subscribe to the messages of the SDR device; When the SDR device detects that other aggregation nodes are online, it notifies the connected aggregation nodes of the status and IP address information of the other aggregation nodes; After receiving the notification, the connected aggregation node establishes a connection with other newly online aggregation nodes to achieve cross-domain service discovery; The method further includes: adjusting the location of the aggregation node by a location optimization algorithm to optimize network performance; wherein the optimization algorithm is: , By analyzing H [ u , v ] distribution of different frequency components, evaluate the performance of the network and optimize the network; among them, m and n is the index variable on the spatial domain; m Indicates the row index, the value range is 0 to M -1; n Indicates the column index, the value range is 0 to N -1; h [ m , n ] indicates that the position in the spatial domain is ( m , n ) at the network signal strength; u and v is the index variable in the frequency domain, corresponding to the frequency components in the horizontal and vertical dimensions respectively; H [ u , v ] is the frequency component in the frequency domain ( u , v ) is the network performance representation at; M represents the total number of rows in the spatial domain, N Represents the total number of columns in the spatial domain; The location of the aggregation node is adjusted through the location optimization algorithm to optimize the network performance, including: Take the received location coordinate data of all devices in the local area network as input and construct h [ m , n ]; further obtained by the position optimization algorithm H [ u , v ];calculate H [ u , v ] modulus value| H [ u , v ]|, determine the peak area and valley area of ​​the modulus value; Traverse the location coordinates of different candidate aggregation nodes and calculate the objective function value for each candidate location; select the candidate location coordinates that make the objective function value optimal as the new location of the aggregation node; implement the new aggregation node location and republish the updated location information; each device re-evaluates the service availability and quality based on the new aggregation node location information.

2. The cross-domain service discovery method based on a distributed soft bus as claimed in claim 1, characterized in that: The local service list includes service metadata information. After receiving the local service list, other aggregation nodes classify and sort the services according to the service metadata information.

3. The cross-domain service discovery method based on a distributed soft bus as claimed in claim 2, characterized in that: Classifying and sorting services according to the service metadata information specifically includes: Classify services; the classification results include: video services, audio services and computing services; The services are sorted; wherein: within each service category, priorities are set for the services according to QoS parameters, and weights of different QoS parameters are set, a comprehensive priority score is calculated, and the services are sorted by the comprehensive priority score or by a single key QoS parameter, and a secondary sorting is performed in combination with the service cost; when the device in the local area network initiates a service request, the service type, QoS and other filtering conditions are set; the aggregation node matches the local service list with the filtering conditions.

4. The cross-domain service discovery method based on a distributed soft bus as claimed in claim 3, characterized in that: When devices in a local area network use cross-domain services, they select the best service provider node based on service quality and latency, and establish a direct service session to avoid forwarding data traffic through multiple aggregation nodes.

5. The cross-domain service discovery method based on a distributed soft bus as claimed in claim 4, characterized in that: The method also includes: adopting a master-slave mechanism between the SDR device and the aggregation node, and automatically switching to the backup device when the master device fails, so as to ensure the continuity of service discovery.

6. The cross-domain service discovery method based on a distributed soft bus as claimed in claim 5, characterized in that: The method also includes: deploying at least two SDR devices in each local area network, the main SDR device is responsible for establishing connections with all aggregation nodes and exchanging service publishing / subscribing information; the backup SDR device is in a listening state, and when a failure of the main SDR device is detected, it automatically switches to the role of the main SDR device; when switching occurs, the new main SDR device notifies all aggregation nodes of its new state to ensure the continuity of the service discovery information path.

7. The cross-domain service discovery method based on a distributed soft bus as claimed in claim 6, characterized in that: The method also includes: deploying at least two aggregation nodes in each local area network, the main aggregation node is responsible for aggregating local service information and interacting with the SDR device to publish / subscribe; the backup aggregation node continuously monitors the status of the main aggregation node, and automatically switches to the role of the main aggregation node when the main aggregation node fails, the new main aggregation node re-establishes a connection with the SDR device, and re-publishes the local service information to ensure the continuity of local domain service discovery.