-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from stevenvanrossem/master
update ovs-user-service example
- Loading branch information
Showing
19 changed files
with
1,517 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
service-projects/sonata-ovs-user-service-emu/configure_ovs1.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! /bin/bash | ||
|
||
NAME="ovs1" | ||
|
||
|
||
echo "set controller" | ||
# configuration after startup (needs CONTROLLER_IP): | ||
CONTROLLER_IP="10.20.0.2" | ||
CONTROLLER="tcp:$CONTROLLER_IP:6633" | ||
ovs-vsctl set-controller $NAME $CONTROLLER | ||
|
||
echo "set flow entries" | ||
#test flow entries | ||
PORT0_IP="10.30.1.2" | ||
PORT1_IP="10.30.3.2" | ||
ovs-ofctl add-flow $NAME "dl_type=0x0800,nw_dst=$PORT1_IP,actions=output:2" | ||
ovs-ofctl add-flow $NAME "dl_type=0x0800,nw_dst=$PORT0_IP,actions=output:1" | ||
ovs-ofctl add-flow $NAME "dl_type=0x0806,actions=flood" | ||
ovs-ofctl del-flows $NAME 'in_port=1' | ||
ovs-ofctl del-flows $NAME 'in_port=2' | ||
#ovs-ofctl add-flow $NAME 'in_port=1,actions=output:2' | ||
#ovs-ofctl add-flow $NAME 'in_port=2,actions=output:1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
# | ||
# This is an example for a profiling experiment descriptor (PED). | ||
# It defines profiling experiments for the sonata-fw-vtc-service-emu example service. | ||
# | ||
descriptor_version: 0.1 | ||
# SONATA-like identifier (just in case we need it) | ||
vendor: "eu.sonata-nfv" | ||
name: "ovs-profile-experiment" | ||
version: "0.1" | ||
author: "Manuel Peuster, Paderborn University, [email protected]" | ||
description: "This is an example profiling experiment descriptor (PED)." | ||
|
||
# path to the package of the service we want to profile | ||
service_package: "./sonata-fw-vtc-service.son" | ||
|
||
# | ||
# First type of experiments: Service level experiments | ||
# | ||
service_experiments: | ||
- name: "service_throughput" | ||
description: "iperf test for entire service" | ||
repetitions: 1 | ||
time_limit: "11" | ||
# NSD to be used (SONATA-like vendor.name.version reference) | ||
service: "eu.sonata-nfv.sonata-fw-vtc-service.0.1" | ||
# additional containers for traffic generation/measurements (like SAPs) | ||
measurement_points: | ||
- name: "ns_port0" | ||
connection_point: "ns:serviceout" | ||
container: "sonata-son-emu-sap:latest" | ||
configuration: | ||
- "ethtool -K port0 tx off" | ||
- "arp -s 10.20.30.40 11:22:33:44:55:66" | ||
cmd: 'iperf -c 10.20.30.40 -t999 -u -b${1,2,3,5}M' | ||
cmd_order: 2 | ||
- name: "ns_port1" | ||
connection_point: "ns:servicein" | ||
container: "sonata-son-emu-sap:latest" | ||
configuration: | ||
- "ethtool -K port1 tx off" | ||
cmd: 'python iperf_server.py "-s -u -i1 -fm"' | ||
cmd_order: 1 | ||
input_metrics: "msd_input.yml" | ||
output_metrics: "msd_output.yml" | ||
profile_calculations: | ||
- name: "ovs1_profile" | ||
input_metric: "rx_packet_rate@ovs1:port0" | ||
output_metric: "cpu@ovs1" | ||
- name: "ctrl_profile" | ||
input_metric: "rx_packet_rate@ctrl:ctrl-port" | ||
output_metric: "cpu@ctrl" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
# | ||
# This is an example for a profiling experiment descriptor (PED). | ||
# It defines profiling experiments for the sonata-fw-vtc-service-emu example service. | ||
# | ||
descriptor_version: 0.1 | ||
# SONATA-like identifier (just in case we need it) | ||
vendor: "eu.sonata-nfv" | ||
name: "ovs-profile-experiment" | ||
version: "0.1" | ||
author: "Manuel Peuster, Paderborn University, [email protected]" | ||
description: "This is an example profiling experiment descriptor (PED)." | ||
|
||
# path to the package of the service we want to profile | ||
service_package: "./sonata-fw-vtc-service.son" | ||
|
||
# | ||
# First type of experiments: Service level experiments | ||
# | ||
service_experiments: | ||
- name: "service_throughput" | ||
description: "iperf test for entire service" | ||
repetitions: 1 | ||
time_limit: "11" | ||
# NSD to be used (SONATA-like vendor.name.version reference) | ||
service: "eu.sonata-nfv.sonata-fw-vtc-service.0.1" | ||
# additional containers for traffic generation/measurements (like SAPs) | ||
measurement_points: | ||
- name: "ns_port0" | ||
connection_point: "ns:serviceout" | ||
container: "sonata-son-emu-sap:latest" | ||
configuration: | ||
- "ethtool -K port0 tx off" | ||
cmd: 'iperf -c 10.30.3.2 -t999 -u -b${1,2,3,4,5}M' | ||
cmd_order: 2 | ||
- name: "ns_port1" | ||
connection_point: "ns:servicein" | ||
container: "sonata-son-emu-sap:latest" | ||
configuration: | ||
- "ethtool -K port1 tx off" | ||
cmd: 'python iperf_server.py "-s -u -i1 -fm"' | ||
cmd_order: 1 | ||
input_metrics: "msd_input.yml" | ||
output_metrics: "msd_output.yml" | ||
profile_calculations: | ||
- name: "ovs1_profile" | ||
input_metric: "rx_packet_rate@ovs1:port0" | ||
output_metric: "cpu@ovs1" | ||
- name: "ctrl_profile" | ||
input_metric: "rx_packet_rate@ctrl:ctrl-port" | ||
output_metric: "cpu@ctrl" | ||
|
Oops, something went wrong.