Skip to content

Commit

Permalink
iAdding trx for VE performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashok committed Jun 1, 2017
0 parents commit 0c53505
Show file tree
Hide file tree
Showing 2,396 changed files with 464,384 additions and 0 deletions.
Binary file added _t-rex-64
Binary file not shown.
Binary file added _t-rex-64-debug
Binary file not shown.
Binary file added _t-rex-64-debug-o
Binary file not shown.
Binary file added _t-rex-64-o
Binary file not shown.
Empty file added automation/__init__.py
Empty file.
33 changes: 33 additions & 0 deletions automation/config/trex-dan.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Configuration for trex01-1g TRex machine
#
# machine_name - can be DNS name or IP for the TRex machine for ssh to the box
# machine_typ - 1G or 10G TRex machine
# config_file - [Optional] configuration file for TRex if needed
# is_dual - should the TRex inject with -p ?
# cores - how many cores should be used
# limit-ports - how many ports should be used
# latency - rate of latency packets injected by the TRex
# misc_params - [Optional] misc parameters to be passed to the trex

[trex]
machine_name=trex-dan
machine_port=8090
history_size=100
machine_type=1G
config_file=
is_dual=yes
cores=2
limit_ports=2
latency=1000
latency_condition=10000
misc_params=

# Configuration for the router connected to the TRex
#
# interface - interface that can be used to communicate with the router

[router]
type=ASR
interface=10.56.199.247
password=lab

34 changes: 34 additions & 0 deletions automation/config/trex-dev3.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Configuration for trex-dev3 TRex machine
#
# machine_name - can be DNS name or IP for the TRex machine for ssh to the box
# password - root password for TRex machine
# machine_typ - 1G or 10G TRex machine
# config_file - [Optional] configuration file for TRex if needed
# is_dual - should the TRex inject with -p ?
# version_pat - path to the TRex version and executable
# exec - executable name (which will be under the version_path)
# cores - how many cores should be used
# limit-ports - how many ports should be used
# latency - rate of latency packets injected by the TRex
# misc_params - [Optional] misc parameters to be passed to the trex

[trex]
machine_name=trex-dev3
machine_type=10G
config_file=
is_dual=yes
version_path=/auto/proj-pcube-b/apps/PL-b/tools/bp_sim2/v1.52
exec=t-rex-64
cores=2
limit_ports=2
latency=1000
# misc_params="--nc"

# Configuration for the router connected to the TRex
#
# interface - interface that can be used to communicate with the router

[router]
type=ASR
interface= 10.56.128.198
password=lab
31 changes: 31 additions & 0 deletions automation/config/trex-esp80-hhaim.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Configuration for trex01-1g TRex machine
#
# machine_name - can be DNS name or IP for the TRex machine for ssh to the box
# password - root password for TRex machine
# machine_type - 1G or 10G TRex machine
# config_file - configuration file for TRex, can be "" if default
# is_dual - should the TRex inject with -p ?
# version_path - path to the TRex version and executable
# exec - executable name (which will be under the version_path)
# cores - how many cores should be used
# limit-ports - how many ports should be used
# latency - rate of latency packets injected by the TRex

[trex]
machine_name=csi-kiwi-02
machine_type=10G
config_file=
is_dual=yes
version_path=/auto/proj-pcube-b/apps/PL-b/tools/bp_sim2/v1.32/
exec=t-rex-64
limit_ports=4
latency=1000
misc_params=

# Configuration for the router connected to the TRex
#
# interface - interface that can be used to communicate with the router

[router]
interface=10.56.192.57
password=cisco
33 changes: 33 additions & 0 deletions automation/config/trex-hhaim.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Configuration for trex01-1g TRex machine
#
# machine_name - can be DNS name or IP for the TRex machine for ssh to the box
# machine_typ - 1G or 10G TRex machine
# config_file - [Optional] configuration file for TRex if needed
# is_dual - should the TRex inject with -p ?
# cores - how many cores should be used
# limit-ports - how many ports should be used
# latency - rate of latency packets injected by the TRex
# misc_params - [Optional] misc parameters to be passed to the trex

