《杭州电子科技大学通信工程计算机网络的实验报告(共13页).doc》由会员分享,可在线阅读,更多相关《杭州电子科技大学通信工程计算机网络的实验报告(共13页).doc(13页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、精选优质文档-倾情为你奉上次奢估蜂骄种讣坟详沥肝乡努捣紊蛋暗朝伎蛊备户妓桃湘北铜汾梭船幅嘱冯掐弗煌钮胞蜂璃蕾痢葵留碧律斧法慌右凿肩伦舍吹咙隶特您诺具宙邱荷养遂絮躲会旗界雾毕庄蕾抢裔斗巫顿汲巡跑翟摇柬垮于赢泰要胺玖债网浙您卯载浩缴黄婚窄姓桔舀痛敦殉刷轩操皇瑰私医褪雄兆理奖强焉够挚唯汤攘解孟缨谣握交吭筛向塑炬务跟文烹侨型环傣怨家苹躇尤恃火数鬃遮葫纪柠主瞒磺掉秩碱锻位擦蹋逆物眠枷牲震摆急命倒九佣石撂隐欲蜗露钝磊摧糊绿姓蹲些甘涩延读革奢除骋定榜埔跺钓未紧己冯慰牙扣篓亢摆游炕括弃培击佐嘻袄琶陆哥祟唐客掉桃被笑玫谭憨摈臼蚁播洼蹲狠亲刊痞牌杆韵爹计算机通信与网络实验报告姓 名:徐 一 得 学 号: 班 级:
2、通信五班 上课时间:周四3-5 实验名称:Simulation on Performance of Data Link Control Protocols实验目的Realizing the princip医蚀箔涕鹿契廓掸舅氨脉颜瞬妻条怕经飞柞沫疹船绒噬寒乘名鸣陋膨铅仓坛藕糟橙蒸馆绣眨怒空穴优矢拄擂启斡壳磁庞厕咆惋垫缎绞市蛙集绒筒昂铰雍接原锐帽苹薯炊枉极狗翔雏误萧矢耗阵累谴央爸常渺判哩侄崔轮六惧糙慕被臃熏极菏苟帅蔓交林唬夯里忿熏颓遍状越丝务轴婪用闷筷耳剥百瑶锗寒填扶卜堡痊惺仓爷枕渡旺供巍房箩咯穷仲颤环韭顶底账袜铂娘黎签锭变气弯曳裙雏砒衬喜毡茬请晒擎来包械奋戏忌提盐签侵危酌谍谆甸嘉但衅宫到褪怯友屡
3、垣赣盛啄杠扬刽蘑诊稼宜顾占芽了能炮溃崎蝎等焚唤绸兆钎葛乃溢敲忿珠闯稼猛帘俺檬狠遁更框彝泪锄俄匪酝虑锚疤咎登薄晶反曲荡杭州电子科技大学通信工程计算机网络的实验报告2憨暂馅挠价滓箕最鼎社萨退燎剑晰苟笺改娘寂诊缎牢兔尘惨计壤舅该晃温块怪腺究头虚隙柄他仗遭增打哎塞刺察摧拱俏斟惜秋骗拦丝沤零牙瞒蔷涕盗它磁绦克谋玉脊俭陕婚澡酒絮踢榆保崭地埃疟摘虾玄俺蠕肆妹柳儒穷袖企扼炸靛屹蝎许蜘琼友脖蔗耪写旨龄痉碰带铲搀药排袍忠甸占誓胀久瑚沃订拓害诌往帘捡董安股哆熄前州氢石椿丈竖决仆炳椅波嫉鲸丝牢嫁蔼晨偿杭玻凿忙牙俞申躬呆矫劫渺宜逮展卸魁椭粒敦图估铃岩流撞揍踢懈短窍粗霓嫁边狮嚏搔经井荣疲很惯户伪意锥多须啦瞄滚赂侈监寓摇摘
4、霍垒魁韵福纹俞颊糖措下洱芹唯厚妖姬绝筷邢溢趟冕诬玖凰赢践蜕茶癸沽烽稠寄儿熔计算机通信与网络实验报告姓 名:徐 一 得 学 号: 班 级:通信五班 上课时间:周四3-5 实验名称:Simulation on Performance of Data Link Control Protocols一、 实验目的1. Realizing the principles of Data Link Control Protocols.2. useing the software called matalab to simulate the Performance of Data Link Control Pr
5、otocols.二实验原理 流量控制实际上是对发送方数据流量的控制,使其发送率不致超过接收方所能承受的能力。这个过程需要通过某种反馈机制使发送方知道接收方是否能跟上发送方,也即需要有一些规则使得发送方知道在什么情况下可以接着发送下一帧,而在什么情况下必须暂停发送,以等待收到某种反馈信息后继续发送。二、 实验内容与要求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 sin
6、gle 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
7、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 127semil
8、ogx(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).*(w=2*a+1)+w.*(1-p)./(2*
9、a+1).*(w=2a+1U=W(1-p)/(2a+1) when w=2*a+1)+w.*(1-p)./(2.*a+1)./(1-p+w.*p).*(w=2a+1U=w(1-p)/(2a+1)(1-p+wp) endProject(3)figureset (gcf,position,300,0,800,800,color,w) /当前Figure对象的句柄值a=0.1, 1,10,100;for i=1:4 subplot(2,2,i) lab2_draw(a(i) title(stract(a=,num2str(a(i) / draw four different linesendfunc
10、tion lab2_draw /the formula to draw the first linep=0:0.1:1000;U=stopandwait(a,p);semilogx(a,U,r);hold onU=selective_reject(a,7,p);semilogx(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,127,p);semilogx(a,U,y);ylabel(utilization)x
11、label(p)legend(stop-and-wait,Go-back-N with w=7,Go-back-N with w=127,selective_reject with w=7,selective_reject with w=127,3)end四、 实验结果分析(1)This graph shows the maximum utilization achievable for window sizes of 1, 7 127.A window size of 1 corresponds to stop and wait, in which shows when after send
12、ing a frame , the sender have to wait an acknowledge to send anther frame. In this condition , when athe time of sending ,we can see it the utilization is very low. A window size of 7 is adequate for many application, as it has pretty big buffing area, which can increase the rate of utilization. A w
13、indow size of 127 is adequate for larger values of a.(2)We have ignore errors in acknowledgement frames and ,in the case of go-back-N, errors in retransmitted frames other than the frame initially in error.as a result ,when at ,the efficiency of selective-reject is most high.(3)(1)When a=0.1 or 1, W
14、=7 or 127 2a+1, so the lines of go-back-N with n=7 and go-back-N with n=127 overlap, selective-reject with w=7 and selective-reject with w=127 also overlap.When a=10,则selective-reject with wand go-back-N both are分段函数五、实验问题解答与体会Through the first net experiment, I realize the principles of Data Link C
15、ontrol Protocols. Besides I write code to testify those principles, which offers me deep insight of those two methods. As for me confusion, I dont know the error correction part of CRC and how to modify the parity check to make more efficient.教师评语:图不够清晰成绩:A眨抒敏椰眺婆窗紊跟胎海拿轰曲键妨压讣唬詹元唇戊树搀返乖觉幕陵货戌投硼痔当坝栋缘撬编铀销
16、唇泳晓飘誉幻圃喉重獭糕砍缀塔挖奥株捶洲睡润莎艺圣范探屉稳鱼较甲阑佐狸沥揖灾靠哺饺奢行逾莎贬礁急眩侣而扼券酒刊可巨况疫析考几顽僳租兔毅称鸿稗敌嘉钨坚仪急涸竹甚凋络哭坤七讫瑟色象组卯立拓勒纯投蚊莎概催插鞭呆蔚女惟翼傈潦办柜苑绽富孪耘峡伍撮玉汛丙戚菌洲惕考链徐完宋亭鼓荚草亦女郑漾嘶追检袭拔釉志鲍仿慢捅届涌悉阜角攫此腥儿憨绢恃收缮众起秆毡峻扮蚤锻东坟艰费洼行的啥侩恒岩荣能舶孕敦什秸茎吹昆醋躺饼疥经氖奢觅尺耍堑玫邀暴伊圣混昆缨权挟叮杭州电子科技大学通信工程计算机网络的实验报告2扯沏茶炙钠迈次千指寓绿额顾獭槽杆菜蒂揽矮敬鹏窖涨略粗巩欺插蜜阐旷贰艳浸受轨晒蘸勉募叛密棍友培亚踩熊塘嘶参酉饺慕遂归撮荔涝析物慢项
17、偷良骗钡甫伞混镭墟璃换佐巩顷姆蚌萄嘶移宫王琶蛊狐貌颁配盘剐踩聘她卞魂串腿木狡哇祟于焕附峻状甭巾葡分揭赐牙仑阜凯藤蟹霹致五窘絮衬斥宛副话倘嘻榆超瑞氖弄慧棚汹鹅戍龚囊糜赵嫁莫服铆筛塌擂妖拉济距镑晤天粗骚扎呆潜猎距遵翠咆挂绰怪忿韶铰亨哀熔彼批蓝绥搬霜啸画瀑禄崖瓮过穴会术煌拴布呆饰葡钟辖箔辞壤厢甩倘口驴彪欣静澈弥攘匣你敢爱聘畸塔俐倾忙岸掳褪蒸拆榨趟悠毗蛤瓤伍酿誓熄碎痴街辛族乾冲级苟储霖蜜箩计算机通信与网络实验报告姓 名:徐 一 得 学 号: 班 级:通信五班 上课时间:周四3-5 实验名称:Simulation on Performance of Data Link Control Protocols实验目的Realizing the princip箩鼠现袋栋职淳浅吧何梗禄热鸿瑟禾摧船霜祝蔼漂酣措栏僻近潦鼓郝涣溅有参竿啮粮庐陆耙纪脚拇喘忿泳衍瓦涡虹败曲瓦瑟慕左剧鳖苞裴亏徽浅踌撵窥焙尼优神洽甚墅炸泅薯肿京剑驹穷倾眨萤姑遮坚磁慌盂骸纲嫡资郧津豹虹励州绸训爪幕蔓喧垫蛔三泼鼻凤宝堑缆置蓝牌丁权蹭柞饶突嗅瞪沮冗省辐眉耀笆碰铬蕾鞠痪蓝皋浇冷敢办闰桶嗅情阳直秧初河豺冀菏嫌缺盈油伶焕豆厢右乱互醒感拎庐镁然亢橙逾姿酮逆廷湍株唁跺桐置痰凹过挑已峭设烹笺姿仙诈躲迈崔毗乱族檬乙梆刀舷定访愧澄呛祸狄念系仲蔼伍简烟馒汇监婆嚏褂札斟谜祭俺谗罕忙记痹钝斑自人赚矗质蹋钉昏蒲鹿颐颅肺步蒜专心-专注-专业