tcp_syn_8.test 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. %description:
  2. Test connection setup: A performs active open, and its ACK of SYN always gets
  3. lost.
  4. Test that:
  5. - initial RTO is 3s
  6. - it doubles with each retransmission
  7. - B it retries SYN+ACK a number of times, then CONN-ESTAB timer goes off
  8. - for A, connection setup seems successful at first, but will fail when it
  9. starts to send data
  10. %inifile: {}.ini
  11. [General]
  12. #preload-ned-files = *.ned ../../*.ned @../../../../nedfiles.lst
  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. #[Cmdenv]
  20. #cmdenv-event-banners=false
  21. cmdenv-express-mode=false
  22. #[Parameters]
  23. *.testing=true
  24. cmdenv-log-prefix="[%c]: "
  25. *.cli_app.tOpen=0s
  26. *.srv_app.tOpen=0s
  27. *.cli_app.tSend=100s
  28. *.cli_app.sendBytes=100B
  29. # delete ACK of SYN multiple times
  30. *.tcptester.script="a2 delete;a3 delete;a4 delete;a5 delete;a6 delete"
  31. include ../../lib/defaults.ini
  32. %#--------------------------------------------------------------------------------------------------------------
  33. %file: postrun.pl
  34. open FILE, '<test.out';
  35. while($sor = <FILE>)
  36. {
  37. if ($sor =~ /^\[testing\]: (.*)$/)
  38. {
  39. print "$1\n";
  40. }
  41. }
  42. %#--------------------------------------------------------------------------------------------------------------
  43. %postrun-command: perl ./postrun.pl
  44. %#--------------------------------------------------------------------------------------------------------------
  45. %contains: postrun-command(1).out
  46. cli_tcp: INIT --> SYN_SENT (on OPEN_ACTIVE)
  47. srv_tcp: INIT --> LISTEN (on OPEN_PASSIVE)
  48. [0.001 A001] A.1000 > B.2000: S 0:0(0) win 16384
  49. srv_tcp: LISTEN --> SYN_RCVD (on RCV_SYN)
  50. [0.003 B001] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384
  51. cli_tcp: SYN_SENT --> ESTABLISHED (on RCV_SYN_ACK)
  52. [0.005 A002] A.1000 > B.2000: A ack 501 win 16384 # deleting
  53. [3.003 B002] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384
  54. [3.005 A003] A.1000 > B.2000: A ack 501 win 16384 # deleting
  55. [9.003 B003] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384
  56. [9.005 A004] A.1000 > B.2000: A ack 501 win 16384 # deleting
  57. [21.003 B004] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384
  58. [21.005 A005] A.1000 > B.2000: A ack 501 win 16384 # deleting
  59. [45.003 B005] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384
  60. [45.005 A006] A.1000 > B.2000: A ack 501 win 16384 # deleting
  61. srv_tcp: SYN_RCVD --> LISTEN (on TIMEOUT_CONN_ESTAB)
  62. [100.001 A007] A.1000 > B.2000: A 1:101(100) ack 501 win 16384
  63. [100.003 B006] A.1000 < B.2000: R win 0
  64. cli_tcp: ESTABLISHED --> CLOSED (on RCV_RST)
  65. %#--------------------------------------------------------------------------------------------------------------
  66. %contains: stdout
  67. Calling finish() at end of Run #0...
  68. []: TcpTestNet1.cli_app: received 0 bytes in 0 packets
  69. []: TcpTestNet1.cli_tcp: finishing with 0 connections open.
  70. []: TcpTestNet1.srv_tcp: finishing with 1 connections open.
  71. []: TcpTestNet1.srv_app: received 0 bytes in 0 packets
  72. [testing]: [100.004] tcpdump finished, A:7 B:6 segments
  73. End.
  74. %#--------------------------------------------------------------------------------------------------------------
  75. %not-contains: stdout
  76. undisposed object:
  77. %#--------------------------------------------------------------------------------------------------------------
  78. %not-contains: stdout
  79. -- check module destructor
  80. %#--------------------------------------------------------------------------------------------------------------