sctp_auth.test 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. %description:
  2. Testing SCTP AUTH: DATA and SACK chunks should be authenticated.
  3. The number of sent AUTH chunks should be > 0.
  4. The number of accepted AUTH chunks should be > 0.
  5. The number of rejected AUTH chunks should be equal to 0.
  6. %#--------------------------------------------------------------------------------------------------------------
  7. %#--------------------------------------------------------------------------------------------------------------
  8. %inifile: omnetpp.ini
  9. [General]
  10. network=SCTPFeatureTest
  11. cmdenv-event-banners=false
  12. cmdenv-express-mode = false
  13. tkenv-plugin-path = ../../../etc/plugins
  14. ned-path = .;../../../../src;../../lib
  15. #omnetpp 5.0 - 5.1 compatibility:
  16. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  17. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  18. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  19. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  20. **.testing = false
  21. **.testTimeout = 0
  22. # udp app (off)
  23. **.numUdpApps = 0
  24. **.udpType = ""
  25. **.numTcpApps = 0
  26. **.tcpType = "TCP"
  27. # sctp apps
  28. **.sctp_client.numSctpApps = 1
  29. **.sctp_client.sctpType="SCTP"
  30. **.sctp_client.sctpApp[0].typename = "SCTPClient"
  31. **.sctp_client.sctpApp[0].localAddress = "10.1.1.1"
  32. **.sctp_client.sctpApp[0].connectAddress = "10.1.3.1"
  33. **.sctp_client.sctpApp[0].primaryPath = "10.1.3.1"
  34. **.sctp_client.sctpApp[0].connectPort = 6666
  35. **.sctp_client.sctpApp[0].requestLength= 800
  36. **.sctp_client.sctpApp[0].startTime = truncnormal(1s,0.2s)
  37. **.sctp_client.sctpApp[0].numRequestsPerSession = 100
  38. **.sctp_client.sctpApp[0].queueSize = 0
  39. **.sctp_client.sctpApp[0].outboundStreams = 1
  40. **.sctp_server.numSctpApps = 1
  41. **.sctp_server.sctpType="SCTP"
  42. **.sctp_server.sctpApp[0].typename = "SCTPServer"
  43. **.sctp_server.sctpApp[0].localAddress = "10.1.3.1"
  44. **.sctp_server.sctpApp[0].localPort = 6666
  45. **.sctp_server.sctpApp[*].queueSize = 0 #Size of sendQueue before App is notified to send new data
  46. **.sctp_server.sctpApp[*].numPacketsToSendPerClient = 0
  47. **.sctp_server.sctpApp[*].numPacketsToReceivePerClient = 100
  48. **.sctp_server.sctpApp[*].outboundStreams = 1
  49. # sctp settings
  50. **.sctp.sctpAlgorithmClass = "SCTPAlg"
  51. **.sctp.auth = true
  52. **.sctp.chunks = "SACK,DATA"
  53. # NIC configuration
  54. #**.ppp[*].queueType = "DropTailQueue" # in routers
  55. #**.ppp[*].queue.frameCapacity = 100 # in routers
  56. #**.ppp[*].ppp.mtu = 1500 B
  57. #**.vector-recording = false
  58. %#--------------------------------------------------------------------------------------------------------------
  59. %contains-regex: results/General-0.sca
  60. scalar SCTPFeatureTest.sctp_client.sctp[ \t]*"Number of AUTH chunks sent"[ \t]*[1-9][0-9]*
  61. scalar SCTPFeatureTest.sctp_client.sctp[ \t]*"Number of AUTH chunks accepted"[ \t]*[1-9][0-9]*
  62. scalar SCTPFeatureTest.sctp_client.sctp[ \t]*"Number of AUTH chunks rejected"[ \t]*0
  63. %contains-regex: results/General-0.sca
  64. scalar SCTPFeatureTest.sctp_server.sctp[ \t]*"Number of AUTH chunks sent"[ \t]*[1-9][0-9]*
  65. scalar SCTPFeatureTest.sctp_server.sctp[ \t]*"Number of AUTH chunks accepted"[ \t]*[1-9][0-9]*
  66. scalar SCTPFeatureTest.sctp_server.sctp[ \t]*"Number of AUTH chunks rejected"[ \t]*0
  67. %#--------------------------------------------------------------------------------------------------------------