资源描述:
《Homework Chapter 5》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、《ComputerNetworksandInternet》HomeworkChapter51.HowbigistheLANaddressspace?TheIPv4addressspace?TheIPv6addressspace?2^48,2^32,2^1282.Supposefouractivenodes—nodesA,B,CandD—arecompetingforaccesstoachannelusingslottedALOHA.Assumeeachnodehasaninfinitenumberofpa
2、cketstosend.Eachnodeattemptstotransmitineachslotwithprobabilityp.Thefirstslotisnumberedslot1,thesecondslotisnumberedslot2,andsoon.假设四个活动节点,节点A,B,C和D-正在争夺访问使用时隙ALOHA的通道。假设每个节点有分组的无限号码发送。每个节点将尝试在每个时隙的概率为p传输。第一时隙编号为时隙1,第二时隙编号为2的插槽,并依此类推。a.Whatistheprobabilit
3、ythatnodeAsucceedsforthefirsttimeinslot5?b.Whatistheprobabilitythatsomenode(eitherA,B,CorD)succeedsinslot4?c.Whatistheprobabilitythatthefirstsuccessoccursinslot3?d.Whatistheefficiencyofthisfour-nodesystem?1.节点A首次就成功插在插槽5的概率是多少?2.某些节点(或A,B,C或D)成功插在插槽4的概率是多
4、少?3.第一次成功发生在槽3的概率是多少?4.这四个节点系统的效率?8《ComputerNetworksandInternet》3.CalculatetheefficiencyofslottedALOHAandpureALOHAasafunctionofp(p=0,0.1,0.2,0.3,0.4,0.5,…,1.0)forthefollowingvaluesofN:a.N=15.b.N=20.c.N=30.Answer:EquationpureALOHAp=00.10.20.30.40.50.60.70.
5、80.91.0N=15N=20N=30slottedALOHAp=00.10.20.30.40.50.60.70.80.91.0N=15N=20N=308《ComputerNetworksandInternet》4.ConsiderthreeLANsinterconnectedbytworouters,asshowninFigure1.考虑由两个路由器相互连接3个网,如图1。8《ComputerNetworksandInternet》Figure1a.AssignIPaddressestoallofthe
6、interfaces.ForSubnet1useaddressesoftheform192.168.1.xxx;forSubnet2usesaddressesoftheform192.168.2.xxx;andforSubnet3useaddressesoftheform192.168.3.xxx.b.AssignMACaddressestoalloftheadapters.c.ConsidersendinganIPdatagramfromHostEtoHostB.SupposealloftheARPta
7、blesareuptodate.Enumerateallthesteps,asdoneforthesingle-routerexampleinARP.d.Repeat(c),nowassumingthattheARPtableinthesendinghostisempty(andtheothertablesareuptodate).1.将IP地址分配给所有的接口。对于子网1使用形如192.168.1.xxx的地址;子网2使用的形式192.168.2.xxx地址;而对于子网3使用形式192.168.3.xx
8、x地址。2.指定MAC地址的所有适配器。3.考虑发送IP数据报从主机E至主机B.假设所有的ARP表是最新的。枚举所有的步骤,可用于在ARP单路由器为例。4.重复(c)中,现在假定在发送主机ARP表是空的(和其他表是最新的)。8《ComputerNetworksandInternet》1。在E转发表确定数据包应该被路由接口192.168.3.002。2。在E的适配器创建和以太网目的地址88-88-88-88-88-88以太网数据