Spirent Test Methodology QoS Testing
Test Methodology Journal
Definitive Guide to
Quality of Service (QoS)Testing
April 2008
Inspired Innovation
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
1
Table of Contents
Introduction 2
Layer 2 CoS Verification Testing 4
Layer 3 QoS Verification Testing 128
Layer 3 QoS Control Plane Verification 269
Glossary 428
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
2
Introduction
Quality of Service, or QoS, testing is the set of processes and test cases to verify that services are given the
correct amount of resources at the network forwarding and transport layer. QoS allows the user to configure
differentiated services either as a global policy or as an SLA service level.
Thus, Quality of Service is the ability to control the characteristics of ongoing communication
services. Service providers use these control values to offer improved and possibly contract levels of
service. QoS is an end-to-end responsibility that involves clients, switches, routers and servers.
The manner in which remarked packets are presented to the user allows or breaks a device’s ability to
forward traffic according to a policy. For example, steady state traffic may forward correctly, but bursts of
traffic such as a flood of VoIP or video traffic may break the QoS policy. Testing with real-word traffic
patterns becomes critical because it is possible to spend valuable time configuring a test that lacks real-
world application.
Spirent TestCenter™ is the best platform for testing L3 and L4 QoS. TestCenter generates differentiated and
marked traffic, and also mixes VBR (Variable Bit Rate traffic such as MPEG-2/4 or SIP) and CBR (Constant
Bit Rate, or Steady State such as data) traffic out the same port at the same time.
From a QoS queue management perspective, it is much harder to forward bursts of unexpected but higher
priority traffic compared with classic, repetitive traffic. This traffic differs from other testers by forcing more
CPU look-ups as the Device Under Test (DUT) would experience in a production network.
The user will be able to correctly emulate real-world conditions by properly constructing correct,
differentiated traffic such as:
Figure 1 – Proper QoS Per Port Pattern – Unique to Spirent TestCenter
Also, QoS Testing requires loading and deep, single-pass inspection of performance. QoS in the real world
is never an analysis of a single metric but a mix of simultaneous matrices. The first step in testing is to
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
3
DUT
3
2 1
λ2 λ1
True Jitter (Min) = Min {Ι(ζ1- λ1)Ι, Ι(ζ2- λ2)Ι, …,Ι(ζn- λn)Ι}
True Jitter (Avg) = Ι(ζn- λn)Ι
TX Port
RX Port
3
2 1
ζ2
ζ1
Stream1
3
2 1
λ2 λ1
Stream2 (VBR – Variable Bit Rate)
3
2 1
ζ2
ζ1
Stream2
3
2 1
λ2 λ1
Stream3 (Out of Order)
2
3 1
ζ2
ζ1
Stream3
Stream1 (CBR – Constant Bit Rate)
True Jitter (Max) = Max {Ι(ζ1- λ1)Ι, Ι(ζ2- λ2)Ι, …,Ι(ζn- λn)Ι}
N=1
Z
Where there are Z
Packets
Z
congest. With over 32K TX streams and real-time analysis of over 64K stream, measuring up to 41x
simultaneous metrics per stream, Spirent TestCenter becomes the only viable platform to test QoS.
Spirent TestCenter simultaneously congests the DUT to turn on QoS and measure all required metrics
necessary to properly assess QoS. For Example, TestCenter is the only platform that can measure true jitter.
This is critical to QoS testing because only true jitter can measure the effect of latency variation on Triple
Play traffic.
Spirent TestCenter True Jitter is defined as the following (per industry standard MEF 10.1):
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
4
Layer 2 CoS Verification Testing
Introduction 5
Validating Source Port Priority for Layer 2 Ethernet 7
Verifying L2 Ethernet QoS by MAC Address Range 26
VLAN 802.1pq Remarking Validation 44
VLAN 802.1q VLAN Remarking Validation 69
802.1q in a Mixed Tag Environment 91
Testing Committed Information Rate (CIR) by Layer 2 Ethernet Port 114
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
5
Introduction
Layer 2 CoS testing allows the user to test the DUT’s ability to edit the Cost of Service (CoS) using a variety
of mechanisms such as queuing by MAC address range, port and with IEEE 802.1QP VLAN tags. This is
differentiated from best effort or unprioritized traffic.
DA SA TAG
n
PriorityTPID CFI VLAN ID
12 bits1 Bit3 Bits16 Bits
TAG
n-1
PriorityTPID CFI VLAN ID
12 bits1 Bit3 Bits16 Bits
Payload CRC
IEEE 802.1P is an extension of the IEEE 802.1Q (VLANs tagging) standard. The two standards work in
tandem. The 802.1Q standard specifies a tag that appends to an Ethernet MAC frame. The VLAN tag has
two parts: The VLAN ID (12-bit) and Prioritization (3-bit). The prioritization field was not defined and used in
the 802.1Q VLAN standard. The 802.1P defines this prioritization field.
The 802.1P queues CoS network prioritization has the following broad recommendations:
802.1P Value Traffic Type
0 Best Effort
1 Background
2 Spare
3 Excellent Effort
4 Controlled Load
5 Video
6 Voice
7 Network Control
Class of Service (CoS) is a way of managing traffic in a network by grouping similar types of traffic (e-mail,
streaming video, voice, large document file transfer) together and treating each type as a class with its own
level of service priority. Unlike Quality of Service (QoS) traffic management, Class of Service technologies
do not guarantee a level of service in terms of bandwidth and delivery time; they offer a "best effort”.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
6
On the other hand, CoS technology is simpler to manage and more scalable as a network grows in structure
and traffic volume. Consider CoS as "coarsely grained" traffic control and QoS as "finely grained" traffic
control.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
7
Validating Source Port Priority for Layer 2 Ethernet
Associated RFCs
• IEEE 802.2
Spirent Communications Test Equipment Needed
• 5 Ethernet Ports, 10/100/1000 or 10 GigE
• Spirent TestCenter Chassis
• Miscellaneous Cables
Objective
The objective of this test case to determine if the Device Under Test (DUT) is properly processing traffic set
in a Layer 2 (L2) Quality of Service (QoS) policy by Source port. This test will determine, in a congested
state, whether the DUT will selectively delay and drop traffic from lower priority ports in favor of higher
priority ports. The DUT will pass this test if it can maintain the following attributes by class over the
duration of the test.
Packet Loss
( Frame Count)
Sequence Errors
( Frame Count)
Max Latency
(milliseconds)
Network Control 0 0 7 ms
Real-Time 1000 10 10 ms
Best Effort Any Any Any
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
8
Best Effort
QoS High
QoS Medium
DUT
Network Control
Real-Time
Best Effort
Best Effort
QoS High
QoS Medium
Oversubscribed
Port
Oversubscribed
Port
Source Generation Domain QoS Impairment
Domain
QoS Analysis Domain
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
9
Step-by-Step
1. Configure DUT
Login to your DUT. Place all five ports in the same Virtual Local Area Network (VLAN). Turn off all
protocols except L2 forwarding and L2 QoS shaping. Configure Port 1 on the DUT as highest
Possible Priority, Configure Port 2 as Second Highest, and Configure Port 3 as Best Effort.
Configure ports four and five with no shaping in or outbound.
2. Cable DUT to Spirent TestCenter
Plug all five ports sequentially into five sequential Spirent TestCenter ports.
3. Reserve Ports on Spirent TestCenter
Launch the Spirent TestCenter GUI and reserve the required ports.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
10
4. Rename Your Spirent TestCenter Ports
In your test tree, click on All Ports. For each port, uncheck Append Location to Port Name. Starting
at the top port, click on the Port Name Cell and rename the port to Network Control. Proceed down
the list and name the ports Real-Time Control, Best Effort, Over Subscribed Port 1 and Over
Subscribed Port 2.
5. Create Host Blocks
Right-click on the All Ports Æ All Hosts. Click on Add Multiple Hosts.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
11
6. Host Block Port Selection
Select all the ports and press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
12
7. Select Protocols
The defaults are okay, press Next to continue.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
13
8. Select Encapsulation
Set the Upper Layer protocol to None and hit Next to continue.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
14
9. Configure Hosts
Under Hosts per port, type “20,000”. Also, check Launch Traffic Wizard after generating Hosts and
then press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
15
10. Setup Traffic
In the following step, each of the three transmitting ports will transmit 50% load to each of the two
oversubscribed ports. In the Traffic Wizard, select all ports and hit Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
16
11. Endpoint Configuration
Under Distribution, check backbone. Make sure Encapsulation is EthernetII. For the Source ports,
select Network Control, Real-Time Control and Best Effort. Under Destination, select Over
Subscribed Port 1 and Over Subscribed Port 2. Uncheck “Stream only generation”. Press Finish.
12. Set TX Port Rates
Under All Ports Æ All Traffic Generators, find the Load column and set the first three ports to
100%.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
17
13. Set QoS Policies
Under Tools, select Service Class Builder.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
18
14. Configuring Service Classes
Check the “+ Service Class” button three times. Name the top cell “Network Control”. Name the
second cell “Real Time” and the third cell “Best Effort”. Change Results View Mode to “Histogram”
and click on “+ Parameter” and Add Frame Loss, Out of Sequence and Max Latency.
Set the Following Values:
Frame Loss Out of Sequence Max Latency
Network
Control
0<=x<=0 0<=x<=0 0<=x<=7
Real-Time 0<=x<=1000 0<=x<=10 0<=x<=7
Best Effort 0<=x<=1844674407470955199 0<=x<=1844674407470955199 0<=x<=37580963
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
19
15. Mapping Class
Press the mapping Tab. Under Traffic Group, click the Click Here hyperlink.
16. Configuring Traffic Groups
Under Traffic group, type Service Class and select Add. Under Traffic Subgroup, add Network
Control, Real-Time and Best Effort. Press OK once completed.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
20
17. Setting Traffic Groups
Under Traffic Group, select Network Control and under Service Class also select Network Control.
Press Add. Repeat for the remaining two groups. Finally, press OK to continue with the test
configuration.
18. Bind QoS Profiles to Traffic
Under All Ports Æ All Stream Blocks, under name, rename the first Stream Block to Network
Control and rename remaining Stream Blocks accordingly.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
21
19. Setting Traffic Groups.
Scroll to the right till the Traffic Group column is visible. Select the “…” button which appears
when selected.
20. Subgroup Selection
Use the Subgroup drop down menu and select the corresponding Subgroup. Press OK once
completed. Repeat steps 19 and 20 for Real-Time Control and Best Effort.
21. Add Automation across Frame Sizes
In the toolbar, select the Wizards button. Under Configuration Wizards Æ Sequence Generator, run
the Custom Test. Select Next to continue with the configuration.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
22
22. Configuration of Test
Click the Enable Preview checkbox. Under Test Type, pick Step. Set the duration to 360 seconds.
Under load, select Custom and type in 100. Under Frame size, check step with a Start of 64, Stop
at 1518, and a Step of 64. Press Next once the configuration is completed.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
23
23. Optional Configuration
Under Optional Commands, check L2 Learning and Check “Before each iteration”. Check “Save
detailed stream results with every iteration”. Press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
24
24. Run Test
In the Command Sequencer, choose the Run button.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
25
25. Results Report
At the end of each first iteration, the Results Reporter will launch and populate results. After each
iteration, the new results will also be populated.
Analysis
26. Determining Pass or Fail
For each Frame Size Iteration in the Results Reporter, select the “ServiceClassValidation”
template. Next, click the Test Summary tab. Here you will see if each service class level passed or
not. Repeat for each frame size. When finished, it is possible to export the report to PDF or HTML.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
26
Best Effort
QoS High
QoS Medium
DUT
Network Control
Real-Time
Best Effort
Best Effort
QoS High
QoS Medium
Oversubscribed
Port
Oversubscribed
Port
Source Generation Domain QoS Impairment
Domain
QoS Analysis Domain
Verifying L2 Ethernet QoS by MAC Address Range
Associated RFCs
• IEEE 802.2
Spirent Communications Test Equipment Needed
• 5 Ethernet Ports, 10/100/1000 or 10 GigE
• Spirent TestCenter Chassis
• Miscellaneous Cables
Objective
The objective of this test case is to inject ranges of MAC Address to a congested port and verify Quality of
Service (QoS) by Range of MAC addresses. We will set up three levels of MAC address pools and use the
following QoS Table:
Packet Loss
( Frame Count)
Sequence Errors
( Frame Count)
Max Latency
( milliseconds)
Network Control 0 0 7 ms
Real-Time 1000 10 10 ms
Best Effort Any Any Any
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
27
Step-by-Step
1. Configure Device Under Test (DUT)
Log in to your DUT. Set up three MAC address QoS pools.
Network Control :00:10:94:00:00:01 + 200K Addresses
Real Time Control: 00;10:94:03:0D:41 + 200K Addresses
Best Effort: 00:10:94:06:1A:81+ 200K Addresses
2. Cable DUT to Spirent TestCenter
Plug all five ports sequentially into five sequential Spirent TestCenter ports.
3. Reserve Ports on Spirent TestCenter
Launch the Spirent TestCenter GUI and reserve the required ports.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
28
4. Rename Your Spirent TestCenter Ports
In your test tree, Click on All Ports. For each port, uncheck Append Location to Port Name. Starting
at the top port, click on the Port Name Cell and rename the port to Network Control. Proceed down
the list and name the ports Real-Time Control, Best Effort, Over Subscribed Port 1 and Over
Subscribed Port 2.
5. Create Host Blocks
Right-Click on the All Ports Æ All Hosts. Click on Add Multiple Hosts.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
29
6. Host Block Port Selection
Select all the ports and then press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
30
7. Select Protocols
The defaults are okay, press Next to continue.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
31
8. Select Encapsulation
Set the Upper Layer protocol to None and select Next to continue.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
32
9. Configure Hosts
Under Hosts per port, type “20,000”. Also, check Launch Traffic Wizard after generating Hosts and
then press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
33
10. Set Up Traffic
In following step, each of the three transmitting ports will transmit 50% load to each of the two
oversubscribed ports. In the Traffic Wizard, select all ports and press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
34
11. Endpoint Configuration
Under Distribution, check backbone. Make sure Encapsulation is EthernetII. For the Source ports
select Network Control, Real-Time Control and Best Effort. Under Destination select Over
Subscribed Port 1 and Over Subscribed Port 2. Uncheck “Stream only generation”. Press Finish.
12. Set TX Port Rates
Under All Ports Æ All Traffic Generators find the Load column and set the first three ports to 100%
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
35
13. Set QoS Policies
Under Tools, select Service Class Builder.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
36
14. Configuring Service Classes
Check the “+ Service Class” button three times. Name the top cell Network Control. Name the
second cell Real Time and the third cell Best Effort. Change Results View Mode to Histogram and
click on “+ Parameter” and Add Frame Loss, Out of Sequence and Max Latency.
Set the following values:
Frame Loss Out of Sequence Max Latency
Network
Control
0<=x<=0 0<=x<=0 0<=x<=7
Real-Time 0<=x<=1000 0<=x<=10 0<=x<=7
Best Effort 0<=x<=1844674407470955199 0<=x<=1844674407470955199 0<=x<=37580963
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
37
15. Mapping Class
Choose the mapping tab, and Under Traffic Group click the Click Here hyperlink.
16. Configuring Traffic Groups
Under Traffic Group, type Service Class and click Add. Under Traffic Subgroup, add Network
Control, Real-Time, and Best Effort. Press OK once completed.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
38
17. Setting Traffic Groups
Under Traffic Group, select Network Control and under Service Class also select Network Control.
Press Add. Repeat for the remaining two Groups. Finally, press OK to continue with the test
configuration.
18. Bind QoS Profiles to Traffic
Under All Ports Æ All Stream Blocks, under name, rename the first Stream Block to Network
Control and rename remaining Stream Blocks accordingly.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
39
19. Setting Traffic Groups
Scroll to the right till the Traffic Group column is visible. Select the “…” button which appears
when selected.
20. Subgroup Selection
Use the Subgroup drop down menu and select the corresponding Subgroup. Press OK once
completed. Repeat steps 19 and 20 for Real-Time Control and Best Effort.
21. Add Automation across Frame Sizes
In the toolbar, select the Wizards button. Under Configuration Wizards Æ Sequence Generator, run
the Custom Test. Select Next to continue with the configuration.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
40
22. Configuration of Test
Click the Enable Preview checkbox. Under Test Type, pick Step. Set the duration to 360 seconds.
Under load, click Custom and type in 100. Under Frame size, check step with a Start of 64, Stop at
1518 and a Step of 64. Press Next once the configuration is completed.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
41
23. Optional Configuration
Under Optional Commands, check L2 Learning and check “Before Each Iteration”. Check “Save
detailed stream results with every iteration”. Press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
42
24. Run Test
In the Command Sequencer, press the Run button.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
43
25. Results Report
At the end of each first iteration, the Results Reporter will launch and populate results. After each
iteration, the new results will also be populated.
Analysis
26. Determining Pass or Fail
For each Frame Size Iteration in the Results Reporter, select the ServiceClassValidation template.
Next, click the Test Summary tab. Here you will see if each service class level passed or not.
Repeat for each frame size. When finished, it is possible to export the report to PDF or HTML.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
44
DUT
VLAN
Source
Congesting VLAN
Source
Best Effort
QoS High
QoS Medium
Oversubscribed
Port
Source Generation Domain QoS Impairment
Domain
QoS Analysis Domain
VLAN 802.1pq VLAN Remarking Validation
Associated RFCs
• IEEE 802.2
• IEEE 802.1p
• IEEE 802.1q
Spirent Communications Test Equipment Needed
• 3 Ethernet Ports, 10/100/1000 or 10 GigE
• Spirent TestCenter Chassis
• Miscellaneous Cables
Objective
The objective of this test case is to validate that the Device Under Test (DUT) does not remark 802.1p or
802.1q bits under congestion. The expected behavior of this test is that sweeping across different frame
sizes will not result in the DUT remarking Virtual Local Area Network (VLAN) data.
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
45
Step-by-Step
1. Configure DUT
On each port, configure VLAN VIDs from 2-4095, creating 4094 VLANs. Set up port trunking on
each port to perform VLAN to VLAN forwarding.
2. Cable DUT to Spirent TestCenter
Plug all three ports sequentially into three sequential Spirent TestCenter ports.
3. Reserve Ports on Spirent TestCenter
Launch Spirent TestCenter and reserve the required ports to perform the test.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
46
4. Rename Your Spirent TestCenter Ports
In your test tree select All Ports. For each port, uncheck Append Location to Port Name. Starting at
the top port, click on the Port Name Cell and rename the port to VLAN Primary. Proceed down the
list and name the ports VLAN Congestor, Measure Port.
5. Setup Traffic
In this step, the Primary VLAN port will send line rate traffic to the Measure Port and the VLAN
Congestor port will send 50% load across all VLANs. Each generating ports VLAN will send all 7
priority levels per VLAN. Select VLAN Primary Æ Traffic Generator.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
47
6. Adding a Raw Stream Block
Use the Add drop down menu and select Add a Raw Stream Block.
7. Naming the Stream Block
Name the Stream Block Primary VLAN, and click on the Frame tab.
8. Configuring the Frame
Right-click on the IPv4 Header and select Delete IPv4 Header.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
48
9. Destination MAC Modifier
Click on the Destination MAC Header and under Actions, click on Insert MAC Modifier.
10. Incrementing Destination MAC Addresses
Increment the Destination MAC with a count of 4094. Hit OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
49
11. Source MAC Modifier
Click on Source MAC, and under actions, click on Inset MAC Modifier.
12. Increment the MAC Source
Increment the MAC Source by 4093. Press OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
50
13. Inserting VLANs
Select the Ethernet II header, and under actions select Insert Vlans.
14. Configuring VLAN ID
Under the VLAN Header, set the ID to 2 and insert a Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
51
15. VID Modifier
Increment the VID by 4093. Select OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
52
16. Priority Modifier
Under VLAN Header click on the Priority bits. Insert a Modifier under Actions.
17. Priority Modifier Configuration
Increment the priority by 7 and press OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
53
18. Link Modifiers/VFDs
Under Actions, Select Link Modifiers/VFDs.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
54
19. Link Modifiers/VFDs Configuration
For each VID change the Source, Destination and Priority Fields using the drop down menus. Press
OK once configuration is completed.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
55
20. Stream Block Editor Finalization
No further changes need to be made to the frame. Press OK to return to the main window.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
56
21. Duplicating the Stream Block
Right-click on the Stream Block and select Copy.
22. Pasting Stream Block
Expand the VLAN Congestor port, select Traffic Generator, right-click in the grid and select “Paste
StreamBlock”. Change the name of the pasted StreamBlock to “Congestor VLAN”.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
57
23. Edit Frame
Select the Stream Block and hit Edit. Select the Frame tab and change the Source MAC address to
00:10:95:00:00:02. Press OK once completed.
24. Redo the Modifiers
For each Stream Block that was pasted, edit the Stream Block and redo each one of the modifiers
that was previously done.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
58
25. Measure Port Stream Block
Repeat the previous two steps with the Measure Port. Though, for this Stream Block, change the
Source MAC Address to 00:00:01:00:00:01.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
59
26. Port Rates
Select All Traffic Generators and change the Load value to 100 on VLAN Primary and 50 on VLAN
Congestor.
27. Add Automation across Frame Sizes
In the toolbar, select the Wizards button. Under Configuration Wizards Æ Sequence Generator, run
the Custom Test. Select Next to continue with the configuration.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
60
28. Configuration of Test
Click the Enable Preview checkbox. Under Test Type, pick Step. Set the duration to 360 seconds.
Under load, click Custom and type in 100. Under Frame size, check Step with a Start of 64, Stop at
1518 and a Step of 64. Press Next once the configuration is completed.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
61
29. Optional Configuration
Under Optional Commands, check L2 Learning and check “Before each iteration”. Check “Save
detailed stream results with every iteration”. Press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
62
30. Command Sequencer Edit
The Command Sequencer needs to quickly be edited and have another step added in. Select the
Edit Sequence button.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
63
31. Inserting the Commands
Insert a Wait Command as the very last entry in the Loop.
32. Grouping the Wait Command
Right-click on the Wait Command and select the Group Commands.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
64
33. Edit the Wait/Loop Command
Double-click on the Loop before the Wait and set the Looping Options to Continuous. Double-click
on the Wait and set the Time to 1 second.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
65
34. Setting up Template Filters
On the Measuring Port, expand the port branch and click on Traffic Analyzer.
35. Configuring Traffic Analyzer Frame
Right-click on the IPv4 header in the template, and delete the IPv4 Header.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
66
36. Adding VLANs to Traffic Analyzer Frame
Right-click on the EthernetII header and add a VLAN Header. Check the VLAN Priority and Priority
fields.
37. Results Browser View
In the Results Browser, change the view to Stream Results Æ Filtered Stream Results. Change the
Show: pull down to the Measure Port.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
67
38. Run Test
In the Command Sequencer, press the Run button. At the end of each frame size, the Command
sequencer will pause. To move to the next frame size, click the “Break out of Current Loop”.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
68
Analysis
39. Determining Pass or Fail
At the end of each frame size, the load of VLAN ID and priorities will be balanced by frame count.
The frame size will pass if each combination of VLAN ID and Priority are the same. The frame size
will fail if some VLAN and PRIORTY combinations have different values.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
69
DUT
VLAN
Source
Congesting VLAN
Source
Best Effort
QoS High
QoS Medium
Oversubscribed
Port
Source Generation Domain QoS Impairment
Domain
QoS Analysis Domain
VLAN 802.1q VLAN Remarking Validation
Associated RFCs
• IEEE 802.1q
Spirent Communications Test Equipment Needed
• 3 Ethernet Ports, 10/100/1000 or 10 GigE
• Spirent TestCenter™ Chassis
• Miscellaneous Cables
Objective
The objective of this test case is to validate that the Device Under Test (DUT) does not remark 802.1q under
congestion. The expected behavior of this test is that sweeping across different frame sizes will not result
in the DUT remarking VLAN data.
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
70
Step-by-Step
1. Configure DUT
On each port, configure VLAN VIDs from 2-4095 for the outer tag and 2-4095 for the inner tag,
creating 4094
2
VLANs. Set up port trunking on each port to perform VLAN to VLAN forwarding.
2. Cable DUT to Spirent TestCenter
Plug all three ports sequentially into three sequential Spirent TestCenter ports.
3. Reserve Ports on Spirent TestCenter
Launch Spirent TestCenter and reserve the required ports to perform the test.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
71
4. Rename Your Spirent TestCenter Ports
In your test tree select All Ports. For each port, uncheck Append Location to Port Name. Starting at
the top port, click on the Port Name Cell and rename the port to VLAN Primary. Proceed down the
list and name the ports VLAN Congestor, Measure Port.
5. Setup Traffic
In this step, the Primary VLAN port will send line rate traffic to the Measure Port and the Congestor
VLAN port will send 50% load across all VLANs. Each generating ports VLAN will send all 7 priority
levels per VLAN. Select VLAN Primary Æ Traffic Generator.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
72
6. Adding a Raw Stream Block
Use the Add drop down menu and select Add a Raw Stream Block.
7. Naming the Stream Block
Name the Stream Block Primary VLAN, and click on the Frame tab.
8. Configuring the Frame
Right-click on the IPv4 Header and select Delete IPv4 Header.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
73
9. Destination MAC Modifier
Click on the Destination MAC Header and Under Actions, click on Insert MAC Modifier.
10. Incrementing Destination MAC Addresses
Increment the Destination MAC with a count of 4094. Press OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
74
11. Source MAC Modifier
Click on Source MAC, and under actions click on Insert MAC Modifier.
12. Increment the MAC Source
Increment the MAC Source by 4093. Select OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
75
13. Inserting VLANs
Select the Ethernet II header and under actions select Insert Vlans.
14. Configuring VLAN ID
Under the VLAN Header, set the ID to 2 and Insert a Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
76
15. VID Modifier
Increment the VID by 4093. Choose OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
77
16. Priority Modifier
Under VLAN Header, click on the Priority bits. Insert a Modifier under Actions.
17. Second VLAN
Right-click on the VLAN Header and insert a second level of VLAN. Repeat the above steps by
incrementing the VID and the Priority fields.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
78
18. Link Modifiers/VFDs
Under Actions, Select Link Modifiers/VFDs.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
79
19. Linking the Modifiers
For the outer VLAN ID (the first created VLAN), increment the Source and Destination MAC
addresses along with both Priority fields and the inner VLAN ID. Press OK once the configuration is
completed.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
80
20. Stream Block Editor Finalization
No further changes need to be made to the frame. Press OK to return to the main window.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
81
21. Duplicating the Stream Block
Right-click on the Stream Block and select Copy.
22. Pasting Stream Block
Expand the VLAN Congestor port, select Traffic Generator, right-click in the grid and select “Paste
the StreamBlock”. Change the name of the pasted Stream Block to “Congestor VLAN”.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
82
23. Edit Frame
Select the Stream Block and click on Edit. Select the Frame tab and change the Source MAC
address to 00:10:95:00:00:02. Press OK once completed.
24. Redo Modifiers
Edit each pasted Stream Block and redo the modifiers as required for each.
25. Measure Port Stream Block
Repeat the previous two steps with the Measure Port. Though, for this Stream Block, change the
Source MAC Address to 00:00:01:00:00:01.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
83
26. Port Rates
Select All Traffic Generators and change the Load value to 100 on VLAN Primary and 50 on VLAN
Congestor.
27. Add Automation across Frame Sizes
In the toolbar, select the Wizards button. Under Configuration Wizards Æ Sequence Generator, run
the Custom Test. Select Next to continue with the configuration.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
84
28. Configuration of Test
Click the Enable Preview checkbox. Under Test Type, pick Step. Set the duration to 360 seconds.
Under load, click Custom and type in 100. Under Frame size, check step with a Start of 64, Stop at
1518 and a Step of 64. Press Next once the configuration is completed.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
85
29. Optional Configuration
Under Optional Commands, check L2 Learning and check “Before each iteration”. Enable “Save
detailed stream results with every iteration”. Press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
86
30. Command Sequencer Edit
The Command Sequencer needs to quickly be edited and have another step added in. Select the
Edit Sequence button.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
87
31. Inserting the Commands
Insert a Wait Command as the very last entry in the Loop.
32. Grouping the Wait Command
Right-click on the Wait Command and select the Group Commands.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
88
33. Edit the Wait/Loop Command
Double click on the Loop before the Wait and set the Looping Options to Continuous. Double-click
on the Wait and set the Time to 1 second.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
89
34. Adding VLANs to Traffic Analyzer Frame
Right-click on the EthernetII header and add a VLAN Header. Check the VLAN Priority and Priority
fields.
35. Results Browser View
In the Results Browser, change the view to Stream Results Æ Filtered Stream Results. Change the
Show: pull down to the Measure Port.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
90
Analysis
36. Determining Pass or Fail
At the end of each frame size, the load of VLAN ID and priorities will be balanced by frame count.
The frame size will pass if each combination of VLAN ID and Priority are the same. The frame size
will fail some VLAN and PRIORTY combinations have different values.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
91
802.1q in a Mixed Tag Environment
Associated RFCs
• IEEE 802.2
• IEEE 802.1p
• IEEE 802.1q
Spirent Communications Test Equipment Needed
• 7 Ethernet Ports, 10/100/1000
• Spirent TestCenter™ Chassis
• Miscellaneous Cables
Objective
The objective of this test is to inspect the performance of 802.1p in a mixed tag environment. This test will
mix untagged, classic tagged and Q-in-Q traffic across the Device Under Test (DUT). The expectation is that
802.1p performance will be maintained even in mixed tagged environments.
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
92
Step-by-Step
1. Configure DUT
Log in to your DUT, place the Mixed Tagged port and the Congestor port into Multiple Virtual
interfaces: untagged, VLAN 2-4095, Q-in-Q (2-4095, 2-4095). For the Mixed Tag port, place all
VLANs with a PRI value of 7. For the Congestor Port, place all PRI values to 0.
Plug all three ports sequentially into three sequential Spirent TestCenter ports.
2. Reserve Ports on Spirent TestCenter
Launch Spirent TestCenter and reserve the required ports to perform the test.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
93
3. Rename Your Spirent TestCenter Ports
In your test tree, select All Ports. For each port, uncheck Append Location to Port Name. Starting at
the top port, click on the Port Name Cell and rename the port to Mixed Tag Port. Proceed down the
list and name the ports VLAN Congestor, Measure Port.
4. Setting Up Traffic
Select Ports Æ Mixed Tag Port Æ Traffic Generator.
5. Adding Stream Block
Use the Add drop down menu and select Add Raw Stream Block.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
94
6. Frame Configuration
Remove the IPv4 Header.
7. Updating MAC Addresses
Change the Source EthernetII address to 01:00:01:00:00:01 and the destination address to
01:00:02:00:00:01. Click on the Source address and then select on Actions Æ Add MAC Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
95
8. Setting Increment
Set to increment with a value of 1000 and select OK. Perform the same action on Destination MAC.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
96
9. Main Frame Configuration Screen
Select OK once back to the “Stream Block Editor” window.
10. Naming the Stream
Change the name of the Stream to Untagged.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
97
11. Adding a Second Stream Block
Use the Add drop down menu and select “Add Raw Stream Block”.
12. Frame Configuration
Remove the IPv4 Header.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
98
13. Updating MAC Addresses
Change the Source EthernetII address to 02:00:01:00:00:01 and the destination address to
02:00:02:00:00:01. Click on the Source address and then click on Actions Æ Insert MAC Modifier.
14. Setting Modifier Increment
Set to increment with a value of 1000 and then press OK. Perform the same action on Destination
MAC.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
99
15. Adding VLANs
Right-click on the EthernetII header and add a VLAN tag.
16. Configuring VLAN ID
Under the VLAN Header, set the ID to 2 and insert a Modifier.
17. VID Modifier
Increment the VID by 4093. Press OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
100
18. VLAN Priority Field
Change the VLAN PRI field to 7.
19. Naming the Stream
Change the name of the Stream to Classic VLAN.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
101
20. Adding A Third Stream Block
Use the Add drop down menu and select “Add Raw Stream Block”.
21. Frame Configuration
Remove the IPv4 Header.
22. Updating MAC Addresses
Change the Source EthernetII address to 03:00:01:00:00:01 and the destination address to
03:00:02:00:00:01. Click on the Source address and then click on Actions Æ Insert MAC Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
102
23. Setting Modifier Increment
Set to increment with a value of 1000 and then press OK. Perform the same action on Destination
MAC.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
103
24. Adding VLANs
Right-click on the EthernetII header and add a VLAN tag.
25. Configuring VLAN ID
Under the VLAN Header, set the ID to 2 and insert a Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
104
26. VID Modifier
Increment the VID by 4093. Press OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
105
27. VLAN Priority Field
Change the VLAN PRI field to 7.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
106
28. Adding Second VLAN Header
Right-click again on the EthernetII header and add a Second VLAN Tag. Perform the same add
modifier steps to the second ID and change the PRI field to 7.
29. Renaming Stream Block
Change the name of the Stream to Q-in-Q VLAN.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
107
30. Copying Stream Blocks
Copy all three Stream Blocks by first selecting all three and then right-clicking and select “Copy
StreamBlock”.
31. Populate the Congestor Port
Use the navigation window and select Ports Æ Congestor Port Æ Traffic Generator.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
108
32. Pasting the Streams
Right-click on the grid and paste streams.
33. Editing the Stream Blocks
Edit each Stream Block and change the second byte from 00 to 01 on the Source EthernetII
Address field.
34. Naming Congestor Port Stream Blocks
For each Stream name, append the text “- Low Priority”.
35. Port Rates
Select All Traffic Generators and change the Load value for each port to 100.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
109
36. Changing Results Browser View
In the Results Browser, change a view to Stream Results Æ Detailed Stream Results. Change the
monitored port to Congested Port.
37. Add Automation across Frame Sizes
In the toolbar, select the Wizards button. Under Configuration Wizards Æ Sequence Generator, run
the Custom Test. Select Next to continue with the configuration.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
110
38. Setup Frame Size Automation
Change the Test Type to Step. Change the Duration to 120 Seconds. Under Load, click Custom and
change the field to 100. Under Frame size, choose Step enter a start value of 64 and a Stop value
of 9022. Set the Step to 64. Select Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
111
39. Optional Configuration
Under Optional Commands, check L2 Learning and “Before each iteration”. Be sure “Save detailed
stream results with every iteration” is checked. Select Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
112
40. Test Results Viewing
While viewing Stream Results Æ Detailed Stream Results, scroll to the left and find Average
Latency. If you click on Basic Sequencing, you will see frame loss, in order, out of order and
reordered.
41. Run the Test
In the Command Sequencer, click on Run. While traffic is running you will be able to see real-time
results in the Results Browser.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
113
Validation
42. At the end of the test, Results Reporter will open with your post-test results. For each frame size,
expand the results tree to Stream Results Æ Detailed Stream Results.
The frame size will pass if untagged, classic VLAN and Q-in-Q VLAN have minimal loss (<0.1%) and
minimal maximum latency (<7 ms). You will notice that stream with X-Low Priority should have
nearly 100% loss.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
114
Testing Committed Information Rate (CIR) by Layer 2 Ethernet Port
Associated RFCs
• IEEE 802.2
Spirent Communications Test Equipment Needed
• 3 Ethernet Ports, 10/100/1000
• Spirent TestCenter™ Chassis
• Miscellaneous Cables
Objective
The objective of this test is to prove that the Committed Information Rate (CIR) by a Layer 2 source port can
be maintained in congested state. The expected behavior of this test is the Device Under Test (DUT) will
properly maintain a minimum information rate without resequencing, dropping or excessively delaying
packets.
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
115
Step-by-Step
1. Configure DUT
Login to your DUT. Place all three ports in the same VLAN. Turn off all protocols except L2
forwarding and L2 QoS shaping. Configure Port 1 on the DUT as a CIR of 600 Mbps; configure Port
2 as a CIR of 300 Mbps; and, configure Port 3 as Best Effort Step 2 – Cable DUT to Spirent
TestCenter.
Plug all three ports sequentially into three sequential Spirent TestCenter ports.
2. Reserve Ports on Spirent TestCenter
Launch the Spirent TestCenter GUI and reserve the required ports.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
116
3. Rename Your Spirent TestCenter Ports
In your test tree, click on All Ports. For each port, uncheck Append Location to Port Name. Starting
at the top port, click on the Port Name Cell and rename the port to “600 Mbps CIR”. Proceed down
the list and name the ports “300 Mbps CIR”, “Congestor Port”, “Over Subscribed Port” .
4. Create Host Blocks on transmitting and Over Subscribed Ports
Right-click on the All Ports Æ All Hosts. Click on Add Multiple Hosts.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
117
5. Port Selection
Select all the ports and then press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
118
6. Protocol Selection
The defaults are okay, press Next to continue.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
119
7. Upper Layer Protocols
Set Upper Layer to None and then press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
120
8. Hosts Configuration
Under Hosts per port, type “200,000”. Check Launch Traffic Wizard after generating Hosts and
then press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
121
9. Setup Traffic
Make sure all ports are selected and press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
122
10. Endpoints Configuration
Change the Distribution to Backbone and Encapsulation to EthernetII. Uncheck “Stream only
generation”. Under Source, check the Host Blocks under 600 and 300 Mbps CIR and Congestor.
On the Destination, check Congested Port. Select Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
123
11. Frame Size and Load
Change the Frame Size to 64 Bytes and the Load to 100 percent. Press Finish once completed.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
124
12. Edit Host Layer 2 Addresses and Edit Traffic Generators
Under All Ports select All Hosts. Change the base EthernetII Source address of the 600 Mbps CIR to
“10:00:00:00:00:01”. Proceed to change the “300 Mbps CIR” source address to
“20:00:00:00:00:01” and the Congestor port address to “30:00:00:00:00:01”.
13. Port Speed
Select “All Traffic Generators” and scroll to the right and change the Load Units of all ports to
Mbps. Change the 600 Mbps CIR port to 600, 300 Mbps CIR port to 300 and the Congestor Port to
1000.
14. Perform Learning, Setup Receive Counters
Right-click on All Stream Blocks and select L2Learning Æ Start L2 Learning. Login to your DUT and
verify you have learned 600K unique MAC addresses.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
125
15. Results Browser
In your Results browser, change your subscription to Port Results Æ Detailed Port Results. Scroll to
the right until you see RX Bit Rate. Also, it is possible to verify the port is transmitting at the correct
rate. In the other Results Browser window, change the subscription to Stream Results Æ Detailed
Stream Results. Select the Advanced Sequencing tab and scroll to the right till Reorder Frame
Count to Dropped Frame Rate is visible.
16. Run Test
In the toolbar, select the Start Traffic on All Ports icon.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
126
Analysis
17. Determining Pass or Fail
In order to pass, each of the criteria below must be achieved:
• 600 Mbps CIR Port (MAC Address 01:00:00:00:00:01)
• RX Bit rate is at least 600 Mbps AND there are no lost, duplicated, late or reordered
frames.
• 300 Mbps CIR Port (MAC Address 02:00:00:00:00:01)
• RX Bit rate is at least 300 Mbps AND there are no lost, duplicated, late or reordered
frames.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
127
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
128
Layer 3 QoS Verification Testing
Introduction 129
DiffServ Code Point Remarking Detection 130
Edge DiffServ Remarking Validation 152
Verify QoS Over Classic VLAN 181
Verify QoS Over Q-in-Q VLAN 199
Verify Triple Play QoS 215
Verify DiffServ Customer SLA Over Carrier VPLS Network 254
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
129
Introduction
Layer 3 QoS, or Quality of Service, is a set of technologies that allow the Device Under Test (DUT) to
differentiate traffic at the Layer 3 datagrams and forward across the domain of the network according to a
global policy.
By definition, QoS must have a common policy edge-to-edge in the network for the policy to maintain
coherence. QoS involves prioritization of network traffic. QoS can be targeted at a network interface, toward
performance of a given server or router, or in specific applications. A network monitoring system must
typically be deployed as part of QoS to insure networks are performing at the desired level. RFC 2474
defines how an IP TOS field should be marked based on service level.
When testing QoS on a DUT, it is important to realize that many protocols’ maximum allowable impairment
refers to the end-to-end sums of impairment. For example, 150 ms tends to be the upward allowable delay
before the codecs change to a lower quality codec. The 150 ms is the total budget which includes all
switches, routers and links. As a rule, one can calculate 1 ms of latency per 100 km of link. In addition, the
data packets will typically traverse according to these averages:
Hops to Number of Hops
Local Zone in City 2-4 hops
City POP 1-2 hops
Inter-regional POP 2-4 hops
Interstate WAN 2-3 hops
International WAN 2-3 hops
Thus for an Interstate Flow, the number of hops may be 12-15 hops, and for an International WAN the
number of hops may reach 20 hops.
When calculating the maximum allowable budget for metrics such as latency, take the maximum end-to-
end metric, and divide by the number of hops. Or, in the case of latency, first subtract 1 ms per 100 km,
then divide by the number of hops, giving you your local budget. Typical impairments measured in QoS are:
Maximum Latency, Sequencing Errors (Loss/Duplication/Reorder), Bandwidth and Latency Jitter.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
130
DUT
DiffServ Source
Best Effort
QoS High
QoS Medium
Remarked
Destination
Source Generation Domain QoS Impairment
Domain
QoS Analysis Domain
Best Effort
QoS High
QoS Medium
DiffServ Code Point Remarking Detection Test
Associated RFCs
• RFC 2475
Spirent Communications Test Equipment Needed
• 3 Ethernet Ports, 10/100/1000
• Spirent TestCenter™ Chassis
• Miscellaneous Cables
Objective
The objective is to test for unexpected remarking of DiffServ Code Points across a Queuing FIB. The
expected behavior of the DUT is to not remark the DiffServ Code Points while under load and across
variable frame sizes.
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
131
Step-by-Step
1. Configure DUT
Log into the DUT. Turn on DiffServ Code Point inspection and turn off Remarking. Configure the
port connected to “DiffServ Source” to an address of 10.0.0.1/16 and the port connected to
DiffServ Destination to 20.0.0.1/16. Turn on IP Forwarding.
2. Reserve Ports on Spirent TestCenter
Launch the Spirent TestCenter and reserve the required ports.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
132
3. Rename Your Spirent TestCenter Ports
In your test tree, Click on All Ports. For each port, uncheck Append Location to Port Name. Starting
at the top port, click on the Port Name Cell and rename the port to “DiffServ Source”. Proceed
down the list and name the port “DiffServ Destination”.
4. Add Code Points to DiffServ Source
In the All Ports view, right-click and add Multiple Hosts.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
133
5. Port Selection
Select the DiffServ Source port and click on Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
134
6. Protocol Selection
The defaults are okay, press Next to continue.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
135
7. Upper Layer Protocols
Select the Upper Layer to be IPv4 and select Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
136
8. Host Configuration
Change the number of Hosts per port to 1. Set the IP Source Address to 10.0.1.10 and the Prefix
Length to be 16. Set the Gateway to be 10.0.0.1. Select Finish once configuration is finished.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
137
9. Host Name Configuration
Select on Port Æ DiffServ Source Æ Hosts in the navigation window.
10. Host Duplication
Right-click on the default and select duplicate.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
138
11. Duplication
Enter a value of 15 for the Number of copies. Press OK once completed. This will give a total of 16
hosts.
12. Update IPv4 Address
Select all rows and right-click on the IPv4 Address and Fill Increment using the x.x.1.x filter.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
139
13. Renaming Hosts
Starting with the first host, rename the host default and then select Edit Interface.
14. ToS Field Update
In the IPv4 header select the “…” in the ToS field.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
140
15. DiffServ Configuration
Choose DiffServ and under the code point pull down, pick default. Going from Host to Host,
change the name and code point using the following names and code points: AF11, AF12, AF13,
AF21, AF22, AF23, AF31, AF32, AF33, AF41, AF42, AF43, EF, CS6 and CS7.
16. Copying Hosts
Select All Hosts and right-click and copy the Hosts.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
141
17. Pasting Hosts
Open up DiffServ Destination port Æ Hosts and right-click and select paste.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
142
18. Changing IP Address
Cycle through all hosts and add 100 to the value in front of the Source IP address third octet. For
example, 10.0.1.10 becomes 10.0.101.10; and 10.0.11.10 becomes 10.0.111.10. Also, make
sure to rename the Hosts accordingly.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
143
19. Create Traffic Across the DUT
In the Toolbar, select the Wizards button. Open up Traffic Æ Traffic Wizard and then press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
144
20. Port Selection
Select both ports and press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
145
21. Stream Generation
Set the Distribution to Pair and the Encapsulation to IPv4. Under Source, select DiffServ Source Æ
AF11. Under Destination, Select DiffServ Destination Æ AF11. Press Add. Repeat for all code
points. Press Next once completed.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
146
22. Change the Port mode to Rate Based and the Load to 6.25. Check “Expand stream blocks under
ports” Æ “One path per streamblock” and press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
147
23. Renaming Stream Blocks
Click on DiffServ Source ÆTraffic Generator. From the top, rename the Stream Blocks: default,
AF11, AF12, AF13, AF21, AF22, AF23, AF31, AF32, AF33, AF41, AF42, AF43, EF, CS6 and CS7.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
148
24. Enable ARP/ND
In the test case tree, click on Settings. Select the ARP/ND tab. And check the last box, “Enable
ARP/ND Before Transmission”.
25. Setup the Analyzer and Burst Count
On the DiffServ Destination port, select the Traffic Analyzer. Expand the IPv4 header and check the
ToS Header.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
149
26. Results Browser
In the Results Browser, change the subscription of right browser to Stream Results Æ Filtered
Stream Results. Set the Monitored port to DiffServ Destination.
27. Scheduling Mode
On the DiffServ Source Port, select the Traffic Generator. Set the Scheduling Mode to Port Based,
set the Duration Mode to Bursts, set Burst Size to 15; finally, set Burst(s) to 100.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
150
28. Run Test
To run the test, perform the following actions:
Loop through the following “DiffServ Source” Burst(s) count: 100, 1000, 10000 and 100000.
Right-click on the Filtered Stream Results Browser Æ Clear all Results Views.
Set the “DiffServ Source” Burst(s) accordingly.
Press Apply.
In the toolbar, select “Start Traffic”.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
151
29. Examining the Views
At the end of the burst, examine the filtered stream views. The counts should be symmetric,
meaning that each ToS Value should be the same. Counts where one value is below the burst
count and another value is above the burst count indicates the code point was incorrectly altered
from the below burst count value to the above burst count value.
Analyze Results
The test passes if there is no variance in ToS values, and when all values equal the burst size. The DUT fails
if it incorrectly remarks values at any burst size.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
152
DUT
DiffServ Source
Best Effort
QoS High
QoS Medium
Remarked
Destination
Source Generation Domain QoS Impairment
Domain
QoS Analysis Domain
Best Effort
QoS High
QoS Medium
Edge DiffServ Remarking Validation Test
Associated RFCs
• RFC 2475
Spirent Communications Test Equipment Needed
• 3 Ethernet Ports, 10/100/1000
• Spirent TestCenter™ Chassis
• Miscellaneous Cables
Objective
The objective of this test case is to determine if the Device Under Test (DUT) is properly remarking the TOS
byte in the IPv4 and IPv6 headers. The expected behavior is that each and every packet that mates the
remarking policy will be properly remarked.
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
153
Step-by-Step
1. Configure DUT
Log in to the DUT. Configure the East port as the stub facing port with an address of 10.0.0.1 /16
and 2001::1/64. Configure the West port as the core facing port with an address of 20.0.0.1 and
2002::1/64. Turn on DiffServ remarking from the stub to the core side across the DUT.
Use the following table:
Protocol Dest Port Code point
TCP 80 EF – A0h
TCP 53 AF11 – 28h
TCP 25 AF41 – 88h
UDP 4004 AF32 – 70h
UDP 0 AF13 – 38h
2. Reserve Ports on Spirent TestCenter
Launch the Spirent TestCenter and reserve the required ports.
3.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
154
Rename Your Spirent TestCenter Ports
In your test tree, select All Ports. For each port, uncheck Append Location to Port Name. Starting at
the top port, click on the Port Name Cell and rename the port to East. Proceed down the list and
name the port West.
4. Setup Traffic on East Port
Under Ports>East Æ Traffic Generator, click on the Add button and select add a Raw Stream Block.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
155
5. Frame Type Selection
Under Frame Size, click on iMIX and select the “JMIX Upstream” profile. Select the Frame tab.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
156
6. Source MAC Modifier
Select the Source MAC, and then select Add MAC Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
157
7. Increment Count
Increment the MAC Modifier by a count of 200,000.
8. IPv4 Source
Select the IPv4 Æ IP Source field and enter in an IP of 10.0.0.2. Next, select Insert IPv4 Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
158
9. Increment IP Source
Increment the IP Source by 65000.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
159
10. Add UDP Header
Click the Actions Æ Add Header. Under the IP category, add a UDP header.
11. Changing UDP Header Modifier
Expand the UDP header; click on the Destination Port field; and, click Actions “Insert Modifier”.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
160
12. UDP Modifier
Click on List and in the Value field, type “0, 4004”. Press OK, and press OK again.
13. Stream Block Name
Rename the Stream Block to “IPv4-UDP”.
14. Duplicating Stream
Right-click on the IPv4-UDP Stream Block, and select Duplicate.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
161
15. Duplicate
Duplicate the Stream by 1, and press OK.
16. Rename Stream
Rename the new Stream ”IPv4-TCP”.
17. Edit Stream Block
Click on the IPv4-TCP stream, and press Edit in the tool bar.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
162
18. Editing Frame
Select the frame tab. Right-click on the UDP header and select Delete UDP Header.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
163
19. Adding TCP Header
Click Actions Æ Add Header and add a TCP header under the IP category.
20. TCP Header Modifier
Click on the TCP Æ Destination Port field, and click Actions Æ Insert Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
164
21. Configure TCP Modifier
Click on List and under Value, type “80,53,25”.
22. Adding More Traffic To The East Port
Again, select the Add button and add a Raw Stream Block.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
165
23. Frame Type Selection
Under Frame Size, click on iMIX and select the JMIX Upstream profile. Next, select the Frame tab.
24. Modifier on Source MAC Address
Select the Source MAC, and then select the Add MAC Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
166
25. Increment MAC Modifier
Increment the MAC Modifier by a count of “20000”.
26. Remove IPv4 Header
Right-click on the IPv4 header, and select Delete IPv4 Header.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
167
27. Insert IPv6 Header
Click Actions Æ Add Header and insert an IPv6 header.
28. IPv6 Source Field
Select on the IPv6 Source field. Type in 2001:: and then select Insert IPv6 Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
168
29. IPv6 Source Modifier
Increment the IP Source by 65000.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
169
30. Adding UDP Header
Select Actions Æ Add Header. Under the IP category, add a UDP header.
31. UDP Modifier
Expand the UDP header, and select the Destination Port field. Next, select Actions Æ Insert
Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
170
32. UDP Modifier Configuration
Select List, and in the Value field enter 0, 4004. Press OK, then OK again.
33. Stream Naming
Rename the Stream Block to IPv6-UDP.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
171
34. Stream Duplication
Right-click on the IPv6 – UDP Stream Block and select Duplicate.
35. Duplicate
Duplicate the Stream by 1, and press OK.
36. Stream Naming
Rename the new Stream to IPv6-TCP.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
172
37. Stream Block Edit
Select the IPv6-TCP stream, and select Edit in the tool bar.
38. Frame Edit
Select the frame tab. Right-click on the UDP header, and select Delete UDP Header.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
173
39. Add TCP Header
Click Actions Æ Add Header and add a TCP header under the IP category.
40. TCP Destination Port
Select the TCP Æ Destination Port field, and select Actions Æ Insert Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
174
41. Edit Modifier
Click on List, and under Value enter in a value of 80, 53, 25.
42. Copy the Stream Blocks
Under Ports Æ East Æ Traffic Generator, select all Stream Blocks and right-click and copy.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
175
43. West Port Traffic
Go to the Ports Æ West Æ Traffic Generator and paste the Stream Blocks.
44. Edit West Port Stream Blocks
For each Stream Block, select the Stream Block and then press Edit. Reverse the IP Source and
Destination and MAC Source and Destination fields.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
176
45. Setup the Analyzer and Burst Count
On the West port select the Traffic Analyzer. Expand the IPv4 header and check the ToS Field.
46. Add UDP Header
Click Actions Æ Add Header and add a UDP Header.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
177
47. UDP Analyzer
Expand the UDP header and click on UDP Æ Destination Port.
48. Results Browser
In the Results Browser, change the subscription of right browser to Stream Results Æ Filtered
Stream Results. Set the Monitored port to West.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
178
49. Scheduling Mode
On the East Port, click on Traffic Generator. Set the Scheduling Mode to Port Based, Set the
Duration Mode to Bursts. Set Burst Size to 15. Set Burst(s) to 100.
50. ARP/ND Enable
In the test case tree, click on Settings. Select the ARP/ND tab. And check the last box, Enable
ARP/ND Before Transmission.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
179
51. Run Test
To run the test, perform the following Actions:
Loop through the following East Source Burst(s) count: 100, 1000, 10000, 100000.
Right-Click on the Filtered Stream Results Browser Æ Clear all Results Views.
Set the East Source Burst(s) Accordingly.
Press Apply.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
180
In the toolbar, select “Start Traffic”.
At the end of traffic, look at the filtered results. Each Destination Port Number should have exactly
one DiffServ Code point, and each code point should have exactly one UDP Dest Port. If this is
true, then UDP for IPv4 passed.
Record the results.
Repeat Steps 45-47 by changing the L4 header to TCP and clicking on TCP destination port and
repeating both tests with an IPv6 Filter.
Analyze Results
If all 4 cases have a 1 to 1 mapping of destination port to code point, then the tests passes, else fails.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
181
Verify QoS over Classic VLAN
Associated RFC/Standard
• RFC 2475
• IEEE 802.1p
Spirent Communications Test Equipment Needed
• 2 Ethernet Ports, 10/100/1000
• Spirent TestCenter™ Chassis
• Miscellaneous Cables
Objective
The objective of this test is to see how flows shaped at different DiffServ code points react while embedded
in classic VLANs. The expected behavior is that VLAN-tagged traffic will have no effect on flow quality.
Flow Code Point
Max Seq. Errors
(%)
Max Latency Max Jitter
Flow 1/VLAN 1-254 AF-43 1.0% 7 ms +/- 0.1 ms
Flow 2/VLAN 1000-1254 EF 0.1% 7 ms +/- 0.3 ms
Flow 3/VLAN 2000-2254 AF-31 1.5% 10 ms +/- 0.7 ms
Flow 4/VLAN 3000-3254 AF-32 1.0% 10 ms +/- 0.7 ms
Background/Untagged 00 Any Any Any
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
182
VLAN X
VLAN X
VLAN Y VLAN Y
VLAN Z
VLAN Z
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
DUT
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
183
Step-by-Step
1. Configure DUT
Log into the DUT. Configure 4095 VLANs. Start with VLAN 1 and assign a default gateway of
10.0.1.1/24. For VLAN 2, assign 10.0.2.1/24 for all 4095 VLANS. As the third octet fills up, use the
second octet, all in a sequential fashion. Each VLAN will receive a /24 subnet. Perform the same
actions on the West port, but change the first octet to 20.
2. Reserve Ports on Spirent TestCenter
Launch the Spirent TestCenter GUI and reserve the required ports to perform the test.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
184
3. Rename Your Spirent TestCenter Ports
In your test tree, click on All Ports. For each port, uncheck Append Location to Port Name. Starting
at the top port, click on the Port Name Cell and rename the port to East. Proceed down the list and
name the port West.
4. Setup Hosts
Right-click on All Ports Æ All Hosts and select Add Multiple Hosts.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
185
5. Port Selection
Select both ports and press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
186
6. Protocol Selection
The defaults are okay, press Next to continue with the configuration.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
187
7. Encapsulation
Change Upper Layer to IPv4 and in the Lower Layer section enable Number of VLAN Headers. The
default value of 1 is okay for Number of VLAN Headers. Finally press Next to continue.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
188
8. VLAN Configuration
In “Total VLANs per port” change the value to 4095. Also, change the VLAN ID field to 1 and verify
that “Repeat across ports” is selected. Press Next to continue.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
189
9. Host Configuration
For the Hosts per VLAN, select 252. Under the IPv4 section, change the IPv4 Address to 10.0.1.2,
netmask to /24 and the gateway to 10.0.1.1. In the “Step” field, select the “…” button.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
190
10. Step Configuration
Verify the “Step per host” is set to 0.0.0.1. Check and change the “Step per port” to 10.0.0.0.
Check and change the “Step per VLAN #1” to 0.0.1.0. Press OK.
11. Host Configuration
Check the Launch Traffic Wizard after generating hosts and press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
191
12. Port Selection
In the Traffic Wizard, select both ports and press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
192
13. Endpoints
Change Distribution to Pair and Encapsulation to IPv4. Under Source, select the East check box,
which will select all the created Hosts. Repeat this for Destination using the West port. Press Add
to include all port pairings and select Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
193
14. Frame Size and Load
Name the Stream Block as Traffic and change the Frame Size to iMIX/TCPv4. Change the
Scheduling mode to Rate Based. Uncheck “Expand stream blocks under ports”. Enable “Vary
Protocol and QoS” at the top of the window, and then press the Configure button.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
194
15. DiffServe Code Points
Select the QoS tab and select the DiffServ radio button. Add the DiffServ code points in the table
above. Select OK. Press Finish and then Apply.
16. Frame Size and Load
Once back to the Frame Size and Load configuration screen, press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
195
17. Setup Analyzer on West Port
On Ports Æ West Æ Traffic Analyzer, select Template Filter.
18. Add VLAN
Right-click on the EthernetII header and select Insert Vlans.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
196
19. IPv4 ToS/DiffServ Enable
Expand the IPv4 header and click the filter checkbox for ToS/DiffServ.
20. Results Browser
In the right Results Browser, change the view to Stream Results Æ Filtered Stream Results. Change
the Show: pull down menu to the West port.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
197
21. ARP/ND Enable
Under Settings Æ ARP/ND enable the Enable ARP/ND Before Transmission checkbox.
22. Run the Test
In the tool bar, click the Start Traffic on all ports. Run the test for several hours. As variant of this
test, on the All Ports Æ All Stream Blocks, select a stream and use the slider in the tool bar to
reduce and expand the rate of an individual stream (Sum of stream <=100 Load) on the fly.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
198
Analysis
23. Analysis
While Traffic is running, select the Stream Results Æ Filtered Stream Results view. Select the
Advanced Sequencing tab and look for out of sequence, lost, duplicated or late frames on any
code point.
Select the Histograms (Sequence Run Length), and look for noticeable differences in the run
length.
Click on Basic Counters, and look at min, average and maximum latencies that which should be
very close within the same code point and have a wider spread as the code point moves to best
effort.
Compare measured results with the results in the above table to determine pass or fail of this test
case.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
199
Verify QoS over Q-in-Q VLAN
Associated RFCs/Documents
• RFC 2475
• IEEE 802.1p
Spirent Communications Test Equipment Needed
• 2 Ethernet Ports, 10/100/1000
• Spirent TestCenter™ Chassis
• Miscellaneous Cables
Objective
The objective of this test is to see how flows shaped at different DiffServ code points react embedded in
classic VLANs. The expected behavior is that VLAN-tagged traffic will have no effect on flow quality.
Code Point Max Seq. Errors (%) Max Latency Max Jitter
AF-43 1% 7 ms +/- 0.1 ms
EF 0.1% 7 ms +/- 0.3 ms
AF-31 1.5% 10 ms +/- 0.7 ms
AF-32 1.0% 10 ms +/- 0.7 ms
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
200
VLAN X,Y
Best Effort
QoS High
QoS Medium
VLAN Q-in-Q
Configured
DUT
VLAN X,Y
VLAN X,Z
VLAN X,Z
VLAN A,B
VLAN B,C
VLAN A,B
VLAN B,C
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
201
Step-by-Step
1. Configure DUT
Log into the DUT. Configure 252 x 120 VLANs (each outer tag has 128 inner tags). Configure the
DUT to use 252 outer VLANs and 128 inner VLANs. Assign the outer VLANs with an IP address of
10.0.x.1/24, starting with X=0 till X=251. Repeat this step for the inner VLAN (VLAN 2) but use the
IP address 10.x.2.1/24, starting with X=1 till x=128. Make sure each VLAN receives a 128 subnet.
Repeat this step on the West port but use a first octet of 20.
2. Reserve Ports on Spirent TestCenter
Launch the Spirent TestCenter and reserve the required ports.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
202
3. Rename Your Spirent TestCenter Ports
In your test tree, select All Ports. For each port, uncheck Append Location to Port Name. Starting at
the top port, select the Port Name cell and rename the port to East. Proceed down the list and
name the port West.
4. Adding Hosts
Right-click on All Ports Æ Hosts and select Add Multiple Hosts.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
203
5. Port Selection
Select both ports and then press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
204
6. Protocol Selection
The defaults are okay, press OK to continue.
7. Adding VLANs
Change the Upper Layer to IPv4 and enable Lower Layer Æ Number of VLAN Headers. Set this
value to 2 and press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
205
8. VLAN Configuration
In the VLANs per Port #1, select 252 and on VLANs per port #2, select 128. Change the VLAN ID
field to 1 and verify that “Repeat across ports” is selected as well as for Vlan #2. Select Next.
9. Host Configuration
On the Hosts per VLAN, select 252. Under the IPv4 section, change the IPv4 Address to 10.0.1.2,
“Prefix length” to 24 and the gateway to 10.0.1.1. On the Step field select the “…” button.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
206
10. Address Step
Verify the Step per host is set to 0.0.0.1. Check and change the Step per port to 10.0.0.0. Check
and change the Step per VLAN #1 to 0.0.1.0 and VLAN #2 to 0.1.0.0. Press OK.
11. Hosts Traffic Wizard
Enable the “Launch Traffic Wizard after generating hosts” and press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
207
12. Traffic Wizard Ports
In the Traffic Wizard, select both ports and press Next.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
208
13. Endpoint Selection
Change Distribution to Pair and Encapsulation to IPv4. Under Source and Destination, select all
the East Æ Host as the source and West Æ Host as the destination. Press Add to add the pairings
and press Next to continue.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
209
14. Optional Configuration
Name the Stream Block as Traffic and change the Frame Size to iMix Æ TCPv4. Change the
“Scheduling mode” to Rate Based. Uncheck “Expand Stream Blocks under ports”. Check “Vary
Protocol & QoS” at the top right and then select Configure.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
210
15. DiffServ Code Point Configuration
Select the QoS tab and then select the DiffServ radio button. Add the DiffServ code points in the
table above and press OK.
16. Frame Configuration
No further changes are required, press Finish.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
211
17. Setup Analyzer on West Port
On Ports Æ West Æ Traffic Analyzer. The Template Filter screen will appear.
18. Insert VLAN Header
Right-click on the EthernetII header and add a VLAN.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
212
19. Enable ToS/DiffServ
Expand the IPv4 header and enable the filter checkbox for ToS/DiffServ.
20. Results Browser
In the right Results Browser, change the subscription to Stream Results Æ Filtered Stream
Results. Change the Show: pull down to the West port.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
213
21. Enable ARP/ND
Under Settings Æ ARP/ND select the “Enable ARP/ND Before Transmission” checkbox at the
bottom right.
22. Run the Test
In the tool bar, click the Start Traffic on all ports. Run the test for several hours. As variant of this
test, on the All Ports Æ All Stream Block, select a stream and use the slider in the tool bar to
reduce and expand the rate of an individual stream (Sum of stream <= 100 Load) on the fly.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
214
Analysis
23. Analysis
While Traffic is running, select the Stream Results Æ Filtered Stream Results view. Select the
Advanced Sequencing tab, and look for out of sequence, lost, duplicated or late frames on any
code point.
Select the Histograms (Sequence Run Length), and look for noticeable differences in the run
length.
Click on Basic, and look at min, average, and maximum latencies that should be very close within
the same code point and have a wider spread as the code point moves to best effort.
Compare measured results with the results in the above table to determine pass or fail of this test
case.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
215
Verify Triple Play QoS
Associated RFCs
• RFC 2475
Spirent Communications Test Equipment Needed
• 3 Ethernet Ports, 10/100/1000
• Spirent TestCenter™ Chassis
• Miscellaneous Cables
Objective
The objective of this test case is to simulate traffic with similar network attributes to MPEG-2 TS Video, SIP
G.729 Encoded Voice, HTTP 1.0 and FTP with Different QoS DiffServ code points and test to verify that under
different bursting conditions, QoS is maintained.
Flow
Code Point
Max Sequencing
Errors (%)
Max Latency Max Jitter
MPEG-2 TS AF-43 1.0% 7 ms +/- 0.1 ms
G.729 SIP Voice EF 0.1% 7 ms +/- 0.3 ms
HTTP AF-31 1.5% 10 ms +/- 0.7 ms
FTP AF-32 1.0% 10 ms +/- 0.7 ms
Background 00 Any Any Any
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
216
Step-by-Steps
1. Configure DUT
Log in to the DUT. Configure the East port as the stub facing port with an address of 10.0.0.1/16.
Configure the West port as the core facing port with an address of 20.0.0.1. Turn on DiffServ
remarking from the stub to the core side across the DUT. Use the table shown above.
2. Reserve Ports on Spirent TestCenter
Launch the Spirent TestCenter and reserve the required ports to perform the test.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
217
3. Rename Your Spirent TestCenter Ports
In your test tree, click on All Ports. For each port, uncheck Append Location to Port Name. Starting
at the top port, click on the Port Name Cell and rename the port to East. Proceed down the list and
name the port West.
4. Setup Video Traffic on East Port for 50 MPEG-2 TS Streams
On Ports Æ East Æ Traffic Generator, change the scheduling mode to Priority Based.
5. Adding Stream Block
Select Add Æ Add Raw Stream Block.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
218
6. Stream Name
Name the Stream MPEG-2 TS I-Frame. Change the Settings Æ Burst Size to 1. Change the Load
Options Percent to 100 Mbps. Change the Frame Size to 1380. Select the Frame tab.
7. Source MAC Modifier
Select the MAC Source and then select Actions Æ Add MAC Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
219
8. Increment the Modifier
Increment the value by 50 and press OK. Perform the same action on the MAC Destination.
9. IPv4 Source Modifier
Select the IP Source Address, and change the value to 10.0.0.2. Next, select the Add IP Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
220
10. Modifier Increment
Increment the value by 50 and press OK.
11. IPv4 Destination Address Modifier
Repeat the previous two steps, except change the Destination Address to 20.0.0.2.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
221
12. ToS Field
Select IPv4 Æ ToS field and select the “…” button.
13. DiffServ Code Point
Select the DiffServ radio button and then use the drop down menu to select AF-43 as a code point.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
222
14. Adding a Header
Right-click on the IPv4 header and select Add Header.
15. UDP Header
Select the UDP Header and press OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
223
16. Destination Port
Expand the UDP Header and change the Destination UDP Port number to 1234, press OK.
17. Duplicate Stream
Right-click on the previous Raw Stream and select duplicate.
18. Duplication
Duplicate the stream 1 time.
19. Stream Rename
Name the Stream MPEG-2 TS B & P-Frames.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
224
20. Edit Stream
Select the Edit button to make changes to the new stream. Change Settings Æ Burst Size to 5 and
update the Load Options Percent to 400 Mbps. Finally, change the Frame Size to 576 and press
OK.
21. Setup Voice Traffic on the East Port for 50 G.729 SIP Voice calls
On the Ports Æ East Æ Traffic Generator select the Add button again and choose Add Raw Stream
Block.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
225
22. Stream Name and Other Options
Name the Stream Block G.729 SIP VoIP. Change the rate to 860 Kbps. Change Setting Æ Priority to
1. Select the Frame tab.
23. Create New Frame
Select Frames Æ Create new Frame Æ Create new Frame.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
226
24. New Frame Selection
Select the Advanced Radio Button and under Category:IP, select “G729Ipv4Frame” and press OK.
25. MAC Source Modifier
Select the Frame tab and select the MAC Source. Next, select Actions Æ Add MAC Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
227
26. Modifier Increment
Increment the value by 50 and press OK. Perform the same action on the MAC Destination.
27. IPv4 Address Changes
Select the IP Source Address, and change the value to 10.0.0.200. Select Add IP Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
228
28. IPv4 Modifier Increment
Increment the value by 50 and press OK.
29. IPv4 Destination Address
Repeat the previous two steps to the IPv4 Destination Address, except change the Destination
Address to 20.0.0.200.
30. IPv4 ToS Field
Select the button which appears in the IPv4 Æ ToS field.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
229
31. DiffServ Code Point
Select the DiffServ radio button. Using the drop down menu, select EF as a code point.
32. Adding the UDP Header
Right-click on the IPv4 header and select Add Header.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
230
33. UDP Header
Select the UDP Header and press OK.
34. Update Destination Port
Expand the UDP Header and change the Destination UDP Port number to 5000 and press OK.
35. Setup HTTP Traffic
Again, select Add Æ Raw Stream Block.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
231
36. Stream Name and Other Options
Name the Stream Block “HTTP Traffic”. Change the Frame Size to 512. Change the rate to 5 Mbps.
Change Setting Æ Priority to 2. Change the Settings Æ Burst size to 15 and the “Inter-frame gap”
to 24. Click on the Frame tab.
37. Create New Frame
Select Frames Æ Create new Frame, then select “Create new Frame”.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
232
38. TCP Frame
Select the Advanced Radio Button and under Category:Basic, select “Tcp over IPv4” and then
press OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
233
39. Source MAC Modifier
Select the MAC Source and then select Actions Æ Add MAC Modifier.
40. Modifier Increment
Increment the value by 50 and press OK. Perform the same action on the MAC Destination.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
234
41. IPv4 Source Address
Select on the IPv4 Source Address, and change the value to 10.0.50.200. Next, select the Add IP
Modifier.
42. IPv4 Modifier Increment
Increment the value by 50 and press OK.
43. IPv4 Destination Address
Repeat the previous two steps for the IPv4 Destination Address, except change the Destination
Address to 20.0.50.200.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
235
44. ToS Field
Select the button which appears in the ToS field.
45. DiffServ Value
Select the DiffServ radio button. Using the drop down menu, select AF-31 as a code point.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
236
46. TCP Port Configuration
Expand the TCP Header and change the Destination TCP Port number to 80 and press OK.
47. Custom Header
Right-click on the TCP header and select Add Header.
48. Select Custom Header
Locate Custom and press OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
237
49. Configuring Custom Header
Expand the custom header and type in “47 45 54 1 2F 70 61 74 68 2F 74 6F 2F
66 69 6C 65 2F 69 6E 64 65 78 2E 68 74 6D 6C 1 48 54 54 50 2F 31
2E 30”. Press OK once completed.
Hint: It is also possible to copy the above hex string and paste it into the byte pattern field by
using the Ctrl + v key stroke.
50. Setup FTP Traffic
Again, select Add Æ Add Raw Stream Block.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
238
51. FTP Stream Configuration
Name the Stream Block FTP Traffic. Change the Frame Size to 1518. Change the rate to (3 Mbps x
50) 150 Mbps. Change Setting, Priority to 3. Change the Settings Æ Burst size to 1. Select the
Frame tab.
52. Create New Frame
Select Frames Æ “Create new Frame”, then select Create new Frame again.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
239
53. Adding TCP
Click on the Advanced Radio Button and under Category:Basic select “Tcp over IPv4”, press OK.
54. Source MAC Modifier
Select the Frame tab and then select the MAC Source. Click on Actions Æ Add MAC Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
240
55. Modifier Increment
Increment the value by 50 and press OK. Perform the same action on the MAC Destination.
56. IPv4 Source Address
Select the IP Source Address, and change the value to 10.0.100.200. Next, select Add IP Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
241
57. IPv4 Modifier Increment
Increment the value by 50 and press OK. Repeat the same steps for the Destination Address,
except change the IP to 20.0.100.200.
58. ToS Field
Select the IPv4 Æ ToS field and then press the button which appears.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
242
59. DiffServ Code Point
Select the DiffServ radio button and then use the drop down menu to select AF-32 as a code point.
60. TCP Header
Expand the TCP Header and change the Destination TCP Port number to 21 and press OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
243
61. Setup Best Effort Traffic
Again, select Add Æ Add Raw Stream Block.
62. Best Effort Configuration
Name the Stream Block “Best Effort”. Change the Frame Size to 768. Change the rate to 300 Mbps.
Change Setting, Priority to 4. Change the Settings Æ Burst size to 1. Select the Frame tab.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
244
63. Add Header
Select Add Header.
64. Add UDP Header
Under the Category:IP locate the UDP header and press OK.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
245
65. Source MAC Modifier
Select the MAC Source and then select Actions Æ Add MAC Modifier.
66. Increment the Modifier
Increment the value by 50 and press OK. Perform the same action on the MAC Destination.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
246
67. IPv4 Source Modification
Click on the IP Source Address, and change the value to 10.0.200.200. Select the Add IP Modifier
option.
68. IPv4 Modifier Increment
Increment the value by 50 and press OK. Perform the same action on the Destination Address,
except change the IP address to 20.0.200.200.
69. ToS Field
Select the IPv4 Æ ToS field and then select the button which appears.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
247
70. DiffServ Code Point Selection
Select the DiffServ radio button and the use the drop down menu to select Default as a code point.
71. UDP Header Configuration
Expand the UDP header, and select the Destination Port. Next, select Actions Æ Insert Modifier.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
248
72. Random Modifier
Select Type Æ Random. Select OK twice.
73. Setup the West Port
On Ports Æ East Æ Traffic Generator, select all streams; right-click and select Copy Stream Block.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
249
74. Paste Stream Blocks
On Ports Æ West Æ Traffic Generator, right-click and select “Paste StreamBlock”.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
250
75. Edit Stream Blocks
For each Stream Block, press the Edit button and then in the new window select the Frame tab.
Reverse the MAC Source and Destination Fields. Reverse the IP Source and Destination Fields.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
251
76. Enable ARP
Under Project Æ Setting Æ ARP/ND, select “Enable Cyclic ARP” and Enable ARP/ND Before
Transmission.
77. Setup the DUT
Log into the DUT. From the table above, turn on Strict Priority Queuing based on DiffServ value
between the East and West ports. Set up all necessary IP Addresses and IP Forwarding.
78. Setup the Analyzer
On the Ports Æ West Æ Traffic Analyzer, check the IPv4 Æ ToS field.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
252
79. Histogram Configuration
On West Æ Traffic Analyzer Æ Histogram tab, change the histogram mode to “Sequence Run
Length”.
80. Results Browser Setup
In the right Results Browser, change the counter subscription to Stream Results Æ Filtered Stream
Results.
81. Run the Test
In the tool bar, click the Start Traffic on all ports. Run the test for several hours. As variant of this
test, on the All Ports Æ All Stream Block, select a stream and use the slider in the tool bar to
reduce and expand the rate of an individual stream (Sum of stream <=100 Load) on the fly.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
253
Analysis
82. Analysis
While Traffic is running, select the Stream Results Æ Filtered Stream Results view. Select the
Advanced Sequencing tab, and look for out of sequence, lost, duplicated or late frames on any
code point.
Select the Histograms (Sequence Run Length), and look for noticeable differences in the run
length.
Click on Basic and look at min, average, and maximum latencies, which should be very close
within the same code point and have a wider spread as the code point moves to Best Effort.
Compare measured results with the results in the above table to determine pass or fail of this test
case.
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
254
VPLS Core
Best Effort
QoS High
QoS Medium
VPLS
Configured
DUT
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
Best Effort
QoS High
QoS Medium
CE
P
CE
P
P P
CE
CE
CE
CE
CE
CE
Verify DiffServ Customer SLA Over a Carrier VPLS Network
Associated RFCs
• RFC 2475
Spirent Communications Test Equipment Needed
• 3 Ethernet Ports, 10/100/1000
• Spirent TestCenter™ Chassis
• Miscellaneous Cables
Objective
The objective of this test case is to verify that Customer DiffServ QoS is properly maintained within VPLS
tunnels across a carrier-grade network. This tests case assumes the Device Under Test (DUT) will maintain
QoS policies interior to VPLS tunnels. QoS levels tested and their passing behaviors are:
Flow (%) Code Point
Max Sequencing
Errors
Max Latency Max Jitter
MPEG-2 TS AF-43 1.0% 7 ms +/- 0.1 ms
G.729 SIP Voice EF 0.1% 7 ms +/- 0.3 ms
HTTP AF-31 1.5% 10 ms +/- 0.7 ms
FTP AF-32 1.0% 10 ms +/- 0.7 ms
Background 00 Any Any Any
Setup
Spirent Communications Test Methodologies Definitive Guide to QoS Testing
255
Step-by-Step
1. Configure the DUT
Login to the DUT and configure three ports, LAN, Branch1 and Branch2. Give each port the
following configuration:
Port DUT IP Role
Sub-
Interfaces
Starting Sub-
Interface
LAN 10.0.0.1/24 LAN Facing 2000
10.0.1.1 /
Incrementing
mask 0.1.1.0
Branch1 20.0.0.1/24 Core Facing 1000
20.0.1.1 /
Incrementing
mask 0.1.1.0
Branch2 30.0.0.1/24 Core Facing 1000
30.0.1.1 /
Incrementing
mask 0.1.1.0
Configure the DUT for OSPF and place all ports into Area 0.0.0.0. Turn on VPLS and configure 1000
VPLS tunnels between LAN Å