flash.ned 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. package inet.examples.httptools.direct.flashdirect;
  31. import inet.applications.httptools.configurator.HttpController;
  32. import inet.node.httptools.DirectHost;
  33. //
  34. // Flash crowd simulation
  35. //
  36. // This is an example of a popularity modification event employed to simulate
  37. // a flashcrowd. Direct message passing. This scenario is similar to the 10servers
  38. // scenario used to demonstrate the sockets components.
  39. //
  40. network HttpDirectFlash
  41. {
  42. parameters:
  43. double num_browsers @prompt("Number of browsers") = default(2);
  44. @display("bgb=754,559");
  45. submodules:
  46. controller: HttpController {
  47. parameters:
  48. @display("p=54,60;i=block/cogwheel");
  49. }
  50. server1: DirectHost {
  51. parameters:
  52. @display("p=68,164;i=device/server");
  53. }
  54. server2: DirectHost {
  55. parameters:
  56. @display("p=148,164;i=device/server");
  57. }
  58. server3: DirectHost {
  59. parameters:
  60. @display("p=228,164;i=device/server");
  61. }
  62. server4: DirectHost {
  63. parameters:
  64. @display("p=308,164;i=device/server");
  65. }
  66. server5: DirectHost {
  67. parameters:
  68. @display("p=388,164;i=device/server");
  69. }
  70. server6: DirectHost {
  71. parameters:
  72. @display("p=468,164;i=device/server");
  73. }
  74. server7: DirectHost {
  75. parameters:
  76. @display("p=548,164;i=device/server");
  77. }
  78. server8: DirectHost {
  79. parameters:
  80. @display("p=620,164;i=device/server");
  81. }
  82. server9: DirectHost {
  83. parameters:
  84. @display("p=700,164;i=device/server");
  85. }
  86. abc: DirectHost {
  87. parameters:
  88. @display("p=365,300;i=device/server_l");
  89. }
  90. client[num_browsers]: DirectHost {
  91. parameters:
  92. @display("i=device/laptop");
  93. }
  94. connections allowunconnected:
  95. }