networking - 'p - persistent csma' 中的 p 是什么?

标签 networking protocols

我刚刚学习了 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 具有带 的时隙,则使用该方法。时隙持续时间 >= 最大传播时间 .

Flow chart of how P-persistent works

您的问题是“如何选择 概率 ”。

  • 假设 N 个节点有一个数据包要发送并且介质忙
  • 然后, Np 是将尝试的预期节点数
    一旦介质空闲就传输。
  • 如果 Np > 1,则预计会发生碰撞。因此,网络必须确保 Np <= 1 以避免冲突,其中 N 是一次可以事件的最大节点数。

  • 编辑 #1:

    用于检查一个站是否能够传输的逻辑很简单,首先是变量的值。电话 计算并根据该值做出决定
  • 电话 <= 1,站可以发送
  • 否则(即 P > 1),它必须等待

  • 现在是“如何计算变量 P ”的部分,使用下面的一个非常简单的方程,其中电话 是连接到共享介质的站数。

    enter image description here

    关于networking - 'p - persistent csma' 中的 p 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39717769/

    相关文章:

    .net - 获取 "on the wire"WCF 中消息的大小

    .net - .NET 中有处理 Modbus 协议(protocol)的好库吗?

    iphone - 正确实现委托(delegate)和协议(protocol)

    javascript - 使用 httpPost 的 422 响应返回 {"response":{}} instead of the actual API response

    networking - 从Virtualbox Guest到DynDNS地址的SSH

    svn - 哪个协议(protocol)? svn ://or http(s)://?

    mongodb - 最新的 MongoDB Wire 协议(protocol)在哪里

    ios - Codable 对象的 Swift 4 集合

    c# - 在 C# 中测试服务器的公平性

    networking - 如果数据使用校验和的 TCP,ftp 协议(protocol)为什么有时会产生传输错误?