tcp_syn_2.test.off 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. %description:
  2. Test connection setup: simultaneous active open by A and B
  3. A,B: INIT --> SYN_SENT --> SYN_RCVD --> ESTABLISHED
  4. Have them send 100-100 bytes to check seq numbers are correct.
  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-format=""
  20. *.tcptester.cmdenv-ev-output=true
  21. **.cmdenv-ev-output=false
  22. *.cli_app.active=true
  23. *.srv_app.active=true
  24. *.cli_app.tOpen=0s
  25. *.srv_app.tOpen=0s
  26. *.cli_app.tSend=1s
  27. *.cli_app.sendBytes=100B
  28. *.srv_app.tSend=1s
  29. *.srv_app.sendBytes=100B
  30. include ../../lib/defaults.ini
  31. %contains: stdout
  32. [testing] DEBUG: cli_tcp: INIT --> SYN_SENT (on OPEN_ACTIVE)
  33. [testing] DEBUG: srv_tcp: INIT --> SYN_SENT (on OPEN_ACTIVE)
  34. [0.001 A001] A.1000 > B.2000: A S 0:0(0) win 16384
  35. [0.001 B001] A.1000 < B.2000: A S 0:0(0) win 16384
  36. [testing] DEBUG: srv_tcp: SYN_SENT --> SYN_RCVD (on RCV_SYN)
  37. [testing] DEBUG: cli_tcp: SYN_SENT --> SYN_RCVD (on RCV_SYN)
  38. [0.003 B002] A.1000 < B.2000: A S 0:0(0) ack 1 win 16384
  39. [0.003 A002] A.1000 > B.2000: A S 0:0(0) ack 1 win 16384
  40. [0.005 A003] A.1000 > B.2000: A ack 1 win 16384
  41. [0.005 B003] A.1000 < B.2000: A ack 1 win 16384
  42. [testing] DEBUG: srv_tcp: SYN_RCVD --> ESTABLISHED (on RCV_ACK)
  43. [testing] DEBUG: cli_tcp: SYN_RCVD --> ESTABLISHED (on RCV_ACK)
  44. [1.001 A004] A.1000 > B.2000: A 1:101(100) ack 1 win 16384
  45. [1.001 B004] A.1000 < B.2000: A 1:101(100) ack 1 win 16384
  46. %contains: stdout
  47. [1.204] tcpdump finished, A:5 B:5 segments
  48. %#--------------------------------------------------------------------------------------------------------------
  49. %not-contains: stdout
  50. undisposed object:
  51. %not-contains: stdout
  52. -- check module destructor
  53. %#--------------------------------------------------------------------------------------------------------------