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 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173
|
<pre>Internet Engineering Task Force (IETF) C. Davids
Request for Comments: 7502 Illinois Institute of Technology
Category: Informational V. Gurbani
ISSN: 2070-1721 Bell Laboratories, Alcatel-Lucent
S. Poretsky
Allot Communications
April 2015
Methodology for Benchmarking Session Initiation Protocol (SIP) Devices:
Basic Session Setup and Registration
Abstract
This document provides a methodology for benchmarking the Session
Initiation Protocol (SIP) performance of devices. Terminology
related to benchmarking SIP devices is described in the companion
terminology document (<a href="./rfc7501">RFC 7501</a>). Using these two documents,
benchmarks can be obtained and compared for different types of
devices such as SIP Proxy Servers, Registrars, and Session Border
Controllers. The term "performance" in this context means the
capacity of the Device Under Test (DUT) to process SIP messages.
Media streams are used only to study how they impact the signaling
behavior. The intent of the two documents is to provide a normalized
set of tests that will enable an objective comparison of the capacity
of SIP devices. Test setup parameters and a methodology are
necessary because SIP allows a wide range of configurations and
operational conditions that can influence performance benchmark
measurements.
Status of This Memo
This document is not an Internet Standards Track specification; it is
published for informational purposes.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Not all documents
approved by the IESG are a candidate for any level of Internet
Standard; see <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc7502">http://www.rfc-editor.org/info/rfc7502</a>.
<span class="grey">Davids, et al. Informational [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
Copyright Notice
Copyright (c) 2015 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
<span class="grey">Davids, et al. Informational [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-2">2</a>. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-3">3</a>. Benchmarking Topologies . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-4">4</a>. Test Setup Parameters . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4.1">4.1</a>. Selection of SIP Transport Protocol . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4.2">4.2</a>. Connection-Oriented Transport Management . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4.3">4.3</a>. Signaling Server . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4.4">4.4</a>. Associated Media . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-4.5">4.5</a>. Selection of Associated Media Protocol . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-4.6">4.6</a>. Number of Associated Media Streams per SIP Session . . . <a href="#page-8">8</a>
<a href="#section-4.7">4.7</a>. Codec Type . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-4.8">4.8</a>. Session Duration . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-4.9">4.9</a>. Attempted Sessions per Second (sps) . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-4.10">4.10</a>. Benchmarking Algorithm . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-5">5</a>. Reporting Format . . . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-5.1">5.1</a>. Test Setup Report . . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-5.2">5.2</a>. Device Benchmarks for Session Setup . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-5.3">5.3</a>. Device Benchmarks for Registrations . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-6">6</a>. Test Cases . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-6.1">6.1</a>. Baseline Session Establishment Rate of the Testbed . . . <a href="#page-13">13</a>
<a href="#section-6.2">6.2</a>. Session Establishment Rate without Media . . . . . . . . <a href="#page-13">13</a>
<a href="#section-6.3">6.3</a>. Session Establishment Rate with Media Not on DUT . . . . <a href="#page-13">13</a>
<a href="#section-6.4">6.4</a>. Session Establishment Rate with Media on DUT . . . . . . <a href="#page-14">14</a>
<a href="#section-6.5">6.5</a>. Session Establishment Rate with TLS-Encrypted SIP . . . . <a href="#page-14">14</a>
<a href="#section-6.6">6.6</a>. Session Establishment Rate with IPsec-Encrypted SIP . . . <a href="#page-15">15</a>
<a href="#section-6.7">6.7</a>. Registration Rate . . . . . . . . . . . . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-6.8">6.8</a>. Re-registration Rate . . . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
<a href="#section-7">7</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
<a href="#section-8">8</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#section-8.1">8.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#section-8.2">8.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#appendix-A">Appendix A</a>. R Code Component to Simulate Benchmarking Algorithm 18
Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
<span class="grey">Davids, et al. Informational [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document describes the methodology for benchmarking Session
Initiation Protocol (SIP) performance as described in the Terminology
document [<a href="./rfc7501" title=""Terminology for Benchmarking Session Initiation Protocol (SIP) Devices: Basic Session Setup and Registration"">RFC7501</a>]. The methodology and terminology are to be used
for benchmarking signaling plane performance with varying signaling
and media load. Media streams, when used, are used only to study how
they impact the signaling behavior. This document concentrates on
benchmarking SIP session setup and SIP registrations only.
The Device Under Test (DUT) is a network intermediary that is <a href="./rfc3261">RFC</a>
<a href="./rfc3261">3261</a> [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>] capable and that plays the role of a registrar,
redirect server, stateful proxy, a Session Border Controller (SBC) or
a B2BUA. This document does not require the intermediary to assume
the role of a stateless proxy. Benchmarks can be obtained and
compared for different types of devices such as a SIP proxy server,
Session Border Controllers (SBC), SIP registrars and a SIP proxy
server paired with a media relay.
The test cases provide metrics for benchmarking the maximum 'SIP
Registration Rate' and maximum 'SIP Session Establishment Rate' that
the DUT can sustain over an extended period of time without failures
(extended period of time is defined in the algorithm in
<a href="#section-4.10">Section 4.10</a>). Some cases are included to cover encrypted SIP. The
test topologies that can be used are described in the Test Setup
section. Topologies in which the DUT handles media as well as those
in which the DUT does not handle media are both considered. The
measurement of the performance characteristics of the media itself is
outside the scope of these documents.
Benchmark metrics could possibly be impacted by Associated Media.
The selected values for Session Duration and Media Streams per
Session enable benchmark metrics to be benchmarked without Associated
Media. Session Setup Rate could possibly be impacted by the selected
value for Maximum Sessions Attempted. The benchmark for Session
Establishment Rate is measured with a fixed value for maximum Session
Attempts.
Finally, the overall value of these tests is to serve as a comparison
function between multiple SIP implementations. One way to use these
tests is to derive benchmarks with SIP devices from Vendor-A, derive
a new set of benchmarks with similar SIP devices from Vendor-B and
perform a comparison on the results of Vendor-A and Vendor-B. This
document does not make any claims on the interpretation of such
results.
<span class="grey">Davids, et al. Informational [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology</span>
In this document, the key words "MUST", "MUST NOT", "REQUIRED",
"SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT
RECOMMENDED", "MAY", and "OPTIONAL" are to be interpreted as
described in <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, conforming to [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>] and indicate requirement
levels for compliant implementations.
<a href="./rfc2119">RFC 2119</a> defines the use of these key words to help make the intent
of Standards Track documents as clear as possible. While this
document uses these keywords, this document is not a Standards Track
document.
Terms specific to SIP [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>] performance benchmarking are defined
in [<a href="./rfc7501" title=""Terminology for Benchmarking Session Initiation Protocol (SIP) Devices: Basic Session Setup and Registration"">RFC7501</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Benchmarking Topologies</span>
Test organizations need to be aware that these tests generate large
volumes of data and consequently ensure that networking devices like
hubs, switches, or routers are able to handle the generated volume.
The test cases enumerated in Sections <a href="#section-6.1">6.1</a> to <a href="#section-6.6">6.6</a> operate on two test
topologies: one in which the DUT does not process the media
(Figure 1) and the other in which it does process media (Figure 2).
In both cases, the tester or Emulated Agent (EA) sends traffic into
the DUT and absorbs traffic from the DUT. The diagrams in Figures 1
and 2 represent the logical flow of information and do not dictate a
particular physical arrangement of the entities.
Figure 1 depicts a layout in which the DUT is an intermediary between
the two interfaces of the EA. If the test case requires the exchange
of media, the media does not flow through the DUT but rather passes
directly between the two endpoints. Figure 2 shows the DUT as an
intermediary between the two interfaces of the EA. If the test case
requires the exchange of media, the media flows through the DUT
between the endpoints.
<span class="grey">Davids, et al. Informational [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
+--------+ Session +--------+ Session +--------+
| | Attempt | | Attempt | |
| |------------>+ |------------>+ |
| | | | | |
| | Response | | Response | |
| Tester +<------------| DUT +<------------| Tester |
| (EA) | | | | (EA) |
| | | | | |
+--------+ +--------+ +--------+
/|\ /|\
| Media (optional) |
+==============================================+
Figure 1: DUT as an Intermediary, End-to-End Media
+--------+ Session +--------+ Session +--------+
| | Attempt | | Attempt | |
| |------------>+ |------------>+ |
| | | | | |
| | Response | | Response | |
| Tester +<------------| DUT +<------------| Tester |
| (EA) | | | | (EA) |
| |<===========>| |<===========>| |
+--------+ Media +--------+ Media +--------+
(Optional) (Optional)
Figure 2: DUT as an Intermediary Forwarding Media
The test cases enumerated in Sections <a href="#section-6.7">6.7</a> and <a href="#section-6.8">6.8</a> use the topology in
Figure 3 below.
+--------+ Registration +--------+
| | request | |
| |------------->+ |
| | | |
| | Response | |
| Tester +<-------------| DUT |
| (EA) | | |
| | | |
+--------+ +--------+
Figure 3: Registration and Re-registration Tests
During registration or re-registration, the DUT may involve backend
network elements and data stores. These network elements and data
stores are not shown in Figure 3, but it is understood that they will
impact the time required for the DUT to generate a response.
<span class="grey">Davids, et al. Informational [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
This document explicitly separates a registration test (<a href="#section-6.7">Section 6.7</a>)
from a re-registration test (<a href="#section-6.8">Section 6.8</a>) because in certain
networks, the time to re-register may vary from the time to perform
an initial registration due to the backend processing involved. It
is expected that the registration tests and the re-registration test
will be performed with the same set of backend network elements in
order to derive a stable metric.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Test Setup Parameters</span>
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Selection of SIP Transport Protocol</span>
Test cases may be performed with any transport protocol supported by
SIP. This includes, but is not limited to, TCP, UDP, TLS, and
websockets. The protocol used for the SIP transport protocol must be
reported with benchmarking results.
SIP allows a DUT to use different transports for signaling on either
side of the connection to the EAs. Therefore, this document assumes
that the same transport is used on both sides of the connection; if
this is not the case in any of the tests, the transport on each side
of the connection MUST be reported in the test-reporting template.
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Connection-Oriented Transport Management</span>
SIP allows a device to open one connection and send multiple requests
over the same connection (responses are normally received over the
same connection that the request was sent out on). The protocol also
allows a device to open a new connection for each individual request.
A connection management strategy will have an impact on the results
obtained from the test cases, especially for connection-oriented
transports such as TLS. For such transports, the cryptographic
handshake must occur every time a connection is opened.
The connection management strategy, i.e., use of one connection to
send all requests or closing an existing connection and opening a new
connection to send each request, MUST be reported with the
benchmarking result.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Signaling Server</span>
The Signaling Server is defined in the companion terminology document
(<a href="./rfc7501#section-3.2.2">[RFC7501], Section 3.2.2</a>). The Signaling Server is a DUT.
<span class="grey">Davids, et al. Informational [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Associated Media</span>
Some tests require Associated Media to be present for each SIP
session. The test topologies to be used when benchmarking DUT
performance for Associated Media are shown in Figure 1 and Figure 2.
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. Selection of Associated Media Protocol</span>
The test cases specified in this document provide SIP performance
independent of the protocol used for the media stream. Any media
protocol supported by SIP may be used. This includes, but is not
limited to, RTP and SRTP. The protocol used for Associated Media
MUST be reported with benchmarking results.
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a>. Number of Associated Media Streams per SIP Session</span>
Benchmarking results may vary with the number of media streams per
SIP session. When benchmarking a DUT for voice, a single media
stream is used. When benchmarking a DUT for voice and video, two
media streams are used. The number of Associated Media Streams MUST
be reported with benchmarking results.
<span class="h3"><a class="selflink" id="section-4.7" href="#section-4.7">4.7</a>. Codec Type</span>
The test cases specified in this document provide SIP performance
independent of the media stream codec. Any codec supported by the
EAs may be used. The codec used for Associated Media MUST be
reported with the benchmarking results.
<span class="h3"><a class="selflink" id="section-4.8" href="#section-4.8">4.8</a>. Session Duration</span>
The value of the DUT's performance benchmarks may vary with the
duration of SIP sessions. Session Duration MUST be reported with
benchmarking results. A Session Duration of zero seconds indicates
transmission of a BYE immediately following a successful SIP
establishment. Setting this parameter to the value '0' indicates
that a BYE will be sent by the EA immediately after the EA receives a
200 OK to the INVITE. Setting this parameter to a time value greater
than the duration of the test indicates that a BYE will never be
sent. Setting this parameter to a time value greater than the
duration of the test indicates that a BYE is never sent.
<span class="h3"><a class="selflink" id="section-4.9" href="#section-4.9">4.9</a>. Attempted Sessions per Second (sps)</span>
The value of the DUT's performance benchmarks may vary with the
Session Attempt Rate offered by the tester. Session Attempt Rate
MUST be reported with the benchmarking results.
<span class="grey">Davids, et al. Informational [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
The test cases enumerated in Sections <a href="#section-6.1">6.1</a> to <a href="#section-6.6">6.6</a> require that the EA
is configured to send the final 2xx-class response as quickly as it
can. This document does not require the tester to add any delay
between receiving a request and generating a final response.
<span class="h3"><a class="selflink" id="section-4.10" href="#section-4.10">4.10</a>. Benchmarking Algorithm</span>
In order to benchmark the test cases uniformly in <a href="#section-6">Section 6</a>, the
algorithm described in this section should be used. A prosaic
description of the algorithm and a pseudocode description are
provided below, and a simulation written in the R statistical
language [<a href="#ref-Rtool" title=""R: A Language and Environment for Statistical Computing"">Rtool</a>] is provided in <a href="#appendix-A">Appendix A</a>.
The goal is to find the largest value, R, a SIP Session Attempt Rate,
measured in sessions per second (sps), which the DUT can process with
zero errors over a defined, extended period. This period is defined
as the amount of time needed to attempt N SIP sessions, where N is a
parameter of test, at the attempt rate, R. An iterative process is
used to find this rate. The algorithm corresponding to this process
converges to R.
If the DUT vendor provides a value for R, the tester can use this
value. In cases where the DUT vendor does not provide a value for R,
or where the tester wants to establish the R of a system using local
media characteristics, the algorithm should be run by setting "r",
the session attempt rate, equal to a value of the tester's choice.
For example, the tester may initialize "r = 100" to start the
algorithm and observe the value at convergence. The algorithm
dynamically increases and decreases "r" as it converges to the
maximum sps value for R. The dynamic increase and decrease rate is
controlled by the weights "w" and "d", respectively.
The pseudocode corresponding to the description above follows, and a
simulation written in the R statistical language is provided in
<a href="#appendix-A">Appendix A</a>.
<span class="grey">Davids, et al. Informational [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
; ---- Parameters of test; adjust as needed
N := 50000 ; Global maximum; once largest session rate has
; been established, send this many requests before
; calling the test a success
m := {...} ; Other attributes that affect testing, such
; as media streams, etc.
r := 100 ; Initial session attempt rate (in sessions/sec).
; Adjust as needed (for example, if DUT can handle
; thousands of calls in steady state, set to
; appropriate value in the thousands).
w := 0.10 ; Traffic increase weight (0 < w <= 1.0)
d := max(0.10, w / 2) ; Traffic decrease weight
; ---- End of parameters of test
proc find_R
R = max_sps(r, m, N) ; Setup r sps, each with m media
; characteristics until N sessions have been attempted.
; Note that if a DUT vendor provides this number, the tester
; can use the number as a Session Attempt Rate, R, instead
; of invoking max_sps()
end proc
; Iterative process to figure out the largest number of
; sps that we can achieve in order to setup n sessions.
; This function converges to R, the Session Attempt Rate.
proc max_sps(r, m, n)
s := 0 ; session setup rate
old_r := 0 ; old session setup rate
h := 0 ; Return value, R
count := 0
; Note that if w is small (say, 0.10) and r is small
; (say, <= 9), the algorithm will not converge since it
; uses floor() to increment r dynamically. It is best
; to start with the defaults (w = 0.10 and r >= 100).
while (TRUE) {
s := send_traffic(r, m, n) ; Send r sps, with m media
; characteristics until n sessions have been attempted.
if (s == n) {
if (r > old_r) {
old_r = r
}
else {
count = count + 1
<span class="grey">Davids, et al. Informational [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
if (count >= 10) {
# We've converged.
h := max(r, old_r)
break
}
}
r := floor(r + (w * r))
}
else {
r := floor(r - (d * r))
d := max(0.10, d / 2)
w := max(0.10, w / 2)
}
}
return h
end proc
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Reporting Format</span>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Test Setup Report</span>
SIP Transport Protocol = ___________________________
(valid values: TCP|UDP|TLS|SCTP|websockets|specify-other)
(Specify if same transport used for connections to the DUT
and connections from the DUT. If different transports
used on each connection, enumerate the transports used.)
Connection management strategy for connection oriented
transports
DUT receives requests on one connection = _______
(Yes or no. If no, DUT accepts a new connection for
every incoming request, sends a response on that
connection, and closes the connection.)
DUT sends requests on one connection = __________
(Yes or no. If no, DUT initiates a new connection to
send out each request, gets a response on that
connection, and closes the connection.)
Session Attempt Rate _______________________________
(Session attempts/sec)
(The initial value for "r" in benchmarking algorithm in
<a href="#section-4.10">Section 4.10</a>.)
Session Duration = _________________________________
(In seconds)
<span class="grey">Davids, et al. Informational [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
Total Sessions Attempted = _________________________
(Total sessions to be created over duration of test)
Media Streams per Session = _______________________
(number of streams per session)
Associated Media Protocol = _______________________
(RTP|SRTP|specify-other)
Codec = ____________________________________________
(Codec type as identified by the organization that
specifies the codec)
Media Packet Size (audio only) = __________________
(Number of bytes in an audio packet)
Establishment Threshold time = ____________________
(Seconds)
TLS ciphersuite used
(for tests involving TLS) = ________________________
(e.g., TLS_RSA_WITH_AES_128_CBC_SHA)
IPsec profile used
(For tests involving IPsec) = _____________________
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Device Benchmarks for Session Setup</span>
Session Establishment Rate, "R" = __________________
(sessions per second)
Is DUT acting as a media relay? (yes/no) = _________
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. Device Benchmarks for Registrations</span>
Registration Rate = ____________________________
(registrations per second)
Re-registration Rate = ____________________________
(registrations per second)
Notes = ____________________________________________
(List any specific backend processing required or
other parameters that may impact the rate)
<span class="grey">Davids, et al. Informational [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Test Cases</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Baseline Session Establishment Rate of the Testbed</span>
Objective:
To benchmark the Session Establishment Rate of the Emulated Agent
(EA) with zero failures.
Procedure:
1. Configure the DUT in the test topology shown in Figure 1.
2. Set Media Streams per Session to 0.
3. Execute benchmarking algorithm as defined in <a href="#section-4.10">Section 4.10</a> to
get the baseline Session Establishment Rate. This rate MUST
be recorded using any pertinent parameters as shown in the
reporting format of <a href="#section-5.1">Section 5.1</a>.
Expected Results: This is the scenario to obtain the maximum Session
Establishment Rate of the EA and the testbed when no DUT is
present. The results of this test might be used to normalize test
results performed on different testbeds or simply to better
understand the impact of the DUT on the testbed in question.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Session Establishment Rate without Media</span>
Objective:
To benchmark the Session Establishment Rate of the DUT with no
Associated Media and zero failures.
Procedure:
1. Configure a DUT according to the test topology shown in
Figure 1 or Figure 2.
2. Set Media Streams per Session to 0.
3. Execute benchmarking algorithm as defined in <a href="#section-4.10">Section 4.10</a> to
get the Session Establishment Rate. This rate MUST be
recorded using any pertinent parameters as shown in the
reporting format of <a href="#section-5.1">Section 5.1</a>.
Expected Results: Find the Session Establishment Rate of the DUT
when the EA is not sending media streams.
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Session Establishment Rate with Media Not on DUT</span>
Objective:
To benchmark the Session Establishment Rate of the DUT with zero
failures when Associated Media is included in the benchmark test
but the media is not running through the DUT.
<span class="grey">Davids, et al. Informational [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
Procedure:
1. Configure a DUT according to the test topology shown in
Figure 1.
2. Set Media Streams per Session to 1.
3. Execute benchmarking algorithm as defined in <a href="#section-4.10">Section 4.10</a> to
get the session establishment rate with media. This rate MUST
be recorded using any pertinent parameters as shown in the
reporting format of <a href="#section-5.1">Section 5.1</a>.
Expected Results: Session Establishment Rate results obtained with
Associated Media with any number of media streams per SIP session
are expected to be identical to the Session Establishment Rate
results obtained without media in the case where the DUT is
running on a platform separate from the Media Relay.
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. Session Establishment Rate with Media on DUT</span>
Objective:
To benchmark the Session Establishment Rate of the DUT with zero
failures when Associated Media is included in the benchmark test
and the media is running through the DUT.
Procedure:
1. Configure a DUT according to the test topology shown in
Figure 2.
2. Set Media Streams per Session to 1.
3. Execute benchmarking algorithm as defined in <a href="#section-4.10">Section 4.10</a> to
get the Session Establishment Rate with media. This rate MUST
be recorded using any pertinent parameters as shown in the
reporting format of <a href="#section-5.1">Section 5.1</a>.
Expected Results: Session Establishment Rate results obtained with
Associated Media may be lower than those obtained without media in
the case where the DUT and the Media Relay are running on the same
platform. It may be helpful for the tester to be aware of the
reasons for this degradation, although these reasons are not
parameters of the test. For example, the degree of performance
degradation may be due to what the DUT does with the media (e.g.,
relaying vs. transcoding), the type of media (audio vs. video vs.
data), and the codec used for the media. There may also be cases
where there is no performance impact, if the DUT has dedicated
media-path hardware.
<span class="h3"><a class="selflink" id="section-6.5" href="#section-6.5">6.5</a>. Session Establishment Rate with TLS-Encrypted SIP</span>
Objective:
To benchmark the Session Establishment Rate of the DUT with zero
failures when using TLS-encrypted SIP signaling.
<span class="grey">Davids, et al. Informational [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
Procedure:
1. If the DUT is being benchmarked as a proxy or B2BUA, then
configure the DUT in the test topology shown in Figure 1 or
Figure 2.
2. Configure the tester to enable TLS over the transport being
used during benchmarking. Note the ciphersuite being used for
TLS and record it in <a href="#section-5.1">Section 5.1</a>.
3. Set Media Streams per Session to 0 (media is not used in this
test).
4. Execute benchmarking algorithm as defined in <a href="#section-4.10">Section 4.10</a> to
get the Session Establishment Rate with TLS encryption.
Expected Results: Session Establishment Rate results obtained with
TLS-encrypted SIP may be lower than those obtained with plaintext
SIP.
<span class="h3"><a class="selflink" id="section-6.6" href="#section-6.6">6.6</a>. Session Establishment Rate with IPsec-Encrypted SIP</span>
Objective:
To benchmark the Session Establishment Rate of the DUT with zero
failures when using IPsec-encrypted SIP signaling.
Procedure:
1. Configure a DUT according to the test topology shown in
Figure 1 or Figure 2.
2. Set Media Streams per Session to 0 (media is not used in this
test).
3. Configure tester for IPsec. Note the IPsec profile being used
for IPsec and record it in <a href="#section-5.1">Section 5.1</a>.
4. Execute benchmarking algorithm as defined in <a href="#section-4.10">Section 4.10</a> to
get the Session Establishment Rate with encryption.
Expected Results: Session Establishment Rate results obtained with
IPsec-encrypted SIP may be lower than those obtained with
plaintext SIP.
<span class="h3"><a class="selflink" id="section-6.7" href="#section-6.7">6.7</a>. Registration Rate</span>
Objective:
To benchmark the maximum registration rate the DUT can handle over
an extended time period with zero failures.
Procedure:
1. Configure a DUT according to the test topology shown in
Figure 3.
2. Set the registration timeout value to at least 3600 seconds.
3. Each register request MUST be made to a distinct Address of
Record (AoR). Execute benchmarking algorithm as defined in
<span class="grey">Davids, et al. Informational [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
<a href="#section-4.10">Section 4.10</a> to get the maximum registration rate. This rate
MUST be recorded using any pertinent parameters as shown in
the reporting format of <a href="#section-5.1">Section 5.1</a>. For example, the use of
TLS or IPsec during registration must be noted in the
reporting format. In the same vein, any specific backend
processing (use of databases, authentication servers, etc.)
SHOULD be recorded as well.
Expected Results: Provides a maximum registration rate.
<span class="h3"><a class="selflink" id="section-6.8" href="#section-6.8">6.8</a>. Re-registration Rate</span>
Objective:
To benchmark the re-registration rate of the DUT with zero
failures using the same backend processing and parameters used
during <a href="#section-6.7">Section 6.7</a>.
Procedure:
1. Configure a DUT according to the test topology shown in
Figure 3.
2. Execute the test detailed in <a href="#section-6.7">Section 6.7</a> to register the
endpoints with the registrar and obtain the registration rate.
3. After at least 5 minutes of performing Step 2, but no more
than 10 minutes after Step 2 has been performed, re-register
the same AoRs used in Step 3 of <a href="#section-6.7">Section 6.7</a>. This will count
as a re-registration because the SIP AoRs have not yet
expired.
Expected Results: Note the rate obtained through this test for
comparison with the rate obtained in <a href="#section-6.7">Section 6.7</a>.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
Documents of this type do not directly affect the security of the
Internet or corporate networks as long as benchmarking is not
performed on devices or systems connected to production networks.
Security threats and how to counter these in SIP and the media layer
is discussed in <a href="./rfc3261">RFC 3261</a>, <a href="./rfc3550">RFC 3550</a>, and <a href="./rfc3711">RFC 3711</a>, and various other
documents. This document attempts to formalize a set of common
methodology for benchmarking performance of SIP devices in a lab
environment.
<span class="grey">Davids, et al. Informational [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. References</span>
<span class="h3"><a class="selflink" id="section-8.1" href="#section-8.1">8.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997,
<<a href="http://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC7501">RFC7501</a>] Davids, C., Gurbani, V., and S. Poretsky, "Terminology for
Benchmarking Session Initiation Protocol (SIP) Devices:
Basic Session Setup and Registration", <a href="./rfc7501">RFC 7501</a>, April
2015, <<a href="http://www.rfc-editor.org/info/rfc7501">http://www.rfc-editor.org/info/rfc7501</a>>.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Informative References</span>
[<a id="ref-RFC3261">RFC3261</a>] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston,
A., Peterson, J., Sparks, R., Handley, M., and E.
Schooler, "SIP: Session Initiation Protocol", <a href="./rfc3261">RFC 3261</a>,
June 2002, <<a href="http://www.rfc-editor.org/info/rfc3261">http://www.rfc-editor.org/info/rfc3261</a>>.
[<a id="ref-Rtool">Rtool</a>] R Development Core Team, "R: A Language and Environment
for Statistical Computing", R Foundation for Statistical
Computing Vienna, Austria, ISBN 3-900051-07-0, 2011,
<<a href="http://www.R-project.org">http://www.R-project.org</a>>.
<span class="grey">Davids, et al. Informational [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
<span class="h2"><a class="selflink" id="appendix-A" href="#appendix-A">Appendix A</a>. R Code Component to Simulate Benchmarking Algorithm</span>
# Copyright (c) 2015 IETF Trust and the persons identified as
# authors of the code. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# The author of this code is Vijay K. Gurbani.
#
# - Redistributions of source code must retain the above copyright
# notice, this list of conditions and
# the following disclaimer.
#
# - Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials
# provided with the distribution.
#
# - Neither the name of Internet Society, IETF or IETF Trust,
# nor the names of specific contributors, may be used to
# endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
# DAMAGE.
w = 0.10
d = max(0.10, w / 2)
DUT_max_sps = 460 # Change as needed to set the max sps value
# for a DUT
<span class="grey">Davids, et al. Informational [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
# Returns R, given r (initial session attempt rate).
# E.g., assume that a DUT handles 460 sps in steady state
# and you have saved this code in a file simulate.r. Then,
# start an R session and do the following:
#
# > source("simulate.r")
# > find_R(100)
# ... debug output omitted ...
# [1] 458
#
# Thus, the max sps that the DUT can handle is 458 sps, which is
# close to the absolute maximum of 460 sps the DUT is specified to
# do.
find_R <- function(r) {
s = 0
old_r = 0
h = 0
count = 0
# Note that if w is small (say, 0.10) and r is small
# (say, <= 9), the algorithm will not converge since it
# uses floor() to increment r dynamically. It is best
# to start with the defaults (w = 0.10 and r >= 100).
cat("r old_r w d \n")
while (TRUE) {
cat(r, ' ', old_r, ' ', w, ' ', d, '\n')
s = send_traffic(r)
if (s == TRUE) { # All sessions succeeded
if (r > old_r) {
old_r = r
}
else {
count = count + 1
if (count >= 10) {
# We've converged.
h = max(r, old_r)
break
}
}
r = floor(r + (w * r))
}
<span class="grey">Davids, et al. Informational [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
else {
r = floor(r - (d * r))
d = max(0.10, d / 2)
w = max(0.10, w / 2)
}
}
h
}
send_traffic <- function(r) {
n = TRUE
if (r > DUT_max_sps) {
n = FALSE
}
n
}
Acknowledgments
The authors would like to thank Keith Drage and Daryl Malas for their
contributions to this document. Dale Worley provided an extensive
review that led to improvements in the documents. We are grateful to
Barry Constantine, William Cerveny, and Robert Sparks for providing
valuable comments during the documents' last calls and expert
reviews. Al Morton and Sarah Banks have been exemplary working group
chairs; we thank them for tracking this work to completion. Tom
Taylor provided an in-depth review and subsequent comments on the
benchmarking convergence algorithm in <a href="#section-4.10">Section 4.10</a>.
<span class="grey">Davids, et al. Informational [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc7502">RFC 7502</a> SIP Benchmarking Methodology April 2015</span>
Authors' Addresses
Carol Davids
Illinois Institute of Technology
201 East Loop Road
Wheaton, IL 60187
United States
Phone: +1 630 682 6024
EMail: davids@iit.edu
Vijay K. Gurbani
Bell Laboratories, Alcatel-Lucent
1960 Lucent Lane
Rm 9C-533
Naperville, IL 60566
United States
Phone: +1 630 224 0216
EMail: vkg@bell-labs.com
Scott Poretsky
Allot Communications
300 TradeCenter, Suite 4680
Woburn, MA 08101
United States
Phone: +1 508 309 2179
EMail: sporetsky@allot.com
Davids, et al. Informational [Page 21]
</pre>
|