Demo entry 2334368

QoS

   

Submitted by anonymous on Jul 29, 2015 at 17:57
Language: Bash. Code size: 598 Bytes.

#!/bin/bash

#IP address of FB PC, PC#1:
ip=172.30.254.28

#BE UL stream. 10x1Mbps=10Mbps
iperf -c $ip -u -w 256k -t 100 -b 1M -P 10 -p 2222 > /dev/null 2>&1 &

#DSCP=46 UL stream, 1.6Mbps
iperf -c $ip -u -w 256k -t 100 -b 1.6M -S 184 -p 3346 > /dev/null 2>&1 &

#DSCP=40 UL stream, 0.4Mbps
iperf -c $ip -u -w 256k -t 100 -b 0.4M -S 160 -p 3340 > /dev/null 2>&1 &  

#Servers listening to DL streams:
iperf -s -u -w 256k -p 4646 > DSCP46_DL.txt &
iperf -s -u -w 256k -p 4040 > DSCP40_DL.txt &
iperf -s -u -w 256k -p 1111 > BE_DL.txt
#Three txt files are generated with DL results.

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).