Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sctp support for network performance test #1153

Merged
merged 2 commits into from
Apr 30, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
build iperf-3.1 with sctp support
Change the Dockerfile definition to pull the stable version of
iperf3 (3.1) and re-build it with sctp enabled.

Co-authored-by: Allain Legacy <allain.legacy@windriver.com>
Signed-off-by: Thomas Gao <thomas.gao@windriver.com>
  • Loading branch information
alegacy authored and Thomas Gao committed Apr 1, 2020
commit 899a8e49b7e9304a5653e15884b13551906def58
7 changes: 6 additions & 1 deletion network/benchmarks/netperf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@
# Args: --mode=worker --host=<service cluster ip> --port=5202
#
FROM debian:jessie
ENV LD_LIBRARY_PATH=/usr/local/lib

MAINTAINER Girish Kalele <gkalele@google.com>
# install binary and remove cache
RUN apt-get update \
&& apt-get install -y iperf3 curl wget net-tools gcc make \
&& apt-get install -y curl wget net-tools gcc make libsctp-dev \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /tmp

# Download and build iperf3 from sources
RUN curl -LO https://downloads.es.net/pub/iperf/iperf-3.1.tar.gz && tar zxf iperf-3.1.tar.gz
RUN cd iperf-3.1 && ./configure --prefix=/usr/local --bindir /usr/local/bin && make && make install

# Download and build netperf from sources
RUN curl -LO https://github.com/HewlettPackard/netperf/archive/netperf-2.7.0.tar.gz && tar -xzf netperf-2.7.0.tar.gz && mv netperf-netperf-2.7.0/ netperf-2.7.0
RUN cd netperf-2.7.0 && ./configure --prefix=/usr/local --bindir /usr/local/bin && make && make install
Expand Down
2 changes: 1 addition & 1 deletion network/benchmarks/netperf/nptest/nptest.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var globalLock sync.Mutex
const (
workerMode = "worker"
orchestratorMode = "orchestrator"
iperf3Path = "/usr/bin/iperf3"
iperf3Path = "/usr/local/bin/iperf3"
netperfPath = "/usr/local/bin/netperf"
netperfServerPath = "/usr/local/bin/netserver"
outputCaptureFile = "/tmp/output.txt"
Expand Down