当前位置:网站首页>DDS learning notes of opendds
DDS learning notes of opendds
2022-06-25 10:08:00 【Southern kingdom_ Love】
DDS:data distribution service Data distribution services
DDS Information publishing middleware is a kind of portable 、 Middleware technology that can provide real-time information transmission .DDS Middleware is a software layer , Slave operating system 、 The application is abstracted from the details of network transmission and underlying data format . The same concept and api Available to different programming languages , Make the application in different operating systems 、 Exchange information between codification language and processing architecture . The underlying details include the data transmission format 、 Find out 、 Connect 、 Reliability and 、 agreement 、Qos Policies are managed by middleware .
DDS Adopt release / Subscription architecture , Data centric , Provide a wealth of Qos Service quality strategy .
The data centric core is DDS Know the data in the whole integrated network and the sharing of control data . Using traditional message centric middleware , The problem of sending messages must be considered . Using data centric middleware , Just think about how to share data , When to share data , Data values can be shared between .DDS Directly realize controlled for users 、 Managed 、 Secure data sharing , Instead of managing all the responsible logic in the application code . Among the numerous communications ,DDS Is the only data centric standard , For the Internet of things .
DDS Offer based on Qos Controlled shared data . This should be achieved by publishing and subscribing to topics , Topics are identified by their topic names . Subscribers can specify time and content filters , In this way, you can obtain a subset of the published data of the topic . Different DDS Fields are completely non overlapping . stay DDS There is no sharing between domains .
DDS Global data space
DDS All locally stored data is called global data space . For applications , The global data space looks like passing through api To access memory . When you use it , Just like using local storage . in fact ,DDS Send a message to update the corresponding stored value of the remote node . such , When use , Like local storage .
To make a long story short ,DDS Make the application provide a virtual global data pool concept when data access is required , In fact, there is no global device that stores all data . Each application only stores the data it needs locally , When any application in the whole network needs them , Provided to the corresponding application . All data distribution work is done by DDS take the trouble for . Global data space is a virtual concept , Is actually a locally stored collection . Every application , Can be written in almost any language , Run on any system , You can read the data displayed in the best data format on the local memory . The global data space can be used in embedded systems 、 Data sharing between mobile and Cloud Applications , Use any transmission mode , Regardless of language or system , And the delay is very low .
DDS Release / Subscription model
DDS Data centric Publishing - The subscription model creates a virtual shared global data space for all distributed nodes . In this model, distributed nodes are distributed in the network
Transmit data by publishing or subscribing on , Nodes can be publishers or subscribers , Or both . Data objects in the network are identified by topics , Distributed nodes publish or subscribe to interesting topic information in the global data space . Each node has no master-slave relationship in logic , Points are equal to each other , The communication mode can be point-to-point , Point to many , Many to many , stay Qos Establish connection under the control of policy , Automatically discover and configure network parameters .
DDS The specification has two layers : Namely DLRL layer ( Data local reconstruction ) and DCPS layer ( Data centric publishing and subscription ).DCPS Layer is DDS Core and foundation of , It provides basic communication services ;DLRL Layers will DCPS The services provided by the layer are abstracted , stay DLRL The layer establishes a mapping relationship with the underlying services .
DDS The basic structure is the domain domain, It is uniquely identified by the domain number .domain Bind applications together to communicate , Only communicating entities in the same domain can communicate , There is no logical relationship between entities in different domains .
DDS All the members in the are entity,DDS Any two entity All communications must be in the same domain Interact within .domain Internal domainparticipant It's the entry point of the service , whatever DDS Applications need to get domain participant, And then through domain participant Get other services , Such as publisher,subscriber,topic etc. .
domain Participant As an entry point for data distribution services , Contains several publishers , Subscribers and registration topics , Responsible for creating , Delete and manage these entities .
publisher Role as publisher , At least one DataWriter, And responsible for creating , Delete and manage datawriter. Again ,subcri As a subscriber , With at least one datareader relation , And be responsible for publishing data , The data publisher calls datawriter Of write Function to publish data , But the data will not be sent out immediately , The actual message is generated through publisher and Qos Integrated control .datareader Responsible for subscribing to data , The subscription mode can be asynchronous (listener), Synchronous mode and non blocking mode .
topic yes datawriter and datareader The subject agreed upon when communicating with each other , Every datawriter/datareader Must be bound to a topic , Communicating with each other datawriter and datareader The subject data type must be the same between ,Qos Must match . in addition ,topic There must be a definite data type .
————————————————
Copyright notice : This paper is about CSDN Blogger 「 One sand, one stone, one river 」 The original article of , follow CC 4.0 BY-SA Copyright agreement , For reprint, please attach the original source link and this statement .
Link to the original text :https://blog.csdn.net/bossxu_linuxer/article/details/81216030
边栏推荐
- 在指南针上面开股票账户好不好,安不安全?
- Experience in writing C
- 字符串 最长公共前缀
- Use evo
- [smart agriculture program] smart agriculture small program project is currently popular.
- Wearable devices may reveal personal privacy
- Redis (II) distributed locks and redis cluster construction
- How to make small programs on wechat? How to make small programs on wechat
- Consul的基本使用与集群搭建
- How do wechat sell small commodity programs do? How to open wechat apps to sell things?
猜你喜欢
Reza RA series - development environment construction
瑞萨RA系列-开发环境搭建
Flask博客实战 - 实现侧边栏最新文章及搜索
How to do the wechat selling applet? How to apply for applets
Consul的基本使用与集群搭建
Basic use and cluster construction of consult
Creo makes a mobius belt in the simplest way
如何在Microsoft Exchange 2010中安装SSL证书
Kotlin advanced generic
汇付国际为跨境电商赋能:做合规的跨境支付平台!
随机推荐
Chitubox micromake l3+ slicing software configuration correspondence
Flask博客实战 - 实现侧边栏文章归档及标签
独步武林,架构选型手册(包含 PDF)
x86电脑上下载debian的arm64的包
ShardingSphere-Proxy 4.1 分库分表
Jetpack compose layout (II) - material components and layout
Armbian version name comparison
Best producer consumer code
Etcd tutorial - Chapter 4 etcd cluster security configuration
Why should the terminal retail industry choose the member management system
STM32 receives data by using idle interrupt of serial port
How to make a self-made installer and package the program to generate an installer
Exception: gradle task assemblydebug failed with exit code 1
2台三菱PLC走BCNetTCP协议,能否实现网口无线通讯?
How do dating applets make millions a year? What is the profit model?
Wallys/MULTI-FUNCTION IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL
可穿戴设备或将会泄露个人隐私
Is it safe to open a stock account on the compass?
Is GF Securities reliable? Is it legal? Is it safe to open a stock account?
Basic use and principle of Minio