我刚刚学习了 CSMA 的基础知识并遇到了“持久性方法”。维基定义如下:
P-persistent
This is an approach between 1-persistent and non-persistent CSMA access modes. [2]When the transmitting node is ready to transmit data, it senses the transmission medium for idle or busy. If idle, then it transmits a frame with probability p. If busy, then it senses the transmission medium continuously until it becomes idle, then transmits with probability p. If the node does not transmit (the probability of this event is 1-p), it waits until the next available time slot. If the transmission medium is still not busy, it transmits again with the same probability p.
你能告诉我这个概率 p 是多少吗?并基于什么计算?
最佳答案
P-持久化方法结合了其他两种策略的优点。它减少了碰撞的机会和
提高效率。 P-持久化如果 channel 具有带 的时隙,则使用该方法。时隙持续时间 >= 最大传播时间 .
您的问题是“如何选择 概率 ”。
一旦介质空闲就传输。
编辑 #1:
用于检查一个站是否能够传输的逻辑很简单,首先是变量的值。电话 计算并根据该值做出决定
现在是“如何计算变量 P ”的部分,使用下面的一个非常简单的方程,其中电话 是连接到共享介质的站数。
关于networking - 'p - persistent csma' 中的 p 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39717769/