tcp_syn_6.test 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. %description:
  2. Test connection setup: A performs active open, and B's SYN+ACK always gets lost.
  3. Test that:
  4. - initial RTO is 3s
  5. - it doubles with each retransmission
  6. - after some time, CONN-ESTAB timer goes off, and game over
  7. Note: results are a bit weird, because both sides try very hard...
  8. %inifile: {}.ini
  9. [General]
  10. #preload-ned-files = *.ned ../../*.ned @../../../../nedfiles.lst
  11. ned-path = .;../../../../src;../../lib
  12. #omnetpp 5.0 - 5.1 compatibility:
  13. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  14. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  15. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  16. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  17. #[Cmdenv]
  18. #cmdenv-event-banners=false
  19. cmdenv-express-mode=false
  20. #[Parameters]
  21. *.testing=true
  22. cmdenv-log-prefix="[%c]: "
  23. *.cli_app.tOpen=0s
  24. *.srv_app.tOpen=0s
  25. # delete SYN segments to force their retransmission
  26. *.tcptester.script="b1 delete;b2 delete;b3 delete;b4 delete;b5 delete;b6 delete;b7 delete;b8 delete;b9 delete;b10 delete"
  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
  45. srv_tcp: LISTEN --> SYN_RCVD (on RCV_SYN)
  46. [0.003 B001] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # deleting
  47. [3.001 A002] A.1000 > B.2000: S 0:0(0) win 16384
  48. [3.003 B002] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # deleting
  49. [3.003 B003] A.1000 < B.2000: A ack 1 win 16384 # deleting
  50. [9.001 A003] A.1000 > B.2000: S 0:0(0) win 16384
  51. [9.003 B004] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # deleting
  52. [9.003 B005] A.1000 < B.2000: A ack 1 win 16384 # deleting
  53. [21.001 A004] A.1000 > B.2000: S 0:0(0) win 16384
  54. [21.003 B006] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # deleting
  55. [21.003 B007] A.1000 < B.2000: A ack 1 win 16384 # deleting
  56. [45.001 A005] A.1000 > B.2000: S 0:0(0) win 16384
  57. [45.003 B008] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # deleting
  58. [45.003 B009] A.1000 < B.2000: A ack 1 win 16384 # deleting
  59. cli_tcp: SYN_SENT --> CLOSED (on TIMEOUT_CONN_ESTAB)
  60. srv_tcp: SYN_RCVD --> LISTEN (on TIMEOUT_CONN_ESTAB)
  61. %#--------------------------------------------------------------------------------------------------------------
  62. %contains: stdout
  63. Calling finish() at end of Run #0...
  64. []: TcpTestNet1.cli_app: received 0 bytes in 0 packets
  65. []: TcpTestNet1.cli_tcp: finishing with 0 connections open.
  66. []: TcpTestNet1.srv_tcp: finishing with 1 connections open.
  67. []: TcpTestNet1.srv_app: received 0 bytes in 0 packets
  68. [testing]: [75.002] tcpdump finished, A:5 B:9 segments
  69. End.
  70. %#--------------------------------------------------------------------------------------------------------------
  71. %not-contains: stdout
  72. undisposed object:
  73. %#--------------------------------------------------------------------------------------------------------------
  74. %not-contains: stdout
  75. -- check module destructor
  76. %#--------------------------------------------------------------------------------------------------------------