当前位置:网站首页>TIPC introduction 1
TIPC introduction 1
2022-07-02 11:08:00 【Cheng Gouzi walking in the clouds】
TIPC Implemented as a kernel module , Exists in all major Linux Distribution in . It can be configured to pass UDP Or transmit messages directly through Ethernet . Message passing is sequence guarantee 、 No loss and flow control . The delay time is shorter than any other known Protocol , The maximum throughput is the same as TCP Quite a .
Have you ever wished that even in cluster It can also be used when transmitting data between nodes Unix Domain Socket ? You decide the location of the address you want to bind and use ? You do not have to perform DNS Find and worry IP Address ? You don't have to start a timer to monitor the continuous existence of peer sockets ? But without the disadvantages of this socket type , Like delay inode The risk of ?
Welcome to the transparent interprocess communication service , In short ,TIPC, It provides you with all these , And more .
Service Addressing( 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 A basic concept in is service addressing , It allows programmers to choose their own addresses , Bind it to the server socket , And let the client program send messages only with this address .
Service Tracking( 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.
Clients who want to wait for server availability use the service tracking mechanism to subscribe to bind and unbind sockets with associated service addresses / Closing event .
The service tracking mechanism can also be used for cluster topology tracking , That is, the availability of subscription cluster nodes / Unavailability .
similarly , The service tracking mechanism can be used for cluster connectivity tracking , namely , Subscribe up for a single link between cluster nodes / Downward event .
Transmission Modes( transmission mode )
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.
Use the service address , The client can send datagrams to the server socket (datagram) news .
Use the same address type , It can establish a connection to the socket of the receiving server .
It can also create and join communication groups using service addresses , This is agentless message bus TIPC form .
In datagram mode and communication group mode , Multicast has good performance and scalability .
Inter Node Links( Link between nodes )
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 The communication between any two nodes in is maintained by one or two inter node links , These two links ensure the integrity of data communication , The availability of peer nodes is also monitored .
Cluster Scalability(Cluster Extensibility )
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.
By applying the overlapping ring monitoring algorithm on the link between nodes (Overlapping Ring Moniroring), Can be TIPC The cluster extends to 1000 Nodes , Keep the neighbor fault discovery time as 1-2 second . For smaller clusters , This time can be shortened a lot .
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.
When any of these services is available , The neighbor nodes in the cluster are discovered through Ethernet broadcast or UDP Multicast to complete . without , Configured peers can be used IP Address .
Configuration
Run in single node mode TIPC when , No configuration required . When running in cluster mode ,TIPC You must obtain at least one node address ( stay linux4.17 Before ), And tell which interface to connect to .“tipc” Configuration tools make it possible to add and maintain more configuration parameters .
Performance( performance )
TIPC Message transmission latency is better than any other known Protocol . The maximum byte throughput of connections between nodes is still slightly lower than TCP, On the same host , They are better than TCP.
边栏推荐
猜你喜欢

Special topic of binary tree -- acwing 18 Rebuild the binary tree (construct the binary tree by traversing the front and middle order)

TIPC 寻址2

JSP webshell免殺——JSP的基礎

【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决

One trick to quickly realize custom application titlebar
![[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

OpenMLDB Meetup No.4 会议纪要

华为应用市场应用统计数据问题大揭秘

Openmldb meetup No.4 meeting minutes

QT学习日记7——QMainWindow
随机推荐
Binary tree topic -- p1030 [noip2001 popularization group] find the first order
php中self和static在方法中的区别
软件产品管理系统有哪些?12个最佳产品管理工具盘点
V2X-Sim数据集(上海交大&纽约大学)
PCL extracts a subset from a point cloud
K-d tree and octree of PCL
[in simple terms, play with FPGA learning 3 ----- basic grammar]
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)
Implement custom drawer component in quick application
二.Stm32f407芯片GPIO编程,寄存器操作,库函数操作和位段操作
MySQL keyword
【深入浅出玩转FPGA学习4----漫谈状态机设计】
Primary key policy problem
[quick application] win7 system cannot run and debug projects using Huawei ide
LabVIEW为什么浮点数会丢失精度
From Read and save in bag file Jpg pictures and PCD point cloud
HDU1234 开门人和关门人(水题)
MySQL environment configuration
Creation and use of unified links in Huawei applinking
Learn open62541 -- [66] UA_ Generation method of string