omnetpp.ini 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. [Config EnablingVisualization]
  2. network = TransportConnectionVisualizationEnablingShowcase
  3. description = "1. Enabling the visualization of transport connections"
  4. # TCP settings
  5. *.host1.numTcpApps = 1
  6. *.host1.tcpApp[0].typename = "TCPSessionApp"
  7. *.host1.tcpApp[*].connectAddress = "host2"
  8. *.host1.tcpApp[*].active = true
  9. *.host1.tcpApp[*].connectPort = 80
  10. *.host1.tcpApp[*].sendBytes = 100MiB
  11. *.host1.tcpApp[*].tClose = 0
  12. *.host1.tcpApp[*].tOpen = 0
  13. *.host1.tcpApp[*].tSend = 0
  14. *.host2.numTcpApps = 1
  15. *.host2.tcpApp[0].typename = "TCPSinkApp"
  16. *.host2.tcpApp[*].localPort = 80
  17. # Visualizer settings
  18. *.visualizer.*.transportConnectionVisualizer.displayTransportConnections = true
  19. *.visualizer.*.transportConnectionVisualizer.placementHint = "topCenter" #TODO: this shouldn't be here
  20. [Config MultipleConnections]
  21. network = TransportConnectionVisualizationMultipleConnectionsShowcase
  22. description = "2. Advanced features of the visualization"
  23. # maybe the network should be more spread out so it looks better at 1x zoom level
  24. # TCP settings
  25. *.host1.numTcpApps = 3
  26. *.host1.tcpApp[*].typename = "TCPSessionApp"
  27. *.host1.tcpApp[*].connectAddress = "server"
  28. *.host1.tcpApp[*].active = true
  29. *.host1.tcpApp[0..1].connectPort = 80
  30. *.host1.tcpApp[0..1].sendBytes = 100MiB
  31. *.host1.tcpApp[2].connectPort = 22
  32. *.host1.tcpApp[2].sendBytes = 100KiB
  33. *.host1.tcpApp[*].tClose = 0
  34. *.host1.tcpApp[*].tOpen = 0
  35. *.host1.tcpApp[*].tSend = 0
  36. *.host2.numTcpApps = 2
  37. *.host2.tcpApp[*].typename = "TCPSessionApp"
  38. *.host2.tcpApp[*].connectAddress = "server"
  39. *.host2.tcpApp[*].active = true
  40. *.host2.tcpApp[0].connectPort = 80
  41. *.host2.tcpApp[0].sendBytes = 100MiB
  42. *.host2.tcpApp[*].tClose = 0
  43. *.host2.tcpApp[*].tOpen = 0
  44. *.host2.tcpApp[*].tSend = 0
  45. *.host2.tcpApp[1].connectPort = 22
  46. *.host2.tcpApp[1].sendBytes = 100KiB
  47. *.server.numTcpApps = 2
  48. *.server.tcpApp[*].typename = "TCPSinkApp"
  49. *.server.tcpApp[0].localPort = 80
  50. *.server.tcpApp[1].localPort = 22
  51. # Visualizer settings
  52. *.visualizer.*.transportConnectionVisualizer.displayTransportConnections = true
  53. *.visualizer.*.transportConnectionVisualizer.destinationPortFilter = "80"
  54. *.visualizer.*.transportConnectionVisualizer.placementHint = "topCenter"
  55. # an idea: the complex network should have multiple routes between the clients and the server
  56. # to show that this visualizer doesnt say anything about the routes
  57. # but it might be trivial...