omnetpp.ini 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. Direct message passing used.
  32. #
  33. [General]
  34. #debug-on-errors = true
  35. network = HttpDirectPair
  36. sim-time-limit = 100d
  37. cmdenv-express-mode = true
  38. tkenv-plugin-path = ../../../../etc/plugins
  39. # tkenv-default-run = 1
  40. # Controller
  41. **.controller.config = xmldoc("../../controller_cfg.xml","//controller-profile[@id='uniform']")
  42. **.controller.events = ""
  43. **.controller.eventsSection = ""
  44. # Common client/server parameters
  45. **.tcpApp[0].linkSpeed = 10Mbps
  46. **.tcpApp[0].httpProtocol = 11
  47. # Clients
  48. **.cli.numTcpApps = 1
  49. **.cli.tcpApp[0].typename = "HttpBrowserDirect"
  50. **.cli.tcpApp[0].logFile = "" # Disable message logging
  51. **.cli.tcpApp[0].config = xmldoc("../../browser_cfg.xml","//user-profile[@id='normal']")
  52. **.cli.tcpApp[0].activationTime = 0.0
  53. # Servers
  54. **.srv.numTcpApps = 1
  55. **.srv.tcpApp[0].typename = "HttpServerDirect"
  56. **.srv.tcpApp[0].hostName = "www.single.org"
  57. **.srv.tcpApp[0].port = 80
  58. **.srv.tcpApp[0].logFile = "" # Disable message logging
  59. **.srv.tcpApp[0].config = xmldoc("../../server_cfg.xml","//server-profile[@id='normal']")
  60. **.srv.tcpApp[0].activationTime = 0.0
  61. [Config random]
  62. # Random browse events and page generation.
  63. **.cli.tcpApp[0].scriptFile = "" # Random browsing
  64. **.srv.tcpApp[0].siteDefinition = "" # Random page generation
  65. [Config scripted]
  66. # The single server uses a scripted site definition. The browser executes scripted
  67. # events which request valid pages from the server. This should result in only valid
  68. # responses.
  69. **.cli.tcpApp[0].scriptFile = "browse.script"
  70. **.srv.tcpApp[0].siteDefinition = "../../sites/www_single_org/www_single_org.sitedef"
  71. [Config scripted-bad]
  72. # The single server uses a scripted site definition. The browser executes scripted
  73. # events which request non-existent pages from the server. This should be answered by
  74. # 404 replies.
  75. **.cli.tcpApp[0].scriptFile = "bad-browse.script"
  76. **.srv.tcpApp[0].siteDefinition = "../../sites/www_single_org/www_single_org.sitedef"
  77. [Config scripted-cross]
  78. # The single server uses a scripted site definition. The browser executes scripted
  79. # events which request a page from the server which contains references to resources
  80. # on a non-existent server. This should fail gracefully.
  81. **.cli.tcpApp[0].scriptFile = "cross-browse.script"
  82. **.srv.tcpApp[0].siteDefinition = "../../sites/www_single_org/www_single_org.sitedef"