tcp_syn_9.test 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. %description:
  2. Test connection setup: A does active open, B does passive open. Both SYN and
  3. SYN+ACK get duplicated, and pop up several times -- this should cause no
  4. problem for TCP.
  5. %inifile: {}.ini
  6. [General]
  7. #preload-ned-files = *.ned ../../*.ned @../../../../nedfiles.lst
  8. ned-path = .;../../../../src;../../lib
  9. #omnetpp 5.0 - 5.1 compatibility:
  10. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  11. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  12. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  13. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  14. #[Cmdenv]
  15. #cmdenv-event-banners=false
  16. cmdenv-express-mode=false
  17. #[Parameters]
  18. *.testing=true
  19. cmdenv-log-prefix="[%c]: "
  20. *.cli_app.tOpen=0s
  21. *.srv_app.tOpen=0s
  22. *.cli_app.tSend=1s
  23. *.cli_app.sendBytes=100B
  24. *.srv_app.tSend=1s
  25. *.srv_app.sendBytes=100B
  26. *.tcptester.script="A1 copy 0, 0, 0.1, 1, 5; B1 copy 0, 0, 0.1, 1, 5"
  27. include ../../lib/defaults.ini
  28. %#--------------------------------------------------------------------------------------------------------------
  29. %file: postrun.pl
  30. open FILE, '<test.out';
  31. while($sor = <FILE>)
  32. {
  33. if ($sor =~ /^\[testing\]: (.*)$/)
  34. {
  35. print "$1\n";
  36. }
  37. }
  38. %#--------------------------------------------------------------------------------------------------------------
  39. %postrun-command: perl ./postrun.pl
  40. %#--------------------------------------------------------------------------------------------------------------
  41. %contains: postrun-command(1).out
  42. cli_tcp: INIT --> SYN_SENT (on OPEN_ACTIVE)
  43. srv_tcp: INIT --> LISTEN (on OPEN_PASSIVE)
  44. [0.001 A001] A.1000 > B.2000: S 0:0(0) win 16384 # removing original
  45. [0.001 A001] A.1000 > B.2000: S 0:0(0) win 16384 # introducing copy
  46. [0.001 A001] A.1000 > B.2000: S 0:0(0) win 16384 # introducing copy
  47. srv_tcp: LISTEN --> SYN_RCVD (on RCV_SYN)
  48. [0.003 B001] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # removing original
  49. [0.003 B001] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # introducing copy
  50. [0.003 B001] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # introducing copy
  51. [0.003 B002] A.1000 < B.2000: A ack 1 win 16384
  52. cli_tcp: SYN_SENT --> ESTABLISHED (on RCV_SYN_ACK)
  53. [0.005 A002] A.1000 > B.2000: A ack 501 win 16384
  54. [0.005 A003] A.1000 > B.2000: A ack 501 win 16384
  55. srv_tcp: SYN_RCVD --> ESTABLISHED (on RCV_ACK)
  56. [0.101 A003] A.1000 > B.2000: S 0:0(0) win 16384 # introducing copy
  57. [0.103 B002] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # introducing copy
  58. [0.103 B003] A.1000 < B.2000: A ack 1 win 16384
  59. [0.105 A004] A.1000 > B.2000: A ack 501 win 16384
  60. [1.001 A004] A.1000 > B.2000: S 0:0(0) win 16384 # introducing copy
  61. [1.001 A005] A.1000 > B.2000: A 1:101(100) ack 501 win 16384
  62. [1.001 B004] A.1000 < B.2000: A 501:601(100) ack 1 win 16384
  63. [1.003 B004] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # introducing copy
  64. [1.003 B005] A.1000 < B.2000: A ack 1 win 16384
  65. [1.005 A006] A.1000 > B.2000: A ack 601 win 16384
  66. [1.203 B006] A.1000 < B.2000: A ack 101 win 16384
  67. [5.001 A006] A.1000 > B.2000: S 0:0(0) win 16384 # introducing copy
  68. [5.003 B006] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # introducing copy
  69. [5.003 B007] A.1000 < B.2000: A ack 101 win 16384
  70. [5.005 A007] A.1000 > B.2000: A ack 601 win 16384
  71. %#--------------------------------------------------------------------------------------------------------------
  72. %contains: stdout
  73. Calling finish() at end of Run #0...
  74. []: TcpTestNet1.cli_app: received 100 bytes in 1 packets
  75. []: TcpTestNet1.cli_tcp: finishing with 1 connections open.
  76. []: TcpTestNet1.srv_tcp: finishing with 1 connections open.
  77. []: TcpTestNet1.srv_app: received 100 bytes in 1 packets
  78. [testing]: [5.006] tcpdump finished, A:7 B:7 segments
  79. End.
  80. %#--------------------------------------------------------------------------------------------------------------
  81. %not-contains: stdout
  82. undisposed object:
  83. %#--------------------------------------------------------------------------------------------------------------
  84. %not-contains: stdout
  85. -- check module destructor
  86. %#--------------------------------------------------------------------------------------------------------------