Ieee80211Retransmission9.test 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. %description: https://warpproject.org/trac/wiki/802.11/MAC/Lower/Retransmissions (Example L.6)
  2. %file: test.ned
  3. import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
  4. import inet.node.inet.WirelessHost;
  5. import inet.node.wireless.AccessPoint;
  6. import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;
  7. network RetransmissionTest
  8. {
  9. parameters:
  10. @display("b=297,203");
  11. submodules:
  12. configurator: IPv4NetworkConfigurator {
  13. @display("p=61,164");
  14. }
  15. receiver: WirelessHost {
  16. parameters:
  17. @display("r=,,#707070");
  18. }
  19. sender: WirelessHost {
  20. parameters:
  21. @display("r=,,#707070");
  22. }
  23. radioMedium: Ieee80211ScalarRadioMedium {
  24. parameters:
  25. @display("p=61,46");
  26. }
  27. }
  28. %inifile: omnetpp.ini
  29. [General]
  30. network = RetransmissionTest
  31. record-eventlog = true
  32. ned-path = .;../../../../src;../../lib
  33. **.constraintAreaMinX = 0m
  34. **.constraintAreaMinY = 0m
  35. **.constraintAreaMinZ = 0m
  36. **.constraintAreaMaxX = 400m
  37. **.constraintAreaMaxY = 400m
  38. **.constraintAreaMaxZ = 0m
  39. **.mobility.initFromDisplayString = false
  40. **.sender.mobility.initialX = 100m
  41. **.sender.mobility.initialY = 100m
  42. **.receiver.mobility.initialX = 300m
  43. **.receiver.mobility.initialY = 100m
  44. **.mobility.initialZ = 0m
  45. # Radio settings
  46. **.radio.transmitter.power = 2000mW
  47. **.radio.receiver.sensitivity = -85dBm
  48. **.radio.receiver.snirThreshold = 4dB
  49. # ARP
  50. **.arpType = "GlobalARP"
  51. # Sender
  52. **.sender.numUdpApps = 1
  53. **.sender.udpApp[0].typename = "MpduGen"
  54. **.sender.udpApp[0].destAddress = "receiver"
  55. **.sender.udpApp[0].destPort = 21
  56. **.sender.udpApp[0].longPacketSize = 1700B
  57. **.sender.udpApp[0].shortPacketSize = 500B
  58. **.sender.udpApp[0].startTime = 0.05s
  59. # Receiver
  60. **.receiver.numUdpApps = 1
  61. **.receiver.udpApp[0].typename = "UDPSink"
  62. **.receiver.udpApp[0].localPort = 21
  63. **.sender.wlan[*].macType = "Ieee80211Mac"
  64. **.sender.wlan[*].mac.dcf.rtsPolicy.rtsThreshold = 1500B
  65. **.sender.wlan[*].mac.dcf.channelAccess.cwMin = 15
  66. **.sender.wlan[*].mac.dcf.channelAccess.cwMin = 1023
  67. **.sender.wlan[*].mac.dcf.originatorMacDataService.fragmentationPolicy.fragmentationThreshold = 2000B
  68. **.receiver.wlan[*].macType = "Ieee80211TesterMac"
  69. **.wlan[*].mgmtType = "Ieee80211MgmtAdhoc"
  70. **.sender.udpApp[0].packets = "LL"
  71. **.receiver.wlan[*].mac.actions = "BBBBBBABABABABAA"
  72. %contains-regex: stdout
  73. .*
  74. For the current frame exchange, we have CW = 15 SRC = 0 LRC = 0 SSRC = 0 and SLRC = 0
  75. .*
  76. For the current frame exchange, we have CW = 31 SRC = 1 LRC = 0 SSRC = 1 and SLRC = 0
  77. .*
  78. For the current frame exchange, we have CW = 63 SRC = 2 LRC = 0 SSRC = 2 and SLRC = 0
  79. .*
  80. For the current frame exchange, we have CW = 127 SRC = 3 LRC = 0 SSRC = 3 and SLRC = 0
  81. .*
  82. For the current frame exchange, we have CW = 255 SRC = 4 LRC = 0 SSRC = 4 and SLRC = 0
  83. .*
  84. For the current frame exchange, we have CW = 511 SRC = 5 LRC = 0 SSRC = 5 and SLRC = 0
  85. .*
  86. For the current frame exchange, we have CW = 1023 SRC = 6 LRC = 0 SSRC = 6 and SLRC = 0
  87. .*
  88. For the current frame exchange, we have CW = 1023 SRC = 6 LRC = 0 SSRC = 0 and SLRC = 0
  89. .*
  90. For the current frame exchange, we have CW = 1023 SRC = 6 LRC = 1 SSRC = 0 and SLRC = 1
  91. .*
  92. For the current frame exchange, we have CW = 1023 SRC = 6 LRC = 1 SSRC = 0 and SLRC = 1
  93. .*
  94. For the current frame exchange, we have CW = 1023 SRC = 6 LRC = 2 SSRC = 0 and SLRC = 2
  95. .*
  96. For the current frame exchange, we have CW = 1023 SRC = 6 LRC = 2 SSRC = 0 and SLRC = 2
  97. .*
  98. For the current frame exchange, we have CW = 1023 SRC = 6 LRC = 3 SSRC = 0 and SLRC = 3
  99. .*
  100. For the current frame exchange, we have CW = 1023 SRC = 6 LRC = 3 SSRC = 0 and SLRC = 3
  101. .*
  102. For the current frame exchange, we have CW = 15 SRC = 0 LRC = 0 SSRC = 0 and SLRC = 4
  103. .*
  104. For the current frame exchange, we have CW = 15 SRC = 0 LRC = 0 SSRC = 0 and SLRC = 4
  105. .*
  106. %#--------------------------------------------------------------------------------------------------------------
  107. %#%not-contains: stdout
  108. %#undisposed object:
  109. %#%not-contains: stdout
  110. %#-- check module destructor
  111. %#%#--------------------------------------------------------------------------------------------------------------