omnetpp.ini 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. # ----------------------------------------------------------------------------
  2. #
  3. # HttpTools Project
  4. #
  5. # This file is a part of the HttpTools project. The project was created at
  6. # Reykjavik University, the Laboratory for Dependable Secure Systems (LDSS).
  7. # Its purpose is to create a set of OMNeT++ components to simulate browsing
  8. # behaviour in a high-fidelity manner along with a highly configurable
  9. # Web server component.
  10. #
  11. # Maintainer: Kristjan V. Jonsson (LDSS) kristjanvj@gmail.com
  12. # Project home page: code.google.com/p/omnet-httptools
  13. #
  14. # ----------------------------------------------------------------------------
  15. #
  16. # This program is free software; you can redistribute it and/or
  17. # modify it under the terms of the GNU General Public License version 3
  18. # as published by the Free Software Foundation.
  19. #
  20. # This program is distributed in the hope that it will be useful,
  21. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. # GNU General Public License for more details.
  24. #
  25. # You should have received a copy of the GNU General Public License
  26. # along with this program; if not, write to the Free Software
  27. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  28. #
  29. # ----------------------------------------------------------------------------
  30. #
  31. # Initialization file for the pairs scenario. Sockets version.
  32. #
  33. [General]
  34. network = HttpSockPair # Use the sockets version of pair
  35. cmdenv-express-mode = false
  36. tkenv-plugin-path = ../../../../etc/plugins
  37. # tkenv-default-run = 1
  38. sim-time-limit = 100d
  39. # Controller
  40. **.controller.config = xmldoc("../../controller_cfg.xml","//controller-profile[@id='uniform']")
  41. **.controller.events = ""
  42. **.controller.eventsSection = ""
  43. # udp app (off)
  44. **.numUdpApps = 0
  45. # tcp apps
  46. **.cli.numTcpApps = 1
  47. **.cli.tcpApp[0].typename = "HttpBrowser"
  48. **.cli.tcpApp[0].httpProtocol = 11
  49. **.cli.tcpApp[0].logFile = "" # Logging disabled
  50. **.cli.tcpApp[0].config = xmldoc("../../browser_cfg.xml","//user-profile[@id='normal']")
  51. **.cli.tcpApp[0].activationTime = 0.0
  52. # Servers
  53. **.srv.numTcpApps = 1
  54. **.srv.tcpApp[0].typename = "HttpServer"
  55. **.srv.tcpApp[0].hostName = "www.single.org"
  56. **.srv.tcpApp[0].port = 80
  57. **.srv.tcpApp[0].httpProtocol = 11
  58. **.srv.tcpApp[0].logFile = "" # Logging disabled
  59. **.srv.tcpApp[0].siteDefinition = "" # Use the random page and resource generation
  60. **.srv.tcpApp[0].config = xmldoc("../../server_cfg.xml","//server-profile[@id='normal']")
  61. **.srv.tcpApp[0].activationTime = 0.0
  62. # tcp settings
  63. **.tcp.mss = 1024
  64. **.tcp.advertisedWindow = 14336 # 14*mss
  65. **.tcp.tcpAlgorithmClass = "TCPReno"
  66. **.tcp.recordStats = true
  67. # ip settings
  68. **.ip.procDelay = 10000us
  69. **.cli.forwarding = false
  70. **.srv.forwarding = false
  71. # ARP configuration
  72. **.arp.retryTimeout = 1s
  73. **.arp.retryCount = 3
  74. **.arp.cacheTimeout = 100s
  75. **.networkLayer.proxyARP = true # Host's is hardwired "false"
  76. # NIC configuration
  77. **.ppp[*].queueType = "DropTailQueue" # in routers
  78. **.ppp[*].queue.frameCapacity = 10 # in routers
  79. # hook names
  80. **.qosBehaviorClass = "EnqueueWithoutQoS"
  81. # nam trace
  82. **.nam.logfile = "trace.nam"
  83. **.nam.prolog = ""
  84. **.namid = -1 # auto
  85. [Config random]
  86. # Random browse events and page generation.
  87. **.cli.tcpApp[0].scriptFile = "" # Script file disabled
  88. **.srv.tcpApp[0].siteDefinition = "" # Use the random page and resource generation
  89. [Config scripted]
  90. # The single server uses a scripted site definition. The browser executes scripted
  91. # events which request valid pages from the server. This should result in only valid
  92. # responses.
  93. **.cli.tcpApp[0].scriptFile = "browse.script"
  94. **.cli.tcpApp[0].reconnectInterval = 0 # TODO: CHECK USE
  95. **.srv.tcpApp[0].siteDefinition = "../../sites/www_single_org/www_single_org.sitedef"
  96. [Config scripted-bad]
  97. # The single server uses a scripted site definition. The browser executes scripted
  98. # events which request non-existent pages from the server. This should be answered by
  99. # 404 replies.
  100. **.cli.tcpApp[0].scriptFile = "bad-browse.script"
  101. **.cli.tcpApp[0].reconnectInterval = 0 # TODO: CHECK USE
  102. **.srv.tcpApp[0].siteDefinition = "../../sites/www_single_org/www_single_org.sitedef"
  103. [Config scripted-cross]
  104. # The single server uses a scripted site definition. The browser executes scripted
  105. # events which request a page from the server which contains references to resources
  106. # on a non-existent server. This should fail gracefully.
  107. **.cli.tcpApp[0].scriptFile = "cross-browse.script"
  108. **.cli.tcpApp[0].reconnectInterval = 0 # TODO: CHECK USE
  109. **.srv.tcpApp[0].siteDefinition = "../../sites/www_single_org/www_single_org.sitedef"