tcp_syn_7.test 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. %description:
  2. Test connection setup: A performs active open and A's ACK of SYN gets lost.
  3. %inifile: {}.ini
  4. [General]
  5. #preload-ned-files = *.ned ../../*.ned @../../../../nedfiles.lst
  6. ned-path = .;../../../../src;../../lib
  7. #omnetpp 5.0 - 5.1 compatibility:
  8. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  9. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  10. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  11. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  12. #[Cmdenv]
  13. #cmdenv-event-banners=false
  14. cmdenv-express-mode=false
  15. #[Parameters]
  16. *.testing=true
  17. cmdenv-log-prefix="[%c]: "
  18. *.cli_app.tOpen=0s
  19. *.srv_app.tOpen=0s
  20. *.tcptester.script="a2 delete"
  21. include ../../lib/defaults.ini
  22. %#--------------------------------------------------------------------------------------------------------------
  23. %file: postrun.pl
  24. open FILE, '<test.out';
  25. while($sor = <FILE>)
  26. {
  27. if ($sor =~ /^\[testing\]: (.*)$/)
  28. {
  29. print "$1\n";
  30. }
  31. }
  32. %#--------------------------------------------------------------------------------------------------------------
  33. %postrun-command: perl ./postrun.pl
  34. %#--------------------------------------------------------------------------------------------------------------
  35. %contains: postrun-command(1).out
  36. cli_tcp: INIT --> SYN_SENT (on OPEN_ACTIVE)
  37. srv_tcp: INIT --> LISTEN (on OPEN_PASSIVE)
  38. [0.001 A001] A.1000 > B.2000: S 0:0(0) win 16384
  39. srv_tcp: LISTEN --> SYN_RCVD (on RCV_SYN)
  40. [0.003 B001] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384
  41. cli_tcp: SYN_SENT --> ESTABLISHED (on RCV_SYN_ACK)
  42. [0.005 A002] A.1000 > B.2000: A ack 501 win 16384 # deleting
  43. [3.003 B002] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384
  44. [3.005 A003] A.1000 > B.2000: A ack 501 win 16384
  45. srv_tcp: SYN_RCVD --> ESTABLISHED (on RCV_ACK)
  46. %#--------------------------------------------------------------------------------------------------------------
  47. %contains: stdout
  48. [3.006] tcpdump finished, A:3 B:2 segments
  49. %#--------------------------------------------------------------------------------------------------------------
  50. %not-contains: stdout
  51. undisposed object:
  52. %#--------------------------------------------------------------------------------------------------------------
  53. %not-contains: stdout
  54. -- check module destructor
  55. %#--------------------------------------------------------------------------------------------------------------