Spirent TestCenter DHCP V3
Spirent TestCenter DHCP V3
DHCP Testing
www.spirentcampus.com
Topic Overview
DHCP Features Traffic Wizard with DHCP End Points
Host Setup Options Bind/Release DHCP
Using the Host Wizard Interactive Mode versus Batch Mode
Host Interface Settings Using the Command Sequencer
DHCP Host Parameters Results Views and DHCP Results
Session Host Name Setup Viewing Session Information
Option Request List Sending Traffic and Viewing Results
Custom Options Support Enabling IGMP
Layer 2 and 3 Relay Agent Setup Working with Multicast Groups
DHCP Port and Test Settings DHCPv4 Server Features
2
Spirent TestCenter DHCP Testing
DHCP Features
Support for DHCP Client, DHCP Relay Agent (L2&3), and DHCP Server emulation
Configure a DHCP Test using Wizards to simplify the setup
DHCPv4 and DHCP-PD (for IPv6) are both supported
Can emulate up to 32K subscribers per port
Can emulate up to 4 million subscribers per chassis
Provides detailed analysis for upstream, downstream and peer-to-peer analysis; per
subscriber or port
Interactive feature allows functional and negative testing including binding and
releasing groups of subscribers
Integrated protocol counters allows you to track protocol messaging
Real-time results and charting
Custom DHCP option editor
The Command Sequencer provides integrated DHCP control plane and data plane
events
Supports capture and decode DHCP control plane and data plane events
3
Spirent TestCenter DHCP Testing
Technology Selector
The Technology Selector is used to filter protocols seen in the Spirent
TestCenter Application.
The tool automatically opens each time the Application is launched.
Users can add unselected protocols to a test at any time by clicking the
Technology Selector button from the main toolbar.
4
Spirent TestCenter OSPF Testing
Host Setup Options
The Host Wizard can be invoked from either at the System Level (All
Hosts) or Individual Port Level.
At the Port Level, we can either Add a Single Host or Add Multiple Hosts,
whereas at System Level we can only add Multiple Hosts.
5
Spirent TestCenter DHCP Testing
Using the Host Wizard
Allows intuitive step-by-step configuration
Provides direct access to most DHCP parameters
It can also launch Traffic Wizard automatically
6
Spirent TestCenter DHCP Testing
Hosts Wizard – Ports
Allows you to Select the Ports for the DHCP Test.
The ‘Reset’ button to put the Wizard back to the default
values.
7
Spirent TestCenter DHCP Testing
Hosts Wizard – Protocols
Select the ‘Access/Multicast’ button and then select one or
more protocols for the Host(s) to Emulate.
8
Spirent TestCenter DHCP Testing
Host Wizard – Select Encapsulation
9
Spirent TestCenter DHCP Testing
Host Wizard – Configure VLANs
Ethernet
Ethernet 802.1Q Service Provider Tag
Frame 802.1Q Customer Tag
Frame (S-Tag) (C-Tag)
D S TPID CoS VLAN TPID CoS C VLAN Ether-
Priority
D
ID F Data FCS
A A E Priority I ID Type
10
Spirent TestCenter DHCP Testing
Configure VLANs continued
The example on the previous slide had 2 VLAN headers configured (i.e.,
Q-n-Q)
VLAN #1 is always the first (top) tag
It is the only tag if only 1 VLAN header is configured
If only 1 tag is configured, its TPID must be 0x8100 per IEEE 802.1Q
Spirent TestCenter only counts it as a VLAN frame when its TPID is 0x8100
The TPID identifies the frame as 802.1Q.
The S-Tag TPID is vendor proprietary.
Some vendors use a unique TPID for the S-Tag to identify the frame as
Q-in-Q.
Some common S-Tag TPID values: 0x9100, 0x9200, 0x88a8
The C-Tag TPID is always 0x8100.
For the S-Tag, the Canonical Format Identifier (CFI) has been redefined
to be used for Discard Eligible (DE), similar to Frame Relay DE.
11
Spirent TestCenter DHCP Testing
Hosts Wizard – Configure Hosts
Configure the number of Emulated Clients per Host Block and per Port
Set the MAC addresses, IP gateway*, and IP ToS/Diffserv bits
You could use DHCP Option 3 to resolve the gateway instead
12
Spirent TestCenter DHCP Testing
Host Block Mode
13
Spirent TestCenter DHCP Testing
Hosts Wizard – Step Settings
Option to Change/Step MAC Addresses per Host/Client or per port.
Option to Change/Step Gateway IP Address per host or per port.
14
Spirent TestCenter DHCP Testing
Hosts Wizard – Traffic Wizard
15
Spirent TestCenter DHCP Testing
Hosts Wizard – Configure Protocols
You can configure most DHCP Host Block parameters here
More on
More on this later
this later
16
Spirent TestCenter DHCP Testing
Hosts Wizard – Preview
Gives a preview of what will be the end configuration, for verification.
This gives you a chance of going back and changing the configuration if
it doesn’t match what was intended while still in the Wizard.
If we have large number of Hosts, we can reduce the number of hosts to
preview using the Preview Mode option. Default is Full.
17
Spirent TestCenter DHCP Testing
Host Interface tab
18
Spirent TestCenter DHCP Testing
Edit Interface
19
Spirent TestCenter DHCP Testing
View Encapsulation
20
Spirent TestCenter DHCP Testing
DHCP Host Parameters
Configure the Host Block DHCP Parameters/Options from
the DHCP tab.
21
Spirent TestCenter DHCP Testing
Session Host Name Setup
Request Unique Session Host Name using Wildcard Masks per Host Block
Preview shows all the iterative values after applying Wildcard Masks
22
Spirent TestCenter DHCP Testing
Option Request List
23
Spirent TestCenter DHCP Testing
Option Request List Custom Options
24
Spirent TestCenter DHCP Testing
Custom Option 82 Example 1 of 3
Let's say you wanted to iterate 3 values for both the circuit-id and
remote-id equally; also, your number of Hosts should be 3 too.
The wildcard format for that is as follows:
@$(e39,a,b,c,d)= @$(<seed pattern>, numValues, step, wildcard type, repeat count)
@ = wildcard to follow
$ = hex iterater (aka undocumented wildcard)
<seed pattern> = e39 was selected by me randomly
Here is a sample string which you would paste into the Wildcard String
Editor:
01060004@$(0e39,3,1,1,0)062b0208000600109400@$(0001,3,1,1,0)
Continued on next slide
25
Spirent TestCenter DHCP Testing
Custom Option 82 Example 2 of 3
circuit-id
01060004@$(0e39,3,1,1,0)062b
suboption (1 byte) = 0x01
length (1 byte) = 0x06
circuit id value (# of bytes = length = 6) = 0004@$(0e39,3,1,1,0)062b
That would yield 3 Circuit IDs:
00040e39062b, 00040e3a062b, 00040e3b062b
remote-id
0208000600109400@$(0001,3,1,1,0)
suboption (1 byte) = 0x02
length (1 byte) = 0x08
circuit id value (# of bytes = length = 8) = 000600109400@$(0001,3,1,1,0)
That would yield Remote IDs:
0006001094000001, 0006001094000002, 0006001094000003
26
Spirent TestCenter DHCP Testing
Custom Option 82 Example 3 of 3
circuit-id
0004@$(0e39,3,1,1,0)062b
remote-id
000600109400@$(0001,3,1,1,0)
This is the result of the first iteration:
Wildcard values
27
Spirent TestCenter DHCP Testing
Layer 3 Relay Agent Setup
Relay Agent Emulation is per Host Block
Unique Circuit IDs/Remote IDs per Emulated Host/Client can
be configured using Wildcards
29
Spirent TestCenter DHCP Testing
DHCP Port Settings
View the DHCP Client Emulation Details
Configure the DHCP Client Port Settings (defaults depicted)
30
Spirent TestCenter DHCP Testing
DHCP Test Settings
31
Spirent TestCenter DHCP Testing
Traffic Wizard – DHCP End Points
Use the Traffic Wizard to create Bound Stream Blocks with
the DHCP clients and the source an/or destination of traffic.
32
Spirent TestCenter DHCP Testing
Bind/Release DHCP
Two ways to invoke DHCP:
Interactively (Apply and Right-click)
Batch Tests using Command Sequencer
Interactive Tests gives us more flexibility
and Control.
Parameters, Hosts, Traffic can be changed
on the fly without having to stop the current
test/configuration.
Batch Tests are helpful when doing
Scaled tests as well as Soak Tests.
Cannot Change Parameters once the
Test has started.
33
Spirent TestCenter DHCP Testing
Interactive Mode
Select the tool-bar icon or right-click on a Host Block(s)
34
Spirent TestCenter DHCP Testing
Command Sequencer
35
Spirent TestCenter DHCP Testing
General Information on Batch Mode
As the Command Sequencer gives
you the flexibility of choosing ANY
Command, you should be careful
in the Event choosing and
sequencing.
Apart from the Protocol Specific
Commands, you would need the
Generator/Analyzer and Results
specific commands as well.
Each Event in the Command
Sequencer may require Specific
Configuration for itself; double-click
it to see.
End of Test (EOT) Results can be
viewed via the Results Reporter.
Iterative Events can be run to
support RFC 2544-like tests with
dynamic DHCP Hosts. 36
Spirent TestCenter DHCP Testing
Results Views
37
Spirent TestCenter DHCP Testing
DHCP Results
38
Spirent TestCenter DHCP Testing
Viewing Session Information
After DHCP Binding, you can View DHCP Session
Information for Assigned IP Address, Lease Time etc.
39
Spirent TestCenter DHCP Testing
Viewing Session Information Continued
40
Spirent TestCenter DHCP Testing
Starting Traffic
Right-click to start the Traffic either on a particular Port or on ALL Ports.
Analyzer is ON by default on ALL Spirent TestCenter Ports.
Start/Stop Traffic
for ALL ports
Start/Stop Traffic
on a port
41
Spirent TestCenter DHCP Testing
Viewing Stream Block Results
StreamBlock/Stream Results can be Viewed via the Results Browser
Change the Results View to any of the desired Stream Results views
42
Spirent TestCenter DHCP Testing
Host Wizard – Enabling IGMP
Add IGMP Emulation along with DHCP in the Host Wizard
This adds the IGMP configuration screen to the Wizard
43
Spirent TestCenter DHCP Testing
Host Wizard – IGMP Configuration
What version of IGMP will the Hosts use, and what group will
they join.
44
Spirent TestCenter DHCP Testing
Host Wizard – IGMP Configuration Preview
45
Spirent TestCenter DHCP Testing
IGMP Configuration – Port versus Host
IGMP Specific Parameters are configured both per Host
Block and per Port
Port Settings
46
Spirent TestCenter DHCP Testing
View Multicast Groups
47
Spirent TestCenter DHCP Testing
Multicast Traffic Sources
Can be any Host and is Selected in the Traffic Wizard
It is inherently Unidirectional
Add a UDP header for more realism
48
Spirent TestCenter DHCP Testing
Multicast Group Memberships
Host Block Group Membership can be Managed from the
Edit Group Memberships window
49
Spirent TestCenter DHCP Testing
Sending Join/Leaves Interactively
50
Spirent TestCenter DHCP Testing
IGMP Specific Batch Mode Commands
The Command Sequencer has IGMP commands too
51
Spirent TestCenter DHCP Testing
IGMP and IGMP Host Group Results
52
Spirent TestCenter DHCP Testing
DHCPv4 Server Features
Spirent TestCenter can now emulate both sides of an
Access Concentrator for testing DHCP
It provides the ability to test Access Concentrators without
the need for a real DHCP Server
Spirent TestCenter has a fully implemented DHCP Server
It provides the ability to have Pools on subnet or Pools for
Relay Agent subnets
It allows the user to easily set up a test with thousands of
pools and servers
It provides the ability to add
custom options with an easy
to use Custom Option Editor
53
Spirent TestCenter DHCP Testing
DHCPv4 Server – Where is it?
Create DHCP Servers
by using the “Add…”
host button and
selecting “DHCP Server”
55
Spirent TestCenter DHCP Testing
End of Topic
www.spirentcampus.com
56
Spirent TestCenter DHCP Testing