第二次作业
提交日期:9月23日;课堂提交
Problem1Apacketswitchreceivesapacketanddeterminestheoutboundlinktowhichthepacketshouldbeforwarded.Whenthepacketarrives,oneotherpacketishalfwaydonebeingtransmittedonthisoutboundlinkandfourotherpacketsarewaitingtobetransmitted.Packetsaretransmittedinorderofarrival.Supposeallpacketsare1500bytesandthelinkrateis2Mbps.Whatisthequeueingdelayforthepacket?Moregenerally,whatisthequeueingdelaywhenallpacketshavelengthL,thetransmissionrateisR,xbitsofthecurrentlybeingtransmittedpackethavebeentransmitted,andnpacketsarealreadythequeue?
Problem2SkypeoffersaservicethatallowsyoutomakeaphonecallfromaPCtoanordinaryphone.ThismeansthatthevoicecallmustpassthroughboththeInternetandthroughatelephonenetwork.Discusshowthismightbedone.
Problem3Inamodernpacket-switchednetworks,includingtheInternet,thesourcehostsegmentslong,application-layermessages(forexample,animageoramusicfile)intosmallerpacketsandsendsthepacketsintothenetwork.Thereceiverthenreassemblesthepacketsbackintotheoriginalmessage.Werefertothisprocessasmessagesegmentation.Figure1.27illustratestheend-to-endtransportofamessagewithandwithoutmessagesegmentation.Consideramessagethatis8·106bitslongthatistobesentfromsourcetodestinationinFigure1.27.Supposeeachlinkinthefigureis2Mbps.Ignorepropagation,queuing,andprocessingdelays.
0HVVDJH
D6RXUFH
3DFNHW3DFNHWVZLWFK3DFNHWVZLWFK'HVWLQDWLRQ
E6RXUFH3DFNHWVZLWFK3DFNHWVZLWFK
'HVWLQDWLRQ
1
2
(a)Considersendingthemessagefromsourcetodestinationwithoutmessagesegmentation.
Howlongdoesittaketomovethemessagefromthesourcehosttothefirstpacketswitch?Keepinginmindthateachswitchusesstore-and-forwardpacketswitching,whatisthetotaltimetomovethemessagefromsourcehosttodestinationhost?
(b)Nowsupposethatthemessageissegmentedinto800packets,witheachpacketbeing10,000
bitslong.Howlongdoesittaketotomovethefirstpacketfromsourcehosttothefirstswitch?Whenthefirstpacketisbeingsentfromthethefirstswitchtothesecondswitch,thesecondpacketisbeingsentfromthesourcehosttothefirstswitch.Atwhattimewillthesecondpacketbefullyreceivedatthefirstswitch?
(c)Howlongdoesittaketomovethefilefromsourcehosttodestinationhostwhenmessage
segmentationisused?Comparethisresultwithyouranswerinpart(a)andcomment.(d)Inadditiontoreducingdelay,whatarereasonstousemessagesegmentation?(e)Discussthedrawbacksofmessagesegmentation.
因篇幅问题不能全部显示,请点此查看更多更全内容