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 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397
|
<pre>Internet Engineering Task Force (IETF) A. Niemi
Request for Comments: 6446 K. Kiss
Updates: <a href="./rfc3265">3265</a> Nokia
Category: Standards Track S. Loreto
ISSN: 2070-1721 Ericsson
January 2012
<span class="h1">Session Initiation Protocol (SIP) Event Notification Extension</span>
<span class="h1">for Notification Rate Control</span>
Abstract
This document specifies mechanisms for adjusting the rate of Session
Initiation Protocol (SIP) event notifications. These mechanisms can
be applied in subscriptions to all SIP event packages. This document
updates <a href="./rfc3265">RFC 3265</a>.
Status of This Memo
This is an Internet Standards Track document.
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). Further information on
Internet Standards is available in <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/rfc6446">http://www.rfc-editor.org/info/rfc6446</a>.
<span class="grey">Niemi, et al. Standards Track [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
Copyright Notice
Copyright (c) 2012 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.
This document may contain material from IETF Documents or IETF
Contributions published or made publicly available before November
10, 2008. The person(s) controlling the copyright in some of this
material may not have granted the IETF Trust the right to allow
modifications of such material outside the IETF Standards Process.
Without obtaining an adequate license from the person(s) controlling
the copyright in such materials, this document may not be modified
outside the IETF Standards Process, and derivative works of it may
not be created outside the IETF Standards Process, except to format
it for publication as an RFC or to translate it into languages other
than English.
<span class="grey">Niemi, et al. Standards Track [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-2">2</a>. Definitions and Document Conventions . . . . . . . . . . . . . <a href="#page-5">5</a>
<a href="#section-3">3</a>. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-5">5</a>
3.1. Use Case for Limiting the Maximum Rate of Notifications . 5
<a href="#section-3.2">3.2</a>. Use Case for Setting a Minimum Rate for Notifications . . <a href="#page-6">6</a>
3.3. Use Case for Specifying an Adaptive Minimum Rate of
Notifications . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-3.4">3.4</a>. Requirements . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-4">4</a>. Basic Operations . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-4.1">4.1</a>. Subscriber Behavior . . . . . . . . . . . . . . . . . . . <a href="#page-8">8</a>
<a href="#section-4.2">4.2</a>. Notifier Behavior . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-5">5</a>. Operation of the Maximum Rate Mechanism . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-5.1">5.1</a>. Subscriber Behavior . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-5.2">5.2</a>. Notifier Behavior . . . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-5.3">5.3</a>. Selecting the Maximum Rate . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
5.4. The Maximum Rate Mechanism for the Resource List Server . 11
<a href="#section-5.5">5.5</a>. Buffer Policy Description . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-5.5.1">5.5.1</a>. Partial-State Notifications . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-5.5.2">5.5.2</a>. Full-State Notifications . . . . . . . . . . . . . . . <a href="#page-13">13</a>
<a href="#section-5.6">5.6</a>. Estimated Bandwidth Savings . . . . . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-6">6</a>. Operation of the Minimum Rate Mechanism . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-6.1">6.1</a>. Subscriber Behavior . . . . . . . . . . . . . . . . . . . <a href="#page-14">14</a>
<a href="#section-6.2">6.2</a>. Notifier Behavior . . . . . . . . . . . . . . . . . . . . <a href="#page-15">15</a>
<a href="#section-6.3">6.3</a>. Selecting the Minimum Rate . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
<a href="#section-7">7</a>. Operation of the Adaptive Minimum Rate Mechanism . . . . . . . <a href="#page-16">16</a>
<a href="#section-7.1">7.1</a>. Subscriber Behavior . . . . . . . . . . . . . . . . . . . <a href="#page-16">16</a>
<a href="#section-7.2">7.2</a>. Notifier Behavior . . . . . . . . . . . . . . . . . . . . <a href="#page-17">17</a>
<a href="#section-7.3">7.3</a>. Selecting the Adaptive Minimum Rate . . . . . . . . . . . <a href="#page-18">18</a>
<a href="#section-7.4">7.4</a>. Calculating the Timeout . . . . . . . . . . . . . . . . . <a href="#page-18">18</a>
8. Usage of the Maximum Rate, Minimum Rate, and Adaptive
Minimum Rate Mechanisms in a Combination . . . . . . . . . . . <a href="#page-19">19</a>
<a href="#section-9">9</a>. Protocol Element Definitions . . . . . . . . . . . . . . . . . <a href="#page-20">20</a>
9.1. "max-rate", "min-rate", and "adaptive-min-rate" Header
Field Parameters . . . . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
<a href="#section-9.2">9.2</a>. Grammar . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
9.3. Event Header Field Usage in Responses to the NOTIFY
Request . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-21">21</a>
<a href="#section-10">10</a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . <a href="#page-22">22</a>
<a href="#section-11">11</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-22">22</a>
<a href="#section-12">12</a>. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-23">23</a>
<a href="#section-13">13</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-23">23</a>
<a href="#section-13.1">13.1</a>. Normative References . . . . . . . . . . . . . . . . . . . <a href="#page-23">23</a>
<a href="#section-13.2">13.2</a>. Informative References . . . . . . . . . . . . . . . . . . <a href="#page-24">24</a>
<span class="grey">Niemi, et al. Standards Track [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The SIP events framework [<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>] defines a generic framework for
subscriptions to and notifications of events related to SIP systems.
This framework defines the methods SUBSCRIBE and NOTIFY, and
introduces the concept of an event package, which is a concrete
application of the SIP events framework to a particular class of
events.
One of the things the SIP events framework mandates is that each
event package specification defines an absolute maximum on the rate
at which notifications are allowed to be generated by a single
notifier. Such a limit is provided in order to reduce network load.
All of the existing event package specifications include a
recommendation for the maximum notification rate, ranging from once
in every five seconds [<a href="./rfc3856" title=""A Presence Event Package for the Session Initiation Protocol (SIP)"">RFC3856</a>], [<a href="./rfc3680" title=""A Session Initiation Protocol (SIP) Event Package for Registrations"">RFC3680</a>], [<a href="./rfc3857" title=""A Watcher Information Event Template- Package for the Session Initiation Protocol (SIP)"">RFC3857</a>] to once per
second [<a href="./rfc3842" title=""A Message Summary and Message Waiting Indication Event Package for the Session Initiation Protocol (SIP)"">RFC3842</a>].
Per the SIP events framework, each event package specification is
allowed to define additional throttle mechanisms that allow the
subscriber to further limit the rate of event notification. So far,
none of the event package specifications have defined such a
mechanism.
The resource list extension [<a href="./rfc4662" title=""A Session Initiation Protocol (SIP) Event Notification Extension for Resource Lists"">RFC4662</a>] to the SIP events framework
also deals with rate limiting of event notifications. The extension
allows a subscriber to subscribe to a heterogeneous list of resources
with a single SUBSCRIBE request, rather than having to install a
subscription for each resource separately. The event list
subscription also allows rate limiting, or throttling of
notifications, by means of the Resource List Server (RLS) buffering
notifications of resource state changes, and sending them in batches.
However, the event list mechanism provides no means for the
subscriber to set the interval for the throttling.
Some event packages are also interested in specifying an absolute or
an adaptive minimum rate at which notifications need to be generated
by a notifier. This helps the subscriber to effectively use
different trigger criteria within a subscription to eliminate
unnecessary notifications but at the same time make sure that the
current event state is periodically received.
This document defines an extension to the SIP events framework by
defining the following three Event header field parameters that allow
a subscriber to set a maximum, a minimum, and an adaptive minimum
rate of notifications generated by the notifier:
<span class="grey">Niemi, et al. Standards Track [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
max-rate: specifies a maximum number of notifications per second.
min-rate: specifies a minimum number of notifications per second.
adaptive-min-rate: specifies an adaptive minimum number of
notifications per second.
These mechanisms are applicable to any event subscription, both
single event subscription and event list subscription. A notifier
compliant to this specification will adjust the rate at which it
generates notifications.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Definitions and Document Conventions</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in <a href="./rfc2119">RFC 2119</a> [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>] and
indicate requirement levels for compliant implementations.
Indented passages such as this one are used in this document to
provide additional information and clarifying text. They do not
contain normative protocol behavior.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Overview</span>
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Use Case for Limiting the Maximum Rate of Notifications</span>
A presence client in a mobile device contains a list of 100 buddies
or presentities. In order to decrease the processing and network
load of watching 100 presentities, the presence client has employed
an RLS with the list of buddies, and therefore only needs a single
subscription to the RLS to receive notifications of the presence
state of the resource list.
In order to control the buffer policy of the RLS, the presence client
sets a maximum rate of notifications. The RLS will buffer
notifications that are generated faster than they are allowed to be
sent due to the maximum rate and batch all of the buffered state
changes together in a single notification. The maximum rate applies
to the overall resource list, which means that there is a hard cap
imposed by the maximum rate to the number of notifications per second
that the presence client can expect to receive.
The presence client can also modify the maximum rate of notifications
during the lifetime of the subscription. For example, if the mobile
device detects inactivity from the user for a period of time, the
presence client can simply pause notifications by choosing a "max-
rate" parameter that allows only a single notification for the
<span class="grey">Niemi, et al. Standards Track [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
remainder of the subscription lifetime. When the user becomes active
again, the presence client can resume the stream of notifications by
re-subscribing with a "max-rate" parameter set to the earlier-used
value. Application of the mechanism defined by <a href="./rfc5839">RFC 5839</a> [<a href="./rfc5839" title=""An Extension to Session Initiation Protocol (SIP) Events for Conditional Event Notification"">RFC5839</a>]
can also eliminate the transmission of a (full-state) notification
carrying the latest resource state to the presence client after a
subscription refresh.
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Use Case for Setting a Minimum Rate for Notifications</span>
A location application is monitoring the movement of a target. In
order to decrease the processing and network load, the location
application has made a subscription to a Location Server with a set
of location filters [<a href="./rfc6447" title=""Filtering Location Notifications in the Session Initiation Protocol (SIP)"">RFC6447</a>] that specify trigger criteria, e.g., to
send an update only when the target has moved at least n meters.
However, the application is also interested in receiving the current
state periodically, even if the state of the target has not changed
enough to satisfy any of the trigger criteria, e.g., has not moved at
least n meters within the period.
The location application sets a minimum rate of notifications and
includes it in the subscription sent to the Location Server. The
"min-rate" parameter indicates the minimum number of notifications
per second the notifier needs to generate.
The location application can modify the minimum rate of notifications
during the lifetime of the subscription. For example, when the
subscription to the movement of a target is made, the notifier may
not have the location information available. Thus, the first
notification might be empty or certain values might be absent. An
important use case is placing constraints on when complete state
should be provided after creating the subscription. Once state is
acquired and the second notification is sent, the subscriber updates
or changes the "min-rate" parameter to a more sensible value. This
update can be performed in the response to the notification that
contains the complete state information.
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Use Case for Specifying an Adaptive Minimum Rate of Notifications</span>
The minimum rate mechanism introduces a static and instantaneous rate
control without the functionality to increase or decrease the
notification rate adaptively. However, there are some applications
that would work better with an adaptive minimum rate control.
A location application is monitoring the movement of a target. In
order to decrease the processing in the application, the location
application wants to make a subscription that dynamically decreases
the minimum rate of notifications if the target has sent out several
<span class="grey">Niemi, et al. Standards Track [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
notifications recently. However, if there have been only few recent
notifications by the target, the location application wants the
minimum rate of notifications to increase.
The location application sets an adaptive minimum rate of
notifications and includes it in the subscription sent to the
Location Server. The "adaptive-min-rate" parameter value is used by
the notifier to dynamically calculate the actual maximum time between
two notifications. In order to dynamically calculate the maximum
time, the notifier takes into consideration the rate at which
notifications have been sent recently. In the adaptive minimum rate
mechanism, the notifier can increase or decrease the notification
rate compared to the minimum rate mechanism based on the recent
number of notifications sent out in the last period.
The location application can also modify the "adaptive-min-rate"
parameter during the lifetime of the subscription.
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. Requirements</span>
REQ1: The subscriber must be able to set a maximum rate of
notifications in a specific subscription.
REQ2: The subscriber must be able to set a minimum rate of
notifications in a specific subscription.
REQ3: The subscriber must be able to set an adaptive minimum rate
of notifications in a specific subscription, which adjusts
the minimum rate of notifications based on a moving average.
REQ4: It must be possible to apply the maximum rate, the minimum
rate, and the adaptive minimum rate mechanisms all together,
or in any combination, in a specific subscription.
REQ5: It must be possible to use any of the different rate control
mechanisms in subscriptions to any events.
REQ6: It must be possible to use any of the different rate control
mechanisms together with any other event filtering
mechanisms.
REQ7: The notifier must be allowed to use a policy in which the
maximum rate, minimum rate, and adaptive minimum rate
parameters are adjusted from the value given by the
subscriber.
<span class="grey">Niemi, et al. Standards Track [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
For example, due to congestion, local policy at the
notifier could temporarily dictate a policy that in effect
further decreases the maximum rate of notifications. In
another example, the notifier could increase the
subscriber-proposed maximum rate so that at least one
notification is generated during the remainder of the
subscription lifetime.
REQ8: The different rate control mechanisms must address corner
cases for setting the notification rates appropriately. At a
minimum, the mechanisms must address the situation in which
the time between two notifications exceeds the subscription
duration and should provide procedures for avoiding this
situation.
REQ9: It must be possible to invoke, modify, or remove the
different rate control mechanisms in the course of an active
subscription.
REQ10: The different rate control mechanisms must allow for the
application of authentication and integrity protection
mechanisms to subscriptions invoking that mechanism.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Basic Operations</span>
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Subscriber Behavior</span>
In general, a subscriber generates SUBSCRIBE requests and processes
NOTIFY requests as described in <a href="./rfc3265">RFC 3265</a> [<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>].
A subscriber that wants to have a maximum, minimum, or adaptive
minimum rate of event notifications in a specific event subscription
does so by including a "max-rate", "min-rate", or "adaptive-min-rate"
Event header field parameter(s) as part of the SUBSCRIBE request.
A subscriber that wants to update a previously agreed event rate
control parameter does so by including the updated "max-rate", "min-
rate", or "adaptive-min-rate" Event header field parameter(s) as part
of a subsequent SUBSCRIBE request or a 2xx response to the NOTIFY
request. If the subscriber does not include at least one of the
"max-rate", "min-rate", or "adaptive-min-rate" header field
parameters in the most recent SUBSCRIBE request in a given dialog,
the subscriber MUST NOT include an Event header field with any of
those parameters in a 2xx response to a NOTIFY request in that
dialog.
<span class="grey">Niemi, et al. Standards Track [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Notifier Behavior</span>
In general, a notifier processes SUBSCRIBE requests and generates
NOTIFY requests as described in <a href="./rfc3265">RFC 3265</a> [<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>].
A notifier that supports the different rate control mechanisms MUST
adjust its rate of notification according to the rate control values
agreed with the subscriber. If the notifier needs to lower the
subscription expiration value, or if a local policy or other
implementation-determined constraint at the notifier cannot satisfy
the rate control request, then the notifier can adjust (i.e.,
increase or decrease) appropriately the subscriber-requested rate
control values. The notifier MUST reflect back the possibly adjusted
rate control values in a "max-rate", "min-rate", or "adaptive-min-
rate" Subscription-State header field parameter of the subsequent
NOTIFY requests.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Operation of the Maximum Rate Mechanism</span>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Subscriber Behavior</span>
A subscriber that wishes to apply a maximum rate to notifications in
a subscription MUST construct a SUBSCRIBE request that includes the
"max-rate" Event header field parameter. This parameter specifies
the requested maximum number of notifications per second. The value
of this parameter is a positive real number given by a finite decimal
representation.
Note that the grammar in <a href="#section-9.2">section 9.2</a> constrains this value to be
between 0.0000000001 and 99.9999999999. Zero is not an allowed
value.
Note that the witnessed notification rate may not conform to the
"max-rate" value for a number of reasons. For example, network
jitter and retransmissions may result in the subscriber receiving
the notifications more frequently than the "max-rate" value
recommends.
A subscriber that wishes to update the previously agreed maximum rate
of notifications MUST include the updated "max-rate" Event header
field parameter in a subsequent SUBSCRIBE request or a 2xx response
to the NOTIFY request.
A subscriber that wishes to remove the maximum rate control from
notifications MUST indicate so by not including a "max-rate" Event
header field parameter in a subsequent SUBSCRIBE request or a 2xx
response to the NOTIFY request.
<span class="grey">Niemi, et al. Standards Track [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
There are two main consequences for the subscriber when applying the
maximum rate mechanism: state transitions may be lost and event
notifications may be delayed. If either of these side effects
constitute a problem to the application that utilizes the event
notifications, developers are instructed not to use the mechanism.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Notifier Behavior</span>
A notifier that supports the maximum rate mechanism MUST extract the
value of the "max-rate" Event header parameter from a SUBSCRIBE
request or a 2xx response to the NOTIFY request and use it as the
suggested maximum number of notifications per second. This value can
be adjusted by the notifier, as defined in <a href="#section-5.3">Section 5.3</a>.
A compliant notifier MUST reflect back the possibly adjusted maximum
rate of notifications in a "max-rate" Subscription-State header field
parameter of the subsequent NOTIFY requests. The indicated "max-
rate" value is adopted by the notifier, and the notification rate is
adjusted accordingly.
A notifier that does not understand this extension will not reflect
the "max-rate" Subscription-State header field parameter in the
NOTIFY requests; the absence of this parameter indicates to the
subscriber that no rate control is supported by the notifier.
A compliant notifier MUST NOT generate a notification if the interval
since the most recent notification is less than the reciprocal value
of the "max-rate" parameter, except when generating the notification
either upon receipt of a SUBSCRIBE request, when the subscription
state is changing from "pending" to "active" state, or upon
termination of the subscription (the last notification).
When a local policy dictates a maximum rate for notifications, a
notifier will not generate notifications more frequently than the
local policy maximum rate, even if the subscriber is not asking for
maximum rate control. The notifier MAY inform the subscriber about
such a local policy maximum rate using the "max-rate" Subscription-
State header field parameter included in subsequent NOTIFY requests.
Retransmissions of NOTIFY requests are not affected by the maximum
rate mechanism, i.e., the maximum rate mechanism only applies to the
generation of new transactions. In other words, the maximum rate
mechanism does not in any way break or modify the normal
retransmission mechanism specified in <a href="./rfc3261">RFC 3261</a> [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>].
<span class="grey">Niemi, et al. Standards Track [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. Selecting the Maximum Rate</span>
Special care needs to be taken when selecting the maximum rate. For
example, the maximum rate could potentially set a minimum time value
between notifications that exceeds the subscription expiration value.
Such a configuration would effectively quench the notifier, resulting
in exactly two notifications being generated. If the subscriber
requests a maximum rate that would result in no notification before
the subscription expiration, the notifier MUST increase the maximum
rate and set it to the reciprocal value of the remaining subscription
expiration time. According to <a href="./rfc3265">RFC 3265</a> [<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>], the notifier may
also shorten the subscription expiry anytime during an active
subscription. If the subscription expiry is shortened during an
active subscription, the notifier MUST also increase the "max-rate"
value and set it to the reciprocal value of the reduced subscription
expiration time.
In some cases, it makes sense to temporarily pause the notification
stream on an existing subscription dialog without terminating the
subscription, e.g., due to inactivity on the application user
interface. Whenever a subscriber discovers the need to perform the
notification pause operation, it SHOULD set the maximum rate to the
reciprocal value of the remaining subscription expiration value.
This results in receiving no further notifications until the
subscription expires or the subscriber sends a SUBSCRIBE request
resuming notifications.
The notifier MAY decide to increase or decrease the proposed "max-
rate" value by the subscriber based on its local policy, static
configuration, or other implementation-determined constraints. In
addition, different event packages MAY define other constraints for
the allowed maximum rate ranges. Such constraints are out of the
scope of this specification.
<span class="h3"><a class="selflink" id="section-5.4" href="#section-5.4">5.4</a>. The Maximum Rate Mechanism for the Resource List Server</span>
When applied to a list subscription [<a href="./rfc4662" title=""A Session Initiation Protocol (SIP) Event Notification Extension for Resource Lists"">RFC4662</a>], the maximum rate
mechanism has some additional considerations. Specifically, the
maximum rate applies to the aggregate notification stream resulting
from the list subscription, rather than explicitly controlling the
notification of each of the implied constituent events. Moreover,
the RLS can use the maximum rate mechanism on its own to control the
rate of the back-end subscriptions to avoid overflowing its buffer.
The notifier is responsible for sending event notifications upon
state changes of the subscribed resource. We can model the notifier
as consisting of four components: the event state resource(s), the
<span class="grey">Niemi, et al. Standards Track [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
RLS (or any other notifier), a notification buffer, and finally the
subscriber, or watcher of the event state, as shown in Figure 1.
+--------+
| Event |
+--------+ |Resource| +--------+
| Event | +--------+ | Event |
|Resource| | |Resource|
+---.=---+ | +---=----+
`-.. | _.--'
``-._ | _.--'
+'--'--'-+
|Resource|
| List |
| Server |
+---.----+
|
|
)--+---(
| | .--------.
|Buffer|<======'max-rate|
| | `--------'
)--.---(
|
|
.---+---.
| Event |
|Watcher|
`-------'
Figure 1: Model for the RLS Supporting Event Rate Control
In short, the RLS reads event state changes from the event state
resource, either by creating a back-end subscription or by other
means; it packages them into event notifications and submits them
into the output buffer. The rate at which this output buffer drains
is controlled by the subscriber via the maximum rate mechanism. When
a set of notifications are batched together, the way in which
overlapping resource state is handled depends on the type of the
resource state:
In theory, there are many buffer policies that the notifier could
implement. However, we only concentrate on two practical buffer
policies in this specification, leaving additional ones for
further study and out of the scope of this specification. These
two buffer policies depend on the mode in which the notifier is
operating.
<span class="grey">Niemi, et al. Standards Track [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
Full-state: Last (most recent) full-state notification of each
resource is sent out, and all others in the buffer are discarded.
This policy applies to those event packages that carry full-state
notifications.
Partial-state: The state deltas of each buffered partial
notification per resource are merged, and the resulting
notification is sent out. This policy applies to those event
packages that carry partial-state notifications.
<span class="h3"><a class="selflink" id="section-5.5" href="#section-5.5">5.5</a>. Buffer Policy Description</span>
<span class="h4"><a class="selflink" id="section-5.5.1" href="#section-5.5.1">5.5.1</a>. Partial-State Notifications</span>
With partial notifications, the notifier needs to maintain a separate
buffer for each subscriber since each subscriber may have a different
value for the maximum rate of notifications. The notifier will
always need to keep both a copy of the current full state of the
resource F, as well as the last successfully communicated full state
view F' of the resource in a specific subscription. The construction
of a partial notification then involves creating a difference of the
two states, and generating a notification that contains that
difference.
When the maximum rate mechanism is applied to the subscription, it is
important that F' be replaced with F only when the difference of F
and F' is already included in a partial-state notification to the
subscriber allowed by the maximum rate mechanism. Additionally, the
notifier implementation SHOULD check to see that the size of an
accumulated partial state notification is smaller than the full
state, and if not, the notifier SHOULD send the full-state
notification instead.
<span class="h4"><a class="selflink" id="section-5.5.2" href="#section-5.5.2">5.5.2</a>. Full-State Notifications</span>
With full-state notifications, the notifier only needs to keep the
full state of the resource, and when that changes, send the resulting
notification to the subscriber.
When the maximum rate mechanism is applied to the subscription, the
notifier receives the state changes of the resource and generates a
notification. If there is a pending notification, the notifier
simply replaces that notification with the new notification,
discarding the older state.
<span class="grey">Niemi, et al. Standards Track [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
<span class="h3"><a class="selflink" id="section-5.6" href="#section-5.6">5.6</a>. Estimated Bandwidth Savings</span>
It is difficult to estimate the total bandwidth savings accrued by
using the maximum rate mechanism over a subscription, since such
estimates will vary depending on the usage scenarios. However, it is
easy to see that given a subscription where several full-state
notifications would have normally been sent in any given interval set
by the "max-rate" parameter, only a single notification is sent
during the same interval when using the maximum rate mechanism,
yielding bandwidth savings of several times the notification size.
With partial-state notifications, drawing estimates is further
complicated by the fact that the states of consecutive updates may or
may not overlap. However, even in the worst-case scenario, where
each partial update is to a different part of the full state, a rate
controlled notification merging all of these n partial states
together should at a maximum be the size of a full-state update. In
this case, the bandwidth savings are approximately n times the size
of the header fields of the NOTIFY request.
It is also true that there are several compression schemes available
that have been designed to save bandwidth in SIP, e.g., SigComp
[<a href="./rfc3320" title=""Signaling Compression (SigComp)"">RFC3320</a>] and TLS compression [<a href="./rfc3943" title=""Transport Layer Security (TLS) Protocol Compression Using Lempel-Ziv-Stac (LZS)"">RFC3943</a>]. However, such compression
schemes are complementary rather than competing mechanisms to the
maximum rate mechanism. After all, they can both be applied
simultaneously.
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Operation of the Minimum Rate Mechanism</span>
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Subscriber Behavior</span>
A subscriber that wishes to apply a minimum rate to notifications in
a subscription MUST construct a SUBSCRIBE request that includes the
"min-rate" Event header field parameter. This parameter specifies
the requested minimum number of notifications per second. The value
of this parameter is a positive real number given by a finite decimal
representation.
Note that the grammar in <a href="#section-9.2">section 9.2</a> constrains this value to be
between 0.0000000001 and 99.9999999999. Zero is not an allowed
value.
A subscriber that wishes to update the previously agreed minimum rate
of notifications MUST include the updated "min-rate" Event header
field parameter in a subsequent SUBSCRIBE request or a 2xx response
to the NOTIFY request.
<span class="grey">Niemi, et al. Standards Track [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
A subscriber that wishes to remove the minimum rate control from
notifications MUST indicate so by not including a "min-rate" Event
header field parameter in a subsequent SUBSCRIBE request or a 2xx
response to the NOTIFY request.
The main consequence for the subscriber when applying the minimum
rate mechanism is that it can receive a notification even if nothing
has changed in the current state of the notifier. However, <a href="./rfc5839">RFC 5839</a>
[<a href="./rfc5839" title=""An Extension to Session Initiation Protocol (SIP) Events for Conditional Event Notification"">RFC5839</a>] defines a mechanism that allows suppression of a NOTIFY
request or a NOTIFY request body if the state has not changed.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Notifier Behavior</span>
A notifier that supports the minimum rate mechanism MUST extract the
value of the "min-rate" Event header field parameter from a SUBSCRIBE
request or a 2xx response to the NOTIFY request and use it as the
suggested minimum number of notifications per second. This value can
be adjusted by the notifier, as defined in <a href="#section-6.3">Section 6.3</a>.
A compliant notifier MUST reflect back the possibly adjusted minimum
rate of notifications in a "min-rate" Subscription-State header field
parameter of the subsequent NOTIFY requests. The indicated "min-
rate" value is adopted by the notifier, and the notification rate is
adjusted accordingly.
A notifier that does not understand this extension will not reflect
the "min-rate" Subscription-State header field parameter in the
NOTIFY requests; the absence of this parameter indicates to the
subscriber that no rate control is supported by the notifier.
A compliant notifier MUST generate notifications when state changes
occur or when the time since the most recent notification exceeds the
reciprocal value of the "min-rate" parameter. Depending on the event
package and subscriber preferences indicated in the SUBSCRIBE
request, the NOTIFY request sent as a result of a minimum rate
mechanism MUST contain either the current full state or the partial
state showing the difference between the current state and the last
successfully communicated state. If the subscriber and the notifier
support the procedures in <a href="./rfc5839">RFC 5839</a> [<a href="./rfc5839" title=""An Extension to Session Initiation Protocol (SIP) Events for Conditional Event Notification"">RFC5839</a>], the complete NOTIFY
request or the NOTIFY request body can be suppressed if the state has
not changed from the previous notification.
Retransmissions of NOTIFY requests are not affected by the minimum
rate mechanism, i.e., the minimum rate mechanism only applies to the
generation of new transactions. In other words, the minimum rate
mechanism does not in any way break or modify the normal
retransmission mechanism.
<span class="grey">Niemi, et al. Standards Track [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Selecting the Minimum Rate</span>
The minimum rate mechanism can be used to generate a lot of
notifications, creating additional processing load for the notifier.
Some of the notifications may also be unnecessary possibly repeating
already known state information to the subscriber. It is difficult
to provide generic guidelines for the acceptable minimum rate value
ranges; however, the subscriber SHOULD request the lowest possible
minimum rate. Different event packages MAY define other constraints
for the allowed minimum rate values. Such constraints are out of the
scope of this specification.
The notifier MAY decide to increase or decrease the proposed "min-
rate" value by the subscriber based on its local policy, static
configuration, or other implementation-determined constraints.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Operation of the Adaptive Minimum Rate Mechanism</span>
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Subscriber Behavior</span>
A subscriber that wishes to apply an adaptive minimum rate to
notifications in a subscription MUST construct a SUBSCRIBE request
that includes the "adaptive-min-rate" Event header field parameter.
This parameter specifies an adaptive minimum number of notifications
per second. The value of this parameter is a positive real number
given by a finite decimal representation.
Note that the grammar in <a href="#section-9.2">section 9.2</a> constrains this value to be
between 0.0000000001 and 99.9999999999. Zero is not an allowed
value.
A subscriber that wishes to update the previously agreed adaptive
minimum rate of notifications MUST include the updated "adaptive-min-
rate" Event header field parameter in a subsequent SUBSCRIBE request
or a 2xx response to the NOTIFY request.
A subscriber that wishes to remove the adaptive minimum rate control
from notifications MUST indicate so by not including an "adaptive-
min-rate" Event header field parameter in a subsequent SUBSCRIBE
request or a 2xx response to the NOTIFY request.
The main consequence for the subscriber when applying the adaptive
minimum rate mechanism is that it can receive a notification, even if
nothing has changed in the current state of the notifier. However,
<a href="./rfc5839">RFC 5839</a> [<a href="./rfc5839" title=""An Extension to Session Initiation Protocol (SIP) Events for Conditional Event Notification"">RFC5839</a>] defines a mechanism that allows suppression of a
NOTIFY request or a NOTIFY request body if the state has not changed.
<span class="grey">Niemi, et al. Standards Track [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Notifier Behavior</span>
A notifier that supports the adaptive minimum rate mechanism MUST
extract the value of the "adaptive-min-rate" Event header parameter
from a SUBSCRIBE request or a 2xx response to the NOTIFY request and
use it to calculate the actual maximum time between two
notifications, as defined in <a href="#section-7.4">Section 7.4</a>.
The "adaptive-min-rate" value can be adjusted by the notifier, as
defined in <a href="#section-7.3">Section 7.3</a>.
A compliant notifier MUST reflect back the possibly adjusted adaptive
minimum rate of notifications in an "adaptive-min-rate" Subscription-
State header field parameter of the subsequent NOTIFY requests. The
indicated "adaptive-min-rate" value is adopted by the notifier, and
the notification rate is adjusted accordingly.
A notifier that does not understand this extension will not reflect
the "adaptive-min-rate" Subscription-State header parameter in the
NOTIFY requests; the absence of this parameter indicates to the
subscriber that no rate control is supported by the notifier.
A compliant notifier MUST generate notifications when state changes
occur or when the time since the most recent notification exceeds the
value calculated using the formula defined in <a href="#section-7.4">Section 7.4</a>. Depending
on the event package and subscriber preferences indicated in the
SUBSCRIBE request, the NOTIFY request sent as a result of a minimum
rate mechanism MUST contain either the current full state or the
partial state showing the difference between the current state and
the last successfully communicated state. If the subscriber and the
notifier support the procedures in <a href="./rfc5839">RFC 5839</a> [<a href="./rfc5839" title=""An Extension to Session Initiation Protocol (SIP) Events for Conditional Event Notification"">RFC5839</a>], the complete
NOTIFY request or the NOTIFY request body can be suppressed if the
state has not changed from the previous notification.
The adaptive minimum rate mechanism is implemented as follows:
1) When a subscription is first created, the notifier creates a
record ("count" parameter) that keeps track of the number of
notifications that have been sent in the "period". The "count"
parameter is initialized to contain a history of having sent a
"period * adaptive-min-rate" number of notifications for the
"period".
2) The "timeout" value is calculated according to the equation given
in <a href="#section-7.4">Section 7.4</a>.
<span class="grey">Niemi, et al. Standards Track [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
3) If the timeout period passes without a NOTIFY request being sent
in the subscription, then the current resource state is sent
(subject to any filtering associated with the subscription).
4) Whenever a NOTIFY request is sent (regardless of whether due to a
"timeout" event or a state change), the notifier updates the
notification history record stored in the "count" parameter,
recalculates the value of "timeout", and returns to step 3.
Retransmissions of NOTIFY requests are not affected by the timeout,
i.e., the timeout only applies to the generation of new transactions.
In other words, the timeout does not in any way break or modify the
normal retransmission mechanism specified in <a href="./rfc3261">RFC 3261</a> [<a href="./rfc3261" title=""SIP: Session Initiation Protocol"">RFC3261</a>].
<span class="h3"><a class="selflink" id="section-7.3" href="#section-7.3">7.3</a>. Selecting the Adaptive Minimum Rate</span>
The adaptive minimum rate mechanism can be used to generate a lot of
notifications, creating additional processing load for the notifier.
Some of the notifications may also be unnecessary, possibly repeating
already known state information to the subscriber. It is difficult
to provide generic guidelines for the acceptable adaptive minimum
rate value ranges; however, the subscriber SHOULD request the lowest
possible adaptive minimum rate value. Different event packages MAY
define other constraints for the allowed adaptive minimum rate
values. Such constraints are out of the scope of this specification.
The notifier MAY decide to increase or decrease the proposed
"adaptive-min-rate" value based on its local policy, static
configuration, or other implementation-determined constraints.
<span class="h3"><a class="selflink" id="section-7.4" href="#section-7.4">7.4</a>. Calculating the Timeout</span>
The formula used to vary the absolute pacing in a way that will meet
the adaptive minimum rate requested over the period is given in
equation (1):
timeout = count / ((adaptive-min-rate ^ 2) * period) (1)
The output of the formula, "timeout", is the time to the next
notification, expressed in seconds. The formula has three inputs:
adaptive-min-rate: The value of the "adaptive-min-rate" parameter
conveyed in the Subscription-State header field.
<span class="grey">Niemi, et al. Standards Track [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
period: The rolling average period, in seconds. The granularity of
the values for the "period" parameter is set by local policy at
the notifier; however, the notifier MUST choose a value greater
than the reciprocal value of the "adaptive-min-rate" parameter.
It is also RECOMMENDED that the notifier choose a "period"
parameter several times larger than reciprocal value of the
"adaptive-min-rate" parameter in order to maximize the
effectiveness of equation (1). It is an implementation decision
whether the notifier uses the same value of the "period" parameter
for all subscriptions or individual values for each subscription.
count: The number of notifications that have been sent during the
last "period" of seconds, not including any retransmissions of
requests.
In case both the maximum rate and the adaptive minimum rate
mechanisms are used in the same subscription, the formula used to
dynamically calculate the timeout is given in equation (2):
timeout = MAX[(1/max-rate), count/((adaptive-min-rate ^ 2)*period)] (2)
max-rate: The value of the "max-rate" parameter conveyed in the
Subscription-State header field.
The formula in (2) makes sure that for all the possible values of the
"max-rate" and "adaptive-min-rate" parameters, with "adaptive-min-
rate" < "max-rate", the timeout never results in a lower value than
the reciprocal value of the "max-rate" parameter.
In some situations, it may be beneficial for the notifier to achieve
an adaptive minimum rate in a different way than the algorithm
detailed in this document allows. However, the notifier MUST comply
with any "max-rate" or "min-rate" parameters that have been
negotiated.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Usage of the Maximum Rate, Minimum Rate, and Adaptive Minimum Rate</span>
<span class="h2"> Mechanisms in a Combination</span>
Applications can subscribe to an event package using all the rate
control mechanisms individually, or in combination; in fact there is
no technical incompatibility among them. However, there are some
combinations of the different rate control mechanisms that make
little sense to be used together. This section lists all the
combinations that are possible to insert in a subscription; the
ability to use each combination in a subscription is also analyzed.
<span class="grey">Niemi, et al. Standards Track [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
maximum rate and minimum rate: This combination allows a reduced
notification rate, but at the same time assures the reception of
periodic notifications.
A subscriber SHOULD choose a "min-rate" value lower than the "max-
rate" value, otherwise, the notifier MUST adjust the subscriber
provided "min-rate" value to a value equal to or lower than the
"max-rate" value.
maximum rate and adaptive minimum rate: It works in a similar way as
the combination above, but with the difference that the interval
at which notifications are assured changes dynamically.
A subscriber SHOULD choose an "adaptive-min-rate" value lower than
the "max-rate" value, otherwise, the notifier MUST adjust the
subscriber provided "adaptive-min-rate" value to a value equal to
or lower than the "max-rate" value.
minimum rate and adaptive minimum rate: When using the adaptive
minimum rate mechanism, frequent state changes in a short period
can result in no notifications for a longer period following the
short period. The addition of the minimum rate mechanism ensures
that the subscriber always receives notifications after a
specified interval.
A subscriber SHOULD choose a "min-rate" value lower than the
"adaptive-min-rate" value, otherwise, the notifier MUST NOT
consider the "min-rate" value.
maximum rate, minimum rate, and adaptive minimum rate: This
combination makes little sense to be used, although it is not
forbidden.
A subscriber SHOULD choose a "min-rate" and "adaptive-min-rate"
values lower than the "max-rate" value, otherwise, the notifier
MUST adjust the subscriber provided "min-rate" and "adaptive-min-
rate" values to a value equal to or lower than the "max-rate"
value.
A subscriber SHOULD choose a "min-rate" value lower than the
"adaptive-min-rate" value, otherwise, the notifier MUST NOT
consider the "min-rate" value.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Protocol Element Definitions</span>
This section describes the protocol extensions required for the
different rate control mechanisms.
<span class="grey">Niemi, et al. Standards Track [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
<span class="h3"><a class="selflink" id="section-9.1" href="#section-9.1">9.1</a>. "max-rate", "min-rate", and "adaptive-min-rate" Header Field</span>
<span class="h3"> Parameters</span>
The "max-rate", "min-rate", and "adaptive-min-rate" parameters are
added to the rule definitions of the Event header field and the
Subscription-State header field in <a href="./rfc3265">RFC 3265</a> [<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>] grammar. Usage
of this parameter is described in Sections <a href="#section-5">5</a>, <a href="#section-6">6</a>, and <a href="#section-7">7</a>.
<span class="h3"><a class="selflink" id="section-9.2" href="#section-9.2">9.2</a>. Grammar</span>
This section describes the Augmented BNF [<a href="./rfc5234" title=""Augmented BNF for Syntax Specifications: ABNF"">RFC5234</a>] definitions for
the new header field parameters. Note that we derive here from the
ruleset present in <a href="./rfc3265">RFC 3265</a> [<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>], adding additional alternatives
to the alternative sets of "event-param" and "subexp-params" defined
therein.
event-param = max-rate-param
/ min-rate-param
/ amin-rate-param
subexp-params = max-rate-param
/ min-rate-param
/ amin-rate-param
max-rate-param = "max-rate" EQUAL
(1*2DIGIT ["." 1*10DIGIT])
min-rate-param = "min-rate" EQUAL
(1*2DIGIT ["." 1*10DIGIT])
amin-rate-param = "adaptive-min-rate" EQUAL
(1*2DIGIT ["." 1*10DIGIT])
<span class="h3"><a class="selflink" id="section-9.3" href="#section-9.3">9.3</a>. Event Header Field Usage in Responses to the NOTIFY Request</span>
This table expands the table described in <a href="./rfc3265#section-7.2">Section 7.2 of RFC 3265</a>
[<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>], allowing the Event header field to appear in a 2xx
response to a NOTIFY request. The use of the Event header field in
responses other than 2xx to NOTIFY requests is undefined and out of
scope of this specification.
Header field where proxy ACK BYE CAN INV OPT REG PRA SUB NOT
-----------------------------------------------------------------
Event 2xx - - - - - - - - o
A subscriber that wishes to update the previously agreed value for
maximum, minimum, or adaptive minimum rate of notifications MUST
include all desired values for the "max-rate", "min-rate", and
"adaptive-min-rate" parameters in an Event header field of the 2xx
response to a NOTIFY request. Any of the other header field
<span class="grey">Niemi, et al. Standards Track [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
parameters currently defined for the Event header field by other
specifications do not have a meaning if the Event header field is
included in the 2xx response to the NOTIFY request. These header
field parameters MUST be ignored by the notifier, if present.
The event type listed in the Event header field of the 2xx response
to the NOTIFY request MUST match the event type of the Event header
field in the corresponding NOTIFY request.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. IANA Considerations</span>
This specification registers three new SIP header field parameters in
the "Header Field Parameters and Parameter Values" sub-registry of
the "Session Initiation Protocol (SIP) Parameters" registry.
Predefined
Header Field Parameter Name Values Reference
-------------------- --------------- ---------- ---------
Event max-rate No [<a href="./rfc6446">RFC6446</a>]
Subscription-State max-rate No [<a href="./rfc6446">RFC6446</a>]
Event min-rate No [<a href="./rfc6446">RFC6446</a>]
Subscription-State min-rate No [<a href="./rfc6446">RFC6446</a>]
Event adaptive-min-rate No [<a href="./rfc6446">RFC6446</a>]
Subscription-State adaptive-min-rate No [<a href="./rfc6446">RFC6446</a>]
This specification also updates the reference defining the Event
header field in the "Header Fields" sub-registry of the "Session
Initiation Protocol (SIP) Parameters" registry.
Header Name compact Reference
----------- ------- ------------------
Event o [<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>][RFC6446]
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. Security Considerations</span>
Naturally, the security considerations listed in <a href="./rfc3265">RFC 3265</a> [<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>],
which the rate control mechanisms described in this document extends,
apply in their entirety. In particular, authentication and message
integrity SHOULD be applied to subscriptions with this extension.
<a href="./rfc3265">RFC 3265</a> [<a href="./rfc3265" title=""Session Initiation Protocol (SIP)-Specific Event Notification"">RFC3265</a>] recommends the integrity protection of the Event
header field of SUBSCRIBE requests. Implementations of this
extension SHOULD also provide integrity protection for the Event
header field included in the 2xx response to the NOTIFY request.
Without integrity protection, an eavesdropper could see and modify
the Event header field, or it could manipulate the transmission of a
200 (OK) response to the NOTIFY request to suppress or flood
notifications without the subscriber seeing what caused the problem.
<span class="grey">Niemi, et al. Standards Track [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
When the maximum rate mechanism involves partial-state notifications,
the security considerations listed in <a href="./rfc5263">RFC 5263</a> [<a href="./rfc5263" title=""Session Initiation Protocol (SIP) Extension for Partial Notification of Presence Information"">RFC5263</a>] apply in
their entirety.
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. Acknowledgments</span>
Thanks to Pekka Pessi, Dean Willis, Eric Burger, Alex Audu, Alexander
Milinski, Jonathan Rosenberg, Cullen Jennings, Adam Roach, Hisham
Khartabil, Dale Worley, Martin Thomson, Byron Campen, Alan Johnston,
Michael Procter, Janet Gunn, and Ari Keranen for support and/or
review of this work.
Thanks to Brian Rosen for the idea of the minimum and adaptive
minimum rate mechanisms, and to Adam Roach for the work on the
algorithm for the adaptive minimum rate mechanism and other feedback.
<span class="h2"><a class="selflink" id="section-13" href="#section-13">13</a>. References</span>
<span class="h3"><a class="selflink" id="section-13.1" href="#section-13.1">13.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 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 id="ref-RFC3265">RFC3265</a>] Roach, A., "Session Initiation Protocol (SIP)-Specific
Event Notification", <a href="./rfc3265">RFC 3265</a>, June 2002.
[<a id="ref-RFC4662">RFC4662</a>] Roach, A., Campbell, B., and J. Rosenberg, "A Session
Initiation Protocol (SIP) Event Notification Extension for
Resource Lists", <a href="./rfc4662">RFC 4662</a>, August 2006.
[<a id="ref-RFC5234">RFC5234</a>] Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax
Specifications: ABNF", STD 68, <a href="./rfc5234">RFC 5234</a>, January 2008.
[<a id="ref-RFC5263">RFC5263</a>] Lonnfors, M., Costa-Requena, J., Leppanen, E., and H.
Khartabil, "Session Initiation Protocol (SIP) Extension
for Partial Notification of Presence Information",
<a href="./rfc5263">RFC 5263</a>, September 2008.
<span class="grey">Niemi, et al. Standards Track [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
<span class="h3"><a class="selflink" id="section-13.2" href="#section-13.2">13.2</a>. Informative References</span>
[<a id="ref-RFC3320">RFC3320</a>] Price, R., Bormann, C., Christoffersson, J., Hannu, H.,
Liu, Z., and J. Rosenberg, "Signaling Compression
(SigComp)", <a href="./rfc3320">RFC 3320</a>, January 2003.
[<a id="ref-RFC3680">RFC3680</a>] Rosenberg, J., "A Session Initiation Protocol (SIP) Event
Package for Registrations", <a href="./rfc3680">RFC 3680</a>, March 2004.
[<a id="ref-RFC3842">RFC3842</a>] Mahy, R., "A Message Summary and Message Waiting
Indication Event Package for the Session Initiation
Protocol (SIP)", <a href="./rfc3842">RFC 3842</a>, August 2004.
[<a id="ref-RFC3856">RFC3856</a>] Rosenberg, J., "A Presence Event Package for the Session
Initiation Protocol (SIP)", <a href="./rfc3856">RFC 3856</a>, August 2004.
[<a id="ref-RFC3857">RFC3857</a>] Rosenberg, J., "A Watcher Information Event Template-
Package for the Session Initiation Protocol (SIP)",
<a href="./rfc3857">RFC 3857</a>, August 2004.
[<a id="ref-RFC3943">RFC3943</a>] Friend, R., "Transport Layer Security (TLS) Protocol
Compression Using Lempel-Ziv-Stac (LZS)", <a href="./rfc3943">RFC 3943</a>,
November 2004.
[<a id="ref-RFC5839">RFC5839</a>] Niemi, A. and D. Willis, Ed., "An Extension to Session
Initiation Protocol (SIP) Events for Conditional Event
Notification", <a href="./rfc5839">RFC 5839</a>, May 2010.
[<a id="ref-RFC6447">RFC6447</a>] Mahy, R., Rosen, B., and H. Tschofenig, "Filtering
Location Notifications in the Session Initiation Protocol
(SIP)", <a href="./rfc6447">RFC 6447</a>, January 2012.
<span class="grey">Niemi, et al. Standards Track [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc6446">RFC 6446</a> Event Rate Control January 2012</span>
Authors' Addresses
Aki Niemi
Nokia
P.O. Box 407
NOKIA GROUP, FIN 00045
Finland
Phone: +358 50 389 1644
EMail: aki.niemi@nokia.com
Krisztian Kiss
Nokia
200 South Mathilda Ave
Sunnyvale, CA 94086
US
Phone: +1 650 391 5969
EMail: krisztian.kiss@nokia.com
Salvatore Loreto
Ericsson
Hirsalantie 11
Jorvas 02420
Finland
EMail: salvatore.loreto@ericsson.com
Niemi, et al. Standards Track [Page 25]
</pre>
|