Secure and Dynamic Publish/Subscribe: LCMsec: Description of LCM

LCM is a brokerless, topic-based Publish/Subscribe protocol designed for real-time systems that require high-throughput and lowlatency. Messages are transmitted using UDP and routed via IP-multicast to all other nodes within the multicast group. The binary-encoded LCM messages are then sent via multicast groups.


This content originally appeared on HackerNoon and was authored by Marshalling

:::info Authors:

(1) Moritz Jasper, Barkhausen Institut gGmbH, Wurzburger Straße 46, Dresden, Germany (moritz.jasperl@barkhauseninstitut.org);

(2) Stefan Kopsell, Barkhausen Institut gGmbH, Wurzburger Straße 46, Dresden, Germany (stefan.koepsell@barkhauseninstitut.org).

:::

Abstract and Introduction

Related Work

Description of LCM

Attacker Model and Security Goals

LCMSec: The Proposed Protocol

Implementation and Evaluation

Conclusion

Appendix and References

III. DESCRIPTION OF LCM

Lightweight Communications and Marshalling [2] is a brokerless, topic-based Publish/Subscribe protocol designed for real-time systems that require high-throughput and lowlatency. Message types can be defined in the LCM type specification language, which is a language-neutral and platformneutral specification language for structured data. From this specification language, language-specific bindings for binary serialisation and encoding are generated, while maintaining interoperability.

\ The binary-encoded LCM messages are then sent via multicast groups, which are identified by the multicast IP-address and port on which they are transmitted. Each group comprises multiple topics, which in LCM are called channels, identified by a channelname string. Messages are transmitted using UDP and routed via IP-multicast to all other nodes within the multicast group. A node can subsequently subscribe to a channel within that group by simply dropping all messages except those that match the channelname. Since the same channelname might be used in multiple multicastgroups at the same time, we can uniquely identify a only by the combination of multicastgroup and channelname. We will therefore define LCMDomain=(multicastgroup, channelname).

\ Fig. 1. High-level illustration of LCM

\ The LCM packet format, as depicted in Figure 2, consists of a 4 byte magic number to identify the LCM protocol, a sequence number which is incremented by each sender separately, and a zero-terminated, ASCII-encoded channelname string. The channelname string is immediately followed by the payload. Large messages are fragmented into multiple smaller transportation units to achieve a maximum message size of 4 GB, in this case a slightly more complicated header is used, but omitted here.

\ Fig. 2. LCM packet format

\

:::info This paper is available on arxiv under CC BY 4.0 DEED license.

:::

\


This content originally appeared on HackerNoon and was authored by Marshalling


Print Share Comment Cite Upload Translate Updates
APA

Marshalling | Sciencx (2024-07-10T16:00:17+00:00) Secure and Dynamic Publish/Subscribe: LCMsec: Description of LCM. Retrieved from https://www.scien.cx/2024/07/10/secure-and-dynamic-publish-subscribe-lcmsec-description-of-lcm/

MLA
" » Secure and Dynamic Publish/Subscribe: LCMsec: Description of LCM." Marshalling | Sciencx - Wednesday July 10, 2024, https://www.scien.cx/2024/07/10/secure-and-dynamic-publish-subscribe-lcmsec-description-of-lcm/
HARVARD
Marshalling | Sciencx Wednesday July 10, 2024 » Secure and Dynamic Publish/Subscribe: LCMsec: Description of LCM., viewed ,<https://www.scien.cx/2024/07/10/secure-and-dynamic-publish-subscribe-lcmsec-description-of-lcm/>
VANCOUVER
Marshalling | Sciencx - » Secure and Dynamic Publish/Subscribe: LCMsec: Description of LCM. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/10/secure-and-dynamic-publish-subscribe-lcmsec-description-of-lcm/
CHICAGO
" » Secure and Dynamic Publish/Subscribe: LCMsec: Description of LCM." Marshalling | Sciencx - Accessed . https://www.scien.cx/2024/07/10/secure-and-dynamic-publish-subscribe-lcmsec-description-of-lcm/
IEEE
" » Secure and Dynamic Publish/Subscribe: LCMsec: Description of LCM." Marshalling | Sciencx [Online]. Available: https://www.scien.cx/2024/07/10/secure-and-dynamic-publish-subscribe-lcmsec-description-of-lcm/. [Accessed: ]
rf:citation
» Secure and Dynamic Publish/Subscribe: LCMsec: Description of LCM | Marshalling | Sciencx | https://www.scien.cx/2024/07/10/secure-and-dynamic-publish-subscribe-lcmsec-description-of-lcm/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.