杭州电子科技大学通信工程计算机网络实验报告2.doc

杭州电子科技大学通信工程计算机网络实验报告2.doc

  1. 1、本文档共11页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
计算机通信与网络实验报告姓 名:徐 一 得 学 号 班 级:通信五班 上课时间:周四3-5 实验名称:Simulation on Performance of Data Link Control Protocols实验目的Realizing the principles of Data Link Control Protocols.useing the software called matalab to simulate the Performance of Data Link Control Protocols.二.实验原理 流量控制实际上是对发送方数据流量的控制,使其发送率不致超过接收方所能承受的能力。这个过程需要通过某种反馈机制使发送方知道接收方是否能跟上发送方,也即需要有一些规则使得发送方知道在什么情况下可以接着发送下一帧,而在什么情况下必须暂停发送,以等待收到某种反馈信息后继续发送。实验内容与要求Using the same assumptions that are used for Figure 7.13 in Appendix 7A, plot line utilization as a function of P, the probability that a single frame is in error for the following error-control techniques: a. Stop-and-wait b. Go-back-N with w=7 c. Go-back-N with w=127 d. Selective reject with w=7 e. Selective reject with w=127 Do all of the preceding for the following values of a: 0.1, 1, 10, 100. Draw conclusions about which technique is appropriate for various ranges of a. 实验程序与结果Project(1)a=0:0.1:1000;U=utilization(a,1); //when length of window is 1semilogx(a,U,b); //using function to depict linehold onU=utilization(a,7); //when length of window is 7semilogx(a,U,k);hold onU=utilization(a,127); //when length of window is 127semilogx(a,U,m);title(figure 7.12 slind-wind utilization as a function of a)ylabel(utilization)xlabel(a)text(0.7,0.5,\leftarrow w=1); //noting arrow to show what the line istext(8,0.6,\leftarrow w=7);text(130,0.8,\leftarrow w=127);function U=utilization(a,w) U=1.*(w=2*a+1)+w./(2*a+1).*(w2*a+1);End //formula for utilization U=1/(1+2a)Project(2)a=0:0.1:1000;p=1/1000;U=stopandwait(a,p); //using the formula to calculate the Usemilogx(a,U,r); //using function to depict linehold onU=selective_reject(a,7,p); //using the formula to calculate the Usemilogx(a,U,g);hold onU=gobackn(a,7,p);semilogx(a,U,b);hold onU=selective_reject(a,127,p);semilogx(a,U,k);hold onU=gobackn(a,1277,p);semilogx(a,U,y);title(figure 7.13 ARQ utilization as a function of a (P=10-3))ylabel(utilization)xlabel(a

文档评论(0)

js1180 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档