-
Notifications
You must be signed in to change notification settings - Fork 43
iperf3
KimJeongChul edited this page Apr 26, 2019
·
6 revisions
Library : subprocess
EC2 Setting
- Start your EC2 instance, Configure EC2 Network and Subnet(same Lambda functions)
- Configure your Security Group
- Check your EC2 internal-ip (ex : 172.31.XX.XX)
- Install iperf3
sudo yum -y install iperf3
- Start iperf3 server default port : 5201
sudo iperf3 -s -p [PORT]
-
Check your Lambda VPC Permission AWSLambdaVPCAccessExecutionRole
-
Config your Lambda Network
Lambda payload(test-event) example:
server_ip : EC2 internal ip
server_port : iperf3 server port
reverse options : True or False
- We can let a client(Lambda) work as either a data uploader(default / False) or downloader(with -R options / True).
- True : downloader
- False : uploader
test_time : Sets the interval time in seconds between periodic bandwidth, jitter, and loss reports.
{
"server_ip": [SERVER_IP],
"server_port": [SERVER_PORT],
"test_time": [NUMBER_OF_TEST_TIME],
"reverse" : [REVERSE_OPTION]
Lambda Output : network sender and recevier bandwidth