tcp_algorithm_westwood.test 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %description:
  2. Test tcp algorithms with PER
  3. %#################################################################################################################
  4. %inifile: omnetpp.ini
  5. [General]
  6. ned-path = .;../../../../src;../../lib
  7. #omnetpp 5.0 - 5.1 compatibility:
  8. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  9. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  10. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  11. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  12. #[Cmdenv]
  13. cmdenv-event-banners=false
  14. cmdenv-express-mode=true
  15. #[Parameters]
  16. *.testing=true
  17. ###################################################################
  18. network = ClientServer
  19. total-stack = 7MiB
  20. #**.server.numPcapRecorders = 1
  21. #**.server.pcapRecorder[0].pcapFile = "results/server.pcap"
  22. #**.client.numPcapRecorders = 1
  23. #**.client.pcapRecorder[0].pcapFile = "results/client.pcap"
  24. description = "inet_TCP <---> inet_TCP with algorithms"
  25. *.server*.tcpType = "TCP"
  26. *.client*.tcpType = "TCP"
  27. **.tcp.tcpAlgorithmClass = "TCPWestwood" # ${"DumbTCP", "TCPNewReno", "TCPReno", "TCPTahoe", "TCPVegas", "TCPWestwood"}
  28. *.per = 0.01 * ${0, 0.1, 0.2, 0.5, 1, 2, 5}
  29. ## tcp apps
  30. **.numTcpApps = 1
  31. **.client.tcpApp[*].typename = "TCPSessionApp"
  32. **.client.tcpApp[0].active = true
  33. **.client.tcpApp[0].localPort = -1
  34. **.client.tcpApp[0].connectAddress = "server"
  35. **.client.tcpApp[0].connectPort = 1000
  36. **.client.tcpApp[0].tOpen = 0.2s
  37. **.client.tcpApp[0].tSend = 0.4s
  38. **.client.tcpApp[0].sendBytes = 1000000B
  39. **.client.tcpApp[0].sendScript = ""
  40. **.client.tcpApp[0].tClose = 25s
  41. **.server.tcpApp[*].typename="TCPSinkApp"
  42. **.server*.tcpApp[0].localPort = 1000
  43. # NIC configuration
  44. **.ppp[*].queueType = "DropTailQueue"
  45. **.ppp[*].queue.frameCapacity = 10
  46. *.configurator.config=xml("<config><interface hosts='*' address='192.168.1.x' netmask='255.255.255.0'/></config>")
  47. %#################################################################################################################
  48. %contains: results/General-0.sca
  49. scalar ClientServer.server.tcpApp[0] rcvdPk:sum(packetBytes) 1000000
  50. %contains: results/General-1.sca
  51. scalar ClientServer.server.tcpApp[0] rcvdPk:sum(packetBytes) 1000000
  52. %contains: results/General-2.sca
  53. scalar ClientServer.server.tcpApp[0] rcvdPk:sum(packetBytes) 1000000
  54. %contains: results/General-3.sca
  55. scalar ClientServer.server.tcpApp[0] rcvdPk:sum(packetBytes) 1000000
  56. %contains: results/General-4.sca
  57. scalar ClientServer.server.tcpApp[0] rcvdPk:sum(packetBytes) 1000000
  58. %contains: results/General-5.sca
  59. scalar ClientServer.server.tcpApp[0] rcvdPk:sum(packetBytes) 1000000
  60. %contains: results/General-6.sca
  61. scalar ClientServer.server.tcpApp[0] rcvdPk:sum(packetBytes) 1000000
  62. %#--------------------------------------------------------------------------------------------------------------
  63. %not-contains: stdout
  64. undisposed object:
  65. %not-contains: stdout
  66. -- check module destructor
  67. %#--------------------------------------------------------------------------------------------------------------