文件名称:网络仿真-纯ALOHA曲线
- 所属分类:
- 网络编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2008-10-13
- 文件大小:
- 43.55kb
- 下载次数:
- 0次
- 提 供 者:
- f***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
纯ALOHA协议
在该协议下,用户只要有帧产生,就会传送出去,发生冲突时,就等待一个随机时间后再重发。
所以对当前帧时,只有两种情况下可以发送成功:
1)当前帧时只有一帧要发送,且当前帧时的前一帧时无帧发送;
2)当前帧时只有一帧要发送(发送时刻为t),且前一帧时的最后一帧的发送时间不在(t- fr a meTIME)~ t这段时间内。
其他情况下都会产生冲突。
发生冲突时,错误帧继续传送,用户重新发送帧,设定一个随机数Rt,将该帧添加到第Rt/ fr a meTIME帧时上去,并设该帧的相对时间为Rt% fr a meTIME。这样即相当于用户等待一随机时间后重发。
对每一帧时进行上述控制,最终可得到成功发送的次数Suc,将其除以Suc = Suc /ARRAYLENGTH即得平均每帧时发送成功的帧数。
对于不同G,得到不同fr a meArray,所得的Suc也不同,用一个数组来保存G与Suc的对应关系,再将其画出来。
-pure ALOHA agreement under the agreement, as long as users have a fr a me, it will transmit out, conflict, will wait for a random period of time before re-issued. Therefore, the current fr a me, there are only two circumstances can this success : 1) the current fr a me only one to send, and the current fr a me before one-time fr a me sent; 2) the current fr a me only to send a (t this moment), but before a final of a transmission time not (t-fr a meTIME) ~ t this time. Other cases will have conflict. Conflict, to continue to disseminate the wrong fr a me, users re-sending fr a mes, set a random number Rt, this fr a me added to the first Rt / fr a meTIME fr a mes up, and established the time fr a me for the relative% fr a meTIME Rt. This is equivalent to that user for a random period of time after re-issued. For each
在该协议下,用户只要有帧产生,就会传送出去,发生冲突时,就等待一个随机时间后再重发。
所以对当前帧时,只有两种情况下可以发送成功:
1)当前帧时只有一帧要发送,且当前帧时的前一帧时无帧发送;
2)当前帧时只有一帧要发送(发送时刻为t),且前一帧时的最后一帧的发送时间不在(t- fr a meTIME)~ t这段时间内。
其他情况下都会产生冲突。
发生冲突时,错误帧继续传送,用户重新发送帧,设定一个随机数Rt,将该帧添加到第Rt/ fr a meTIME帧时上去,并设该帧的相对时间为Rt% fr a meTIME。这样即相当于用户等待一随机时间后重发。
对每一帧时进行上述控制,最终可得到成功发送的次数Suc,将其除以Suc = Suc /ARRAYLENGTH即得平均每帧时发送成功的帧数。
对于不同G,得到不同fr a meArray,所得的Suc也不同,用一个数组来保存G与Suc的对应关系,再将其画出来。
-pure ALOHA agreement under the agreement, as long as users have a fr a me, it will transmit out, conflict, will wait for a random period of time before re-issued. Therefore, the current fr a me, there are only two circumstances can this success : 1) the current fr a me only one to send, and the current fr a me before one-time fr a me sent; 2) the current fr a me only to send a (t this moment), but before a final of a transmission time not (t-fr a meTIME) ~ t this time. Other cases will have conflict. Conflict, to continue to disseminate the wrong fr a me, users re-sending fr a mes, set a random number Rt, this fr a me added to the first Rt / fr a meTIME fr a mes up, and established the time fr a me for the relative% fr a meTIME Rt. This is equivalent to that user for a random period of time after re-issued. For each
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 25811246网络仿真-纯aloha曲线.rar 列表 纯ALOHA曲线\MProtocol.aps 纯ALOHA曲线\MProtocol.plg 纯ALOHA曲线\MProtocol.rc 纯ALOHA曲线\MProtocolView.h 纯ALOHA曲线\Resource.h 纯ALOHA曲线\MProtocol.clw 纯ALOHA曲线\ReadMe.txt 纯ALOHA曲线\MProtocol.h 纯ALOHA曲线\MProtocol.cpp 纯ALOHA曲线\StdAfx.h 纯ALOHA曲线\StdAfx.cpp 纯ALOHA曲线\MainFrm.h 纯ALOHA曲线\MainFrm.cpp 纯ALOHA曲线\MProtocolDoc.h 纯ALOHA曲线\MProtocolDoc.cpp 纯ALOHA曲线\MProtocolView.cpp 纯ALOHA曲线\MProtocol.opt 纯ALOHA曲线\MProtocolDlg.h 纯ALOHA曲线\MProtocol.dsp 纯ALOHA曲线\MProtocolDlg.cpp 纯ALOHA曲线\MProtocol.dsw 纯ALOHA曲线\MProtocol.ncb 纯ALOHA曲线\res\MProtocol.rc2 纯ALOHA曲线\res\MProtocolDoc.ico 纯ALOHA曲线\res\MProtocol.ico 纯ALOHA曲线\res\Toolbar.bmp 纯ALOHA曲线\res 纯ALOHA曲线