omnetpp.ini 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. [General]
  2. network = NClients
  3. #debug-on-errors = true
  4. tkenv-plugin-path = ../../../etc/plugins
  5. sim-time-limit = 100s
  6. # number of client computers
  7. *.n = 2
  8. **.hasStatus = true
  9. [Config Ping]
  10. # clients ping te host
  11. **.cli[*].numPingApps = 1
  12. **.cli[*].pingApp[*].destAddr = "srv"
  13. **.cli[*].pingApp[*].printPing = true
  14. [Config UDP_Basic_Echo]
  15. #clients send to server via UDP and server echoing it
  16. **.cli[*].numUdpApps = 1
  17. **.cli[*].udpApp[*].typename = "UDPBasicApp"
  18. **.cli[*].udpApp[*].destAddresses = "srv"
  19. **.cli[*].udpApp[*].destPort = 1000
  20. **.cli[*].udpApp[*].messageLength = 1000B
  21. **.cli[*].udpApp[*].sendInterval = 1s
  22. **.srv.numUdpApps = 1
  23. **.srv.udpApp[*].typename = "UDPEchoApp"
  24. **.srv.udpApp[*].localPort = 1000
  25. [Config UDP_Burst_Sink]
  26. #clients send to server via UDP and server echoing it
  27. **.cli[*].numUdpApps = 1
  28. **.cli[*].udpApp[*].typename = "UDPBasicBurst"
  29. **.cli[*].udpApp[*].destAddresses = "srv"
  30. **.cli[*].udpApp[*].destPort = 1000
  31. **.cli[*].udpApp[*].messageLength = 1000B
  32. **.cli[*].udpApp[*].sendInterval = 100ms
  33. **.cli[*].udpApp[*].burstDuration = 700ms
  34. **.cli[*].udpApp[*].sleepDuration = 300ms
  35. **.cli[*].udpApp[*].chooseDestAddrMode = ${"once","perBurst","perSend"}
  36. **.srv.numUdpApps = 1
  37. **.srv.udpApp[*].typename = "UDPSink"
  38. **.srv.udpApp[*].localPort = 1000
  39. [Config UDP_VideoStream]
  40. #clients send to server via UDP and server echoing it
  41. **.cli[*].numUdpApps = 1
  42. **.cli[*].udpApp[*].typename = "UDPVideoStreamCli"
  43. **.cli[*].udpApp[*].serverAddress = "srv"
  44. **.cli[*].udpApp[*].serverPort = 1000
  45. **.srv.numUdpApps = 1
  46. **.srv.udpApp[*].typename = "UDPVideoStreamSvr"
  47. **.srv.udpApp[*].localPort = 1000
  48. **.srv.udpApp[*].sendInterval = 100ms
  49. **.srv.udpApp[*].packetLen = 2000B
  50. **.srv.udpApp[*].videoSize = 100000B
  51. [Config TCP_common]
  52. # tcp apps
  53. **.cli[*].numTcpApps = 1
  54. **.cli[*].tcpApp[*].typename = "TelnetApp"
  55. **.cli[*].tcpApp[0].localAddress = ""
  56. **.cli[*].tcpApp[0].localPort = -1
  57. **.cli[*].tcpApp[0].connectAddress = "srv"
  58. **.cli[*].tcpApp[0].connectPort = 1000
  59. **.cli[*].tcpApp[0].startTime = exponential(3s)
  60. **.cli[*].tcpApp[0].numCommands = exponential(10)
  61. **.cli[*].tcpApp[0].commandLength = exponential(10B)
  62. **.cli[*].tcpApp[0].keyPressDelay = exponential(0.1s)
  63. **.cli[*].tcpApp[0].commandOutputLength = exponential(5B)
  64. **.cli[*].tcpApp[0].thinkTime = truncnormal(1s,2s)
  65. **.cli[*].tcpApp[0].idleInterval = truncnormal(36s,12s)
  66. **.cli[*].tcpApp[0].reconnectInterval = 3s
  67. **.cli[*].tcpApp[0].dataTransferMode = "object"
  68. **.srv.numTcpApps = 1
  69. **.srv.tcpApp[*].typename = "TCPGenericSrvApp"
  70. **.srv.tcpApp[0].localAddress = ""
  71. **.srv.tcpApp[0].localPort = 1000
  72. **.srv.tcpApp[0].replyDelay = 0
  73. [Config TCP]
  74. extends = TCP_common
  75. [Config TCP_NSC]
  76. extends = TCP_common
  77. **.srv*.tcpType = "TCP_NSC"
  78. **.cli*.tcpType = "TCP_NSC"
  79. [Config TCP_lwIP]
  80. extends = TCP_common
  81. **.srv*.tcpType = "TCP_lwIP"
  82. **.cli*.tcpType = "TCP_lwIP"