TCP滑动窗口协议模拟程序.rar(含程序+源码MFC)

上传者: tr111999 | 上传时间: 2021-05-19 17:54:58 | 文件大小: 1.12MB | 文件类型: RAR
编程环境: 操作系统:Windows XP SP2 开发语言:C++ / MFC 编译环境:MS Visual C++6.0 1) 参数设置区可以设定3个参数:第1个参数为接收窗口大小,因为帧序列号为4位,所以接收窗口大小的设置范围为1~8。其中设为1相当于使用后退n帧技术的滑动窗口协议,设为大于1的值则相当于使用选择性重传策略的滑动窗口协议。第2个参数为接收速率设定,编辑框中填入的是接收定时器的间隔时间,单位为ms,1000表示接收速率为每秒处理1个包。第3个参数是辅助定时器设定,该值表示接收方收到一个数据包后当没有反向流量捎带应答时,等待发送一个单独的应答包的延迟时间。 2) 出错控制区可以手工设定丢失的应答帧,直接填入帧序列号即可,使用空格分隔。 3) 当前状态区显示运行时刻的一些状态信息,例如当前接收窗口范围、令牌数等。 4) 输出窗口用来显示运行时刻的接收方相关信息,通过该窗口可以看到协议的交互和运行过程。 接收方参数全部设置完毕后就可以点击“开始接收”按钮等待接收数据。 图2为发送程序界面,界面上同样有4个功能区,如图2所示。

文件下载

资源详情

[{"title":"( 36 个子文件 1.12MB ) TCP滑动窗口协议模拟程序.rar(含程序+源码MFC)","children":[{"title":"TCP滑动窗口协议模拟程序","children":[{"title":"使用说明.doc <span style='color:#111;'> 335.00KB </span>","children":null,"spread":false},{"title":"~$使用说明.doc <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"Sender","children":[{"title":"Code","children":[{"title":"resource.h <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"Sender.clw <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"Sender.h <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"SenderDlg.cpp <span style='color:#111;'> 14.41KB </span>","children":null,"spread":false},{"title":"Sender.aps <span style='color:#111;'> 37.32KB </span>","children":null,"spread":false},{"title":"Sender.dsw <span style='color:#111;'> 535B </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.50KB </span>","children":null,"spread":false},{"title":"Sender.cpp <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"Sender.ncb <span style='color:#111;'> 105.00KB </span>","children":null,"spread":false},{"title":"Sender.plg <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"Sender.dsp <span style='color:#111;'> 4.14KB </span>","children":null,"spread":false},{"title":"SenderDlg.h <span style='color:#111;'> 2.88KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"Sender.opt <span style='color:#111;'> 99.00KB </span>","children":null,"spread":false},{"title":"Protocol.h <span style='color:#111;'> 485B </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"Exe","children":[{"title":"Sender.exe <span style='color:#111;'> 2.01MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Receiver","children":[{"title":"Code","children":[{"title":"resource.h <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"Receiver.h <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"ReceiverDlg.cpp <span style='color:#111;'> 15.15KB </span>","children":null,"spread":false},{"title":"Receiver.dsw <span style='color:#111;'> 539B </span>","children":null,"spread":false},{"title":"Receiver.clw <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"Receiver.ncb <span style='color:#111;'> 105.00KB </span>","children":null,"spread":false},{"title":"Receiver.dsp <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false},{"title":"Receiver.cpp <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"StdAfx.cpp <span style='color:#111;'> 210B </span>","children":null,"spread":false},{"title":"Receiver.aps <span style='color:#111;'> 37.57KB </span>","children":null,"spread":false},{"title":"Protocol.h <span style='color:#111;'> 485B </span>","children":null,"spread":false},{"title":"Receiver.opt <span style='color:#111;'> 98.00KB </span>","children":null,"spread":false},{"title":"StdAfx.h <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Receiver.plg <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"ReceiverDlg.h <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false}],"spread":false},{"title":"Exe","children":[{"title":"Receiver.exe <span style='color:#111;'> 2.04MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • qq_39402042 :
    代码有缺失
    2018-07-04
  • hbzyj2000 :
    我正需要,借鉴一下,谢谢分享
    2017-09-19
  • zjb_1976 :
    失望,还2分
    2017-06-17
  • Bob161218 :
    代码运行不了。。。。。。
    2015-11-25
  • qq_17121141 :
    很有用,值得参考,虽缺少资源文件,但参考代码可自己做出来
    2015-06-27

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明