当前位置:网站首页>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 19 The next node of the binary tree (find the successor of the node in the tree)
- JSP webshell免杀——webshell免杀
- 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)
- How to transfer event objects and user-defined parameters simultaneously in Huawei express applications
- The first white paper on agile practice in Chinese enterprises was released | complete download is attached
- [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
- Primary key policy problem
- 二.Stm32f407芯片GPIO编程,寄存器操作,库函数操作和位段操作
- From Read and save in bag file Jpg pictures and PCD point cloud
- Dialogue Wu Gang: why do I believe in the rise of "big country brands"?
猜你喜欢
flink二開,實現了個 batch lookup join(附源碼)
Huawei game failed to initialize init with error code 907135000
The URL in the RTSP setup header of the axis device cannot take a parameter
使用华为性能管理服务,按需配置采样率
Dialogue Wu Gang: why do I believe in the rise of "big country brands"?
MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
Special topic of binary tree -- acwing 1589 Building binary search tree
Special topic of binary tree -- acwing 47 Path with a certain value in binary tree (preorder traversal)
二叉树专题--AcWing 18. 重建二叉树(利用前、中序遍历,构建二叉树)
【AGC】构建服务3-认证服务示例
随机推荐
Huawei game failed to initialize init with error code 907135000
TIPC Getting Started6
二叉树专题--AcWing 47. 二叉树中和为某一值的路径(前序遍历)
MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
[in simple terms, play with FPGA learning 3 ----- basic grammar]
How to use ide to automatically sign and debug Hongmeng application
JVM之垃圾回收器
Is the account above changtou school safe?
QT学习日记8——资源文件添加
C#中索引器
[play with FPGA learning 2 in simple terms ----- design skills (basic grammar)]
Nodejs+express+mysql simple blog building
Why does LabVIEW lose precision in floating point numbers
QT learning diary 8 - resource file addition
[ark UI] implementation of the startup page of harmonios ETS
From Read and save in bag file Jpg pictures and PCD point cloud
Flink two Open, implement Batch Lookup join (attached source)
计算序列之和
JVM garbage collector
Summary of cases of players' disconnection and reconnection in Huawei online battle service