tcp_slowstart_1.test 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. %description:
  2. Test slow-start algorithm: every acked segment increases window by 1 segment,
  3. that is, cwnd=1,2,4,8,...
  4. %inifile: {}.ini
  5. [General]
  6. #preload-ned-files = *.ned ../../*.ned @../../../../nedfiles.lst
  7. ned-path = .;../../../../src;../../lib
  8. #omnetpp 5.0 - 5.1 compatibility:
  9. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  10. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  11. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  12. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  13. #[Cmdenv]
  14. cmdenv-event-banners=false
  15. cmdenv-express-mode=false
  16. #[Parameters]
  17. *.testing=true
  18. ####cmdenv-log-prefix="%c %C@"
  19. *.cli_app.tSend=1s
  20. *.cli_app.sendBytes=16384B # sixteen 1024-byte segments
  21. include ../../lib/defaults.ini
  22. %#--------------------------------------------------------------------------------------------------------------
  23. %file: postrun.pl
  24. open FILE, '<test.out';
  25. while($sor = <FILE>)
  26. {
  27. if ($sor =~ /(^\[\d)/)
  28. {
  29. print $sor;
  30. }
  31. }
  32. %#--------------------------------------------------------------------------------------------------------------
  33. %postrun-command: perl ./postrun.pl
  34. %#--------------------------------------------------------------------------------------------------------------
  35. %contains: postrun-command(1).out
  36. [1.001 A003] A.1000 > B.2000: A 1:1025(1024) ack 501 win 16384
  37. [1.203 B002] A.1000 < B.2000: A ack 1025 win 16384
  38. [1.205 A004] A.1000 > B.2000: A 1025:2049(1024) ack 501 win 16384
  39. [1.205 A005] A.1000 > B.2000: A 2049:3073(1024) ack 501 win 16384
  40. [1.207 B003] A.1000 < B.2000: A ack 3073 win 16384
  41. [1.209 A006] A.1000 > B.2000: A 3073:4097(1024) ack 501 win 16384
  42. [1.209 A007] A.1000 > B.2000: A 4097:5121(1024) ack 501 win 16384
  43. [1.209 A008] A.1000 > B.2000: A 5121:6145(1024) ack 501 win 16384
  44. [1.211 B004] A.1000 < B.2000: A ack 5121 win 16384
  45. [1.213 A009] A.1000 > B.2000: A 6145:7169(1024) ack 501 win 16384
  46. [1.213 A010] A.1000 > B.2000: A 7169:8193(1024) ack 501 win 16384
  47. [1.213 A011] A.1000 > B.2000: A 8193:9217(1024) ack 501 win 16384
  48. [1.215 B005] A.1000 < B.2000: A ack 7169 win 16384
  49. [1.215 B006] A.1000 < B.2000: A ack 9217 win 16384
  50. [1.217 A012] A.1000 > B.2000: A 9217:10241(1024) ack 501 win 16384
  51. [1.217 A013] A.1000 > B.2000: A 10241:11265(1024) ack 501 win 16384
  52. [1.217 A014] A.1000 > B.2000: A 11265:12289(1024) ack 501 win 16384
  53. [1.217 A015] A.1000 > B.2000: A 12289:13313(1024) ack 501 win 16384
  54. [1.217 A016] A.1000 > B.2000: A 13313:14337(1024) ack 501 win 16384
  55. [1.217 A017] A.1000 > B.2000: A 14337:15361(1024) ack 501 win 16384
  56. [1.219 B007] A.1000 < B.2000: A ack 11265 win 16384
  57. [1.219 B008] A.1000 < B.2000: A ack 13313 win 16384
  58. [1.219 B009] A.1000 < B.2000: A ack 15361 win 16384
  59. [1.221 A018] A.1000 > B.2000: A 15361:16385(1024) ack 501 win 16384
  60. [1.423 B010] A.1000 < B.2000: A ack 16385 win 16384
  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 1 connections open.
  66. TcpTestNet1.srv_tcp: finishing with 1 connections open.
  67. TcpTestNet1.srv_app: received 16384 bytes in 16 packets
  68. [1.424] tcpdump finished, A:18 B:10 segments
  69. End.
  70. %#--------------------------------------------------------------------------------------------------------------
  71. %not-contains: stdout
  72. undisposed object:
  73. %#--------------------------------------------------------------------------------------------------------------
  74. %not-contains: stdout
  75. -- check module destructor
  76. %#--------------------------------------------------------------------------------------------------------------