-
纯ALOHA协议
在该协议下,用户只要有帧产生,就会传送出去,发生冲突时,就等待一个随机时间后再重发。
所以对当前帧时,只有两种情况下可以发送成功:...
纯ALOHA协议
在该协议下,用户只要有帧产生,就会传送出去,发生冲突时,就等待一个随机时间后再重发。
所以对当前帧时,只有两种情况下可以发送成功:
1)当前帧时只有一帧要发送,且当前帧时的前一帧时无帧发送;
2)当前帧时只有一帧要发送(发送时刻为t),且前一帧时的最后一帧的发送时间不在(t- FRAMETIME)~ t这段时间内。
其他情况下都会产生冲突。
发生冲突时,错误帧继续传送,用户重新发送帧,设定一个随机数Rt,将该帧添加到第Rt/ FRAMETIME帧时上去,并设该帧的相对时间为Rt% FRAMETIME。这样即相当于用户等待一随机时间后重发。
对每一帧时进行上述控制,最终可得到成功发送的次数Suc,将其除以Suc = Suc /ARRAYLENGTH即得平均每帧时发送成功的帧数。
对于不同G,得到不同FrameArray,所得的Suc也不同,用一个数组来保存G与Suc的对应关系,再将其画出来。
-pure ALOHA agreement under the agreement, as long as users have a frame, it will transmit out, conflict, will wait for a random period of time before re-issued. Therefore, the current frame, there are only two circumstances can this success : 1) the current frame only one to send, and the current frame before one-time frame sent; 2) the current frame only to send a (t this moment), but before a final of a transmission time not (t-FRAMETIME) ~ t this time. Other cases will have conflict. Conflict, to continue to disseminate the wrong frame, users re-sending fram
- 2022-01-21 18:08:46下载
- 积分:1
-
利用socket进行网上对话聊天,包括服务器端和客户端程序源码及用户界面的建立....
利用socket进行网上对话聊天,包括服务器端和客户端程序源码及用户界面的建立.-You can chat with socket online,including server and client source code and the implementation of GUI
- 2022-01-30 14:47:37下载
- 积分:1
-
一个网络应用类CWiCNet
一个网络应用类CWiCNet--A network application class CWiCNet
- 2022-07-14 06:39:12下载
- 积分:1
-
可用来在计算机与计算机之间传输文件,还可用来在智能手机之间通过蓝牙、无线网络、数据线传输文件,支持多线程和断点续传,代码已经封装成一个dll库,可以作为服务器来...
可用来在计算机与计算机之间传输文件,还可用来在智能手机之间通过蓝牙、无线网络、数据线传输文件,支持多线程和断点续传,代码已经封装成一个dll库,可以作为服务器来使用,也可以当作客户端来使用,服务端支持蓝牙(Bluetooth)接入,并提供详细的测试程序,代码勿须任何修改用VS2005或VS2008编译一下即可拿到Windows Mobile中手机中使用。
你可以任意修改复制本代码,但请保留这段文字不要修改。
希望我能为中国的软件行业尽一份薄力!-Can be used in the computer and transfer files between computers, can also be used in smart phones through Bluetooth, wireless networks, data lines to transfer files to support multi-threading and HTTP, the code has been packaged into a dll library, you can as a server to use, also can be used as a client to use, service-side support for Bluetooth (Bluetooth) access, and provide detailed test procedures, code Needless to any changes to compile with VS2005 or VS2008 you can get in Windows Mobile phones use. You can modify a copy of arbitrary code, but please keep this text do not modify. Hopefully, I can for China s software industry fulfill thin edge!
- 2023-09-04 17:45:03下载
- 积分:1
-
FTP接口实现
项目中新增对FTP的支持,需求的变更是开发过程中不可避免的事情,只是变更的时间越靠近项目末期,就越是灾难。还好这个需求可以设计的相对独立,做到尽量不影响已实现部分。
说的FTP,就想起曾经写的一个FTP接口对象,由于现在FTP的实现库到处都是,因此在写好此对象时,被同事称为:做轮子的人~我的想法是,组装车和制作车应该还是有区别的~
- 2022-02-01 23:17:42下载
- 积分:1
-
xi tong ju yu wang
局域网聊天系统,欢迎大家下载啊,请下载,感谢大家啊,一定要下载啊-xi tong ju yu wang
- 2023-04-04 22:15:03下载
- 积分:1
-
用vc写的winsock
用vc写的winsock-UDP程序,是学习winsock的好帮手!- Winsock-UDP procedure writes which with vc, is good helper
which studies winsock!
- 2022-03-03 21:09:44下载
- 积分:1
-
winsock教程 详细讲述winsock网络编程 适合初学者
winsock教程 详细讲述winsock网络编程 适合初学者-win api
- 2022-06-02 16:34:09下载
- 积分:1
-
vc实现的网址管理工具。可以分组存放网址。
vc实现的网址管理工具。可以分组存放网址。-vc web site management tools to achieve. Storage site can be grouped.
- 2023-04-02 15:20:03下载
- 积分:1
-
获取计算机IP地址。可以试试看。源码用C++实现
获取计算机IP地址。可以试试看。源码用C++实现-C++
- 2022-08-13 23:45:40下载
- 积分:1