当前位置:网站首页>TIPC Getting Started6
TIPC Getting Started6
2022-07-02 07:33:00 【云端漫步的程狗子】
Installation and Configuration
The TIPC kernel module is available by default in the major Linux distros. Just do ‘modprobe tipc’
and you are ready to run in single node mode.If you want to run in cluster mode you must also give each node a unique identity and
attach the interface you want to use:$ tipc node set addr 1.1.2 (e.g.) (This step can be omitted from Linux 4.17)$ tipc bearer enable media eth dev eth0If you want better redundancy and performance you can attach a second interface:
$ tipc bearer enable media eth dev eth1 If you want to run on UDP instead of directly on Ethernet use the following commands:$ tipc link list $ tipc bearer enable media udp name UDP1 localip 192.168.123.102 (e.g.) $ tipc bearer enable media udp name UDP2 localip 192.168.124.102 (e.g.)Provided you have set up another node the same way you can now list the links to it:
$ tipc link list broadcast-link: up 1001002:eth0-1001001:eth0: up 1001002:eth1-1001001:eth1: upAt this stage you can also have a look at the service binding table:
$ tipc nametable show Type Lower Upper Scope Port Node 0 16781313 16781313 cluster 0 1001001 0 16781314 16781314 cluster 0 1001002 1 1 1 node 2535696389 1001002 2 16781313 16781313 node 0 1001002 2 16781313 16781313 node 65537 1001002The two entries with service type 0 show that we have two nodes in the cluster, 1001001 and
1001002 (i.e., the own node).
The entry with service type 1 represents the built-in topology (service tracking) service.
The two entries with service type 2 show the two links, as seen from the issuing (own) node 1001002.
The range limits 16781313 represent the the peer endpoint’s address (1001001) in decimal format.Running a Program
Download and unpack the tipcutils package from the project page. The package comes ready with binaries,
but is easy to rebuild if needed.In one shell, do:
$ ./tipcutils/demos/hello_world/hello_server ****** TIPC hello world server started *****You can now take another look at the address binding table:
$ tipc nametable show Type Lower Upper Scope Port Node 0 16781313 16781313 cluster 0 1001001 0 16781314 16781314 cluster 0 1001002 1 1 1 node 2535696389 1001002 2 16781313 16781313 node 0 1001002 2 16781313 16781313 node 65537 1001002 18888 17 17 cluster 1697554572 1001002The server has bound itself to the service type 18888 and instance 17, and made itself visible
in the whole cluster.In another shell, on the same node or on the peer node, you can now do:
$ ./tipcutils/demos/hello_world/hello_client ****** TIPC hello world client started ****** Client: sent message: Hello World!! Client: received response: Uh ? ****** TIPC hello client finished ******If you now redo this exercise, but start the client before the server, you will see a simple
example of start synchronization by leveraging the service tracking feature.Downloading the Code
The kernel source code can be checked out from:
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitThe ‘tipc’ tool for configuring and managing TIPC is available as a standard part of the iproute2 package,
which is also available in all distros. The source code can be checked out from:$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitThe ‘tipcutils’ package contains a set of demos and test programs. The downloadable .zip file comes complete
with binaries, but is only a snapshot, so it may not always be up to date with the latest version in the git repository.
This can can be checked out from:$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
边栏推荐
- HDU1234 开门人和关门人(水题)
- Shell programming 01_ Shell foundation
- 实验电镜距离测量之Matlab处理
- [visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)
- Matlab processing of distance measurement of experimental electron microscope
- Special topic of binary tree -- Logu p1229 traversal problem (the number of traversals in the middle order is calculated when the pre and post order traversals of the multiplication principle are know
- HDU1228 A + B(map映射)
- 2022-06-17
- 华为AppLinking中统一链接的创建和使用
- 学习open62541 --- [66] UA_String的生成方法
猜你喜欢

Easyexcel, a concise, fast and memory saving excel processing tool

Creation and use of unified links in Huawei applinking

一招快速实现自定义快应用titlebar

Kustomize user manual

VSCode工具使用
![[visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)](/img/9f/4265f1e3927fcf66602f0fc9e7a9d9.jpg)
[visual studio] visual studio 2019 community version cmake development environment installation (download | install relevant components | create compilation execution project | error handling)

Mysql database remote access permission settings

二叉树专题--AcWing 18. 重建二叉树(利用前、中序遍历,构建二叉树)

JVM之垃圾回收器

From Read and save in bag file Jpg pictures and PCD point cloud
随机推荐
二叉树专题--AcWing 47. 二叉树中和为某一值的路径(前序遍历)
618 what is the secret of dominating the list again? Nike's latest financial report gives the answer
JSP webshell free -- webshell free
Static variables in static function
How to implement tabbar title bar with list component
全网显示 IP 归属地,是怎么实现的?
集成学习概览
二叉树专题--AcWing 19. 二叉树的下一个节点(找树中节点的后继)
【深入浅出玩转FPGA学习2----设计技巧(基本语法)】
Jsp webshell Free from killing - The Foundation of JSP
Open the encrypted SQLite method with sqlcipher
【AppLinking实战案例】通过AppLinking分享应用内图片
UVM learning - object attribute of UVM phase
Nodejs+express+mysql simple blog building
Hdu1236 ranking (structure Sorting)
华为AppLinking中统一链接的创建和使用
AppGallery Connect场景化开发实战—图片存储分享
华为联机对战服务玩家掉线重连案例总结
Filtering of PCL
二叉树专题--AcWing 3384. 二叉树遍历(已知先序遍历 边建树 边输出中序遍历)