资源描述:
《东北大学计算机网络平时测验2.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、…东北大学考试试卷(测验二)总分一二三四五六七八学院………2015—2016学年第一学期…班级○课程名称:计算机网络(ComputerNetworks)…┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄……Answer:学号…1.Addressingatthenetworkandlinklayers,routingversusswitching.a.Eachsubnetneedstoaddressupto31hosts,usingtherightmos
2、t5bitsoftheaddress.The…Considerthenetworkshownbelow.EachofthesubnetsA-Dcontainsatmost31fivesubnetaddressesarethusx.y.z.000_/27,x.y.z.001_/27,x.y.z.010_/27,x.y.z.011_/27,密hosts;subnetEconnectsroutersR1andR2.x.y.z.100_/27,wherethenotationx.y.z.000_meansthattheleftmos
3、tthreebitsofthefourth…addressbyteare000.Otheranswerswithdifferentbitvaluesinbits25,26,27arealso姓名…possible,aslongasthefivethree-bitpatternsusedareunique.……b.Ifyouchoseanaddressrangex.y.z.000_/27fornetworkA,thentheaddressyouchoosehere…musthavethese27leadingbits,andc
4、anhaveany5remainingbitsyouwant.Ifyouchosean○addressrangex.y.z.011_/27fornetworkD,thentheaddressyouchooseheremusthavethese…27leadingbits,andcanhaveany5remainingbitsyouwant.…c.Ifyouchoseanaddressrangex.y.z.100_/27fornetworkE,thentheaddressyouchoosehere…musthavethese2
5、7leadingbits,andcanhaveany5remainingbitsyouwant.……a.Assignnetworkaddressestothefivesubnetsshownabove(thatis,writedownthed.x.y.x.>24封addressesyouhaveassigned).e.Any48bitnumberisOK.…b.Assign(writedown)afull(32-bit)IPaddressforeachthetwohostsshownin…f.No.Thehostinsubn
6、etAneedstoaddressalink-layerframe(containingtheIPpacketsubnetsAandD.…addressestothehostinD)totheR2interfaceinsubnetAonly.c.Assign(writedown)afullIPaddresstotherouterinterfaceonsubnetE.…g.No.TheyarenowallinthesamesubnetfromanIPaddressingpointofview,sincethereis…d.Wh
7、atisthenetworkprefixadvertisedbyrouterR1tothepublicInternet?nolongeranyinterveningrouter.○e.Assign(writedown)aMACaddresstoD.h.Yes.NowthehostinAnowneedstoaddressitslink-layerframetotheleftinterfaceofR1.…ThehostinAgetstheMACaddressoftheleftinterfaceofR1usingARP.Theho
8、stinAknows…f.DoesthehostinAeverneedtoknowtheMACaddressoftheR1’sinterfaceinthatinordertorouteitspackettothehostinD,itmustfirstsendthatpacket(overE