realistic traffic
play

Realistic Traffic Generator Hanoch Haim Principal Engineer Agenda - PowerPoint PPT Presentation

Realistic Traffic Generator Hanoch Haim Principal Engineer Agenda Overview Stateless Advance Stateful 2 TRex Results Open Source Cisco Customers 3 TRex Usa sage ge Ana nalyti ytics cs mont nthl hly y repo


  1. Realistic Traffic Generator Hanoch Haim – Principal Engineer

  2. Agenda • Overview • Stateless • Advance Stateful 2

  3. TRex – Results Open Source • Cisco Customers • 3

  4. TRex Usa sage ge Ana nalyti ytics cs mont nthl hly y repo port t (*) (*) ~1200 0 distinct return rnin ing users, (**) Users are distinct 4

  5. TRex models of operation L7, DUT terminate • TCP/SSL, flow based DUT inspect L7. • does not change TCP. Flow based DUT L2/L3 Switch , • packet based 5

  6. What Problem is Being Solved? • Networks include complex L4-7 features, such as Load Balancer, DPI/AVC, Firewall, NAT • LB Firewall, NAT DPI/AVC • Requires testing with stateful and realistic traffic mix 6

  7. What Problem is Being Solved? • Traffic generators for realistic traffic are • Expensive ~$100-500K • Not scalable for high rates • Not flexible • Implication • Limited and late testing • Different benchmarks and test methodologies • Real life bottlenecks and design issues 7

  8. What is TRex? • Linux user-space application uses DPDK library • Stateless ss: Stream based uses Scapy • Stateful: flow based Generates, manipulates and amplifies based on templates of real, captured flows (W/O TCP stack) • High perform ormance ance: up to 200 Gb/sec • Low cost: Standard server hardware • Flexible and Open Software • Virtualization • Easy installation and deployment 8

  9. 9

  10. Stateless

  11. Stateless High level functionality • High scale – ~10M-35MPPS/core • Profile can support multiple streams, scalable to 20K parallel streams • Interactive support – GUI/TUI • Statistic per port/ stream (e.g. latency/ Jitter) • Python automation support • Multi-user support • Capture to Wireshark • Scalable services using plugins (e.g. DHCP,IPv6) 11

  12. Traffic Profile Example 12

  13. Control plane High level 13

  14. One stream with two directions 14

  15. Python Automation example 15

  16. Performance XL710 MPPS/Core link 16

  17. Advanced Stateful

  18. Use ser sp space ce TCP P st stack ck 18

  19. TRex ASTF fe feature ures High scale • TCP is the core component • Can be tuned MSS/initwnd/delay-ack • TCP is based on BSD with acceleration • Interactive • Accurate latency measurement – usec • Simulation of latency/jitter/drop in high rate • OpenSSL integration • L7 emulation layer • Emulate application using “ micro-instructions ” • Field engine • 19

  20. L7 7 Emul ulati tion n layer er Client side Server side 20

  21. HTTP P si simpl ple pr profi file le 21

  22. Client ent si side de ps pseud udo co code de 22

  23. Server r si side de ps pseud udo co code de 23

  24. Pr Profi file e with h two templ plat ate 24

  25. Statis isti tic c 25

  26. Und nder the he ho hood 26

  27. TCP P st stack ck – Flow Sca cale -TX TX 10M flows 320GByte 320M mbuf =10GB 0.01GB 27

  28. TCP P st stack ck – Flow Sca cale iss ssue ue - RX RX 10M flows 320GByte 3-50GB for 1% drop rate 0.01GB 28

  29. TCP sta tack k – Delay/Ji /Jitte tter/ r/Dro Drop sim imulat ation ion 100MPPS *100msec =10MPPS in Queue 100MPPS *100msec =10*16MPPS=0.16G B 29

  30. TRex vs NGINX 3

  31. Performance setup #2 3

  32. Performance numbers x80 faster x2000 less memory https://trex-tgn.cisco.com/trex/doc/trex_astf_vs_nginx.html 3

Recommend


More recommend