{"id":1392,"date":"2021-12-29T08:20:39","date_gmt":"2021-12-28T23:20:39","guid":{"rendered":"http:\/\/192.168.20.1\/?p=1392"},"modified":"2021-12-29T22:15:49","modified_gmt":"2021-12-29T13:15:49","slug":"cisco-trex-traffic-generator","status":"publish","type":"post","link":"https:\/\/rlab.cavtime.net\/?p=1392","title":{"rendered":"TRex Traffic Generator"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>TRex Traffic Generator \u306e\u6982\u8981\u3092\u8ff0\u3079\u308b\u3002<\/p>\n<h2>Reference<\/h2>\n<ul>\n<li><a href=\"https:\/\/trex-tgn.cisco.com\/\" target=\"_blank\" rel=\"noopener\">TRex<\/a><\/li>\n<li>DPDK<\/li>\n<li>Scapy<\/li>\n<li>HLT<\/li>\n<\/ul>\n<h2>Summary<\/h2>\n<p>TRex \u3067\u5b9f\u73fe\u3067\u304d\u308b\u3053\u3068\u306e\u6982\u8981\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b<\/p>\n<blockquote>\n<ul>\n<li>Large scale &#8211; Supports about 10-30 million packets per second (Mpps) per core, scalable with the number of cores<\/li>\n<li>Each profile can support multiple streams, scalable to 10K parallel streams<\/li>\n<li>Each stream supports:\n<ul>\n<li>Packet template &#8211; ability to build any packet (including malformed) using Scapy (example: MPLS\/IPv4\/Ipv6\/GRE\/VXLAN\/NSH)<\/li>\n<li>Ability to change any field inside the packet<\/li>\n<li>Ability to change the packet size<\/li>\n<li>Mode &#8211; Continuous\/Burst\/Multi-burst<\/li>\n<li>Rate specification in pps, line rate percentage or L1\/L2 bandwidth<\/li>\n<li>Action &#8211; stream can trigger a stream<\/li>\n<\/ul>\n<\/li>\n<li>Interactive support &#8211; Fast Console, GUI<\/li>\n<li>Statistics per interface or per stream supported in hardware\/software<\/li>\n<li>Latency and Jitter per stream<\/li>\n<li>Blazingly fast Python automation API<\/li>\n<li>Capture\/Monitor traffic with BPF filters &#8211; no need for Wireshark<\/li>\n<li>Capture network traffic by redirecting the traffic to Wireshark<\/li>\n<li>PCAP file import\/export with huge pcap file transmission support (e.g. 1TB pcap file) for DPI<\/li>\n<li>Multi-user support<\/li>\n<\/ul>\n<\/blockquote>\n<p>\u3068\u3042\u308b\u3002<\/p>\n<h2>Functions Summary<\/h2>\n<p>\u4e0a\u8a18\u3092\u5b9f\u73fe\u3059\u308b\u65b9\u6cd5\u3068\u3057\u3066<\/p>\n<ul>\n<li>Stateless(stl) mode : \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u5668\u7b49\u306ePerformance\u7b49\u306e\u8a66\u9a13\u3059\u308b\u305f\u3081\u306eTraffic\u3092\u751f\u6210\u3059\u308bmode<\/li>\n<li>Stateful(stf) \/Advanced Stateful(astf) mode : Application\u3084Internet Traffic \u3092\u6a21\u5023\u3057\u305fPacket\u3092\u30d9\u30fc\u30b9\u306bTraffic\u751f\u6210\u3059\u308bmode<\/li>\n<li>Automation : Python Code \u304b\u3089 TRex Client\/Server \u306e JSON-RPC \u3092\u5229\u7528\u3057Traffic\u3092\u751f\u6210<\/li>\n<li>Emulation(Emu) :<\/li>\n<\/ul>\n<p>\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<h2>Technology<\/h2>\n<p>TRex \u306f<\/p>\n<ul>\n<li>DPDK<\/li>\n<li>Python Scapy<\/li>\n<li>HLT(High Level Testing)<\/li>\n<li>BIRD<\/li>\n<\/ul>\n<p>\u306e Technology \u3092\u5229\u7528\u3057\u3066\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u4f5c\u3089\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>TRex\u3092\u8a73\u3057\u304f\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u306f\u3053\u308c\u3089\u306eTechnology\u306e\u77e5\u8b58\u3092\u4e88\u3081\u7406\u89e3\u3057\u3066\u304a\u304f\u3053\u3068\u3092\u304a\u52e7\u3081\u3059\u308b\u3002<\/p>\n<h2>Contents<\/h2>\n<p>\u5404\u65b9\u6cd5\u306e\u8a73\u7d30\u306f<\/p>\n<ul>\n<li><a href=\"https:\/\/rlab.cavtime.net\/?p=1406\" target=\"_blank\" rel=\"noopener\">TRex Stateless Mode<\/a><\/li>\n<li>TRex Statefil \/ Advanced Stateful Mode<\/li>\n<li>TRex Automation<\/li>\n<li>TRex Emulation<\/li>\n<\/ul>\n<p>\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview TRex Traffic Generator \u306e\u6982\u8981\u3092\u8ff0\u3079\u308b\u3002 Reference TRex DPDK Scapy HLT Summary TRex \u3067\u5b9f\u73fe\u3067\u304d\u308b\u3053\u3068\u306e\u6982\u8981\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b Larg [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[108],"tags":[],"class_list":["post-1392","post","type-post","status-publish","format-standard","hentry","category-traffic-generator"],"_links":{"self":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1392"}],"version-history":[{"count":9,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1392\/revisions"}],"predecessor-version":[{"id":1423,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1392\/revisions\/1423"}],"wp:attachment":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}