Windows 7 / Networking

Testing QoS

You can use the QoS Traffic Generator to test your QoS implementation by generating different types of traffic, at varying rates, with specific characteristics. The following example demonstrates using the QoS Traffic Generator to send UDP traffic to the IP address 10.12.1.1 at a rate of 5 Mbps for 5 seconds.

First, start the QoS Traffic Generator in sink mode on the destination computer.

qostraffic -sink -udp

Then, send traffic using the QoS Traffic Generator from the source computer to the destination computer.

qostraffic -source -udp -dest 10.12.1.1 -throttle 5000000 -duration 5
Parsing command line...
WSAStartup successful.
Time between each packet (microsec): 2400
Size of each packet: 1472
Statistics sampling interval (msec): 1000
Sending traffic at 5.00 Mbps to 192.168.1.100:9999
Date, Time, Packets received, Bytes received (headers included), Elapsed time (msec),
Throughput (Kbps), Bottleneck BW, Available BW, RTT, BBSet, ABSet, RTTSet, ErrorCode
05/15/2009, 10:51:54, 421, 631500, 1014, 4982.249,,,,,,,
05/15/2009, 10:51:55, 422, 633000, 1014, 4994.083,,,,,,,
05/15/2009, 10:51:56, 423, 634500, 1014, 5005.917,,,,,,,
05/15/2009, 10:51:57, 422, 633000, 1014, 4994.083,,,,,,,
05/15/2009, 10:51:58, 423, 634500, 1014, 5005.917,,,,,,,
05/15/2009, 10:51:59, 422, 633000, 1014, 4994.083,,,,,,,
05/15/2009, 10:52:00, 423, 634500, 1014, 5005.917,,,,,,,
05/15/2009, 10:52:01, 422, 633000, 1014, 4994.083,,,,,,,
05/15/2009, 10:52:02, 423, 634500, 1014, 5005.917,,,,,,,
Time has elapsed, or CTRL+C has been pressed.
Stopping Source traffic, waiting 5 sec.
SenderThread is exiting...
SenderThread exited successfully.
WSACleanup successful.

The sink computer will display confirmation of the datagrams received.

For detailed usage information, run the following command from a command prompt.

qostraffic -?

To download the QoS Traffic Generator, visit http://connect.microsoft.com/wndp and then click the Downloads link. The QoS Traffic Generator includes libraries and source code, allowing developers to integrate the capabilities into custom applications.

[Previous] [Contents] [Next]

In this tutorial:

  1. Configuring Windows Networking
  2. Usability Improvements
  3. Network And Sharing Center
  4. Network Explorer
  5. How Windows Finds Network Resources
  6. How Windows Publishes Network Resources
  7. How Windows Creates the Network Map
  8. Network Map
  9. Set Up A Connection Or Network Wizard
  10. Manageability Improvements
  11. Network Location Types
  12. Policy-Based QoS
  13. Selecting DSCP Values
  14. Planning Traffic Throttling
  15. Configuring QoS Policies
  16. Configuring System-Wide QoS Settings
  17. Configuring Advanced QoS Settings
  18. Testing QoS
  19. Windows Firewall and IPsec
  20. Windows Connect Now in Windows 7
  21. Core Networking Improvements
  22. Networking BranchCache
  23. How Hosted Cache Works
  24. How Distributed Cache Works
  25. Configuring BranchCache
  26. BranchCache Protocols
  27. File Sharing Using SMB
  28. Web Browsing with HTTP (Including HTTPS)
  29. DNSsec
  30. GreenIT
  31. Efficient Networking
  32. What Causes Latency, How to Measure It, and How to Control It
  33. TCP Receive Window Scaling
  34. Scalable Networking
  35. Improved Reliability
  36. IPv6 Support
  37. 802.1X Network Authentication
  38. Server Message Block (SMB) 2.0
  39. Strong Host Model
  40. Wireless Networking
  41. Improved APIs
  42. Network Awareness
  43. Improved Peer Networking
  44. Services Used by Peer-to-Peer Networking
  45. Managing Peer-to-Peer Networking
  46. Peer-to-Peer Name Resolution
  47. EAP Host Architecture
  48. Layered Service Provider (LSP)
  49. Windows Sockets Direct Path for System Area Networks
  50. How to Configure Wireless Settings
  51. Configuring Wireless Settings Manually
  52. Using Group Policy to Configure Wireless Settings
  53. How to Configure TCP/IP
  54. DHCP
  55. Configuring IP Addresses Manually
  56. Command Line and Scripts
  57. How to Connect to AD DS Domains
  58. How to Connect to a Domain When 802.1X Authentication Is Not Enabled
  59. How to Connect to a Domain When 802.1X Authentication Is Enabled