N2X Defining Traffic
N2X Defining Traffic
N2X Defining Traffic
Preface
The Agilent N2X helps you build up real-world network traffic scenarios in just a
few simple steps.
N2X enables users to build multi-layer Protocol Data Units (PDUs) from
a wide range of predefined protocols, or even write their own proprietary
protocols with Extensible Markup Language (XML), to perform a test.
While the traffic is running, you can observe real-time measurements
on a per port, per stream, or per field basis. The N2X’s PDU Builder is a
flexible software tool for creating PDUs. A key feature is that it can easily
generate a series of values by applying a modifier to certain fields, such
as specifying a range of IP addresses. This application note provides
an illustrated tutorial on how to define and modify traffic on the N2X.
2
Defining Traffic with N2X
Introduction
Features of the N2X PDU Builder
A powerful component of the Agilent N2X, the flexible PDU Builder offers you
the following advantages:
• Traffic consists of Layer-2 PDUs, Layer-3 PDUs, or any custom PDU defined
in an XML file.
• A profile refers to how the traffic is sent (constant or bursty), the traffic load,
and the number of frames to send (continuous or a specific number). You can
use the slider bar on the GUI to dynamically change a profile’s offered load
while you observe the effect on performance.
• A stream group is a set of streams with a common PDU header type and
PDU length distribution. You can edit the PDU header or payload from the
stream group’s packet template, or you can apply field modifiers to generate
a range of values.
3
Defining Traffic with N2X
• A stream can be either a single flow or a set of flows with a unique stream
ID. When you vary a field’s values with a field modifier, you have the choice
of generating only one stream, or a separate measurable stream for each
value. Statistics are collected on a per-port, per-stream or per-field (such as
VLAN ID) basis.
• A flow is traffic with a unique PDU header (i.e. specific header field values).
4
Defining Traffic with N2X
Defining PDUs
Tip: You can define 15 traffic profiles per port, and up to 1023 – 4095
stream groups per port, depending on the port type.
5
Defining Traffic with N2X
6
Defining Traffic with N2X
Tip: The Packet Template tab contains N2X’s PDU builder, where you
can define the structure and contents of the PDUs to be transmitted.
7
Defining Traffic with N2X
Tip: The number of layers you can encapsulate is limited only by the length of the
PDU. You can add protocol layers in any order, or create multiple instances of the
same protocol in non-standard ways to enable negative testing.
8
Defining Traffic with N2X
Figure 10:
9
Defining Traffic with N2X
10
Defining Traffic with N2X
Tip: A flow is traffic with a unique PDU header. A stream is a set of flows with a
unique stream ID. Field modifiers allow you to quickly generate multiple streams
or one stream with multiple flows. Since statistics are usually measured on
a per-stream basis, you should generate multiple streams when you want to
measure the result of each field value on the device’s performance.
11
Defining Traffic with N2X
4. Choose Yes to generate separate streams for each field value, or choose
No to generate one stream with separate flows for each field value.
12
Defining Traffic with N2X
Observe that the pairs (192.1.x.2, 192.2.x.2) are always together. When
the two modifiers are independent, their field values have a one-to-one
relationship. When the modifiers are linked, streams will be created for
all combinations of values.
Tip: The diagram in Preview shows the pattern of the resulting streams.
13
Defining Traffic with N2X
4. Choose Linked.
14
Defining Traffic with N2X
Tip: The Advanced tab provides greater flexibility by allowing you to apply a field
modifier to one or more contiguous bits located anywhere within the first 256
bytes of the PDU, regardless of normal field boundaries. The maximum size of
this custom field is 32 bits.
The offset is the starting location of the custom field within the packet
header. It can be from 1 to 2048 bits, where 1 indicates the most
significant bit of the first byte of the packet header template.
The To field is automatically calculated when you type values for the
From and Count fields and press Enter. If you select a modifier other
than Increment or Decrement, the Count and Step fields do not apply.
15
Defining Traffic with N2X
Tip: When you save a test session from the Main View menu’s Session -> Save,
all defined PDUs will be saved along with other configurations. However, you can
also save a single PDU definition, as illustrated below.
Tip: Right click the root node of the PDU tree and select Open to open a
saved PDU file. The PDU you open will replace the existing PDU.
2. Select Save.
3. Type a file name and save to the desired directory as a PDU file.
16
Defining Traffic with N2X
<Drive>:\Program Files\Agilent\N2X\<SessionType>\<version>\protocols\
doc\xml_intro.pdf
<Drive>:\Program Files\Agilent\N2X\<SessionType>\<version>\protocols\
doc\xml_field_ref.htm
Important: Although these files can serve as a good model to create your own
definitions, the \Protocols directory is intended only for Agilent XML files.
To avoid your custom files being overwritten or deleted when you install new
versions of the software, you should store these files in
<Drive>:\Program Files\Agilent\N2X\<SessionType>\UserData\UserProtocols
Custom XML files must have a unique name within the application.
If you add a new XML file while N2X is running, you may have to restart N2X for
the file to load.
In this example, we have created an XML file that describes a custom protocol
called MyProtocol in the \UserProtocols directory.
17
Defining Traffic with N2X
Step 5: Select the new protocol from the Packet Template tab
1. Click the Add Protocol button.
18
Defining Traffic with N2X
A traffic profile defines the traffic load, how the traffic is sent (constant or
bursty), and the number of frames to send (continuous or an exact number).
Each port can contain up to 15 traffic profiles.
19
Defining Traffic with N2X
You can increase the Burst IDT (inter-departure time) by decreasing the
average load or increasing the burst length.
Single shot mode requires a manual start each time you send the PDUs.
Tip: You can change the traffic load of any profile while the test is running. The
traffic load applies to all the stream groups in the profile. However, if you want
to add/remove stream groups or modify stream group properties, you must first
stop the traffic by clicking the Traffic button.
20
Defining Traffic with N2X
Tip: Stream check boxes allow you to enable or disable individual stream
groups at anytime. By deselecting the profile, you can disable all stream
groups at once.
Using the new Explorer view you can control the traffic load across more than
one chassis, card, port, or profile at the same time. For example, you can select a
chassis (to change the load across all cards/ports/profiles within that chassis),
a port (to control the load on all profiles within the port), and an individual profile.
In this example, you can change the load for each selection at the same time.
2.
21
Defining Traffic with N2X
4. Use Ctrl + Left click to select multiple chassis, ports and profiles in
which you want to control the traffic load.
5. Position the traffic slider bar to the required position. The load is
displayed next to each Port and Profile in the Explorer view.
Time-saving tips
These short cuts show you how to minimize configuration time by manipulating
stream groups and profiles on any port in your test.
22
Defining Traffic with N2X
4. Select the target profile onto which the stream groups will be pasted.
5. Right click and select Paste.
23
Defining Traffic with N2X
Tip: You can also Shift + Left click the first row and the last to select the
rows in between.
24
Defining Traffic with N2X
Tip: Simply click a cell displaying a PDU header field and edit it directly
or add a field modifier with the new spreadsheet editing feature. The
cell is editable when an I-beam cursor appears.
25
Defining Traffic with N2X
26
Defining Traffic with N2X
27
www.agilent.com/comms/n2x
Asia Pacific:
Support Agilent Technologies
19/F, Cityplaza One, 1111 King’s Road,
Technical support is available throughout the support Taikoo Shing, Hong Kong, SAR
life of the product. Support is available to verify Tel: (852) 3197-7777
Fax: (852) 2506-9233
that the equipment works properly, to help with
product operation, and to provide basic measurement Australia/New Zealand:
Agilent Technologies Australia Pty Ltd
assistance for the use of the specified capabilities, at 347 Burwood Highway
no extra cost, upon request. Forest Hill, Victoria 3131
Tel: 1-800-629-485 (Australia)
Fax: (61-3) 9272-0749
Ordering Information Tel: 0-800-738-378 (New Zealand)
Fax: (64-4) 802-6881
To order and configure the test system consult your
local Agilent field engineer.
This information is subject to change without notice.
Printed on recycled paper