UDP_tos_ipv6.test 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. %description:
  2. Tests that the TypeOfService UDP socket option takes effect over IPv6.
  3. NClientsEth example network is used, with one client.
  4. The client sends a packet with a given ToS.
  5. It is checked that the server receives the datagram with the correct ToS value.
  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 = 64B
  26. **.cli[*].udpApp[0].typeOfService = 53 # some abritrary value
  27. **.cli[*].udpApp[0].startTime = 10s
  28. **.cli[*].udpApp[0].stopTime = 11s
  29. **.cli[*].udpApp[0].sendInterval = 10s
  30. **.srv.numUdpApps = 1
  31. **.srv.udpApp[*].typename = "UDPSink"
  32. **.srv.udpApp[0].localPort = 1000
  33. %#--------------------------------------------------------------------------------------------------------------
  34. %subst: /omnetpp:://
  35. %#--------------------------------------------------------------------------------------------------------------
  36. %contains-regex: stdout
  37. Received packet: \(inet::ApplicationPacket\)UDPBasicAppData-0 .* ToS=53
  38. %#--------------------------------------------------------------------------------------------------------------
  39. %not-contains: stdout
  40. undisposed object:
  41. %not-contains: stdout
  42. -- check module destructor
  43. %#--------------------------------------------------------------------------------------------------------------