通信网络实验报告实验一隐终端和暴露终端问题分析一、实验目的1、了解无线网络中的载波检测机制;2、熟悉节点的传输范围、冲突干扰范围、载波检测范围和噪声干扰范围的概念;3、了解载波检测接入体制中存在的隐终端问题和暴露终端问题;4、结合仿真实验分析载波检测无线网络中的隐终端问题和暴露终端问题。二、实验结果Node:1,Layer:AppCbrClient,(0)Serveraddress:2Node:1,Layer:AppCbrClient,(0)Firstpacketsentat[s]:0.000000000Node:1,Layer:AppCbrClient,(0)Lastpacketsentat[s]:99.990000000Node:1,Layer:AppCbrClient,(0)Sessionstatus:NotclosedNode:1,Layer:AppCbrClient,(0)Totalnumberofbytessent:5120000Node:1,Layer:AppCbrClient,(0)Totalnumberofpacketssent:10000Node:1,Layer:AppCbrClient,(0)Throughput(bitspersecond):409600Node:2,Layer:AppCbrServer,(0)Clientaddress:1Node:2,Layer:AppCbrServer,(0)Firstpacketreceivedat[s]:0.007438001Node:2,Layer:AppCbrServer,(0)Lastpacketreceivedat[s]:99.999922073Node:2,Layer:AppCbrServer,(0)Averageend-to-enddelay[s]:0.739902205Node:2,Layer:AppCbrServer,(0)Sessionstatus:NotclosedNode:2,Layer:AppCbrServer,(0)Totalnumberofbytesreceived:4975616Node:2,Layer:AppCbrServer,(0)Totalnumberofpacketsreceived:9718Node:2,Layer:AppCbrServer,(0)Throughput(bitspersecond):398078Node:3,Layer:AppCbrClient,(0)Serveraddress:4Node:3,Layer:AppCbrClient,(0)Firstpacketsentat[s]:0.000000000Node:3,Layer:AppCbrClient,(0)Lastpacketsentat[s]:99.990000000Node:3,Layer:AppCbrClient,(0)Sessionstatus:NotclosedNode:3,Layer:AppCbrClient,(0)Totalnumberofbytessent:5120000Node:3,Layer:AppCbrClient,(0)Totalnumberofpacketssent:10000Node:3,Layer:AppCbrClient,(0)Throughput(bitspersecond):409600Node:4,Layer:AppCbrServer,(0)Clientaddress:3Node:4,Layer:AppCbrServer,(0)Firstpacketreceivedat[s]:0.003058001Node:4,Layer:AppCbrServer,(0)Lastpacketreceivedat[s]:99.993058001Node:4,Layer:AppCbrServer,(0)Averageend-to-enddelay[s]:0.003119031Node:4,Layer:AppCbrServer,(0)Sessionstatus:NotclosedNode:4,Layer:AppCbrServer,(0)Totalnumberofbytesreceived:5120000Node:4,Layer:AppCbrServer,(0)Totalnumberofpacketsreceived:10000Node:4,Layer:AppCbrServer,(0)Throughput(bitspersecond):409612三、实验结果分析通过仿真结果可以看出,节点2无法收到数据。由于节点3是节点1的一个隐终端,节点1无法通过物理载波检测侦听到节点3的发送,且节点3在节点2的传输范围外,节点3无法通过虚拟载波检测延迟发送,所以在节点1传输数据的过程中,节点3完成退避发送时将引起冲突。四、思考题1、RTS/CTS能完全解决隐终端问题吗?如果不能,请说明理由。从理论分析上看,RTS/CTS协议似乎可以完全解决数据链隐藏终端问题,然而在实际网络中并非如此,尤其是在AdHoc网络中。以节点为中心,存在发送区域和干扰区域。在发送区域内,在没有干扰的情况下,数据包可正常收发;该区域的大小由站点的功率等参数确定,可视为定值。干扰区域是相对于接受节点而言的,在该区域内,节点可以受到来自非相关节点发送的数据的干扰,造成冲突、丢包。RTS/CTS对隐藏终端问题的屏蔽实际上是建立在两区域相等的基础上的,即所有的隐藏终端都位于接受节点发送范围内。此中假设并不成立,干扰区域与收发节点间距有关。实验二无线局域网DCF协议饱和吞吐量验证一、实验目的1、了解IEEE802.11DCF协议的基本原理。2、理解网络饱和吞吐量的概念。3、通过仿真对DCF协议饱和吞吐量的二维马尔可夫链模型进行验证。二、实验结果Node:1,Layer:AppCbrClient,(4)Serveraddress:55Node:1,Layer:AppCbrClient,(4)Firstpacketsentat[s]:0.000000000Node:1,Layer:AppCbrClient,(4)Lastpacketsentat[s]:99.990000000Node:1,Layer:AppCbrClient,(4)Sessionstatus:NotclosedNode:1,Layer:AppCbrClient,(4)Totalnumberofbytessent:5120000Node:1,Layer:AppCbrClient,(4)Totalnumberofpacketssent:10000Node:1,Layer:AppCbrClient,(4)Throughput(bitspersecond):409600Node:1,Layer:AppCbrClient,(3)Serveraddress:54Node:1,Layer:AppCbrClient,(3)Firstpacketsentat[s]:0.000000000Node:1,Layer:AppCbrClient,(3)Lastpacketsentat[s]:99.990000000Node:1,Layer:AppCbrClient,(3)Sessionstatus:NotclosedNode:1,Layer:AppCbrClient,(3)Totalnumberofbytessent:5120000Node:1,Layer:AppCbrClient,(3)Totalnumberofpacketssent:10000Node:1,Layer:AppCbrClient,(3)Throughput(bitspersecond):409600Node:1,Layer:AppCbrClient,(2)Serveraddress:53Node:1,Layer:AppCbrClient,(2)Firstpacketsentat[s]:0.000000000Node:1,Layer:AppCbrClient,(2)Lastpacketsentat[s]:99.990000000Node:1,Layer:AppCbrClient,(2)Sessionstatus:NotclosedNode:1,Layer:AppCbrClient,(2)Totalnumberofbytessent:5120000Node:1,Layer:AppCbrClient,(2)Totalnumberofpacketssent:10000Node:1,Layer:AppCbrClient,(2)Throughput(bitspersecond):409600Node:1,Layer:AppCbrClient,(1)Serveraddress:52Node:1,Layer:AppCbrClient,(1)Firstpacketsentat[s]:0.000000000Node:1,Layer:AppCbrClient,(1)Lastpacketsentat[s]:99.990000000Node:1,Layer:AppCbrClient,(1)Sessionstatus:NotclosedNode:1,Layer:AppCbrClient,(1)Totalnumberofbytessent:5120000Node:1,Layer:AppCbrClient,(1)Totalnumberofpacketssent:10000Node:1,Layer:AppCbrClient,(1)Throughput(bitspersecond):409600Node:1,Layer:AppCbrClient,(0)Serveraddress:51Node:1,Layer:AppCbrClient,(0)Firstpacketsentat[s]:0.000000000Node:1,Layer:AppCbrClient,(0)Lastpacketsentat[s]:99.990000000Node:1,Layer:AppCbrClient,(0)Sessionstatus:NotclosedNode:1,Layer:AppCbrClient,(0)Totalnumberofbytessent:5120000Node:1,Layer:AppCbrClient,(0)Totalnumberofpacketssent:10000Node:1,Layer:AppCbrClient,(0)Throughput(bitspersecond):409600Node:51,Layer:AppCbrServer,(0)Clientaddress:1Node:51,Layer:AppCbrServer,(0)Firstpacketreceivedat[s]:0.003056858Node:51,Layer:AppCbrServer,(0)Lastpacketreceivedat[s]:99.995493030Node:51,Layer:AppCbrServer,(0)Averageend-to-enddelay[s]:0.351972641Node:51,Layer:AppCbrServer,(0)Sessionstatus:NotclosedNode:51,Layer:AppCbrServer,(0)Totalnumberofbytesreceived:5102592Node:51,Layer:AppCbrServer,(0)Totalnumberofpacketsreceived:9966Node:51,Layer:AppCbrServer,(0)Throughput(bitspersecond):408219Node:52,Layer:AppCbrServer,(1)Clientaddress:1Node:52,Layer:AppCbrServer,(1)Firstpacketrec