Transmitting Data Streams in a Publish-Subscribe System and Data Stream Producers
Various embodiments of the teachings herein include a method for transmitting a data stream in a publish-subscribe system. An example includes: tendering offers for one or more side channels for transmitting the data stream using publish-subscribe messages; receiving offers of side channels using publish-subscribe messages; checking the offers; and using one or more side channels to transmit the data stream depending on a result of the check.
Latest Siemens Aktiengesellschaft Patents:
- Fault Diagnosis Method and Apparatus for Computer Numeric Controlled Machine Tool
- Control device and method for correcting a guide value and/or a resulting value of a synchronization function
- Monitoring apparatus for quality monitoring with adaptive data valuation
- Semiconductor module with a substrate and at least one semiconductor component contacted on the substrate
- Method and apparatus for coupling the functional control in a distributed automation system
This application is a U.S. National Stage Application of International Application No. PCT/EP2024/063144 filed May 14, 2024, which designates the United States of America, and claims priority to EP Application No. 23175413.6 filed May 25, 2023, the contents of which are hereby incorporated by reference in their entirety.
TECHNICAL FIELDThe present disclosure relates to data management. Various embodiments of the teachings herein include methods and/or systems for transmitting a data stream in a publish-subscribe system and data stream producers.
BACKGROUNDIn IoT (Internet of Things) systems organized on a decentralized basis, there is a need for methods for transmitting data streams by means of which autonomous, loosely coupled system participants, for instance IoT devices, exchange messages by means of publish-subscribe communication.
This need exists in particular as part of Industry 4.0, that is to say the flexible and/or autonomous production and logistics and the continuous digitization thereof using technologies from the fields of IoT, AI, edge, cloud, mobile and distributed computing but also from the fields of new communication technologies, for example 5G and 6G. In this field, the demand for transmitting data streams which form continuous datasets, and which are provided continuously by IoT system components from the IT and OT field at a high frequency and/or with a large scope is increasing. Such data streams are regularly transmitted to consuming system components in industrial working environments for the purpose of data analysis, further processing and storage.
Typical examples of the application of such data streams are continuously progressing telemetric process data of a manufacturing or working process which are processed in a serverless edge cloud infrastructure in functional pipelines, and/or high-frequency and/or large-volume field data from field devices and sensor systems, such as in particular ultrasound, infrared or tomographic images and/or recorded or real-time audio and/or video streams, or an upload or download of files or an export or import of data stocks from or to external systems. Processing of such data streams in time-critical application contexts or (quasi) real-time systems is often necessary.
SUMMARYThe teachings of the present disclosure support such data streams by means of publish-subscribed messages. For example, some embodiments of the teachings herein include a method for transmitting a data stream (DS) in a publish-subscribe system (PUBSUB), in which offers for one or more side channels (SK) for transmitting the data stream (DS) by means of publish-subscribe messages are tendered and offers (AGB) of side channels (SK) by means of publish-subscribe messages are received, wherein the offers (AGB) are checked and one or more side channels (SK) are used to transmit the data stream (DS) depending on a result of the check.
In some embodiments, the data stream (DS) is not transmitted via the one more side channels (SK) themselves as or by means of publish-subscribe messages.
In some embodiments, the offers for the one or more side channels (SK) contain parameters for transmitting the data stream (DS) and the check takes the parameters into account and the data stream (DS) is transmitted in accordance with the parameters.
In some embodiments, the parameters include an endpoint address of the side channel (SK).
In some embodiments, the parameters include one or more transport protocols for the side channel (SK) and/or a content type of the data stream (DS), in particular video and/or audio, and/or a coding, in particular an MPEG-4 format, of the data stream (DS). In some embodiments, the parameters include a data rate and/or a service quality of the data stream (DS).
In some embodiments, the data stream (DS) is constructed in each case from a respective data stream producer (DSP) to a data stream consumer (DSK).
In some embodiments, the data stream consumer/consumers (DSK) and/or the data stream producer/producers (DSP) is a component/are components of an, in particular, industrial Internet-of-Things system (IOTN).
As another example, some embodiments include a data stream producer, in particular comprising a processor, designed to execute one or more of the methods as described herein.
In some embodiments, the processor is set up to execute one or more of the methods as described herein.
In some embodiments, the data stream producer as is an industrial Internet-of-Things device and/or comprises a camera and/or comprises a microphone.
The present disclosure is explained in more detail below with reference to an example embodiment. In the drawing:
In the methods described herein for transmitting a data stream in a publish-subscribe system, offers for one or more side channels for transmitting the data stream by means of publish-subscribe messages are tendered and offers of side channels by means of publish-subscribe messages are received, wherein the offers are checked and one or more side channels are used to transmit the data stream depending on a result of the check. Data streams can still be transmitted by means of publish-subscribe messages which themselves are not set up to transmit continuous data streams.
Publish-subscribe messages themselves cannot regularly ensure such transmission of data streams since the transport protocols of publish-subscribe messages are designed to distribute discrete, complete and intrinsically finalized information, such as in particular signals and/or events and/or status notifications, in the form of messages with a restricted payload, which messages can be encoded and interpreted in isolated fashion, that is to say independently of other messages. This automatically does not affect the aforementioned continuous data streams.
Furthermore, publish-subscribe messages cannot take into account real-time requirements or quasi-real-time requirements since specialized transport protocols with real-time communication ability via a point-to-point connection are used for this, such as in particular the transport protocol WebRTC in the case of audio streaming and/or in the case of video streaming. In the case of broker-based publish-subscribe systems, in which communication takes place according to established standards, such as the MQTT standard, the routing of a continuous data stream via the broker
-
- in the form of individual messages with fragmented data blocks
- would result in increased loading on the broker and increased latency times in message delivery, which can negatively influence the throughput of the publish-subscribe system and can cause overloading in the network.
In contrast, in the methods incorporating teachings of the present disclosure, data streams are transmitted on communication channels that are separate from the publish-subscribe system and that are brokered between senders and recipients dynamically at the runtime and via the publish-subscribe system only when required, such that it is possible to achieve optimum transmission efficiency between the sender and recipient. Within the context of the present disclosure, senders are also referred to as data stream producers while recipients are also referred to as data stream consumers.
Offers for one or more side channels can thus be tendered and offers of side channels can thus be received in conventional fashion by means of publish-subscribe messages. In this respect, the communication processes of publish-subscribe systems remain unaffected and the methods incorporating teachings of the present disclosure do not require any particular adjustments in this respect.
An industrial network which is already using a publish-subscribe system for the communication of components of the publish-subscribe system can be extended with new types of data streams and the transmission protocols thereof by means of these methods since only the affected data stream production components and data stream consumption components have to be changed in order to implement the side channels. Basic advantages of a publish-subscribe system, such as the enabling of latency times and throughput, consequently remain in principle since only the appointing of side channels and/or the parameters thereof is carried out by means of publish-subscribe methods, but not the transmission of data streams.
The data stream is not transmitted via the one more side channels themselves as or by means of publish-subscribe messages. Although the offers for the one or more side channels for transmitting the data stream by means of publish-subscribe messages are tendered and offers of side channels by means of publish-subscribe messages are received and the offers are checked, the use of the one or more side channels themselves depending on a result of the check for transmitting the data stream, including transmitting the data stream via the one or more side channels themselves, is expediently not carried out as or by means of publish-subscribe messages, e. g., by messages of a different protocol.
In some embodiments, offers for the one or more side channels contain parameters for transmitting the data stream and the check takes the parameters into account and the data stream is transmitted in accordance with the parameters. In some embodiments, parameters expediently include an endpoint address of the side channel.
The parameters include one or more transport protocols for the side channel SK and/or a content type of the data stream, in particular video and/or audio, and/or a coding, in particular an MPEG-4 format, of the data stream. In this development, the respective type of the data stream can be transmitted using a transmission protocol which is adapted thereto and which corresponds to the respective prior art. Corresponding advantages result analogously for other parameters of the communication via the respective side channel.
An industrial network which is already using a publish-subscribe system for the communication of components of the publish-subscribe system can be extended with new types of data streams and the transmission protocols thereof since only the affected data stream production components and data stream consumption components have to be changed in order to implement the side channels.
In some embodiments, the parameters include a data rate and/or a service quality of the data stream. In this development, publish-subscribe messages may make it possible to flexibly broker an optimum transmission efficiency for data streams between senders and recipients which meet the requirements both on the sender side and on the recipient side. In particular, in this way, it is possible to avoid problems that arise if for instance senders transmit a data stream at a higher data rate than recipients can receive or process.
The data stream is constructed from a data stream producer to a data stream consumer. The publish-subscribe messages used in accordance with the teachings herein can be used to loosely coupled senders and recipients of data streams in order to transmit data streams. In particular, data stream producers are senders of the data stream and data stream consumers are recipients of the respective data stream. For transmission, data stream producers must not have any prior knowledge about the data stream consumer and in particular must not initially know connection data such as the endpoint address thereof. A system configuration of data stream producers is not specifically necessary in this respect, which makes it possible to transmit data streams on an ad-hoc basis and significantly reduces the outlay for configuration and commissioning of data stream producers and data stream consumers.
The data stream consumer/consumers and/or the data stream producer/producers is a component/are components of an, in particular industrial, £ Internet-of-Things system. In some embodiments, the data stream producer comprises in particular a processor and to execute one or more of the methods as described herein.
The data stream producer is configured and designed in particular to execute the methods described herein. The same advantages as have already been mentioned in relation to the methods result for the data stream producers incorporating teachings of the present disclosure. In some embodiments, the processor is configured to execute one or more of the methods as described herein.
In some embodiments, the data stream producer comprises an industrial Internet-of-Things device and/or a camera and/or a microphone, which camera and/or microphone generates the data stream.
The figure shows an Internet-of-Things network which is also referred to below as IoT network IOTN. In the embodiment illustrated, the IoT network IOTN comprises data stream consumers DSK and a data stream producer DSP. Data stream consumers DSK and data stream producer DSP are implemented as wirelessly interconnected components of a manufacturing plant. The components of the manufacturing plant are connected to one another via a publish-subscribe system PUBSUB.
The data stream consumers DSK are decentralized control devices which receive continuous measurement signals in the form of a video feed. The video feed is provided by the data stream producer DSP which is formed by means of a computer-controlled monitoring camera. The data stream consumers, that is to say the control devices, can use the video feed to monitor process parameters and control control variables in order to control the process parameters. Each of the decentralized control devices receives a respective copy of the entire video feed. The data stream producer DSP thus transmits the data stream DS to each of the data stream consumers DSK.
In the IoT network IOTN illustrated, the data streams DS are transmitted via a side channel SK, that is to say via a separate communication channel, which is separate from the publish-subscribe system PUBSUB and which has a specific transport protocol suitable for the respective data stream type and is designed in the present example not to transmit data streams as publish-subscribe messages. The side channel SK is brokered in decentralized fashion between the data stream producer DSP and data stream consumer DSK dynamically at the runtime via the available publish-subscribe system when required with the aim of achieving an optimum balance between the requirements of the data stream producer and those of the data stream consumer.
The data stream producer DSP is loosely coupled to all data stream consumers DSK via the publish-subscribe system PUBSUB for this purpose. Via the publish-subscribe system PUBSUB, a data stream producer DSP sends a request ANF for transmitting a data stream DS to all interested data stream consumers DSK, receives the offers AGB thereof, constructs side channels SK to the creators of the offers and transmits the data stream DS on each individual side channel SK to the respective data stream consumers DSK.
An example method incorporating teachings of the present disclosure comprises:
Steps S1, S2 and S3 relate to a balancing method for establishing side channels SK by means publish-subscribe communication between the data stream producer DSP and the data stream consumers DSK which provide offers AGB to consume the data stream. Steps S4, S5 and S6, in contrast, relate to the subsequent transmission of the data stream via the established side channels SK from the data stream producer DSP to the data stream consumers DSK.
In the first step S1, which forms a request step, the data stream producer DSP sets up a subscription on the topic “side channel offer” by specifying a clear request identifier and then publishing a message on the topic “side channel request” by specifying said request identifier and specific requirement parameters in its payload. Such specific requirement parameters specify the available transport protocols for the side channel SK and other characteristics relating to the data stream DS to be transmitted, such as a content type of the data stream DS, in the present case video, and a coding, in the present case an MPEG-4 format, of the data stream DS, for example. As an alternative, in other exemplary embodiments, the content type may indicate an audio signal, with the video feed being replaced by an audio feed of a monitoring microphone in these other exemplary embodiments. Furthermore, other characteristics relating to the data stream DS optionally include predefined data compression methods, a minimum possible and a maximum possible data rate, a desired data rate and guarantees with respect to the quality of service.
In the second step S2, which forms an offer step, the data stream consumers DSK have permanently set up a subscription on the topic “side channel request” with an arbitrary request identifier as wildcard. When a message on this topic is received, it is checked whether the requirements of the respective data stream consumer DSK can be correlated with the data stream DS to be transmitted having the requirements in the payload. If this is not possible, the respective data stream consumers DSK do not output an offer. Otherwise, an offer is created and published as payload on the topic “side channel offer” by specifying the correlated request identifier. The offer includes the requirement parameters of the data stream consumer DSK and additionally specific connection parameters, including an endpoint address, which enables the data stream producer DSP to construct a side channel SK to the data stream consumer.
In a third step S3, which forms an offer selection step, the data stream producer DSP receives offer messages from the offer creator on the subscription set up in the first step S1 and collects them until a certain offer period has elapsed. It then cancels the subscription so that offers that arrive too late are no longer delivered. The data stream producer DSP then compares each offer received with its requirement parameters that were provided in the request ANF. All offers AGB that meet both its requirement parameters and the requirement parameters of the respective offer creator are selected for establishing a side channel and transmission via said respective side channel.
In a fourth step S4, which forms a setup step, the data stream producer DSP opens a respective side channel SK for each selected offer creator, that is to say each selected data stream consumer DSK, by constructing a connection via a transport protocol that satisfies the common requirements and has the matched requirement parameters to the endpoint address specified in the offer.
In a fifth step S5, the data stream producer DSP data encodes and transmits the data stream simultaneously via the opened side channels SK. The data stream consumers DSK simultaneously decode the transmitted data and pass them on to components that process them further.
In a sixth step S6, a termination step, the data stream DS is transmitted fully for each side channel SK or the data stream DS is no longer intended to be consumed by the respective data stream consumer DSK. In step S6, the side channel SK is then closed. This sixth step S6 can generally be initiated both on the sender side and on the recipient side, that is to say both by the data stream producer DSP and by the data stream consumer DSK.
The steps described above which relates to the matching of sender-based and recipient-based requirements, that is to say the requirement parameter, to the transmission, are aimed at finding an optimum transmission protocol with optimum transmission parameters that technically support both the data stream producer DSP and data stream consumer DSK. In the described method, a data stream consumer DSK is only taken into account if at least one of the transport protocols in its offer corresponds to the transport protocols specified in the request, also referred to below as protocol for short.
When the data stream consumer DSK and data stream producer DSP specify maximum data rates, the sender ensures that the selected transmission rate does not exceed the minimum of the maximum data rates of the data stream consumer DSK and data stream producer DSP, that is to say that the two maximum data rates are satisfied at the same time. When the data stream consumer DSK and data stream producer DSP each specify minimum data rates, the sender ensures that the selected transmission rate does not fall below the maximum of the two minimum data rates, that is to say that the two minimum data rates are satisfied at the same time. This coordination also applies analogously to all other requirement parameters.
In the present case, the side channel SK is operated in the client-server model, with the data stream producer DSP taking on the role of the client requesting the transmission service from the data stream consumer DSK which takes on the role of the server. Since the server services associated with the data stream consumer DSK are permanently in operation and listen on the endpoint addresses specified in the offers AGB, a client can construct a connection to a server by means of a side channel SK without informing the data stream consumer DSK about this in advance. This means that the data stream producer DSP does not have to send confirmation messages, which make it clear whether the offers AGB have been taken into account, to the offer creators. An additional step of this kind in the method described would only be necessary if the server service operated by the offer creator were intended to be booted up with a delay, that is to say only when required, if the offer AGB that is output has been taken into account.
Claims
1. A method for transmitting a data stream in a publish-subscribe systems, the method comprising:
- tendering offers for one or more side channels for transmitting the data stream using publish-subscribe messages;
- receiving offers of side channels using publish-subscribe messages;
- checking the offers; and
- using one or more side channels to transmit the data stream depending on a result of the check.
2. The method as claimed in claim 1, wherein the data stream is not transmitted via the one more side channels themselves using publish-subscribe messages.
3. The method as claimed in claim 2, wherein:
- the offers for the one or more side channels contain parameters for transmitting the data stream;
- the check takes the parameters into account; and
- the data stream is transmitted in accordance with the parameters.
4. The method as claimed in claim 1, wherein the parameters include an endpoint address of the side channel.
5. The method as claimed in claim 1, wherein the parameters include one or more transport protocols for the side channel and/or a content type of the data stream.
6. The method as claimed in claim 1, wherein the parameters include a data rate and/or a service quality of the data stream.
7. The method as claimed in claim 1, wherein the data stream is constructed from a respective data stream producer to a data stream consumer.
8. The method as claimed in claim 1, wherein the data stream consumer and/or the data stream producer comprise a component of any industrial Internet-of-Things system.
9-11. (canceled)
Type: Application
Filed: May 14, 2024
Publication Date: Nov 26, 2026
Applicant: Siemens Aktiengesellschaft (München)
Inventors: Hubertus Hohl (Garching), Markus Sauer (Garching)
Application Number: 19/487,744