tcp_syn_4.test 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. %description:
  2. Test connection setup: A performs active open and SYN 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. %inifile: {}.ini
  8. [General]
  9. #preload-ned-files = *.ned ../../*.ned @../../../../nedfiles.lst
  10. ned-path = .;../../../../src;../../lib
  11. #omnetpp 5.0 - 5.1 compatibility:
  12. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  13. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  14. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  15. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  16. #[Cmdenv]
  17. #cmdenv-event-banners=false
  18. cmdenv-express-mode=false
  19. #[Parameters]
  20. *.testing=true
  21. cmdenv-log-prefix="[%c]: "
  22. *.cli_app.tOpen=0s
  23. *.srv_app.tOpen=0s
  24. # delete SYN segments to force their retransmission
  25. *.tcptester.script="a1 delete;a2 delete;a3 delete;a4 delete;a5 delete"
  26. include ../../lib/defaults.ini
  27. %#--------------------------------------------------------------------------------------------------------------
  28. %file: postrun.pl
  29. open FILE, '<test.out';
  30. while($sor = <FILE>)
  31. {
  32. if ($sor =~ /^\[testing\]: (.*)$/)
  33. {
  34. print "$1\n";
  35. }
  36. }
  37. %#--------------------------------------------------------------------------------------------------------------
  38. %postrun-command: perl ./postrun.pl
  39. %#--------------------------------------------------------------------------------------------------------------
  40. %contains: postrun-command(1).out
  41. cli_tcp: INIT --> SYN_SENT (on OPEN_ACTIVE)
  42. srv_tcp: INIT --> LISTEN (on OPEN_PASSIVE)
  43. [0.001 A001] A.1000 > B.2000: S 0:0(0) win 16384 # deleting
  44. [3.001 A002] A.1000 > B.2000: S 0:0(0) win 16384 # deleting
  45. [9.001 A003] A.1000 > B.2000: S 0:0(0) win 16384 # deleting
  46. [21.001 A004] A.1000 > B.2000: S 0:0(0) win 16384 # deleting
  47. [45.001 A005] A.1000 > B.2000: S 0:0(0) win 16384 # deleting
  48. cli_tcp: SYN_SENT --> CLOSED (on TIMEOUT_CONN_ESTAB)
  49. %#--------------------------------------------------------------------------------------------------------------
  50. %contains: stdout
  51. [75.000] tcpdump finished, A:5 B:0 segments
  52. %#--------------------------------------------------------------------------------------------------------------
  53. %not-contains: stdout
  54. undisposed object:
  55. %#--------------------------------------------------------------------------------------------------------------
  56. %not-contains: stdout
  57. -- check module destructor
  58. %#--------------------------------------------------------------------------------------------------------------