IPv6_fragmentation.test 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.ipv6.nclients.NClientsEth
  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 = "aaaa:2:2::8aa:ff:fe00:8" # "srv" does not work
  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. # Ethernet NIC configuration
  33. **.eth[*].queueType = "DropTailQueue" # in routers
  34. **.eth[*].queue.dataQueue.frameCapacity = 10 # in routers
  35. **.eth[*].mac.duplexEnabled = true
  36. %#--------------------------------------------------------------------------------------------------------------
  37. %subst: /omnetpp:://
  38. %#--------------------------------------------------------------------------------------------------------------
  39. %contains: stdout
  40. This fragment completes the datagram.
  41. %#--------------------------------------------------------------------------------------------------------------
  42. %contains: stdout
  43. Received packet: (inet::ApplicationPacket)UDPBasicAppData-0 (5000 bytes)
  44. %#--------------------------------------------------------------------------------------------------------------
  45. %not-contains: stdout
  46. undisposed object:
  47. %#--------------------------------------------------------------------------------------------------------------
  48. %not-contains: stdout
  49. -- check module destructor
  50. %#--------------------------------------------------------------------------------------------------------------