当前位置:网站首页>TIPC协议
TIPC协议
2022-07-02 07:33:00 【云端漫步的程狗子】
TIPC协议概述
TIPC是爱立信开源的透明进程通信协议,一般用于集群系统中。
虽然tipc是基于socket实现的,但是与一般的socket还有所区别。平时我们使用socket,无论是TCP也好,UDP也好,用来标识一对socket的通信,无非是用两个socket的IP地址和端口号。比如使用UDP的socket,要发送一个datagram到另一个socket,需要指定对端的地址,这个地址是由对端设备的IP和端口号组成的。Socket是在内核中进行管理,当内核检测到socket有数据可读时,就会通知拥有这个socket的进程去读取数据。
平时我们使用socket是需要指定对端的地址,我们必须知道这个socket在哪台设备上,设备IP是多少,使用的端口号是什么,才能发送数据。
TIPC解决了这个问题。使用TIPC,我们在创建socket的时候,在内核中注册自己的服务类型,那么在发送端,只需要指定服务类型就可以由内核路由到相应的socket。这个时候,对应用层来讲,对端地址仅仅是一个服务类型。显然,内核维护着这样一张路由表,可以根据服务类型去找到对应的socket。每台设备都有这样的路由表,他们的信息就能够像普通路由表一样共享到整个集群网络中去,所有设备都可以进行socket查找。因此,有了TIPC,我们无需关心socket使用了哪个IP,哪个端口。Tipc还具有如下特性:
有些时候,多个进程提供相同的服务,仅仅是为了负载均衡或冗余备份等原因,这种情况下可以用一个整数变量instance来标识不同的socket,但是指定同样的服务类型。此时,socket是由service type和instance共同指定的。发送数据的时候只需要指定service type和一个instance值即可。也可以指定service type和instance的一个区间,这种情况就是broadcast你的datagram
管理tipc路由表的是内核中的name server进程。他维护着集群中所有的tipc socket。在发送datagram给某个socket之前,可以向他请求推荐资料
http://tipc.sourceforge.net/index.html
MORE INFORMATION
TIPC home page
http://tipc.io
TIPC project page
http://sourceforge.net/project/tipc
TIPC Demo/Test/Utility programs
http://sourceforge.net/project/tipc/files
TIPC Communication Groups
https://www.slideshare.net/JonMaloy/tipc-communication-groups
TIPC Overlapping Ring Neighbor Monitoring
https://www.youtube.com/watch?v=ni-iNJ-njPo
TIPC protocol specification (somewhat dated)
http://tipc.sourceforge.net/doc/draft-spec-tipc-10.html
TIPC programmer’s guide (somewhat dated)
http://tipc.sourceforge.net/doc/tipc_2.0_prog_guide.html
边栏推荐
- 全网显示 IP 归属地,是怎么实现的?
- js数组常用方法
- Special topic of binary tree -- acwing 19 The next node of the binary tree (find the successor of the node in the tree)
- [quick application] win7 system cannot run and debug projects using Huawei ide
- One trick to quickly realize custom application titlebar
- QT学习日记7——QMainWindow
- 【ARK UI】HarmonyOS ETS的启动页的实现
- 二叉树专题--P1030 [NOIP2001 普及组] 求先序排列
- 华为快应用中如何实现同时传递事件对象和自定义参数
- 二叉树专题--AcWing 1589. 构建二叉搜索树
猜你喜欢

【深入浅出玩转FPGA学习5-----复位设计】

Special topic of binary tree -- acwing 19 The next node of the binary tree (find the successor of the node in the tree)
![[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?](/img/66/674a06d8e45a31ae879b81554ef373.png)
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?

JVM之垃圾回收器

软件产品管理系统有哪些?12个最佳产品管理工具盘点

JSP webshell free -- webshell free

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

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

使用华为性能管理服务,按需配置采样率

Use of vscode tool
随机推荐
Appgallery connect scenario development practice - image storage and sharing
In the face of uncertainty, the role of supply chain
华为游戏初始化init失败,返回错误码907135000
K-d tree and octree of PCL
UVM——Callback
MongoDB 学习整理(条件操作符,$type 操作符,limit()方法,skip() 方法 和 sort() 方法)
How to implement tabbar title bar with list component
学习open62541 --- [66] UA_String的生成方法
集成学习概览
JSP webshell免殺——JSP的基礎
Convert yv12 to rgb565 image conversion, with YUV to RGB test
Use Huawei performance management service to configure the sampling rate on demand
Record attributeerror: 'nonetype' object has no attribute 'nextcall‘
Binary tree topic -- p1030 [noip2001 popularization group] find the first order
洛谷 P3398 仓鼠找 sugar(树上倍增 lca 判断树中两条路径是否相交 结论)
【付费推广】常见问题合集,推荐榜单FAQ
Luogu p4281 [ahoi2008] emergency gathering / gathering (tree doubling LCA)
JSP webshell free -- webshell free
HDU1234 开门人和关门人(水题)
二叉树专题--洛谷 P1229 遍历问题(乘法原理 已知前、后序遍历求中序遍历个数)