2.2.4. C# API¶
The following tests have been performed by executing an RTI Perftest C# Publisher and Subscriber between two nodes, connected to a switch via Ethernet. The communication has been restricted to a single interface and the transport has been set to UDPv4.
Find information about the hardware, network, and command-line parameters after each of the tests.
2.2.4.1. Unkeyed, UDPv4 10Gbps Network, C#¶
The graph below shows the one-way latency without load between a Publisher and a Subscriber running in two Linux nodes in a 10Gbps network. The numbers are for best-effort as well as strict reliable reliability scenarios.
Note
We use the median (50th percentile) instead of the average in order to get a more stable measurement that does not account for spurious outliers. We also calculate the average value and other percentile values, which can be seen in the Detailed Statistics section below.
Detailed Statistics
The following tables contain the raw numbers presented by a simplified version of RTI Perftest for the Modern C# implementation. These numbers are the exact output with no further processing.
Best Effort
Sample Size (Bytes) |
Avg (μs) |
Std (μs) |
Min (μs) |
Max (μs) |
50% (μs) |
90% (μs) |
99% (μs) |
99.99% (μs) |
99.9999% (μs) |
---|---|---|---|---|---|---|---|---|---|
32 |
16 |
3.7 |
15 |
636 |
16 |
17 |
18 |
25 |
636 |
64 |
16 |
3.9 |
16 |
572 |
16 |
17 |
18 |
27 |
572 |
128 |
16 |
5.2 |
16 |
582 |
17 |
17 |
18 |
25 |
582 |
256 |
17 |
3.3 |
16 |
615 |
17 |
18 |
20 |
27 |
615 |
512 |
19 |
4.4 |
17 |
483 |
19 |
21 |
22 |
29 |
483 |
1024 |
27 |
369.2 |
18 |
100064 |
26 |
31 |
51 |
67 |
100064 |
2048 |
34 |
138.5 |
20 |
100061 |
31 |
50 |
65 |
73 |
100061 |
4096 |
46 |
226.0 |
25 |
100098 |
46 |
58 |
63 |
78 |
100098 |
8192 |
44 |
10.2 |
36 |
510 |
39 |
59 |
62 |
70 |
510 |
16384 |
91 |
26.3 |
47 |
552 |
82 |
123 |
129 |
153 |
552 |
32768 |
176 |
8.6 |
70 |
643 |
176 |
178 |
181 |
196 |
643 |
63000 |
189 |
8.4 |
108 |
1177 |
189 |
190 |
194 |
203 |
1177 |
Reliable
Sample Size (Bytes) |
Avg (μs) |
Std (μs) |
Min (μs) |
Max (μs) |
50% (μs) |
90% (μs) |
99% (μs) |
99.99% (μs) |
99.9999% (μs) |
---|---|---|---|---|---|---|---|---|---|
32 |
18 |
4.1 |
17 |
645 |
18 |
19 |
20 |
33 |
645 |
64 |
18 |
1.4 |
17 |
571 |
18 |
18 |
20 |
46 |
571 |
128 |
18 |
5.8 |
17 |
639 |
18 |
19 |
38 |
41 |
639 |
256 |
20 |
7.5 |
18 |
870 |
19 |
30 |
38 |
45 |
870 |
512 |
20 |
7.4 |
18 |
484 |
20 |
22 |
41 |
49 |
484 |
1024 |
25 |
7.8 |
20 |
766 |
26 |
29 |
54 |
58 |
766 |
2048 |
29 |
9.5 |
21 |
954 |
30 |
33 |
46 |
420 |
954 |
4096 |
31 |
11.7 |
26 |
962 |
31 |
36 |
61 |
625 |
962 |
8192 |
45 |
14.4 |
37 |
723 |
40 |
61 |
80 |
124 |
723 |
16384 |
90 |
27.5 |
48 |
552 |
89 |
129 |
145 |
158 |
552 |
32768 |
139 |
17.7 |
75 |
601 |
133 |
167 |
180 |
190 |
601 |
63000 |
191 |
14.4 |
116 |
1048 |
191 |
193 |
198 |
210 |
1048 |
Perftest Scripts
To produce these tests, we executed RTI Perftest for C#. The exact script used can be found here:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 | #!/bin/bash filename=$0 script_location=$(cd "$(dirname "$filename")" || exit 255; pwd) export datasizes="32 64 128 256 512 1024 2048 4096 8192 16384 32768 63000" export datasizes_extended="${datasizes} 100000 500000 1048576 1548576 4194304 10485760" export domain="2" export exec_time=20 export num_reps=1 export instance_number=100000 export core=0 # We will use some colors to improve visibility of errors and info messages. RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[0;33m' BLUE='\033[0;34m' LIGHTBLUE='\033[0;36m' NC='\033[0m' INFO_TAG="${GREEN}[INFO]:${NC}" WARNING_TAG="${YELLOW}[WARNING]:${NC}" ERROR_TAG="${RED}[ERROR]:${NC}" export ip_machine_1="10.2.78.20" export ip_machine_2="10.2.78.21" export if10Gbps="enp1s0f0" export if1Gbps="eno1" ################################################################################ function disable_colors() { export RED="" export GREEN="" export YELLOW="" export NC="" export BLUE="" export LIGHTBLUE="" export INFO_TAG="${GREEN}[INFO]:${NC}" export WARNING_TAG="${YELLOW}[WARNING]:${NC}" export ERROR_TAG="${RED}[ERROR]:${NC}" } function change_domain() { if [[ "$domain" == "1" ]]; then export domain="2" else export domain="1" fi } # Usage: execute_test <keyed/unkeyed> <rel/be> <datasizes> <batchSize> function execute_test() { local keyed_unkeyed=$1 local rel_be=$2 local datasizes_test=$3 local other_args=$4 local name_suffix=$5 local commands_string_test=$commands_string local tag="" if [[ "${keyed_unkeyed}" == "keyed" ]]; then commands_string_test="${commands_string_test} -keyed -instances $instance_number" tag="[${YELLOW}${transport}${NC}|${BLUE}K${NC}|" else tag="[${YELLOW}${transport}${NC}|${LIGHTBLUE}UK${NC}|" fi if [[ "${rel_be}" == "be" ]]; then commands_string_test="${commands_string_test} -bestEffort" tag="${tag}${YELLOW}BE${NC}]" else tag="${tag}${RED}REL${NC}]" fi tag="${tag}[${LIGHTBLUE}${lat_thr}${NC}]" local output_file=$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}.csv if [[ "$role" == "pub" ]]; then echo -e "${YELLOW}[TEST]: $keyed_unkeyed, $rel_be. ${NC}" fi if [[ "$NO_TASKSET" == "" ]]; then if [[ "$LANGUAGE" != "java" && "$LANGUAGE" != "cs" ]]; then export pre_command_string="taskset -c $core" fi fi if [[ "$LANGUAGE" == "python" ]]; then export pre_command_string="python3 " fi if [[ "$DOCKER" == "1" ]]; then export pre_command_string="taskset -c $core docker run --net=host -v /home/perfuser/rti_license_connextpro.dat:/opt/rti.com/rti_connext_dds-7.3.0/rti_license.dat rticom/perftest:7.3.0-EAR " executable="" fi # Get the aprox time this will take: total_tests=$((`wc -w <<< "$datasizes_test"` * num_reps)) total_time=$((total_tests * exec_time)) touch $output_file local no_headers="" local current_test=0 for index in $(seq 1 ${num_reps}); do for DATALEN in ${datasizes_test}; do current_test=$((current_test + 1)) export command="$pre_command_string $executable -domain $domain -dataLen $DATALEN $commands_string_test $other_args $no_headers" if [[ "$role" == "pub" ]]; then echo -e "Test ${tag} (${current_test}/${total_tests}) -- Total time = ${total_time}s" echo -e ${BLUE}$command${NC} else echo -e ${LIGHTBLUE}$command${NC} fi if [[ "$LANGUAGE" == "cs" && "$role" == "pub" ]]; then sleep 3 fi if [[ "$raw" == "1" && "$role" == "sub" ]]; then sleep 5 fi if [[ "${get_netstat_info}" == "1" ]]; then echo -e "${INFO_TAG} Getting netstat info before" netstat -s -u | grep -e "error" -e "packet" > $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_before.txt fi eval $command >> $output_file; if [[ "${get_netstat_info}" == "1" ]]; then echo -e "${INFO_TAG} Getting netstat info after" netstat -s -u | grep -e "error" -e "packet" > $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_after.txt touch "$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat.csv" python3 $script_location/../../../tools/diff_netstat_output.py \ -n $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_after.txt \ -o $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_before.txt \ -d $DATALEN $no_header_netstat \ -csv >> "$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat.csv" rm -rf $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_*.txt no_header_netstat=" -nh" fi no_headers=" -noOutputHeaders" change_domain done done } ################################################################################ # PARSE COMMAND LINE OPTIONS: while [ "$1" != "" ]; do case $1 in --executable) executable=$2 shift ;; --docker) DOCKER="1" ;; --output-folder) output_folder=$2 shift ;; --sub-folder) sub_folder=$2 shift ;; --role) export role=$2 shift ;; --core) export core=$2 shift ;; --test-kind) export lat_thr=$2 shift ;; --interface1) export interface=$2 shift ;; --interface2) export interface2=$2 shift ;; --ip1) export ip1=$2 shift ;; --ip2) export ip2=$2 shift ;; --repetitions) export num_reps=$2 shift ;; --domain) export domain=$2 shift ;; --execution-time) export exec_time=$2 shift ;; --transport) export transport=$2 shift ;; --datalen) export datalen_input=$2 shift ;; --file-suffix) export file_suffix=$2 shift ;; --executable-suffix) export executable_suffix=$2 shift ;; --extra-arguments) export extra_arguments=$2 shift ;; --extra-arguments-pub) export extra_arguments_pub=$2 shift ;; --extra-arguments-sub) export extra_arguments_sub=$2 shift ;; --skip-no-batching) export skip_no_batching="1" ;; --skip-be) export skip_be_tests="1" ;; --skip-rel) export skip_rel_tests="1" ;; --skip-keyed) export skip_keyed_data="1" ;; --skip-large-data) export skip_large_data="1" ;; --large-data) export large_data="1" ;; --keyed) export skip_unkeyed="1" ;; --unkeyed) export skip_keyed_data="1" ;; --no-batching | --skip-batching) export no_batching_only="1" ;; --reliable) export skip_be_tests="1" ;; --best-effort) export skip_rel_tests="1" ;; --security) export security_only="$2" shift ;; --micro) export micro="1" ;; --raw | --raw-transport) export raw="1" ;; --tss) export tss="1" ;; --no-colors) export NO_COLORS="1" ;; --language) export LANGUAGE=$2 shift ;; --loss-rate) export loss_rate=$2 shift ;; --get-netstat-info | --netstat) export get_netstat_info="1" ;; --no-taskset) export NO_TASKSET="1" ;; *) echo -e "unknown parameter \"$1\"" exit 255 ;; esac shift done if [[ "$NO_COLORS" == "1" ]]; then disable_colors fi export folder_base="$(dirname "${executable}")"/../../.. if [[ $LANGUAGE == "java" || "$LANGUAGE" == "cs" ]]; then export folder_base="$(dirname "${executable}")"/../.. fi if [[ $tss == "1" ]]; then export folder_base="$(dirname "${executable}")"/../../../../.. fi if [[ "${executable_suffix}" != "" ]]; then export executable="${executable}${executable_suffix}" fi if [[ "${sub_folder}" != "" ]]; then export output_folder="${output_folder}/${sub_folder}" fi echo -e "${INFO_TAG} Perftest executable is: $executable" echo -e "${INFO_TAG} Output folder is: $output_folder" ################################################################################ if [[ "$LANGUAGE" == "python" ]]; then export skip_keyed_data="1" export skip_large_data="1" export skip_be_tests="1" export skip_no_batching="1" fi if [[ "${skip_large_data}" == "1" ]]; then export datasizes_extended=${datasizes} elif [[ "${large_data}" == "1" ]]; then export datasizes=${datasizes_extended} fi if [[ "${datalen_input}" != "" ]]; then echo -e "${YELLOW}[TEST] Testing only for ${datalen_input}${NC}" export datasizes=${datalen_input} export datasizes_extended=${datalen_input} if [[ "${no_batching_only}" != "1" ]]; then export skip_large_data="1" fi fi if [[ "$role" != "pub" && "$role" != "sub" ]]; then echo -e "${ERROR_TAG} It must be either publisher or subscriber" exit 255 fi if [[ "$lat_thr" != "thr" && "$lat_thr" != "lat" ]]; then echo -e "${ERROR_TAG} It must be either lat or thr" exit 255 fi if [[ "${interface}" == "" ]]; then echo "Using default nics" export nic_publisher=${ip_machine_1} export nic_subscriber=${ip_machine_2} elif [[ "${interface}" == "both" ]]; then export nic_publisher="enp1s0f0,eno1" export nic_subscriber="enp1s0f0,eno1" echo -e "${INFO_TAG} Using nic_publisher: ${nic_publisher}" echo -e "${INFO_TAG} Using nic_subscriber: ${nic_subscriber}" else export nic_publisher=$interface echo -e "${INFO_TAG} Using nic_publisher: ${nic_publisher}" if [[ "${interface2}" == "" ]]; then export nic_subscriber=$interface else export nic_subscriber=$interface2 fi echo -e "${INFO_TAG} Using nic_subscriber: ${nic_subscriber}" if [[ "${ip1}" != "" ]]; then export ip_publisher=$ip1 echo "Using ip_publisher: ${ip_publisher}" fi if [[ "${ip2}" != "" ]]; then export ip_subscriber=$ip2 echo "Using ip_subscriber: ${ip_subscriber}" fi fi export transport_string="-transport $transport" if [[ "$transport" == "UDPv4" ]]; then export transport_string_pub="$transport_string -nic $nic_publisher" export transport_string_sub="$transport_string -nic $nic_subscriber" if [[ "$micro" == "1" || "$raw" == "1" ]]; then export transport_string_pub="$transport_string_pub -peer ${ip_subscriber}" export transport_string_sub="$transport_string_sub -peer ${ip_publisher}" fi elif [[ "$transport" == "TCP" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -peer 0@tcpv4_lan://${ip_subscriber}:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer 0@tcpv4_lan://${ip_publisher}:7400" elif [[ "$transport" == "TLS" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -peer tlsv4_lan://${ip_subscriber}:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer tlsv4_lan://${ip_publisher}:7400" elif [[ "$transport" == "UDPv4_WAN" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -transportPublicAddress $ip_publisher:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer 0@udpv4_wan://${ip_publisher}:7400" else export transport_string_pub="$transport_string" export transport_string_sub="$transport_string" fi ################################################################################ export pub_string="-pub \ ${transport_string_pub} \ -noPrintIntervals \ -executionTime $exec_time" if [[ ${lat_thr} == "lat" ]]; then export pub_string="$pub_string \ -latencyTest" fi export sub_string="-sub \ ${transport_string_sub} \ -noPrintIntervals" if [[ "$role" == "pub" ]]; then echo -e "$INFO_TAG Publisher side running" export commands_string=${pub_string} export extra_arguments="${extra_arguments} ${extra_arguments_pub}" else echo -e "$INFO_TAG Subscriber side running" export commands_string=${sub_string} export extra_arguments="${extra_arguments} ${extra_arguments_sub}" fi ############################################################################### echo -e "${INFO_TAG} Executing: /set_${lat_thr}_mode.sh" sudo /set_${lat_thr}_mode.sh sleep 5 echo -e "${INFO_TAG} Disabling any loss rate" sudo tc qdisc add dev $nic_publisher root netem loss 0% sudo tc qdisc del dev $nic_publisher root netem loss 0% if [[ "$role" == "pub" && "${loss_rate}" != "" ]]; then echo -e "${INFO_TAG} Setting loss rate to ${loss_rate}%" sudo tc qdisc add dev $nic_publisher root netem loss $loss_rate% fi cd $folder_base echo -e "${INFO_TAG} Folder Base is: $PWD" mkdir -p $output_folder # Tests that may use batching (when doing throughput tests) if [[ ${no_batching_only} != "1" ]]; then # UNKEYED if [[ "${skip_unkeyed}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "unkeyed" "rel" "${datasizes_extended}" "${extra_arguments}" "$file_suffix" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "unkeyed" "be" "${datasizes}" "${extra_arguments}" "$file_suffix" fi fi # KEYED if [[ "${skip_keyed_data}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "keyed" "rel" "${datasizes}" "${extra_arguments}" "$file_suffix" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "keyed" "be" "${datasizes}" "${extra_arguments}" "$file_suffix" fi fi fi if [[ "${skip_no_batching}" == "" || "${no_batching_only}" == "1" ]]; then no_batching_tests="1" fi # Tests that will not use batching if [[ "${lat_thr}" == "thr" && "${no_batching_tests}" == "1" ]]; then if [[ "$role" == "pub" ]]; then export commands_string="${commands_string} -batchSize 0" fi # UNKEYED if [[ "${skip_unkeyed}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "unkeyed" "rel" "${datasizes}" "${extra_arguments}" "_noBatch${file_suffix}" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "unkeyed" "be" "${datasizes}" "${extra_arguments}" "_noBatch${file_suffix}" fi fi fi if [[ "$role" == "pub" && "${loss_rate}" != "" ]]; then echo -e "${INFO_TAG} Disabling loss rate" sudo tc qdisc del dev $nic_publisher root netem loss $loss_rate% fi |
1 2 3 4 5 6 | #!/bin/bash filename=$0 script_location=$(cd "$(dirname "$filename")" || exit 255; pwd) echo -e "[Calling base_script/script.sh]" "${script_location}/../base_script/script.sh" $@ --transport UDPv4 |
Test Hardware
The following hardware was used to perform these tests:
Linux Nodes
Dell R340 Servers (13 Units)
Processor: Intel Xeon E-2278G (3.4-5GHz, 8c/16t, 16MB cache, 2 memory channels @2666MHz)
RAM: 4x 16GB 2666MHz DIMM (64GB RAM)
HD: 480GB SATA SSD
NIC 1: Intel 710 dual port 10Gbps SFP
OS: Ubuntu 20.04 -- gcc 9.3.0
Switch
Dell 2048 -- 10Gbps switch (10Gbps and 1Gbps interfaces)
The graph below shows the expected throughput behavior when performing a 1-1 communication between two Linux nodes in a 10Gbps network. The numbers are for best-effort as well as strict reliable reliability scenarios.
Note
By default, RTI Perftest enables batching when performing a Maximum Throughput test. The batching feature allows sending more than one data sample per RTPS packet, improving network performance for small data sizes. See the RTI Connext DDS Core Libraries User’s Manual for more information on batching.
The batch maximum size is set by RTI Perftest to be 8192 bytes; after 8192 bytes, batching is not enabled.
Detailed Statistics
This table contains the raw numbers presented by RTI Perftest. These numbers are the exact output with no further processing.
Best Effort
Sample Size (Bytes) |
Total Samples |
Avg Samples/s |
Avg Mbps |
Lost Samples |
Lost Samples (%) |
---|---|---|---|---|---|
32 |
57824059 |
2890356 |
739.9 |
0 |
0.00 |
64 |
54284800 |
2713812 |
1389.5 |
0 |
0.00 |
128 |
49317276 |
2465486 |
2524.7 |
0 |
0.00 |
256 |
41661696 |
2082336 |
4264.6 |
0 |
0.00 |
512 |
31026088 |
1551371 |
6354.4 |
0 |
0.00 |
1024 |
20729488 |
1036131 |
8488.0 |
0 |
0.00 |
2048 |
11946244 |
597193 |
9784.4 |
588 |
0.00 |
4096 |
5985874 |
299241 |
9805.6 |
0 |
0.00 |
8192 |
3006131 |
150274 |
9848.4 |
0 |
0.00 |
16384 |
1509202 |
75447 |
9889.1 |
48 |
0.00 |
32768 |
756132 |
37801 |
9909.4 |
5 |
0.00 |
63000 |
393573 |
19675 |
9916.6 |
1 |
0.00 |
Reliable
Sample Size (Bytes) |
Total Samples |
Avg Samples/s |
Avg Mbps |
Lost Samples |
Lost Samples (%) |
---|---|---|---|---|---|
32 |
58481301 |
2923640 |
748.5 |
0 |
0.00 |
64 |
50880105 |
2543597 |
1302.3 |
0 |
0.00 |
128 |
47109568 |
2355097 |
2411.6 |
0 |
0.00 |
256 |
37591462 |
1879274 |
3848.8 |
0 |
0.00 |
512 |
26773777 |
1338375 |
5482.0 |
0 |
0.00 |
1024 |
16736328 |
836666 |
6854.0 |
0 |
0.00 |
2048 |
9687060 |
484172 |
7932.7 |
0 |
0.00 |
4096 |
4768217 |
238315 |
7809.1 |
0 |
0.00 |
8192 |
2491752 |
124540 |
8161.9 |
0 |
0.00 |
16384 |
1508527 |
75413 |
9884.5 |
0 |
0.00 |
32768 |
756025 |
37794 |
9907.6 |
0 |
0.00 |
63000 |
393608 |
19674 |
9915.8 |
0 |
0.00 |
Perftest Scripts
To produce these tests, we executed RTI Perftest for C#. The exact script used can be found here:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 | #!/bin/bash filename=$0 script_location=$(cd "$(dirname "$filename")" || exit 255; pwd) export datasizes="32 64 128 256 512 1024 2048 4096 8192 16384 32768 63000" export datasizes_extended="${datasizes} 100000 500000 1048576 1548576 4194304 10485760" export domain="2" export exec_time=20 export num_reps=1 export instance_number=100000 export core=0 # We will use some colors to improve visibility of errors and info messages. RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[0;33m' BLUE='\033[0;34m' LIGHTBLUE='\033[0;36m' NC='\033[0m' INFO_TAG="${GREEN}[INFO]:${NC}" WARNING_TAG="${YELLOW}[WARNING]:${NC}" ERROR_TAG="${RED}[ERROR]:${NC}" export ip_machine_1="10.2.78.20" export ip_machine_2="10.2.78.21" export if10Gbps="enp1s0f0" export if1Gbps="eno1" ################################################################################ function disable_colors() { export RED="" export GREEN="" export YELLOW="" export NC="" export BLUE="" export LIGHTBLUE="" export INFO_TAG="${GREEN}[INFO]:${NC}" export WARNING_TAG="${YELLOW}[WARNING]:${NC}" export ERROR_TAG="${RED}[ERROR]:${NC}" } function change_domain() { if [[ "$domain" == "1" ]]; then export domain="2" else export domain="1" fi } # Usage: execute_test <keyed/unkeyed> <rel/be> <datasizes> <batchSize> function execute_test() { local keyed_unkeyed=$1 local rel_be=$2 local datasizes_test=$3 local other_args=$4 local name_suffix=$5 local commands_string_test=$commands_string local tag="" if [[ "${keyed_unkeyed}" == "keyed" ]]; then commands_string_test="${commands_string_test} -keyed -instances $instance_number" tag="[${YELLOW}${transport}${NC}|${BLUE}K${NC}|" else tag="[${YELLOW}${transport}${NC}|${LIGHTBLUE}UK${NC}|" fi if [[ "${rel_be}" == "be" ]]; then commands_string_test="${commands_string_test} -bestEffort" tag="${tag}${YELLOW}BE${NC}]" else tag="${tag}${RED}REL${NC}]" fi tag="${tag}[${LIGHTBLUE}${lat_thr}${NC}]" local output_file=$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}.csv if [[ "$role" == "pub" ]]; then echo -e "${YELLOW}[TEST]: $keyed_unkeyed, $rel_be. ${NC}" fi if [[ "$NO_TASKSET" == "" ]]; then if [[ "$LANGUAGE" != "java" && "$LANGUAGE" != "cs" ]]; then export pre_command_string="taskset -c $core" fi fi if [[ "$LANGUAGE" == "python" ]]; then export pre_command_string="python3 " fi if [[ "$DOCKER" == "1" ]]; then export pre_command_string="taskset -c $core docker run --net=host -v /home/perfuser/rti_license_connextpro.dat:/opt/rti.com/rti_connext_dds-7.3.0/rti_license.dat rticom/perftest:7.3.0-EAR " executable="" fi # Get the aprox time this will take: total_tests=$((`wc -w <<< "$datasizes_test"` * num_reps)) total_time=$((total_tests * exec_time)) touch $output_file local no_headers="" local current_test=0 for index in $(seq 1 ${num_reps}); do for DATALEN in ${datasizes_test}; do current_test=$((current_test + 1)) export command="$pre_command_string $executable -domain $domain -dataLen $DATALEN $commands_string_test $other_args $no_headers" if [[ "$role" == "pub" ]]; then echo -e "Test ${tag} (${current_test}/${total_tests}) -- Total time = ${total_time}s" echo -e ${BLUE}$command${NC} else echo -e ${LIGHTBLUE}$command${NC} fi if [[ "$LANGUAGE" == "cs" && "$role" == "pub" ]]; then sleep 3 fi if [[ "$raw" == "1" && "$role" == "sub" ]]; then sleep 5 fi if [[ "${get_netstat_info}" == "1" ]]; then echo -e "${INFO_TAG} Getting netstat info before" netstat -s -u | grep -e "error" -e "packet" > $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_before.txt fi eval $command >> $output_file; if [[ "${get_netstat_info}" == "1" ]]; then echo -e "${INFO_TAG} Getting netstat info after" netstat -s -u | grep -e "error" -e "packet" > $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_after.txt touch "$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat.csv" python3 $script_location/../../../tools/diff_netstat_output.py \ -n $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_after.txt \ -o $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_before.txt \ -d $DATALEN $no_header_netstat \ -csv >> "$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat.csv" rm -rf $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_*.txt no_header_netstat=" -nh" fi no_headers=" -noOutputHeaders" change_domain done done } ################################################################################ # PARSE COMMAND LINE OPTIONS: while [ "$1" != "" ]; do case $1 in --executable) executable=$2 shift ;; --docker) DOCKER="1" ;; --output-folder) output_folder=$2 shift ;; --sub-folder) sub_folder=$2 shift ;; --role) export role=$2 shift ;; --core) export core=$2 shift ;; --test-kind) export lat_thr=$2 shift ;; --interface1) export interface=$2 shift ;; --interface2) export interface2=$2 shift ;; --ip1) export ip1=$2 shift ;; --ip2) export ip2=$2 shift ;; --repetitions) export num_reps=$2 shift ;; --domain) export domain=$2 shift ;; --execution-time) export exec_time=$2 shift ;; --transport) export transport=$2 shift ;; --datalen) export datalen_input=$2 shift ;; --file-suffix) export file_suffix=$2 shift ;; --executable-suffix) export executable_suffix=$2 shift ;; --extra-arguments) export extra_arguments=$2 shift ;; --extra-arguments-pub) export extra_arguments_pub=$2 shift ;; --extra-arguments-sub) export extra_arguments_sub=$2 shift ;; --skip-no-batching) export skip_no_batching="1" ;; --skip-be) export skip_be_tests="1" ;; --skip-rel) export skip_rel_tests="1" ;; --skip-keyed) export skip_keyed_data="1" ;; --skip-large-data) export skip_large_data="1" ;; --large-data) export large_data="1" ;; --keyed) export skip_unkeyed="1" ;; --unkeyed) export skip_keyed_data="1" ;; --no-batching | --skip-batching) export no_batching_only="1" ;; --reliable) export skip_be_tests="1" ;; --best-effort) export skip_rel_tests="1" ;; --security) export security_only="$2" shift ;; --micro) export micro="1" ;; --raw | --raw-transport) export raw="1" ;; --tss) export tss="1" ;; --no-colors) export NO_COLORS="1" ;; --language) export LANGUAGE=$2 shift ;; --loss-rate) export loss_rate=$2 shift ;; --get-netstat-info | --netstat) export get_netstat_info="1" ;; --no-taskset) export NO_TASKSET="1" ;; *) echo -e "unknown parameter \"$1\"" exit 255 ;; esac shift done if [[ "$NO_COLORS" == "1" ]]; then disable_colors fi export folder_base="$(dirname "${executable}")"/../../.. if [[ $LANGUAGE == "java" || "$LANGUAGE" == "cs" ]]; then export folder_base="$(dirname "${executable}")"/../.. fi if [[ $tss == "1" ]]; then export folder_base="$(dirname "${executable}")"/../../../../.. fi if [[ "${executable_suffix}" != "" ]]; then export executable="${executable}${executable_suffix}" fi if [[ "${sub_folder}" != "" ]]; then export output_folder="${output_folder}/${sub_folder}" fi echo -e "${INFO_TAG} Perftest executable is: $executable" echo -e "${INFO_TAG} Output folder is: $output_folder" ################################################################################ if [[ "$LANGUAGE" == "python" ]]; then export skip_keyed_data="1" export skip_large_data="1" export skip_be_tests="1" export skip_no_batching="1" fi if [[ "${skip_large_data}" == "1" ]]; then export datasizes_extended=${datasizes} elif [[ "${large_data}" == "1" ]]; then export datasizes=${datasizes_extended} fi if [[ "${datalen_input}" != "" ]]; then echo -e "${YELLOW}[TEST] Testing only for ${datalen_input}${NC}" export datasizes=${datalen_input} export datasizes_extended=${datalen_input} if [[ "${no_batching_only}" != "1" ]]; then export skip_large_data="1" fi fi if [[ "$role" != "pub" && "$role" != "sub" ]]; then echo -e "${ERROR_TAG} It must be either publisher or subscriber" exit 255 fi if [[ "$lat_thr" != "thr" && "$lat_thr" != "lat" ]]; then echo -e "${ERROR_TAG} It must be either lat or thr" exit 255 fi if [[ "${interface}" == "" ]]; then echo "Using default nics" export nic_publisher=${ip_machine_1} export nic_subscriber=${ip_machine_2} elif [[ "${interface}" == "both" ]]; then export nic_publisher="enp1s0f0,eno1" export nic_subscriber="enp1s0f0,eno1" echo -e "${INFO_TAG} Using nic_publisher: ${nic_publisher}" echo -e "${INFO_TAG} Using nic_subscriber: ${nic_subscriber}" else export nic_publisher=$interface echo -e "${INFO_TAG} Using nic_publisher: ${nic_publisher}" if [[ "${interface2}" == "" ]]; then export nic_subscriber=$interface else export nic_subscriber=$interface2 fi echo -e "${INFO_TAG} Using nic_subscriber: ${nic_subscriber}" if [[ "${ip1}" != "" ]]; then export ip_publisher=$ip1 echo "Using ip_publisher: ${ip_publisher}" fi if [[ "${ip2}" != "" ]]; then export ip_subscriber=$ip2 echo "Using ip_subscriber: ${ip_subscriber}" fi fi export transport_string="-transport $transport" if [[ "$transport" == "UDPv4" ]]; then export transport_string_pub="$transport_string -nic $nic_publisher" export transport_string_sub="$transport_string -nic $nic_subscriber" if [[ "$micro" == "1" || "$raw" == "1" ]]; then export transport_string_pub="$transport_string_pub -peer ${ip_subscriber}" export transport_string_sub="$transport_string_sub -peer ${ip_publisher}" fi elif [[ "$transport" == "TCP" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -peer 0@tcpv4_lan://${ip_subscriber}:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer 0@tcpv4_lan://${ip_publisher}:7400" elif [[ "$transport" == "TLS" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -peer tlsv4_lan://${ip_subscriber}:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer tlsv4_lan://${ip_publisher}:7400" elif [[ "$transport" == "UDPv4_WAN" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -transportPublicAddress $ip_publisher:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer 0@udpv4_wan://${ip_publisher}:7400" else export transport_string_pub="$transport_string" export transport_string_sub="$transport_string" fi ################################################################################ export pub_string="-pub \ ${transport_string_pub} \ -noPrintIntervals \ -executionTime $exec_time" if [[ ${lat_thr} == "lat" ]]; then export pub_string="$pub_string \ -latencyTest" fi export sub_string="-sub \ ${transport_string_sub} \ -noPrintIntervals" if [[ "$role" == "pub" ]]; then echo -e "$INFO_TAG Publisher side running" export commands_string=${pub_string} export extra_arguments="${extra_arguments} ${extra_arguments_pub}" else echo -e "$INFO_TAG Subscriber side running" export commands_string=${sub_string} export extra_arguments="${extra_arguments} ${extra_arguments_sub}" fi ############################################################################### echo -e "${INFO_TAG} Executing: /set_${lat_thr}_mode.sh" sudo /set_${lat_thr}_mode.sh sleep 5 echo -e "${INFO_TAG} Disabling any loss rate" sudo tc qdisc add dev $nic_publisher root netem loss 0% sudo tc qdisc del dev $nic_publisher root netem loss 0% if [[ "$role" == "pub" && "${loss_rate}" != "" ]]; then echo -e "${INFO_TAG} Setting loss rate to ${loss_rate}%" sudo tc qdisc add dev $nic_publisher root netem loss $loss_rate% fi cd $folder_base echo -e "${INFO_TAG} Folder Base is: $PWD" mkdir -p $output_folder # Tests that may use batching (when doing throughput tests) if [[ ${no_batching_only} != "1" ]]; then # UNKEYED if [[ "${skip_unkeyed}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "unkeyed" "rel" "${datasizes_extended}" "${extra_arguments}" "$file_suffix" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "unkeyed" "be" "${datasizes}" "${extra_arguments}" "$file_suffix" fi fi # KEYED if [[ "${skip_keyed_data}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "keyed" "rel" "${datasizes}" "${extra_arguments}" "$file_suffix" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "keyed" "be" "${datasizes}" "${extra_arguments}" "$file_suffix" fi fi fi if [[ "${skip_no_batching}" == "" || "${no_batching_only}" == "1" ]]; then no_batching_tests="1" fi # Tests that will not use batching if [[ "${lat_thr}" == "thr" && "${no_batching_tests}" == "1" ]]; then if [[ "$role" == "pub" ]]; then export commands_string="${commands_string} -batchSize 0" fi # UNKEYED if [[ "${skip_unkeyed}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "unkeyed" "rel" "${datasizes}" "${extra_arguments}" "_noBatch${file_suffix}" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "unkeyed" "be" "${datasizes}" "${extra_arguments}" "_noBatch${file_suffix}" fi fi fi if [[ "$role" == "pub" && "${loss_rate}" != "" ]]; then echo -e "${INFO_TAG} Disabling loss rate" sudo tc qdisc del dev $nic_publisher root netem loss $loss_rate% fi |
1 2 3 4 5 6 | #!/bin/bash filename=$0 script_location=$(cd "$(dirname "$filename")" || exit 255; pwd) echo -e "[Calling base_script/script.sh]" "${script_location}/../base_script/script.sh" $@ --transport UDPv4 |
Test Hardware
The following hardware was used to perform these tests:
Linux Nodes
Dell R340 Servers (13 Units)
Processor: Intel Xeon E-2278G (3.4-5GHz, 8c/16t, 16MB cache, 2 memory channels @2666MHz)
RAM: 4x 16GB 2666MHz DIMM (64GB RAM)
HD: 480GB SATA SSD
NIC 1: Intel 710 dual port 10Gbps SFP
OS: Ubuntu 20.04 -- gcc 9.3.0
Switch
Dell 2048 -- 10Gbps switch (10Gbps and 1Gbps interfaces)
The graph below shows the one-way latency without load between a Publisher and a Subscriber running in two Windows nodes in a 10Gbps network. The numbers are taken for strict reliable reliability scenarios.
Note
We use the median (50th percentile) instead of the average in order to get a more stable measurement that does not account for spurious outliers. We also calculate the average value and other percentile values, which can be seen in the Detailed Statistics section below.
Detailed Statistics
The following tables contain the raw numbers presented by a simplified version of RTI Perftest for the Modern C# implementation. These numbers are the exact output with no further processing.
Best Effort
Sample Size (Bytes) |
Samples Sent |
50% (μs) |
Std (μs) |
Min (μs) |
Max (μs) |
---|---|---|---|---|---|
32 |
331195 |
27 |
11 |
26 |
566 |
64 |
327532 |
28 |
9 |
26 |
550 |
128 |
327705 |
28 |
9 |
27 |
565 |
256 |
318323 |
28 |
10 |
27 |
543 |
512 |
310517 |
29 |
11 |
28 |
556 |
1024 |
58802 |
32 |
24 |
36 |
669 |
2048 |
244089 |
36 |
20 |
32 |
555 |
4096 |
58858 |
50 |
21 |
42 |
686 |
8192 |
58720 |
70 |
22 |
66 |
664 |
16384 |
56063 |
141 |
40 |
82 |
822 |
32768 |
23953 |
200 |
34 |
137 |
1055 |
63000 |
40663 |
239 |
85 |
152 |
941 |
Reliable
Sample Size (Bytes) |
Samples Sent |
50% (μs) |
Std (μs) |
Min (μs) |
Max (μs) |
---|---|---|---|---|---|
32 |
290476 |
32 |
10 |
28 |
552 |
64 |
295827 |
31 |
12 |
28 |
551 |
128 |
284402 |
32 |
13 |
28 |
620 |
256 |
291292 |
31 |
13 |
28 |
561 |
512 |
281255 |
33 |
11 |
29 |
552 |
1024 |
58641 |
34 |
24 |
32 |
676 |
2048 |
242981 |
38 |
13 |
34 |
555 |
4096 |
58793 |
164 |
23 |
41 |
735 |
8192 |
57865 |
164 |
21 |
58 |
685 |
16384 |
55676 |
172 |
40 |
69 |
2011 |
32768 |
56685 |
169 |
35 |
116 |
981 |
63000 |
47060 |
204 |
75 |
138 |
915 |
Test Hardware
The following hardware was used to perform these tests:
Windows Nodes
Processor: Intel® Xeon® E-2186G 3.8GHz, 12M cache, 6C/12T, turbo (95W)
RAM: 16GB 2666MT/s DDR4 ECC UDIMM
NIC 1: Intel X550 Dual Port 10GbE BASE-T Adapter, PCIe Full Height
NIC 2: Intel Ethernet I350 Dual Port 1GbE BASE-T Adapter, PCIe Low Profile
OS: Windows Server 2019 -- Microsoft Visual Studio 2017 Professional (.NET 5).
Switch
Dell Networking S4048T-ON, 48x 10GBASE-T and 6x 40GbE QSFP+ ports, IO to PSU air, 2x AC PSU, OS9
The graph below shows the expected throughput behavior when performing a 1-1 communication in two Windows nodes in a 10Gbps network. The numbers are taken for strict reliable reliability scenarios.
Note
By default, RTI Perftest enables batching when performing a Maximum Throughput test. The batching feature allows sending more than one data sample per RTPS packet, improving network performance for small data sizes. See the RTI Connext DDS Core Libraries User’s Manual for more information on batching.
The batch maximum size is set by RTI Perftest to be 8192 bytes; after 8192 bytes, batching is not enabled.
Detailed Statistics
The following tables contain the raw numbers presented by a simplified version of RTI Perftest for the Modern C# implementation. These numbers are the exact output with no further processing.
Best Effort
Sample Size (Bytes) |
Total Samples |
Avg Mbps |
Lost Samples |
Lost Samples (%) |
---|---|---|---|---|
32 |
55481661 |
701.7 |
0 |
0.00 |
64 |
50344710 |
1267.7 |
0 |
0.00 |
128 |
46249216 |
2330.3 |
0 |
0.00 |
256 |
37610842 |
3914.0 |
67808 |
0.18 |
512 |
27592222 |
5730.3 |
46272 |
0.17 |
1024 |
18100304 |
7301.4 |
3488 |
0.02 |
2048 |
10667807 |
8901.5 |
5124 |
0.05 |
4096 |
5793291 |
9572.0 |
3884 |
0.07 |
8192 |
2909675 |
9705.9 |
2212 |
0.08 |
16384 |
1463495 |
9472.0 |
759 |
0.05 |
32768 |
725860 |
9394.0 |
0 |
0.00 |
63000 |
386066 |
9574.8 |
107 |
0.03 |
Reliable
Sample Size (Bytes) |
Total Samples |
Avg Mbps |
Lost Samples |
Lost Samples (%) |
---|---|---|---|---|
32 |
58157768 |
733.0 |
0 |
0.00 |
64 |
54429313 |
1372.9 |
0 |
0.00 |
128 |
47037334 |
2378.6 |
0 |
0.00 |
256 |
36038688 |
3625.3 |
0 |
0.00 |
512 |
22024976 |
4448.0 |
0 |
0.00 |
1024 |
11772889 |
4755.1 |
0 |
0.00 |
2048 |
6098805 |
4919.4 |
0 |
0.00 |
4096 |
3048435 |
4918.4 |
0 |
0.00 |
8192 |
1832040 |
5951.1 |
0 |
0.00 |
16384 |
1484522 |
9580.6 |
0 |
0.00 |
32768 |
737141 |
9514.5 |
0 |
0.00 |
63000 |
382258 |
9796.1 |
0 |
0.00 |
Test Hardware
The following hardware was used to perform these tests:
Windows Nodes
Processor: Intel® Xeon® E-2186G 3.8GHz, 12M cache, 6C/12T, turbo (95W)
RAM: 16GB 2666MT/s DDR4 ECC UDIMM
NIC 1: Intel X550 Dual Port 10GbE BASE-T Adapter, PCIe Full Height
NIC 2: Intel Ethernet I350 Dual Port 1GbE BASE-T Adapter, PCIe Low Profile
OS: Windows Server 2019 -- Microsoft Visual Studio 2017 Professional (.NET 5).
Switch
Dell Networking S4048T-ON, 48x 10GBASE-T and 6x 40GbE QSFP+ ports, IO to PSU air, 2x AC PSU, OS9
2.2.4.2. Keyed, UDPv4 10Gbps Network, C#¶
The graph below shows the one-way latency without load between a Publisher and a Subscriber running in two Linux nodes in a 10Gbps network. The numbers are for best-effort as well as strict reliable reliability scenarios.
Note
We use the median (50th percentile) instead of the average in order to get a more stable measurement that does not account for spurious outliers. We also calculate the average value and other percentile values, which can be seen in the Detailed Statistics section below.
Detailed Statistics
The following tables contain the raw numbers presented by a simplified version of RTI Perftest for the Modern C# implementation. These numbers are the exact output with no further processing.
Best Effort
Sample Size (Bytes) |
Avg (μs) |
Std (μs) |
Min (μs) |
Max (μs) |
50% (μs) |
90% (μs) |
99% (μs) |
99.99% (μs) |
99.9999% (μs) |
---|---|---|---|---|---|---|---|---|---|
32 |
3185 |
2189613.7 |
18 |
1514046223 |
19 |
19 |
20 |
28 |
1514046223 |
64 |
19 |
3.3 |
18 |
642 |
19 |
20 |
21 |
28 |
642 |
128 |
19 |
4.4 |
18 |
650 |
19 |
20 |
21 |
29 |
650 |
256 |
19 |
2.2 |
18 |
585 |
19 |
19 |
21 |
28 |
585 |
512 |
19 |
6.2 |
19 |
584 |
20 |
20 |
21 |
31 |
584 |
1024 |
25 |
6.5 |
20 |
312 |
26 |
28 |
32 |
48 |
312 |
2048 |
46 |
391.6 |
22 |
100070 |
43 |
62 |
68 |
90 |
100070 |
4096 |
44 |
354.1 |
27 |
100098 |
41 |
57 |
63 |
86 |
100098 |
8192 |
46 |
8.1 |
38 |
331 |
41 |
59 |
62 |
70 |
331 |
16384 |
90 |
31.3 |
49 |
419 |
84 |
125 |
138 |
154 |
419 |
32768 |
178 |
10.2 |
83 |
555 |
178 |
180 |
181 |
203 |
555 |
63000 |
191 |
11.2 |
108 |
1047 |
191 |
193 |
196 |
202 |
1047 |
Reliable
Sample Size (Bytes) |
Avg (μs) |
Std (μs) |
Min (μs) |
Max (μs) |
50% (μs) |
90% (μs) |
99% (μs) |
99.99% (μs) |
99.9999% (μs) |
---|---|---|---|---|---|---|---|---|---|
32 |
20 |
4.6 |
19 |
774 |
20 |
21 |
22 |
49 |
774 |
64 |
20 |
3.6 |
19 |
586 |
20 |
21 |
22 |
37 |
586 |
128 |
21 |
3.2 |
20 |
776 |
21 |
22 |
23 |
41 |
776 |
256 |
22 |
8.1 |
20 |
750 |
21 |
32 |
39 |
48 |
750 |
512 |
24 |
5.1 |
21 |
680 |
22 |
32 |
41 |
48 |
680 |
1024 |
26 |
5.5 |
21 |
147 |
26 |
28 |
51 |
61 |
147 |
2048 |
29 |
10.2 |
24 |
927 |
30 |
33 |
58 |
81 |
927 |
4096 |
31 |
11.9 |
29 |
902 |
30 |
33 |
64 |
549 |
902 |
8192 |
46 |
12.9 |
40 |
290 |
42 |
60 |
84 |
119 |
290 |
16384 |
94 |
29.3 |
50 |
361 |
87 |
129 |
136 |
144 |
361 |
32768 |
176 |
14.4 |
77 |
654 |
180 |
182 |
187 |
193 |
654 |
63000 |
158 |
16.2 |
110 |
1196 |
159 |
170 |
185 |
196 |
1196 |
Perftest Scripts
To produce these tests, we executed RTI Perftest for C#. The exact script used can be found here:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 | #!/bin/bash filename=$0 script_location=$(cd "$(dirname "$filename")" || exit 255; pwd) export datasizes="32 64 128 256 512 1024 2048 4096 8192 16384 32768 63000" export datasizes_extended="${datasizes} 100000 500000 1048576 1548576 4194304 10485760" export domain="2" export exec_time=20 export num_reps=1 export instance_number=100000 export core=0 # We will use some colors to improve visibility of errors and info messages. RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[0;33m' BLUE='\033[0;34m' LIGHTBLUE='\033[0;36m' NC='\033[0m' INFO_TAG="${GREEN}[INFO]:${NC}" WARNING_TAG="${YELLOW}[WARNING]:${NC}" ERROR_TAG="${RED}[ERROR]:${NC}" export ip_machine_1="10.2.78.20" export ip_machine_2="10.2.78.21" export if10Gbps="enp1s0f0" export if1Gbps="eno1" ################################################################################ function disable_colors() { export RED="" export GREEN="" export YELLOW="" export NC="" export BLUE="" export LIGHTBLUE="" export INFO_TAG="${GREEN}[INFO]:${NC}" export WARNING_TAG="${YELLOW}[WARNING]:${NC}" export ERROR_TAG="${RED}[ERROR]:${NC}" } function change_domain() { if [[ "$domain" == "1" ]]; then export domain="2" else export domain="1" fi } # Usage: execute_test <keyed/unkeyed> <rel/be> <datasizes> <batchSize> function execute_test() { local keyed_unkeyed=$1 local rel_be=$2 local datasizes_test=$3 local other_args=$4 local name_suffix=$5 local commands_string_test=$commands_string local tag="" if [[ "${keyed_unkeyed}" == "keyed" ]]; then commands_string_test="${commands_string_test} -keyed -instances $instance_number" tag="[${YELLOW}${transport}${NC}|${BLUE}K${NC}|" else tag="[${YELLOW}${transport}${NC}|${LIGHTBLUE}UK${NC}|" fi if [[ "${rel_be}" == "be" ]]; then commands_string_test="${commands_string_test} -bestEffort" tag="${tag}${YELLOW}BE${NC}]" else tag="${tag}${RED}REL${NC}]" fi tag="${tag}[${LIGHTBLUE}${lat_thr}${NC}]" local output_file=$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}.csv if [[ "$role" == "pub" ]]; then echo -e "${YELLOW}[TEST]: $keyed_unkeyed, $rel_be. ${NC}" fi if [[ "$NO_TASKSET" == "" ]]; then if [[ "$LANGUAGE" != "java" && "$LANGUAGE" != "cs" ]]; then export pre_command_string="taskset -c $core" fi fi if [[ "$LANGUAGE" == "python" ]]; then export pre_command_string="python3 " fi if [[ "$DOCKER" == "1" ]]; then export pre_command_string="taskset -c $core docker run --net=host -v /home/perfuser/rti_license_connextpro.dat:/opt/rti.com/rti_connext_dds-7.3.0/rti_license.dat rticom/perftest:7.3.0-EAR " executable="" fi # Get the aprox time this will take: total_tests=$((`wc -w <<< "$datasizes_test"` * num_reps)) total_time=$((total_tests * exec_time)) touch $output_file local no_headers="" local current_test=0 for index in $(seq 1 ${num_reps}); do for DATALEN in ${datasizes_test}; do current_test=$((current_test + 1)) export command="$pre_command_string $executable -domain $domain -dataLen $DATALEN $commands_string_test $other_args $no_headers" if [[ "$role" == "pub" ]]; then echo -e "Test ${tag} (${current_test}/${total_tests}) -- Total time = ${total_time}s" echo -e ${BLUE}$command${NC} else echo -e ${LIGHTBLUE}$command${NC} fi if [[ "$LANGUAGE" == "cs" && "$role" == "pub" ]]; then sleep 3 fi if [[ "$raw" == "1" && "$role" == "sub" ]]; then sleep 5 fi if [[ "${get_netstat_info}" == "1" ]]; then echo -e "${INFO_TAG} Getting netstat info before" netstat -s -u | grep -e "error" -e "packet" > $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_before.txt fi eval $command >> $output_file; if [[ "${get_netstat_info}" == "1" ]]; then echo -e "${INFO_TAG} Getting netstat info after" netstat -s -u | grep -e "error" -e "packet" > $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_after.txt touch "$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat.csv" python3 $script_location/../../../tools/diff_netstat_output.py \ -n $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_after.txt \ -o $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_before.txt \ -d $DATALEN $no_header_netstat \ -csv >> "$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat.csv" rm -rf $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_*.txt no_header_netstat=" -nh" fi no_headers=" -noOutputHeaders" change_domain done done } ################################################################################ # PARSE COMMAND LINE OPTIONS: while [ "$1" != "" ]; do case $1 in --executable) executable=$2 shift ;; --docker) DOCKER="1" ;; --output-folder) output_folder=$2 shift ;; --sub-folder) sub_folder=$2 shift ;; --role) export role=$2 shift ;; --core) export core=$2 shift ;; --test-kind) export lat_thr=$2 shift ;; --interface1) export interface=$2 shift ;; --interface2) export interface2=$2 shift ;; --ip1) export ip1=$2 shift ;; --ip2) export ip2=$2 shift ;; --repetitions) export num_reps=$2 shift ;; --domain) export domain=$2 shift ;; --execution-time) export exec_time=$2 shift ;; --transport) export transport=$2 shift ;; --datalen) export datalen_input=$2 shift ;; --file-suffix) export file_suffix=$2 shift ;; --executable-suffix) export executable_suffix=$2 shift ;; --extra-arguments) export extra_arguments=$2 shift ;; --extra-arguments-pub) export extra_arguments_pub=$2 shift ;; --extra-arguments-sub) export extra_arguments_sub=$2 shift ;; --skip-no-batching) export skip_no_batching="1" ;; --skip-be) export skip_be_tests="1" ;; --skip-rel) export skip_rel_tests="1" ;; --skip-keyed) export skip_keyed_data="1" ;; --skip-large-data) export skip_large_data="1" ;; --large-data) export large_data="1" ;; --keyed) export skip_unkeyed="1" ;; --unkeyed) export skip_keyed_data="1" ;; --no-batching | --skip-batching) export no_batching_only="1" ;; --reliable) export skip_be_tests="1" ;; --best-effort) export skip_rel_tests="1" ;; --security) export security_only="$2" shift ;; --micro) export micro="1" ;; --raw | --raw-transport) export raw="1" ;; --tss) export tss="1" ;; --no-colors) export NO_COLORS="1" ;; --language) export LANGUAGE=$2 shift ;; --loss-rate) export loss_rate=$2 shift ;; --get-netstat-info | --netstat) export get_netstat_info="1" ;; --no-taskset) export NO_TASKSET="1" ;; *) echo -e "unknown parameter \"$1\"" exit 255 ;; esac shift done if [[ "$NO_COLORS" == "1" ]]; then disable_colors fi export folder_base="$(dirname "${executable}")"/../../.. if [[ $LANGUAGE == "java" || "$LANGUAGE" == "cs" ]]; then export folder_base="$(dirname "${executable}")"/../.. fi if [[ $tss == "1" ]]; then export folder_base="$(dirname "${executable}")"/../../../../.. fi if [[ "${executable_suffix}" != "" ]]; then export executable="${executable}${executable_suffix}" fi if [[ "${sub_folder}" != "" ]]; then export output_folder="${output_folder}/${sub_folder}" fi echo -e "${INFO_TAG} Perftest executable is: $executable" echo -e "${INFO_TAG} Output folder is: $output_folder" ################################################################################ if [[ "$LANGUAGE" == "python" ]]; then export skip_keyed_data="1" export skip_large_data="1" export skip_be_tests="1" export skip_no_batching="1" fi if [[ "${skip_large_data}" == "1" ]]; then export datasizes_extended=${datasizes} elif [[ "${large_data}" == "1" ]]; then export datasizes=${datasizes_extended} fi if [[ "${datalen_input}" != "" ]]; then echo -e "${YELLOW}[TEST] Testing only for ${datalen_input}${NC}" export datasizes=${datalen_input} export datasizes_extended=${datalen_input} if [[ "${no_batching_only}" != "1" ]]; then export skip_large_data="1" fi fi if [[ "$role" != "pub" && "$role" != "sub" ]]; then echo -e "${ERROR_TAG} It must be either publisher or subscriber" exit 255 fi if [[ "$lat_thr" != "thr" && "$lat_thr" != "lat" ]]; then echo -e "${ERROR_TAG} It must be either lat or thr" exit 255 fi if [[ "${interface}" == "" ]]; then echo "Using default nics" export nic_publisher=${ip_machine_1} export nic_subscriber=${ip_machine_2} elif [[ "${interface}" == "both" ]]; then export nic_publisher="enp1s0f0,eno1" export nic_subscriber="enp1s0f0,eno1" echo -e "${INFO_TAG} Using nic_publisher: ${nic_publisher}" echo -e "${INFO_TAG} Using nic_subscriber: ${nic_subscriber}" else export nic_publisher=$interface echo -e "${INFO_TAG} Using nic_publisher: ${nic_publisher}" if [[ "${interface2}" == "" ]]; then export nic_subscriber=$interface else export nic_subscriber=$interface2 fi echo -e "${INFO_TAG} Using nic_subscriber: ${nic_subscriber}" if [[ "${ip1}" != "" ]]; then export ip_publisher=$ip1 echo "Using ip_publisher: ${ip_publisher}" fi if [[ "${ip2}" != "" ]]; then export ip_subscriber=$ip2 echo "Using ip_subscriber: ${ip_subscriber}" fi fi export transport_string="-transport $transport" if [[ "$transport" == "UDPv4" ]]; then export transport_string_pub="$transport_string -nic $nic_publisher" export transport_string_sub="$transport_string -nic $nic_subscriber" if [[ "$micro" == "1" || "$raw" == "1" ]]; then export transport_string_pub="$transport_string_pub -peer ${ip_subscriber}" export transport_string_sub="$transport_string_sub -peer ${ip_publisher}" fi elif [[ "$transport" == "TCP" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -peer 0@tcpv4_lan://${ip_subscriber}:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer 0@tcpv4_lan://${ip_publisher}:7400" elif [[ "$transport" == "TLS" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -peer tlsv4_lan://${ip_subscriber}:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer tlsv4_lan://${ip_publisher}:7400" elif [[ "$transport" == "UDPv4_WAN" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -transportPublicAddress $ip_publisher:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer 0@udpv4_wan://${ip_publisher}:7400" else export transport_string_pub="$transport_string" export transport_string_sub="$transport_string" fi ################################################################################ export pub_string="-pub \ ${transport_string_pub} \ -noPrintIntervals \ -executionTime $exec_time" if [[ ${lat_thr} == "lat" ]]; then export pub_string="$pub_string \ -latencyTest" fi export sub_string="-sub \ ${transport_string_sub} \ -noPrintIntervals" if [[ "$role" == "pub" ]]; then echo -e "$INFO_TAG Publisher side running" export commands_string=${pub_string} export extra_arguments="${extra_arguments} ${extra_arguments_pub}" else echo -e "$INFO_TAG Subscriber side running" export commands_string=${sub_string} export extra_arguments="${extra_arguments} ${extra_arguments_sub}" fi ############################################################################### echo -e "${INFO_TAG} Executing: /set_${lat_thr}_mode.sh" sudo /set_${lat_thr}_mode.sh sleep 5 echo -e "${INFO_TAG} Disabling any loss rate" sudo tc qdisc add dev $nic_publisher root netem loss 0% sudo tc qdisc del dev $nic_publisher root netem loss 0% if [[ "$role" == "pub" && "${loss_rate}" != "" ]]; then echo -e "${INFO_TAG} Setting loss rate to ${loss_rate}%" sudo tc qdisc add dev $nic_publisher root netem loss $loss_rate% fi cd $folder_base echo -e "${INFO_TAG} Folder Base is: $PWD" mkdir -p $output_folder # Tests that may use batching (when doing throughput tests) if [[ ${no_batching_only} != "1" ]]; then # UNKEYED if [[ "${skip_unkeyed}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "unkeyed" "rel" "${datasizes_extended}" "${extra_arguments}" "$file_suffix" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "unkeyed" "be" "${datasizes}" "${extra_arguments}" "$file_suffix" fi fi # KEYED if [[ "${skip_keyed_data}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "keyed" "rel" "${datasizes}" "${extra_arguments}" "$file_suffix" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "keyed" "be" "${datasizes}" "${extra_arguments}" "$file_suffix" fi fi fi if [[ "${skip_no_batching}" == "" || "${no_batching_only}" == "1" ]]; then no_batching_tests="1" fi # Tests that will not use batching if [[ "${lat_thr}" == "thr" && "${no_batching_tests}" == "1" ]]; then if [[ "$role" == "pub" ]]; then export commands_string="${commands_string} -batchSize 0" fi # UNKEYED if [[ "${skip_unkeyed}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "unkeyed" "rel" "${datasizes}" "${extra_arguments}" "_noBatch${file_suffix}" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "unkeyed" "be" "${datasizes}" "${extra_arguments}" "_noBatch${file_suffix}" fi fi fi if [[ "$role" == "pub" && "${loss_rate}" != "" ]]; then echo -e "${INFO_TAG} Disabling loss rate" sudo tc qdisc del dev $nic_publisher root netem loss $loss_rate% fi |
1 2 3 4 5 6 | #!/bin/bash filename=$0 script_location=$(cd "$(dirname "$filename")" || exit 255; pwd) echo -e "[Calling base_script/script.sh]" "${script_location}/../base_script/script.sh" $@ --transport UDPv4 |
Test Hardware
The following hardware was used to perform these tests:
Linux Nodes
Dell R340 Servers (13 Units)
Processor: Intel Xeon E-2278G (3.4-5GHz, 8c/16t, 16MB cache, 2 memory channels @2666MHz)
RAM: 4x 16GB 2666MHz DIMM (64GB RAM)
HD: 480GB SATA SSD
NIC 1: Intel 710 dual port 10Gbps SFP
OS: Ubuntu 20.04 -- gcc 9.3.0
Switch
Dell 2048 -- 10Gbps switch (10Gbps and 1Gbps interfaces)
The graph below shows the expected throughput behavior when performing a 1-1 communication between two Linux nodes in a 10Gbps network. The numbers are for best-effort as well as strict reliable reliability scenarios.
Note
By default, RTI Perftest enables batching when performing a Maximum Throughput test. The batching feature allows sending more than one data sample per RTPS packet, improving network performance for small data sizes. See the RTI Connext DDS Core Libraries User’s Manual for more information on batching.
The batch maximum size is set by RTI Perftest to be 8192 bytes; after 8192 bytes, batching is not enabled.
Detailed Statistics
This table contains the raw numbers presented by RTI Perftest. These numbers are the exact output with no further processing.
Best Effort
Sample Size (Bytes) |
Total Samples |
Avg Samples/s |
Avg Mbps |
Lost Samples |
Lost Samples (%) |
---|---|---|---|---|---|
32 |
30617935 |
1530701 |
391.9 |
256 |
0.00 |
64 |
30269315 |
1512996 |
774.7 |
0 |
0.00 |
128 |
27731415 |
1386374 |
1419.6 |
128 |
0.00 |
256 |
23887872 |
1193975 |
2445.3 |
96 |
0.00 |
512 |
20629611 |
1031324 |
4224.3 |
0 |
0.00 |
1024 |
14989995 |
749375 |
6138.9 |
0 |
0.00 |
2048 |
9840484 |
491941 |
8060.0 |
0 |
0.00 |
4096 |
5811741 |
290537 |
9520.3 |
0 |
0.00 |
8192 |
2997392 |
149840 |
9819.9 |
13 |
0.00 |
16384 |
1507031 |
75340 |
9875.0 |
8 |
0.00 |
32768 |
755612 |
37774 |
9902.5 |
6 |
0.00 |
63000 |
393418 |
19668 |
9912.7 |
10 |
0.00 |
Reliable
Sample Size (Bytes) |
Total Samples |
Avg Samples/s |
Avg Mbps |
Lost Samples |
Lost Samples (%) |
---|---|---|---|---|---|
32 |
30492160 |
1524423 |
390.3 |
0 |
0.00 |
64 |
29078399 |
1453696 |
744.3 |
0 |
0.00 |
128 |
25478450 |
1273737 |
1304.3 |
0 |
0.00 |
256 |
21469348 |
1073307 |
2198.1 |
0 |
0.00 |
512 |
16092309 |
804435 |
3295.0 |
0 |
0.00 |
1024 |
11825792 |
591071 |
4842.1 |
0 |
0.00 |
2048 |
7000965 |
349981 |
5734.1 |
0 |
0.00 |
4096 |
3425083 |
171221 |
5610.6 |
0 |
0.00 |
8192 |
2138583 |
106908 |
7006.3 |
0 |
0.00 |
16384 |
1506375 |
75305 |
9870.5 |
0 |
0.00 |
32768 |
755906 |
37767 |
9900.5 |
0 |
0.00 |
63000 |
393597 |
19666 |
9912.0 |
0 |
0.00 |
Perftest Scripts
To produce these tests, we executed RTI Perftest for C#. The exact script used can be found here:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 | #!/bin/bash filename=$0 script_location=$(cd "$(dirname "$filename")" || exit 255; pwd) export datasizes="32 64 128 256 512 1024 2048 4096 8192 16384 32768 63000" export datasizes_extended="${datasizes} 100000 500000 1048576 1548576 4194304 10485760" export domain="2" export exec_time=20 export num_reps=1 export instance_number=100000 export core=0 # We will use some colors to improve visibility of errors and info messages. RED='\033[0;31m' GREEN='\033[0;32m' YELLOW='\033[0;33m' BLUE='\033[0;34m' LIGHTBLUE='\033[0;36m' NC='\033[0m' INFO_TAG="${GREEN}[INFO]:${NC}" WARNING_TAG="${YELLOW}[WARNING]:${NC}" ERROR_TAG="${RED}[ERROR]:${NC}" export ip_machine_1="10.2.78.20" export ip_machine_2="10.2.78.21" export if10Gbps="enp1s0f0" export if1Gbps="eno1" ################################################################################ function disable_colors() { export RED="" export GREEN="" export YELLOW="" export NC="" export BLUE="" export LIGHTBLUE="" export INFO_TAG="${GREEN}[INFO]:${NC}" export WARNING_TAG="${YELLOW}[WARNING]:${NC}" export ERROR_TAG="${RED}[ERROR]:${NC}" } function change_domain() { if [[ "$domain" == "1" ]]; then export domain="2" else export domain="1" fi } # Usage: execute_test <keyed/unkeyed> <rel/be> <datasizes> <batchSize> function execute_test() { local keyed_unkeyed=$1 local rel_be=$2 local datasizes_test=$3 local other_args=$4 local name_suffix=$5 local commands_string_test=$commands_string local tag="" if [[ "${keyed_unkeyed}" == "keyed" ]]; then commands_string_test="${commands_string_test} -keyed -instances $instance_number" tag="[${YELLOW}${transport}${NC}|${BLUE}K${NC}|" else tag="[${YELLOW}${transport}${NC}|${LIGHTBLUE}UK${NC}|" fi if [[ "${rel_be}" == "be" ]]; then commands_string_test="${commands_string_test} -bestEffort" tag="${tag}${YELLOW}BE${NC}]" else tag="${tag}${RED}REL${NC}]" fi tag="${tag}[${LIGHTBLUE}${lat_thr}${NC}]" local output_file=$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}.csv if [[ "$role" == "pub" ]]; then echo -e "${YELLOW}[TEST]: $keyed_unkeyed, $rel_be. ${NC}" fi if [[ "$NO_TASKSET" == "" ]]; then if [[ "$LANGUAGE" != "java" && "$LANGUAGE" != "cs" ]]; then export pre_command_string="taskset -c $core" fi fi if [[ "$LANGUAGE" == "python" ]]; then export pre_command_string="python3 " fi if [[ "$DOCKER" == "1" ]]; then export pre_command_string="taskset -c $core docker run --net=host -v /home/perfuser/rti_license_connextpro.dat:/opt/rti.com/rti_connext_dds-7.3.0/rti_license.dat rticom/perftest:7.3.0-EAR " executable="" fi # Get the aprox time this will take: total_tests=$((`wc -w <<< "$datasizes_test"` * num_reps)) total_time=$((total_tests * exec_time)) touch $output_file local no_headers="" local current_test=0 for index in $(seq 1 ${num_reps}); do for DATALEN in ${datasizes_test}; do current_test=$((current_test + 1)) export command="$pre_command_string $executable -domain $domain -dataLen $DATALEN $commands_string_test $other_args $no_headers" if [[ "$role" == "pub" ]]; then echo -e "Test ${tag} (${current_test}/${total_tests}) -- Total time = ${total_time}s" echo -e ${BLUE}$command${NC} else echo -e ${LIGHTBLUE}$command${NC} fi if [[ "$LANGUAGE" == "cs" && "$role" == "pub" ]]; then sleep 3 fi if [[ "$raw" == "1" && "$role" == "sub" ]]; then sleep 5 fi if [[ "${get_netstat_info}" == "1" ]]; then echo -e "${INFO_TAG} Getting netstat info before" netstat -s -u | grep -e "error" -e "packet" > $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_before.txt fi eval $command >> $output_file; if [[ "${get_netstat_info}" == "1" ]]; then echo -e "${INFO_TAG} Getting netstat info after" netstat -s -u | grep -e "error" -e "packet" > $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_after.txt touch "$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat.csv" python3 $script_location/../../../tools/diff_netstat_output.py \ -n $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_after.txt \ -o $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_before.txt \ -d $DATALEN $no_header_netstat \ -csv >> "$output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat.csv" rm -rf $output_folder/${lat_thr}_${role}_${keyed_unkeyed}_${rel_be}${name_suffix}_netstat_*.txt no_header_netstat=" -nh" fi no_headers=" -noOutputHeaders" change_domain done done } ################################################################################ # PARSE COMMAND LINE OPTIONS: while [ "$1" != "" ]; do case $1 in --executable) executable=$2 shift ;; --docker) DOCKER="1" ;; --output-folder) output_folder=$2 shift ;; --sub-folder) sub_folder=$2 shift ;; --role) export role=$2 shift ;; --core) export core=$2 shift ;; --test-kind) export lat_thr=$2 shift ;; --interface1) export interface=$2 shift ;; --interface2) export interface2=$2 shift ;; --ip1) export ip1=$2 shift ;; --ip2) export ip2=$2 shift ;; --repetitions) export num_reps=$2 shift ;; --domain) export domain=$2 shift ;; --execution-time) export exec_time=$2 shift ;; --transport) export transport=$2 shift ;; --datalen) export datalen_input=$2 shift ;; --file-suffix) export file_suffix=$2 shift ;; --executable-suffix) export executable_suffix=$2 shift ;; --extra-arguments) export extra_arguments=$2 shift ;; --extra-arguments-pub) export extra_arguments_pub=$2 shift ;; --extra-arguments-sub) export extra_arguments_sub=$2 shift ;; --skip-no-batching) export skip_no_batching="1" ;; --skip-be) export skip_be_tests="1" ;; --skip-rel) export skip_rel_tests="1" ;; --skip-keyed) export skip_keyed_data="1" ;; --skip-large-data) export skip_large_data="1" ;; --large-data) export large_data="1" ;; --keyed) export skip_unkeyed="1" ;; --unkeyed) export skip_keyed_data="1" ;; --no-batching | --skip-batching) export no_batching_only="1" ;; --reliable) export skip_be_tests="1" ;; --best-effort) export skip_rel_tests="1" ;; --security) export security_only="$2" shift ;; --micro) export micro="1" ;; --raw | --raw-transport) export raw="1" ;; --tss) export tss="1" ;; --no-colors) export NO_COLORS="1" ;; --language) export LANGUAGE=$2 shift ;; --loss-rate) export loss_rate=$2 shift ;; --get-netstat-info | --netstat) export get_netstat_info="1" ;; --no-taskset) export NO_TASKSET="1" ;; *) echo -e "unknown parameter \"$1\"" exit 255 ;; esac shift done if [[ "$NO_COLORS" == "1" ]]; then disable_colors fi export folder_base="$(dirname "${executable}")"/../../.. if [[ $LANGUAGE == "java" || "$LANGUAGE" == "cs" ]]; then export folder_base="$(dirname "${executable}")"/../.. fi if [[ $tss == "1" ]]; then export folder_base="$(dirname "${executable}")"/../../../../.. fi if [[ "${executable_suffix}" != "" ]]; then export executable="${executable}${executable_suffix}" fi if [[ "${sub_folder}" != "" ]]; then export output_folder="${output_folder}/${sub_folder}" fi echo -e "${INFO_TAG} Perftest executable is: $executable" echo -e "${INFO_TAG} Output folder is: $output_folder" ################################################################################ if [[ "$LANGUAGE" == "python" ]]; then export skip_keyed_data="1" export skip_large_data="1" export skip_be_tests="1" export skip_no_batching="1" fi if [[ "${skip_large_data}" == "1" ]]; then export datasizes_extended=${datasizes} elif [[ "${large_data}" == "1" ]]; then export datasizes=${datasizes_extended} fi if [[ "${datalen_input}" != "" ]]; then echo -e "${YELLOW}[TEST] Testing only for ${datalen_input}${NC}" export datasizes=${datalen_input} export datasizes_extended=${datalen_input} if [[ "${no_batching_only}" != "1" ]]; then export skip_large_data="1" fi fi if [[ "$role" != "pub" && "$role" != "sub" ]]; then echo -e "${ERROR_TAG} It must be either publisher or subscriber" exit 255 fi if [[ "$lat_thr" != "thr" && "$lat_thr" != "lat" ]]; then echo -e "${ERROR_TAG} It must be either lat or thr" exit 255 fi if [[ "${interface}" == "" ]]; then echo "Using default nics" export nic_publisher=${ip_machine_1} export nic_subscriber=${ip_machine_2} elif [[ "${interface}" == "both" ]]; then export nic_publisher="enp1s0f0,eno1" export nic_subscriber="enp1s0f0,eno1" echo -e "${INFO_TAG} Using nic_publisher: ${nic_publisher}" echo -e "${INFO_TAG} Using nic_subscriber: ${nic_subscriber}" else export nic_publisher=$interface echo -e "${INFO_TAG} Using nic_publisher: ${nic_publisher}" if [[ "${interface2}" == "" ]]; then export nic_subscriber=$interface else export nic_subscriber=$interface2 fi echo -e "${INFO_TAG} Using nic_subscriber: ${nic_subscriber}" if [[ "${ip1}" != "" ]]; then export ip_publisher=$ip1 echo "Using ip_publisher: ${ip_publisher}" fi if [[ "${ip2}" != "" ]]; then export ip_subscriber=$ip2 echo "Using ip_subscriber: ${ip_subscriber}" fi fi export transport_string="-transport $transport" if [[ "$transport" == "UDPv4" ]]; then export transport_string_pub="$transport_string -nic $nic_publisher" export transport_string_sub="$transport_string -nic $nic_subscriber" if [[ "$micro" == "1" || "$raw" == "1" ]]; then export transport_string_pub="$transport_string_pub -peer ${ip_subscriber}" export transport_string_sub="$transport_string_sub -peer ${ip_publisher}" fi elif [[ "$transport" == "TCP" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -peer 0@tcpv4_lan://${ip_subscriber}:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer 0@tcpv4_lan://${ip_publisher}:7400" elif [[ "$transport" == "TLS" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -peer tlsv4_lan://${ip_subscriber}:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer tlsv4_lan://${ip_publisher}:7400" elif [[ "$transport" == "UDPv4_WAN" ]]; then export transport_string_pub="$transport_string \ -nic $nic_publisher \ -transportPublicAddress $ip_publisher:7400" export transport_string_sub="$transport_string \ -nic $nic_subscriber \ -peer 0@udpv4_wan://${ip_publisher}:7400" else export transport_string_pub="$transport_string" export transport_string_sub="$transport_string" fi ################################################################################ export pub_string="-pub \ ${transport_string_pub} \ -noPrintIntervals \ -executionTime $exec_time" if [[ ${lat_thr} == "lat" ]]; then export pub_string="$pub_string \ -latencyTest" fi export sub_string="-sub \ ${transport_string_sub} \ -noPrintIntervals" if [[ "$role" == "pub" ]]; then echo -e "$INFO_TAG Publisher side running" export commands_string=${pub_string} export extra_arguments="${extra_arguments} ${extra_arguments_pub}" else echo -e "$INFO_TAG Subscriber side running" export commands_string=${sub_string} export extra_arguments="${extra_arguments} ${extra_arguments_sub}" fi ############################################################################### echo -e "${INFO_TAG} Executing: /set_${lat_thr}_mode.sh" sudo /set_${lat_thr}_mode.sh sleep 5 echo -e "${INFO_TAG} Disabling any loss rate" sudo tc qdisc add dev $nic_publisher root netem loss 0% sudo tc qdisc del dev $nic_publisher root netem loss 0% if [[ "$role" == "pub" && "${loss_rate}" != "" ]]; then echo -e "${INFO_TAG} Setting loss rate to ${loss_rate}%" sudo tc qdisc add dev $nic_publisher root netem loss $loss_rate% fi cd $folder_base echo -e "${INFO_TAG} Folder Base is: $PWD" mkdir -p $output_folder # Tests that may use batching (when doing throughput tests) if [[ ${no_batching_only} != "1" ]]; then # UNKEYED if [[ "${skip_unkeyed}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "unkeyed" "rel" "${datasizes_extended}" "${extra_arguments}" "$file_suffix" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "unkeyed" "be" "${datasizes}" "${extra_arguments}" "$file_suffix" fi fi # KEYED if [[ "${skip_keyed_data}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "keyed" "rel" "${datasizes}" "${extra_arguments}" "$file_suffix" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "keyed" "be" "${datasizes}" "${extra_arguments}" "$file_suffix" fi fi fi if [[ "${skip_no_batching}" == "" || "${no_batching_only}" == "1" ]]; then no_batching_tests="1" fi # Tests that will not use batching if [[ "${lat_thr}" == "thr" && "${no_batching_tests}" == "1" ]]; then if [[ "$role" == "pub" ]]; then export commands_string="${commands_string} -batchSize 0" fi # UNKEYED if [[ "${skip_unkeyed}" == "" ]]; then # RELIABLE if [[ "${skip_rel_tests}" == "" ]]; then execute_test "unkeyed" "rel" "${datasizes}" "${extra_arguments}" "_noBatch${file_suffix}" fi # BEST EFFORT if [[ "${skip_be_tests}" == "" ]]; then execute_test "unkeyed" "be" "${datasizes}" "${extra_arguments}" "_noBatch${file_suffix}" fi fi fi if [[ "$role" == "pub" && "${loss_rate}" != "" ]]; then echo -e "${INFO_TAG} Disabling loss rate" sudo tc qdisc del dev $nic_publisher root netem loss $loss_rate% fi |
1 2 3 4 5 6 | #!/bin/bash filename=$0 script_location=$(cd "$(dirname "$filename")" || exit 255; pwd) echo -e "[Calling base_script/script.sh]" "${script_location}/../base_script/script.sh" $@ --transport UDPv4 |
Test Hardware
The following hardware was used to perform these tests:
Linux Nodes
Dell R340 Servers (13 Units)
Processor: Intel Xeon E-2278G (3.4-5GHz, 8c/16t, 16MB cache, 2 memory channels @2666MHz)
RAM: 4x 16GB 2666MHz DIMM (64GB RAM)
HD: 480GB SATA SSD
NIC 1: Intel 710 dual port 10Gbps SFP
OS: Ubuntu 20.04 -- gcc 9.3.0
Switch
Dell 2048 -- 10Gbps switch (10Gbps and 1Gbps interfaces)