IPv4_refragmentation.test 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. %description:
  2. Tests that a large datagram gets fragmented and reassembled at the destination.
  3. NClientsEth example network is used, with one client.
  4. The client sends an 5000 bytes in an UDP datagram to the server.
  5. It is checked that the server receives the datagram.
  6. %#--------------------------------------------------------------------------------------------------------------
  7. %inifile: {}.ini
  8. [General]
  9. ned-path = ../../../../examples;../../../../src
  10. network = inet.examples.inet.nclients.NClients
  11. sim-time-limit=15s
  12. cmdenv-express-mode=false
  13. #omnetpp 5.0 - 5.1 compatibility:
  14. eventlog-file = "${resultdir}/${configname}-${runnumber}.elog"
  15. output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca"
  16. output-vector-file = "${resultdir}/${configname}-${runnumber}.vec"
  17. snapshot-file = "${resultdir}/${configname}-${runnumber}.sna"
  18. # number of client computers
  19. *.n = 1
  20. # udp apps
  21. **.cli[*].numUdpApps = 1
  22. **.cli[*].udpApp[*].typename = "UDPBasicApp"
  23. **.cli[*].udpApp[0].destAddresses = "srv"
  24. **.cli[*].udpApp[0].destPort = 1000
  25. **.cli[*].udpApp[0].messageLength = 5000B
  26. **.cli[*].udpApp[0].startTime = 10s
  27. **.cli[*].udpApp[0].stopTime = 11s
  28. **.cli[*].udpApp[0].sendInterval = 10s
  29. **.srv.numUdpApps = 1
  30. **.srv.udpApp[*].typename = "UDPSink"
  31. **.srv.udpApp[0].localPort = 1000
  32. # mtu
  33. *.r2.ppp[*].ppp.mtu = 1205B
  34. *.r*.ppp[*].ppp.mtu = 2205B
  35. %#--------------------------------------------------------------------------------------------------------------
  36. %subst: /omnetpp:://
  37. %#--------------------------------------------------------------------------------------------------------------
  38. %contains: stdout
  39. This fragment completes the datagram.
  40. %#--------------------------------------------------------------------------------------------------------------
  41. %contains: stdout
  42. Received packet: (inet::ApplicationPacket)UDPBasicAppData-0 (5000 bytes)
  43. %#--------------------------------------------------------------------------------------------------------------
  44. %not-contains: stdout
  45. undisposed object:
  46. %not-contains: stdout
  47. -- check module destructor
  48. %#--------------------------------------------------------------------------------------------------------------