tcp_syn_5.test 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. %description:
  2. Test connection setup: A performs active open, and B's SYN+ACK gets lost.
  3. B must retransmit.
  4. Result not entirely OK, both A and B rexmit simulataneously...
  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. *.tcptester.script="b1 delete" # delete SYN+ACK
  23. include ../../lib/defaults.ini
  24. %#--------------------------------------------------------------------------------------------------------------
  25. %file: postrun.pl
  26. open FILE, '<test.out';
  27. while($sor = <FILE>)
  28. {
  29. if ($sor =~ /^\[testing\]: (.*)$/)
  30. {
  31. print "$1\n";
  32. }
  33. }
  34. %#--------------------------------------------------------------------------------------------------------------
  35. %postrun-command: perl ./postrun.pl
  36. %#--------------------------------------------------------------------------------------------------------------
  37. %contains: postrun-command(1).out
  38. cli_tcp: INIT --> SYN_SENT (on OPEN_ACTIVE)
  39. srv_tcp: INIT --> LISTEN (on OPEN_PASSIVE)
  40. [0.001 A001] A.1000 > B.2000: S 0:0(0) win 16384
  41. srv_tcp: LISTEN --> SYN_RCVD (on RCV_SYN)
  42. [0.003 B001] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384 # deleting
  43. [3.001 A002] A.1000 > B.2000: S 0:0(0) win 16384
  44. [3.003 B002] A.1000 < B.2000: A S 500:500(0) ack 1 win 16384
  45. [3.003 B003] A.1000 < B.2000: A ack 1 win 16384
  46. cli_tcp: SYN_SENT --> ESTABLISHED (on RCV_SYN_ACK)
  47. [3.005 A003] A.1000 > B.2000: A ack 501 win 16384
  48. srv_tcp: SYN_RCVD --> ESTABLISHED (on RCV_ACK)
  49. %#--------------------------------------------------------------------------------------------------------------
  50. %contains: stdout
  51. [3.006] tcpdump finished, A:3 B:3 segments
  52. %#--------------------------------------------------------------------------------------------------------------
  53. %not-contains: stdout
  54. undisposed object:
  55. %#--------------------------------------------------------------------------------------------------------------
  56. %not-contains: stdout
  57. -- check module destructor
  58. %#--------------------------------------------------------------------------------------------------------------