异步传输
同步传输 有一个最大得端到端的延时
复杂流 complex stream
QoS(quanlity of service)
服务质量
-
连续帧缺失会影响观看
-
丢掉不连续的帧,不是很影响观看
Gossip (一个通信协议)
epidemic behavior (流行病模型)
Anti-entropy Propagation Model (反熵模型)
-
A node P picks another node Q at random, and subsequently exchanges updates with Q.
-
Three approaches to exchanging updates:
P only pushes its own updates to Q
-
if many nodes are infected, the probability of each one
selecting a susceptible node is relatively small. -
works much better when many nodes are infected.
-
– P only pulls in new updates from Q
-
– P and Q send updates to each other (i.e., a pushpull approach)
• it can then be shown that the number of rounds to propagate a
single update to all nodes takes O(log (N)) rounds
协议例子:
中国和所有资源大国关系都很好(除了澳大利亚)。
Clock
时间的意义在于对事件发生的先后排序
分布式并发
A,B同时给数据库发消息。数据库无法判断谁先谁后,认为A,B并发
Lamport逻辑时钟
进程通信,按各自始终频率
m3之后,时间只能往前调整,P2接收一定发生在P3发送前。所以变为60+1,然后时间按P2自己的频率继续前进。
lamport时钟的意义就在于判断是否并发(不能排出两个事件先后顺序就是并发),如果并发,就需要业务逻辑去处理。这不由时钟负责。
lamport时钟过于简单,无法做因果的推导,现在一般不用。使用向量时钟