trex realistic traffic generator - stateless support

Post on 16-Apr-2017

2.437 Views

Category:

Engineering

10 Downloads

Preview:

Click to see full reader

TRANSCRIPT

5/2016 TRex Team v0.2

New Stateless support

Stateless High level functionality • High scale –~10M-22MPPS/core• Support 1/10/25/40/100* Gb/sec interfaces• Support for multiple traffic profiles per

interface• Profile can support multiple streams, scalable

to 10K parallel streams• Supported for each stream

– Packet template– Field engine program (src_ip = 10.0.0.1-10.0.0.255)– Send Mode : Continues/Burst/Multi burst support

Stateless High level functionality #2• Interactive support – GUI/TUI• Statistic per port• Statistic per stream (by Hardware)• Latency Jitter per stream• Fast Python automation support– Python 2.7/3.0 Client API– Python HLTAPI Client API

• Multi-user support

Traffic Profile Example

Control plane High level

Multi User

TRex Objects relations

Stateful vs Stateless

Feature Stateless StatefulFlow base No Yes

NAT No YesTunnel Yes Some are supported

L7 App emulation No Yes

Any type of packet Yes No

Latency/Jitter Per Stream Per port/Per flow sample

One stream with two directions

Python HLTAPI Automation

Interactive Console #load the trex as a server for interactive mode$sudo ./t-rex-64 –i

#connect to the server from any server ( Python 2/3.4)$./trex-console

#start traffic on all port >start -a -m 1 -f stl/imix_1pkt.py

#pause traffic on all port >pause -a

#resume traffic on all port >resume -a

#stop traffic on all port >stop -a

#show dynamic statistic >tui

#show port statistic >stats –p

#clear statistic>clear

#show stream statistic>streams

Shell

Console

Interactive TUI

Performance

Profile name Description Per core performanceimix_1pkt 1 stream/64byte 15-22MPPS

imix_3pkt_vm 3 streams/IMIX/ip range 50Gb/sec

udp_rand_size_9k1 stream, FE, random packet size 200Gb/sec

UCS UCS 240M4NICS 2xXL710

• Number of streams can scale • Performance depends on many variables.• Field engine can scale to complex scenarios. Has impact on performance

Traffic profile

Simple Interleaving streams

Simple Interleaving streams -profile

Multi streams

Multi burst

Multi burst profile

Field Engine• Flexible engine to change any field inside the

packet• Examples

– Change TOS 1-20– Range of client IP 10.0.0.1-10.0.0.254– Random packet size 64-9k– Random dest_ip range – Support any tunnel even not valid packet like

QinQ/GRE/MPLS/Ipv6/UDP/Ipv4/HTTP

• Plan to add even more flexible engine - JITLUA

Field Engine, Syn attack

Multiple Clients example

Multiple Clients profile

Covert pcap packet file to one stream

Pcap file conversion to streams

Pcap file conversion to profile of streams #2

• In this mode pcap in converted to streams and push to TRex server

• It won’t work on a big pcap file • There is an API version that push server side

pcap file• This version is limited only by server disk size.

1TB pcap file is something that we are using

Teredo tunnel (IPv6 over IPv4)

Per stream statistics• Implemented using hardware assist with Intel

X710/XL710 NIC flow director rules• With other NICs (Intel I350, 82599),

implemented in software.

Per stream statistics -TOI

Per stream statistics – Python API

Per stream latency/jitter • Base on per stream stats hardware assist • Forward specific type of packets• Filter is based on IPV4.ID and IPv6.flow_id • Software measures latency and jitter resolution is

~usec (not nsec)

Per stream statistics -TOI

DemoCisco ASR 1013 ESP100 100Gb/sec 13RU - 4KW

UCS-220M2 32GB 2x8 cores 2Ghz 2x82559 NIC (4x10Gb/sec)0.4KW 1RU , 2K$

finalized the GUI

TRex GUI• Desktop application written in JavaFX • Support Windows/Mac/Linux • Like TRex Console gives Stateless functionality

– Build a stream from scratch –Scapy like – Control e.g. Start/stop/pause/resume– Live statistics/latency/jitter

• Developed by exalt – still under dev

TRex GUI

TRex GUI – Stream builder

Roadmap

• Finalized the GUI • FM10K support gives more capability of Per

stream statistic • L2 Emulations ARP/IPv6 ND• Routing Emulations BGP/ISIS

Thank you !

Backup

Common pathsPath Description

$root t-rex-64/dpdk_set_ports/stl-sim/stl Stateless native (py) profiles/stl/yaml Stateless YAML profiles/stl/hlt Stateless HLT profiles/ko Kernel modules for DPDK/external_libs Python external libs used by server/clients/exp Golden pcap file for unit-tests/cfg Examples of config files/cap2 Stateful profiles/avl Stateful profiles - SFR profile

/automation Python client/server code for both Stateful and Stateless

/automation/regression Regression for Stateless and Stateful

/automation/config Regression setups config files

/automation/trex_control_plane/stl Stateless lib and Console

/automation/trex_control_plane/stl/trex_stl_lib Stateless lib

/automation/trex_control_plane/stl/examples Stateless Examples

top related