用于管理tipc的tipc工具可通过主要Linux发行版中的iproute2包获得。
Manageable Objects
$ tipc -h
Transparent Inter-Process Communication Protocol
Usage: tipc [OPTIONS] COMMAND [ARGS] ...
Options:
-h, --help Print help for last given command
COMMANDS:
bearer - Show or modify bearers
link - Show or modify links
media - Show or modify media
nametable - Show nametable
node - Show or modify node related parameters
socket - Show sockets
Bearer
A bearer is an abstraction of a network interface, with additional parameters for TIPC. A node may attach up to three interfaces, but only two of the same type. A bearer has configurable properties, such as default link tolerance and default priority, which are inherited by the links activated across that bearer.
bearer(传达消息者/搬运工)
bearer是网络接口的抽象,带有TIPC的附加参数。一个节点最多可以连接三个接口,但只能连接两个相同类型的接口。bearer具有可配置的属性,例如默认链路容差和默认优先级,这些属性由在该承载上激活的链路继承。
$ tipc bearer -h
Usage: tipc bearer COMMAND [ARGS] ...
COMMANDS
enable - Enable a bearer
disable - Disable a bearer
set - Set various bearer properties
get - Get various bearer properties
list - List bearers
Media
介质是bearer类型,从中实例化bearer。目前,支持四种介质类型:以太网、Infiniband、UDP/IPv4和UDP/IPv6。一些介质属性,如默认链接容差和发送窗口大小,是可配置的,并由实例化的bearer器继承。
$ tipc media -h
Usage: tipc media COMMAND [ARGS] ...
COMMANDS:
list - List active media types
get - Get various media properties
set - Set various media properties
Link
链路是一个管道,用于与对等节点交换数据包,也用于监控这些节点的可用性。链路有三个可配置参数:容差(对等节点无响应)、优先级和发送窗口大小。
$ tipc link -h
Usage: tipc link COMMAND [ARGS] ...
COMMANDS
list - List links
get - Get various link properties
set - Set various link properties
statistics - Show or reset statistics
Name Table
The service binding table, also called the name table, contains the cluster global bindings between service addesses
and socket addresses, as well as the node local bindings with node scope visibility.
服务绑定表(也称为名称表)包含服务加法之间的集群全局绑定和套接字地址,以及具有节点范围可见性的节点本地绑定。
$ tipc nametable -h
Usage: tipc nametable COMMAND
COMMANDS
show - Show nametable
Node
The own node has two settable and readable poperties: node identity and cluster identity. Note that
before Linux 4.17 those properties are called node address and network identity, with command
keywords address and netid.
自己的节点有两个可设置且可读的权限:节点标识和集群标识。注意在Linux4.17之前,这些属性被称为节点地址和网络标识(node address and network identity)
关键词地址和网络ID。
$ tipc node -h
Usage: tipc media COMMAND [ARGS] ...
COMMANDS
list - List remote nodes
get - Get local node parameters
set - Set local node parameters
Socket
socket list命令将显示节点上的现有套接字,包括它们的服务绑定,如果有的话。还请注意,在Linux 4.17中,iproute2中的ss工具具有强大的统计/诊断功能 支持TIPC sockets。
$ tipc socket -h
Usage: tipc socket COMMAND
COMMANDS:
list - List sockets (ports)