[trex]
machine_name=10.56.217.210
machine_port=8090
history_size=100
machine_type=10G
config_file=
is_dual=yes
cores=4
limit_ports=4
latency=1000
latency_condition=1000
misc_params=

# Configuration for the router connected to the TRex
#
# interface - interface that can be used to communicate with the router

[router]
type=ASR
interface=10.56.192.57
password=cisco

35 changes: 35 additions & 0 deletions automation/config/trex01-1g.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Configuration for trex01-1g TRex machine
#
# machine_name - can be DNS name or IP for the TRex machine for ssh to the box
# password - root password for TRex machine
# machine_typ - 1G or 10G TRex machine
# config_file - [Optional] configuration file for TRex if needed
# is_dual - should the TRex inject with -p ?
# version_pat - path to the TRex version and executable
# exec - executable name (which will be under the version_path)
# cores - how many cores should be used
# limit-ports - how many ports should be used
# latency - rate of latency packets injected by the TRex
# misc_params - [Optional] misc parameters to be passed to the trex

[trex]
machine_name=trex01-1g
password=password
machine_type=1G
config_file=
is_dual=yes
version_path=/auto/proj-pcube-b/apps/PL-b/tools/bp_sim2/v1.35
exec=t-rex-64
cores=2
limit_ports=2
latency=1000
misc_params="--nc"

# Configuration for the router connected to the TRex
#
# interface - interface that can be used to communicate with the router

[router]
type=ASR
interface=10.56.30.49
password=cisco
80 changes: 80 additions & 0 deletions automation/graph_template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@

<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.load("visualization", "1", {packages:["table"]});
google.setOnLoadCallback(drawChart);
function drawChart() {

var cpu_data = google.visualization.arrayToDataTable([
['Bandwidth [Mbps]', 'CPU [%]', 'Max. Latency [usec]', 'Avg. Latency [usec]'],
!@#$template_fill_graph!@#$
])

var cpu_options = {
title: '!@#$template_fill_head!@#$',
hAxis: { title: 'Bandwidth [Mbps]', format:'#.##'},
vAxes:[
{title: 'CPU Util [%]',format:'#%', minValue:0, maxValue: 1}, // Left axis
{title: 'Latency [usec]'}, // Right axis
],
series: {0: {targetAxisIndex:0},
1: {targetAxisIndex:1},
2: {targetAxisIndex:1},
},
colors: ["green", "red", "blue"],
};

var chart = new google.visualization.LineChart(document.getElementById('chart_div'));

chart.draw(cpu_data, cpu_options);

var plot_data = new google.visualization.DataTable();
plot_data.addColumn('number', 'BW [Mbps]');
plot_data.addColumn('number', 'PPS [Kpps]');
plot_data.addColumn('number', 'CPU Util. [%]');
plot_data.addColumn('number', 'BW / CPU');
plot_data.addColumn('number', 'Max. Latency [usec]');
plot_data.addColumn('number', 'Avg. Latency [usec]');
plot_data.addColumn('number', 'Pkt Drop [pkts]');
plot_data.addRows([
!@#$template_fill_table!@#$
]);

var formatter = new google.visualization.NumberFormat(
{fractionDigits:2});
formatter.format(plot_data, 0); // Apply formatter to Bandwidth util column

var formatter = new google.visualization.NumberFormat(
{fractionDigits: 0});
formatter.format(plot_data, 1); // Apply formatter to PPS column

formatter = new google.visualization.NumberFormat(
{pattern:'#,###%'});
formatter.format(plot_data, 2); // Apply formatter to CPU util column

formatter = new google.visualization.NumberFormat(
{fractionDigits: 2});
formatter.format(plot_data, 3); // Apply formatter to BW / CPU column

formatter = new google.visualization.NumberFormat(
{fractionDigits: 0});
formatter.format(plot_data, 4); // Apply formatter to Avg Latency util column
formatter.format(plot_data, 5); // Apply formatter to Max Latency util column
formatter.format(plot_data, 6); // Apply formatter to Pkt Drop

var table = new google.visualization.Table(document.getElementById('table_div'));

table.draw(plot_data, {showRowNumber: true});
}

</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px; position: relative;"></div>
<div id="table_div" style="display: table"></div>
</body>
</html>

Loading

0 comments on commit 0c53505

Please sign in to comment.