当前位置:网站首页>TIPC介绍1
TIPC介绍1
2022-07-02 07:33:00 【云端漫步的程狗子】
TIPC作为一个内核模块实现,存在于所有主要的Linux发行版中。它可以配置为通过UDP或直接通过以太网传输消息。消息传递是顺序保证、无丢失和流控制的。延迟时间比任何其他已知协议都要短,而最大吞吐量与TCP相当。
您是否曾经希望即使在cluster 节点之间传输数据时也能使用Unix Domain 套接字?您自己决定要绑定和使用的地址的位置?您不必执行DNS查找和担心IP地址?您不必启动计时器来监视对等套接字的连续存在?但是如果没有这种套接字类型的缺点,比如延迟inode的风险?
欢迎使用透明进程间通信服务,简而言之,TIPC,它为您提供了所有这些,以及更多。
Service Addressing(服务寻址)
A fundamental concept in TIPC is that of Service Addressing which makes it possible for a programmer to chose his own address, bind it to a server socket and let client programs use only that address for sending messages.
TIPC中的一个基本概念是服务寻址,它使程序员可以选择自己的地址,将其绑定到服务器套接字,并让客户端程序仅使用该地址发送消息。
Service Tracking(服务跟踪)
A client wanting to wait for the availablity of a server, uses the Service Tracking mechanism to subscribe for binding and unbinding/close events for sockets with the associated service address.
The service tracking mechanims can also be used for Cluster Topology Tracking, i.e., subscribing for availability/non-availability of cluster nodes.
Likewise, the service tracking mechanims can be used for Cluster Connectivity Tracking, i.e., subscribing for up/down events for individual links between cluster nodes.
想要等待服务器可用性的客户机使用服务跟踪机制为具有关联服务地址的套接字订阅绑定和解除绑定/关闭事件。
服务跟踪机制还可以用于集群拓扑跟踪,即订阅集群节点的可用性/不可用性。
同样地,服务跟踪机制可用于集群连接性跟踪,即,为集群节点之间的单个链路预订向上/向下事件。
Transmission Modes(传输模式)
Using a service address, a client can send datagram messages to a server socket.
Using the same address type, it can establish a connection towards an accepting server socket.
It can also use a service address to create and join a Communication Group, which is the TIPC manifestation of a brokerless message bus.
Multicast with very good performance and scalability is available both in datagram mode and in communication group mode.
使用服务地址,客户机可以向服务器套接字发送数据报(datagram)消息。
使用相同的地址类型,它可以建立到接受服务器套接字的连接。
它还可以使用服务地址创建和加入通信组,这是无代理消息总线的TIPC表现形式。
在数据报模式和通信组模式下,多播都具有很好的性能和可扩展性。
Inter Node Links(节点间链路)
Communication between any two nodes in a cluster is maintained by one or two Inter Node Links, which both guarantee data traffic integrity and monitor the peer node’s availability.
cluster 中任意两个节点之间的通信由一个或两个节点间链路来维持,这两个链路既保证了数据通信的完整性,又监视了对等节点的可用性。
Cluster Scalability(Cluster 可扩展性)
By applying the Overlapping Ring Monitoring algorithm on the inter node links it is possible to scale TIPC clusters up to 1000 nodes with a maintained neighbor failure discovery time of 1-2 seconds. For smaller clusters this time can be made much shorter.
通过在节点间链路上应用重叠环监视算法(Overlapping Ring Moniroring),可以将TIPC集群扩展到1000个节点,保持邻居故障发现时间为1-2秒。对于较小的集群,这个时间可以缩短很多。
Neighbor Discovery
Neighbor Node Discovery in the cluster is done by Ethernet broadcast or UDP multicast, when any of those services are available. If not, configured peer IP addresses can be used.
当这些服务中的任何一个可用时,集群中的邻居节点发现是通过以太网广播或UDP多播来完成的。如果没有,可以使用配置的对等IP地址。
Configuration
在单节点模式下运行TIPC时,不需要任何配置。在集群模式下运行时,TIPC必须至少获得一个节点地址(在linux4.17之前),并告知要连接到哪个接口。“tipc”配置工具使添加和维护更多配置参数成为可能。
Performance(性能)
TIPC消息传输延迟时间优于任何其他已知协议。节点间连接的最大字节吞吐量仍然略低于TCP,而在同一主机上,它们在节点内和容器间的吞吐量上都优于TCP。
边栏推荐
- 华为应用市场应用统计数据问题大揭秘
- JSP webshell免杀——webshell免杀
- 【ARK UI】HarmonyOS ETS的启动页的实现
- Nodejs+express+mysql simple blog building
- MySQL数据库远程访问权限设置
- Special topic of binary tree -- [deep base 16. Example 7] ordinary binary tree (simplified version) (multiset seeks the precursor and subsequent sentry Art)
- UVM - usage of common TLM port
- V2X-Sim数据集(上海交大&纽约大学)
- Special topic of binary tree -- acwing 18 Rebuild the binary tree (construct the binary tree by traversing the front and middle order)
- 【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
猜你喜欢

JSP webshell free -- webshell free

【深入浅出玩转FPGA学习5-----复位设计】

The URL in the RTSP setup header of the axis device cannot take a parameter

V2X-Sim数据集(上海交大&纽约大学)
![[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?](/img/66/674a06d8e45a31ae879b81554ef373.png)
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?

从.bag文件中读取并保存.jpg图片和.pcd点云
![[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched](/img/5c/b0030fd5fbc07eb94013f2699c2a04.png)
[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched

Special topic of binary tree -- acwing 47 Path with a certain value in binary tree (preorder traversal)

JSP webshell免杀——webshell免杀

全网显示 IP 归属地,是怎么实现的?
随机推荐
Binary tree topic -- Luogu p3884 [jloi2009] binary tree problem (DFS for binary tree depth BFS for binary tree width Dijkstra for shortest path)
一招快速实现自定义快应用titlebar
全网显示 IP 归属地,是怎么实现的?
MySQL lethal serial question 4 -- are you familiar with MySQL logs?
OpenMLDB Meetup No.4 会议纪要
洛谷 P3398 仓鼠找 sugar(树上倍增 lca 判断树中两条路径是否相交 结论)
Shell programming 01_ Shell foundation
正则及常用公式
PCL projection point cloud
PCL point cloud to depth image
Start class, data analysis, high salary training plan, elite class
MySQL lethal serial question 3 -- are you familiar with MySQL locks?
二叉树专题--AcWing 19. 二叉树的下一个节点(找树中节点的后继)
[ark UI] implementation of the startup page of harmonios ETS
PCL之K-d树与八叉树
华为AppLinking中统一链接的创建和使用
Special topic of binary tree -- acwing 19 The next node of the binary tree (find the successor of the node in the tree)
华为快应用中如何实现同时传递事件对象和自定义参数
JSP webshell免殺——JSP的基礎
Special topic of binary tree -- acwing 3540 Binary search tree building (use the board to build a binary search tree and output the pre -, middle -, and post sequence traversal)