sctp_nat_peer_to_peer.test 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %description:
  2. Testing SCTP_NAT: Two peers send their requests to connect to a peer to a server. The
  3. server collects the information and sends it to the peers. Afterwards the peers connect to
  4. each other.
  5. %#--------------------------------------------------------------------------------------------------------------
  6. %#--------------------------------------------------------------------------------------------------------------
  7. %inifile: omnetpp.ini
  8. [General]
  9. network=multiRendezvous
  10. cmdenv-event-banners=false
  11. cmdenv-express-mode = false
  12. tkenv-plugin-path = ../../../etc/plugins
  13. ned-path = .;../../../../src;../../lib
  14. #omnetpp 5.0 - 5.1 compatibility:
  15. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  16. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  17. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  18. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  19. **.testing = false
  20. **.testTimeout = 0
  21. # udp app (off)
  22. **.numUdpApps = 0
  23. **.udpType = ""
  24. **.numTcpApps = 0
  25. **.tcpType = "TCP"
  26. # sctp apps
  27. **.Peer_1.numSctpApps=1
  28. **.Peer_2.numSctpApps=1
  29. **.Peer_*.sctpApp[*].typename="SCTPNatPeer"
  30. **.Peer_1.sctpApp[*].localAddress="10.1.1.1"
  31. **.Peer_2.sctpApp[0].localAddress="10.1.2.1"
  32. **.Peer_1.sctpApp[0].localPort=6000
  33. **.Peer_2.sctpApp[0].localPort=7000
  34. **.Peer_*.sctpApp[0].connectAddress="100.1.3.1"
  35. **.Peer_1.sctpApp[0].connectPort=6666
  36. **.Peer_2.sctpApp[0].connectPort=7777
  37. **.Peer_1.sctpApp[0].startTime=1s
  38. **.Peer_2.sctpApp[0].startTime=1s #truncnormal(30, 5)
  39. **.Peer_1.sctpApp[0].numRequestsPerSession = 10
  40. **.Peer_2.sctpApp[0].numRequestsPerSession = 0
  41. **.Peer_1.sctpApp[0].numPacketsToReceive = 0
  42. **.Peer_2.sctpApp[0].numPacketsToReceive =10
  43. **.Peer_*.sctpApp[0].outboundStreams = 4
  44. **.Peer_*.sctpApp[0].inboundStreams = 4
  45. **.Peer_1.sctpApp[0].ownName=1
  46. **.Peer_1.sctpApp[0].peerName=2
  47. **.Peer_2.sctpApp[0].ownName=2
  48. **.Peer_2.sctpApp[0].peerName=1
  49. **.Peer_*.sctpApp[0].rendezvous=true
  50. **.Peer_*.sctpApp[0].multi=true
  51. **.Server.numSctpApps=2
  52. **.Server.sctpApp[*].typename="SCTPNatServer"
  53. **.Server.sctpApp[*].queueSize = 0
  54. **.Server.sctpApp[*].lifetime=0s
  55. **.Server.sctpApp[*].address=""
  56. **.Server.sctpApp[0].localPort=6666
  57. **.Server.sctpApp[1].localPort=7777
  58. **.Server.sctpApp[*].replyDelay=0
  59. **.Server.sctpApp[*].echoFactor=0
  60. **.Server.sctpApp[*].echoDelay=0
  61. **.Server.sctpApp[*].outboundStreams=4
  62. **.Server.sctpApp[*].inboundStreams=4
  63. **.Server.sctpApp[*].numPacketsToSendPerClient = 0
  64. **.Server.sctpApp[*].numPacketsToReceivePerClient =0
  65. **.Server.sctpApp[*].requestLength = 1024
  66. # sctp settings
  67. **.sctp.sctpAlgorithmClass="SCTPAlg"
  68. **.sctp.auth = true
  69. **.Peer_*.sctp.addIP = true
  70. **.Server.sctp.addTime = 0
  71. **.Peer_1.sctp.addTime = 0
  72. **.Peer_1.sctp.addAddress = "10.2.1.1"
  73. **.Peer_1.sctp.addIpType = "49153" #separate the type by ',' SET_PRIMARY_ADDRESS= 49156,ADD_IP_ADDRESS=49153,DELETE_IP_ADDRESS=49154
  74. **.Peer_2.sctp.addTime = 0s
  75. **.Peer_2.sctp.addAddress = "10.2.2.1"
  76. **.Peer_2.sctp.addIpType = "49153"
  77. **.sctp.chunks=""
  78. **.Peer_*.sctp.natFriendly = true
  79. **.sctp.enableHeartbeats=true
  80. **.Peer_1.routingTable.routingFile="../../lib/nat_peer1.mrt"
  81. **.Peer_2.routingTable.routingFile="../../lib/nat_peer2.mrt"
  82. **.Server.routingTable.routingFile="../../lib/nat_server.mrt"
  83. **.Nat_1_1.routingTable.routingFile="../../lib/nat1_1.mrt"
  84. **.Nat_1_2.routingTable.routingFile="../../lib/nat1_2.mrt"
  85. **.Nat_2_1.routingTable.routingFile="../../lib/nat2_1.mrt"
  86. **.Nat_2_2.routingTable.routingFile="../../lib/nat2_2.mrt"
  87. **.Router_1.routingTable.routingFile="../../lib/nat_router_1.mrt"
  88. **.Router_2.routingTable.routingFile="../../lib/nat_router_2.mrt"
  89. %#--------------------------------------------------------------------------------------------------------------
  90. %contains-regex: stdout
  91. Association 1: sent bytes=14520, acked bytes=14520
  92. %contains-regex: stdout
  93. Association 9: sent bytes=16, acked bytes=16
  94. %contains-regex: stdout
  95. Association 10: sent bytes=16, acked bytes=16
  96. %#--------------------------------------------------------------------------------------------------------------