Router – How to test QoS function in router

firewallNetworkqosrouter

Assumer I have a new router device of Cisco with 2 ports ethernet 10/100/1000. As everybody know that QoS based on DSCP field in IPv4 header to have difference policy for difference class. I start configuring this router. Example, with traffic in best-effort mode (DSCP = 0), the speed should be 15Mbps, with traffic in AF32 class (DSCP=28), the speed should be 35Mbps and with traffic in EF class (DSCP=46), the speed should be 50Mbps.

The question is:
1. How can test/measure exactly a speed that I configured?
2. How about for another specification like: latency, jiter?

Thank you!

Best Answer

You can attach cisco switch with two PCs behind the router. Dot1q trunking can be used with 1 vlan per PC for traffic generation and second one for SLA probes. The router must be used for inter-vlan routing, traffic shaping also should be configured here. IPERF/JPERF can be used for traffic generation.

On both switch ports you can mark the traffic with specific DSCP value, which needs to be used later in the policy.

Speed can be easily measured with IPERF:

  • UDP: you can send specific amount of traffic e.g 10mbit/s, and measure the packet loss.

  • TCP: Just start server/client and you will get the best possible value achieved by the TCP protocol.

Latency can be extracted from iperf test, but I'd recommend adding SLA probes via some external software like this one