搜索
您的当前位置:首页正文

计算机网络课后习题2

来源:知库网
计算机网络

第二次作业

提交日期: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

D󰀑󰀃6RXUFH

3DFNHW3DFNHW󰀃VZLWFK3DFNHW󰀃VZLWFK'HVWLQDWLRQ

E󰀑󰀃6RXUFH3DFNHW󰀃VZLWFK3DFNHW󰀃VZLWFK

'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.

因篇幅问题不能全部显示,请点此查看更多更全内容

Top