From df65f7b829c9520b8814d1540be4bbdd9670c1b5 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Sun, 19 Jun 2016 18:10:12 +0300 Subject: add advance cfg files --- scripts/cfg/trex_advanced_cfg-10g.yaml | 15 ++++++++++++++ scripts/cfg/trex_advanced_dont_use_x710-card1.yaml | 23 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 scripts/cfg/trex_advanced_cfg-10g.yaml create mode 100644 scripts/cfg/trex_advanced_dont_use_x710-card1.yaml (limited to 'scripts/cfg') diff --git a/scripts/cfg/trex_advanced_cfg-10g.yaml b/scripts/cfg/trex_advanced_cfg-10g.yaml new file mode 100644 index 00000000..d2ddfe15 --- /dev/null +++ b/scripts/cfg/trex_advanced_cfg-10g.yaml @@ -0,0 +1,15 @@ +- port_limit : 2 + version : 2 + #interfaces : ["04:00.0", "04:00.1", "06:00.0", "06:00.1"] # list of the interfaces to bind run ./dpdk_nic_bind.py --status + interfaces : ["04:00.0", "04:00.1"] # list of the interfaces to bind run ./dpdk_nic_bind.py --status + port_info : # set eh mac addr + prefix : setup1 + limit_memory : 1024 + port_info : # set eh mac addr + - dest_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x65] + src_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x64] + - dest_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x64] + src_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x65] + + + diff --git a/scripts/cfg/trex_advanced_dont_use_x710-card1.yaml b/scripts/cfg/trex_advanced_dont_use_x710-card1.yaml new file mode 100644 index 00000000..2a9f1c94 --- /dev/null +++ b/scripts/cfg/trex_advanced_dont_use_x710-card1.yaml @@ -0,0 +1,23 @@ +- port_limit : 2 + version : 2 + interfaces : ["06:00.0", "06:00.1"] + prefix : setup2 # WARNING,WARNING,WARNING DON'T USE THIS IF YOU DON'T KNOW WHAT YOU ARE DOING + limit_memory : 1024 # WARNING,WARNING,WARNING DON'T USE THIS IF YOU DON'T KNOW WHAT YOU ARE DOING + zmq_pub_port : 4510 # WARNING,WARNING,WARNING DON'T USE THIS IF YOU DON'T KNOW WHAT YOU ARE DOING + zmq_rpc_port : 4511 # WARNING,WARNING,WARNING DON'T USE THIS IF YOU DON'T KNOW WHAT YOU ARE DOING + port_info : # set eh mac addr + - dest_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x65] + src_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x64] + - dest_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x64] + src_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x65] + - dest_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x67] + src_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x66] + - dest_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x66] + src_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x67] + platform : + master_thread_id : 4 + latency_thread_id : 7 + dual_if : + - socket : 0 + threads : [5,6] + -- cgit 1.2.3-korg From fed15ec32feda1e79d69040834b5653047b96739 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Sun, 19 Jun 2016 18:10:25 +0300 Subject: update latency profile --- scripts/cfg/trex_advanced_cfg-10g.yaml | 4 ++-- scripts/stl/udp_1pkt_src_ip_split_latency.py | 15 ++++++++++++--- scripts/stl/udp_for_benchmarks.py | 18 ++++++++++++++++++ 3 files changed, 32 insertions(+), 5 deletions(-) (limited to 'scripts/cfg') diff --git a/scripts/cfg/trex_advanced_cfg-10g.yaml b/scripts/cfg/trex_advanced_cfg-10g.yaml index d2ddfe15..4450bb5b 100644 --- a/scripts/cfg/trex_advanced_cfg-10g.yaml +++ b/scripts/cfg/trex_advanced_cfg-10g.yaml @@ -3,8 +3,8 @@ #interfaces : ["04:00.0", "04:00.1", "06:00.0", "06:00.1"] # list of the interfaces to bind run ./dpdk_nic_bind.py --status interfaces : ["04:00.0", "04:00.1"] # list of the interfaces to bind run ./dpdk_nic_bind.py --status port_info : # set eh mac addr - prefix : setup1 - limit_memory : 1024 + prefix : setup1 # WARNING,WARNING,WARNING DON'T USE THIS IF YOU DON'T KNOW WHAT YOU ARE DOING + limit_memory : 1024 # WARNING,WARNING,WARNING DON'T USE THIS IF YOU DON'T KNOW WHAT YOU ARE DOING port_info : # set eh mac addr - dest_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x65] src_mac : [0x00, 0xe0, 0xed, 0x5d, 0x84, 0x64] diff --git a/scripts/stl/udp_1pkt_src_ip_split_latency.py b/scripts/stl/udp_1pkt_src_ip_split_latency.py index af8d4cd7..2d81f756 100644 --- a/scripts/stl/udp_1pkt_src_ip_split_latency.py +++ b/scripts/stl/udp_1pkt_src_ip_split_latency.py @@ -2,11 +2,18 @@ from trex_stl_lib.api import * # split the range of IP to cores +# add tunable by fsize to change the size of the frame +# latency frame is always 64 +# trex>start -f stl/udp_1pkt_src_ip_split_latency.py -t fsize=64 -m 30% --port 0 --force # +# + class STLS1(object): def __init__ (self): self.fsize =64; + self.lfsize =64; + def create_stream (self, dir,port_id): # create a base packet and pad it to size @@ -22,6 +29,7 @@ class STLS1(object): base_pkt = Ether()/IP(src=src_ip,dst=dst_ip)/UDP(dport=12,sport=1025) pad = max(0, size - len(base_pkt)) * 'x' + pad_latency = max(0, (self.lfsize-4) - len(base_pkt)) * 'x' vm = STLScVmRaw( [ STLVmFlowVar ( "ip_src", min_value="10.0.0.1", max_value="10.0.0.255", size=4, step=1,op="inc"), @@ -39,8 +47,7 @@ class STLS1(object): # latency stream - STLStream(packet = STLPktBuilder(pkt = "yaml/udp_64B_no_crc.pcap", - path_relative_to_profile = True), + STLStream(packet = STLPktBuilder(pkt = base_pkt/pad_latency), mode = STLTXCont(pps=1000), flow_stats = STLFlowLatencyStats(pg_id = 12+port_id)) @@ -48,7 +55,9 @@ class STLS1(object): return stream - def get_streams (self, direction = 0, **kwargs): + def get_streams (self, direction = 0, fsize = 64,lfsize = 64, **kwargs): + self.fsize =fsize; + self.lfsize =lfsize return self.create_stream(direction,kwargs['port_id']) diff --git a/scripts/stl/udp_for_benchmarks.py b/scripts/stl/udp_for_benchmarks.py index 2033e80e..956498d0 100644 --- a/scripts/stl/udp_for_benchmarks.py +++ b/scripts/stl/udp_for_benchmarks.py @@ -1,5 +1,23 @@ from trex_stl_lib.api import * +# Tunable example +# +#trex>profile -f stl/udp_for_benchmarks.py +# +#Profile Information: +# +# +#General Information: +#Filename: stl/udp_for_benchmarks.py +#Stream count: 1 +# +#Specific Information: +#Type: Python Module +#Tunables: ['stream_count = 1', 'direction = 0', 'packet_len = 64'] +# +#trex>start -f stl/udp_for_benchmarks.py -t packet_len=128 --port 0 +# + class STLS1(object): ''' Generalization of udp_1pkt_simple, can specify number of streams and packet length -- cgit 1.2.3-korg From b958f538f4f2255d3c7d39932c4e7ae6d81d67e5 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Mon, 27 Jun 2016 15:01:42 +0300 Subject: example for more flows support >10M --- scripts/cap2/http_very_long.yaml | 21 ++++++++++++++++ scripts/cfg/x710_advance_more_flows.yaml | 41 ++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 scripts/cap2/http_very_long.yaml create mode 100644 scripts/cfg/x710_advance_more_flows.yaml (limited to 'scripts/cfg') diff --git a/scripts/cap2/http_very_long.yaml b/scripts/cap2/http_very_long.yaml new file mode 100644 index 00000000..0e7bb46f --- /dev/null +++ b/scripts/cap2/http_very_long.yaml @@ -0,0 +1,21 @@ +- duration : 0.1 + generator : + distribution : "seq" + clients_start : "16.0.0.1" + clients_end : "16.0.0.255" + servers_start : "48.0.0.1" + servers_end : "48.0.255.255" + clients_per_gb : 201 + min_clients : 101 + dual_port_mask : "1.0.0.0" + tcp_aging : 0 + udp_aging : 0 + mac : [0x0,0x0,0x0,0x1,0x0,0x00] + #cap_ipg : true + cap_info : + - name: avl/delay_10_http_browsing_0.pcap + cps : 2.776 + ipg : 4000000 + rtt : 4000000 + w : 1 + diff --git a/scripts/cfg/x710_advance_more_flows.yaml b/scripts/cfg/x710_advance_more_flows.yaml new file mode 100644 index 00000000..074420ef --- /dev/null +++ b/scripts/cfg/x710_advance_more_flows.yaml @@ -0,0 +1,41 @@ +- port_limit : 4 + version : 2 + interfaces : ["02:00.0","02:00.1","84:00.0","84:00.1"] # list of the interfaces to bind run ./dpdk_nic_bind.py --status + c : 4 + #port_bandwidth_gb : 40 + port_bandwidth_gb : 10 + + port_info : # set eh mac addr + + - dest_mac : [0x68, 0x05, 0xca, 0x32, 0x0c, 0x39] + src_mac : [0x68, 0x05, 0xca, 0x32, 0x15, 0xb0] + + + - dest_mac : [0x68, 0x05, 0xca, 0x32, 0x0c, 0x38] + src_mac : [0x68, 0x05, 0xca, 0x32, 0x15, 0xb1] + + - dest_mac : [0x68, 0x05, 0xca, 0x32, 0x15, 0xb1] + src_mac : [0x68, 0x05, 0xca, 0x32, 0x0c, 0x38] + + - dest_mac : [0x68, 0x05, 0xca, 0x32, 0x15, 0xb0] + src_mac : [0x68, 0x05, 0xca, 0x32, 0x0c, 0x39] + + + platform : + master_thread_id : 0 + latency_thread_id : 8 + dual_if : + - socket : 0 + threads : [1, 2, 3, 4, 5, 6, 7] + - socket : 1 + threads : [9, 10, 11, 12, 13, 14, 15] + + + + memory : + dp_flows : 10048576 + + + + + -- cgit 1.2.3-korg From 4960031835b92ae34c7b2e1f1512fe2b34c0d8a6 Mon Sep 17 00:00:00 2001 From: imarom Date: Sun, 3 Jul 2016 14:02:29 +0300 Subject: moved client config template file to ./cfg --- scripts/cap2/client_cfg_template.yaml | 56 ----------------------------------- scripts/cfg/client_cfg_template.yaml | 56 +++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 56 deletions(-) delete mode 100644 scripts/cap2/client_cfg_template.yaml create mode 100644 scripts/cfg/client_cfg_template.yaml (limited to 'scripts/cfg') diff --git a/scripts/cap2/client_cfg_template.yaml b/scripts/cap2/client_cfg_template.yaml deleted file mode 100644 index 8257b981..00000000 --- a/scripts/cap2/client_cfg_template.yaml +++ /dev/null @@ -1,56 +0,0 @@ -# -# Client configuration example file -# The file must contain the following fields -# -# 'vlan' - is the entire configuration under VLAN -# if so, each client group must include vlan -# configuration -# -# 'groups' - each client group must contain a range of IP -# and initiator and responder maps -# 'count' represents the number of MAC devices -# on the group. -# -# initiator and responder can contain 'vlan', 'src_mac', 'dst_mac' -# - -vlan: true - -groups: - -- ip_start : 5.0.0.1 - ip_end : 5.0.0.4 - initiator : - vlan : 100 - dst_mac : "00:00:00:01:00:00" - responder : - vlan : 200 - dst_mac : "00:00:00:01:00:00" - - count : 2 - -- ip_start : 5.0.0.5 - ip_end : 5.0.0.12 - initiator : - vlan : 101 - dst_mac : "01:00:00:00:01:01" - - responder: - vlan : 201 - dst_mac : "01:00:00:00:02:01" - - count : 4 - -- ip_start : 5.0.0.13 - ip_end : 5.0.0.30 - - initiator : - vlan : 103 - dst_mac : "02:00:00:00:01:01" - responder : - - vlan : 203 - dst_mac : "02:00:00:00:02:01" - - count : 8 - diff --git a/scripts/cfg/client_cfg_template.yaml b/scripts/cfg/client_cfg_template.yaml new file mode 100644 index 00000000..8257b981 --- /dev/null +++ b/scripts/cfg/client_cfg_template.yaml @@ -0,0 +1,56 @@ +# +# Client configuration example file +# The file must contain the following fields +# +# 'vlan' - is the entire configuration under VLAN +# if so, each client group must include vlan +# configuration +# +# 'groups' - each client group must contain a range of IP +# and initiator and responder maps +# 'count' represents the number of MAC devices +# on the group. +# +# initiator and responder can contain 'vlan', 'src_mac', 'dst_mac' +# + +vlan: true + +groups: + +- ip_start : 5.0.0.1 + ip_end : 5.0.0.4 + initiator : + vlan : 100 + dst_mac : "00:00:00:01:00:00" + responder : + vlan : 200 + dst_mac : "00:00:00:01:00:00" + + count : 2 + +- ip_start : 5.0.0.5 + ip_end : 5.0.0.12 + initiator : + vlan : 101 + dst_mac : "01:00:00:00:01:01" + + responder: + vlan : 201 + dst_mac : "01:00:00:00:02:01" + + count : 4 + +- ip_start : 5.0.0.13 + ip_end : 5.0.0.30 + + initiator : + vlan : 103 + dst_mac : "02:00:00:00:01:01" + responder : + + vlan : 203 + dst_mac : "02:00:00:00:02:01" + + count : 8 + -- cgit 1.2.3-korg