Chapter 49. Getting started with TIPC
Transparent Inter-process Communication (TIPC), which is also known as
Cluster Domain Sockets, is an Inter-process Communication (IPC) service for cluster-wide operation.
Applications that are running in a high-available and dynamic cluster environment have special needs. The number of nodes in a cluster can vary, routers can fail, and, due to load balancing considerations, functionality can be moved to different nodes in the cluster. TIPC minimizes the effort by application developers to deal with such situations, and maximizes the chance that they are handled in a correct and optimal way. Additionally, TIPC provides a more efficient and fault-tolerant communication than general protocols, such as TCP.
49.1. The architecture of TIPC
TIPC is a layer between applications using TIPC and a packet transport service (
bearer), and spans the level of transport, network, and signalling link layers. However, TIPC can use a different transport protocol as bearer, so that, for example, a TCP connection can serve as a bearer for a TIPC signaling link.
TIPC supports the following bearers:
- UDP protocol
TIPC provides a reliable transfer of messages between TIPC ports, that are the endpoints of all TIPC communication.
The following is a diagram of the TIPC architecture:
49.2. Loading the tipc module when the system boots
Before you can use the TIPC protocol, load the
tipc kernel module. This section explains how to configure that RHEL loads this module automatically when the system boots.
/etc/modules-load.d/tipc.conffile with the following content:
systemd-modules-loadservice to load the module without rebooting the system:
systemctl start systemd-modules-load
Use the following command to verify that RHEL loaded the
lsmod | grep tipctipc 311296 0
If the command shows no entry for the
tipcmodule, RHEL failed to load it.
For further details about loading modules when the system boots, see the
49.3. Creating a TIPC network
This section describes how to create a TIPC network.
The commands configure the TIPC network only temporarily. To permanently configure TIPC on a node, use the commands of this procedure in a script, and configure RHEL to execute that script when the system boots.
tipcmodule has been loaded. For details, see Section 49.2, “Loading the tipc module when the system boots”
Optional: Set a unique node identity, such as a UUID or the node’s host name:
tipc node set identity host_name
The identity can be any unique string consisting of maximum 16 letters and numbers.
Add a bearer. For example, to use Ethernet as media and
enp0s1device as physical bearer device, enter:
tipc bearer enable media eth device enp1s0
- Optional: For redundancy and better performance, attach further bearers using the command from the previous step. You can configure up to three bearers, but not more than two on the same media.
- Repeat all previous steps on each node that should join the TIPC network.
Display the link status for cluster members:
tipc link listbroadcast-link: up 5254006b74be:enp1s0-525400df55d1:enp1s0: up
This output indicates that the link between bearer
Display the TIPC publishing table:
tipc nametable showType Lower Upper Scope Port Node 0 1795222054 1795222054 cluster 0 5254006b74be 0 3741353223 3741353223 cluster 0 525400df55d1 1 1 1 node 2399405586 5254006b74be 2 3741353223 3741353223 node 0 5254006b74be
The two entries with service type
0indicate that two nodes are members of this cluster.
The entry with service type
1represents the built-in topology service tracking service.
The entry with service type
2displays the link as seen from the issuing node. The range limit
3741353223represents peer endpoint’s address (a unique 32-bit hash value based on the node identity) in decimal format.
- The two entries with service type
For details about other bearers you can use and the corresponding command-line parameters, see the
For further details about the
tipc namespacecommand, see the
49.4. Additional resources
Red Hat recommends to use other bearer level protocols to encrypt the communication between nodes based on the transport media. For example:
For examples of how to use TIPC, clone the upstream GIT repository using the
git clone git://git.code.sf.net/p/tipc/tipcutilscommand. This repository contains the source code of demos and test programs that use TIPC features. Note that this repository is not provided by Red Hat.
- For details about the TIPC protocol, see http://tipc.io/protocol.html.
- For details about TIPC programming, see http://tipc.io/protocol.html.