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
|
<pre>Internet Engineering Task Force (IETF) G. Fairhurst
Request for Comments: 8084 University of Aberdeen
BCP: 208 March 2017
Category: Best Current Practice
ISSN: 2070-1721
<span class="h1">Network Transport Circuit Breakers</span>
Abstract
This document explains what is meant by the term "network transport
Circuit Breaker". It describes the need for Circuit Breakers (CBs)
for network tunnels and applications when using non-congestion-
controlled traffic and explains where CBs are, and are not, needed.
It also defines requirements for building a CB and the expected
outcomes of using a CB within the Internet.
Status of This Memo
This memo documents an Internet Best Current Practice.
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
BCPs is available in <a href="./rfc7841#section-2">Section 2 of RFC 7841</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/rfc8084">http://www.rfc-editor.org/info/rfc8084</a>.
Copyright Notice
Copyright (c) 2017 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">Fairhurst Best Current Practice [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-2">2</a>
<a href="#section-1.1">1.1</a>. Types of CBs ...............................................<a href="#page-5">5</a>
<a href="#section-2">2</a>. Terminology .....................................................<a href="#page-6">6</a>
<a href="#section-3">3</a>. Design of a CB (What makes a good CB?) ..........................<a href="#page-6">6</a>
<a href="#section-3.1">3.1</a>. Functional Components ......................................<a href="#page-6">6</a>
<a href="#section-3.2">3.2</a>. Other Network Topologies ...................................<a href="#page-9">9</a>
<a href="#section-3.2.1">3.2.1</a>. Use with a Multicast Control/Routing Protocol ......<a href="#page-10">10</a>
3.2.2. Use with Control Protocols Supporting
Pre-provisioned Capacity ...........................<a href="#page-11">11</a>
<a href="#section-3.2.3">3.2.3</a>. Unidirectional CBs over Controlled Paths ...........<a href="#page-11">11</a>
<a href="#section-4">4</a>. Requirements for a Network Transport CB ........................<a href="#page-12">12</a>
<a href="#section-5">5</a>. Examples of CBs ................................................<a href="#page-15">15</a>
<a href="#section-5.1">5.1</a>. A Fast-Trip CB ............................................<a href="#page-15">15</a>
<a href="#section-5.1.1">5.1.1</a>. A Fast-Trip CB for RTP .............................<a href="#page-16">16</a>
<a href="#section-5.2">5.2</a>. A Slow-Trip CB ............................................<a href="#page-16">16</a>
<a href="#section-5.3">5.3</a>. A Managed CB ..............................................<a href="#page-17">17</a>
<a href="#section-5.3.1">5.3.1</a>. A Managed CB for SAToP Pseudowires .................<a href="#page-17">17</a>
<a href="#section-5.3.2">5.3.2</a>. A Managed CB for Pseudowires (PWs) .................<a href="#page-18">18</a>
<a href="#section-6">6</a>. Examples in Which CBs May Not Be Needed ........................<a href="#page-19">19</a>
<a href="#section-6.1">6.1</a>. CBs over Pre-provisioned Capacity .........................<a href="#page-19">19</a>
<a href="#section-6.2">6.2</a>. CBs with Tunnels Carrying Congestion-Controlled Traffic ...<a href="#page-19">19</a>
<a href="#section-6.3">6.3</a>. CBs with Unidirectional Traffic and No Control Path .......<a href="#page-20">20</a>
<a href="#section-7">7</a>. Security Considerations ........................................<a href="#page-20">20</a>
<a href="#section-8">8</a>. References .....................................................<a href="#page-22">22</a>
<a href="#section-8.1">8.1</a>. Normative References ......................................<a href="#page-22">22</a>
<a href="#section-8.2">8.2</a>. Informative References ....................................<a href="#page-22">22</a>
Acknowledgments ...................................................<a href="#page-24">24</a>
Author's Address ..................................................<a href="#page-24">24</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
The term "Circuit Breaker" originates in electricity supply, and has
nothing to do with network circuits or virtual circuits. In
electricity supply, a Circuit Breaker (CB) is intended as a
protection mechanism of last resort. Under normal circumstances, a
CB ought not to be triggered; it is designed to protect the supply
network and attached equipment when there is overload. People do not
expect an electrical CB (or fuse) in their home to be triggered,
except when there is a wiring fault or a problem with an electrical
appliance.
In networking, the CB principle can be used as a protection mechanism
of last resort to avoid persistent excessive congestion impacting
other flows that share network capacity. Persistent congestion was a
feature of the early Internet of the 1980s. This resulted in excess
traffic starving other connections from access to the Internet. It
<span class="grey">Fairhurst Best Current Practice [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
was countered by the requirement to use congestion control (CC) in
the Transmission Control Protocol (TCP) [<a href="#ref-Jacobson88">Jacobson88</a>]. These
mechanisms operate in Internet hosts to cause TCP connections to
"back off" during congestion. The addition of a congestion control
to TCP (currently documented in [<a href="./rfc5681" title=""TCP Congestion Control"">RFC5681</a>]) ensured the stability of
the Internet, because it was able to detect congestion and promptly
react. This was effective in an Internet where most TCP flows were
long lived (ensuring that they could detect and respond to congestion
before the flows terminated). Although TCP was, by far, the dominant
traffic, this is no longer the always the case, and non-congestion-
controlled traffic, including many applications using the User
Datagram Protocol (UDP), can form a significant proportion of the
total traffic traversing a link. To avoid persistent excessive
congestion, the current Internet therefore requires consideration of
the way that non-congestion-controlled traffic is forwarded.
A network transport CB is an automatic mechanism that is used to
continuously monitor a flow or aggregate set of flows. The mechanism
seeks to detect when the flow(s) experience persistent excessive
congestion. When this is detected, a CB terminates (or significantly
reduces the rate of) the flow(s). This is a safety measure to
prevent starvation of network resources denying other flows from
access to the Internet. Such measures are essential for an Internet
that is heterogeneous and for traffic that is hard to predict in
advance. Avoiding persistent excessive congestion is important to
reduce the potential for "Congestion Collapse" [<a href="./rfc2914" title=""Congestion Control Principles"">RFC2914</a>].
There are important differences between a transport CB and a
congestion control method. Congestion control (as implemented in
TCP, Stream Control Transmission Protocol (SCTP), and Datagram
Congestion Control Protocol (DCCP)) operates on a timescale on the
order of a packet Round-Trip Time (RTT): the time from sender to
destination and return. Congestion at a network link can also be
detected using Explicit Congestion Notification (ECN) [<a href="./rfc3168" title=""The Addition of Explicit Congestion Notification (ECN) to IP"">RFC3168</a>],
which allows the network to signal congestion by marking ECN-capable
packets with a Congestion Experienced (CE) mark. Both loss and
reception of CE-marked packets are treated as congestion events.
Congestion control methods are able to react to a congestion event by
continuously adapting to reduce their transmission rate. The goal is
usually to limit the transmission rate to a maximum rate that
reflects a fair use of the available capacity across a network path.
These methods typically operate on individual traffic flows (e.g., a
5-tuple that includes the IP addresses, protocol, and ports).
In contrast, CBs are recommended for non-congestion-controlled
Internet flows and for traffic aggregates, e.g., traffic sent using a
network tunnel. They operate on timescales much longer than the
packet RTT, and trigger under situations of abnormal (excessive)
<span class="grey">Fairhurst Best Current Practice [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
congestion. People have been implementing what this document
characterizes as CBs on an ad hoc basis to protect Internet traffic.
This document therefore provides guidance on how to deploy and use
these mechanisms. Later sections provide examples of cases where CBs
may or may not be desirable.
A CB needs to measure (meter) some portion of the traffic to
determine if the network is experiencing congestion and needs to be
designed to trigger robustly when there is persistent excessive
congestion.
A CB trigger will often utilize a series of successive sample
measurements metered at an ingress point and an egress point (either
of which could be a transport endpoint). The trigger needs to
operate on a timescale much longer than the path RTT (e.g., seconds
to possibly many tens of seconds). This longer period is needed to
provide sufficient time for transport congestion control or
applications to adjust their rate following congestion, and for the
network load to stabilize after any adjustment. Congestion events
can be common when a congestion-controlled transport is used over a
network link operating near capacity. Each event results in
reduction in the rate of the transport flow experiencing congestion.
The longer period seeks to ensure that a CB is not accidentally
triggered following a single (or even successive) congestion
event(s).
Once triggered, the CB needs to provide a control function (called
the "reaction"). This removes traffic from the network, either by
disabling the flow or by significantly reducing the level of traffic.
This reaction provides the required protection to prevent persistent
excessive congestion being experienced by other flows that share the
congested part of the network path.
<a href="#section-4">Section 4</a> defines requirements for building a CB.
The operational conditions that cause a CB to trigger ought to be
regarded as abnormal. Examples of situations that could trigger a CB
include:
o anomalous traffic that exceeds the provisioned capacity (or whose
traffic characteristics exceed the threshold configured for the
CB);
o traffic generated by an application at a time when the provisioned
network capacity is being utilized for other purposes;
o routing changes that cause additional traffic to start using the
path monitored by the CB;
<span class="grey">Fairhurst Best Current Practice [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
o misconfiguration of a service/network device where the capacity
available is insufficient to support the current traffic
aggregate;
o misconfiguration of an admission controller or traffic policer
that allows more traffic than expected across the path monitored
by the CB.
Other mechanisms could also be available to network operators to
detect excessive congestion (e.g., an observation of excessive
utilization for a port on a network device). Utilizing such
information, operational mechanisms could react to reduce network
load over a shorter timescale than those of a network transport CB.
The role of the CB over such paths remains as a method of last
resort. Because it acts over a longer timescale, the CB ought to be
triggered only when other reactions did not succeed in reducing
persistent excessive congestion.
In many cases, the reason for triggering a CB will not be evident to
the source of the traffic (user, application, endpoint, etc.). A CB
can be used to limit traffic from applications that are unable, or
choose not, to use congestion control or in cases in which the
congestion control properties of the traffic cannot be relied upon
(e.g., traffic carried over a network tunnel). In such
circumstances, it is all but impossible for the CB to signal back to
the impacted applications. In some cases, applications could
therefore have difficulty in determining that a CB has been triggered
and where in the network this happened.
Application developers are therefore advised, where possible, to
deploy appropriate congestion control mechanisms. An application
that uses congestion control will be aware of congestion events in
the network. This allows it to regulate the network load under
congestion, and it is expected to avoid triggering a network CB. For
applications that can generate elastic traffic, this will often be a
preferred solution.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Types of CBs</span>
There are various forms of network transport CBs. These are
differentiated mainly on the timescale over which they are triggered,
but also in the intended protection they offer:
o Fast-Trip CBs: The relatively short timescale used by this form of
CB is intended to provide protection for network traffic from a
single flow or related group of flows.
<span class="grey">Fairhurst Best Current Practice [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
o Slow-Trip CBs: This CB utilizes a longer timescale and is designed
to protect network traffic from congestion by traffic aggregates.
o Managed CBs: Utilize the operations and management functions that
might be present in a managed service to implement a CB.
Examples of each type of CB are provided in <a href="#section-4">Section 4</a>.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology</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" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Design of a CB (What makes a good CB?)</span>
Although CBs have been talked about in the IETF for many years, there
has not yet been guidance on the cases where CBs are needed or upon
the design of CB mechanisms. This document seeks to offer advice on
these two topics.
CBs are RECOMMENDED for IETF protocols and tunnels that carry non-
congestion-controlled Internet flows and for traffic aggregates.
This includes traffic sent using a network tunnel. Designers of
other protocols and tunnel encapsulations also ought to consider the
use of these techniques as a last resort to protect traffic that
shares the network path being used.
This document defines the requirements for the design of a CB and
provides examples of how a CB can be constructed. The specifications
of individual protocols and tunnel encapsulations need to detail the
protocol mechanisms needed to implement a CB.
<a href="#section-3.1">Section 3.1</a> describes the functional components of a CB and
<a href="#section-3.2">Section 3.2</a> defines requirements for implementing a CB.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. Functional Components</span>
The basic design of a CB involves communication between an ingress
point (a sender) and an egress point (a receiver) of a network flow
or set of flows. A simple picture of operation is provided in
Figure 1. This shows a set of routers (each labeled R) connecting a
set of endpoints.
A CB is used to control traffic passing through a subset of these
routers, acting between the ingress and a egress point network
devices. The path between the ingress and egress could be provided
by a tunnel or other network-layer technique. One expected use would
<span class="grey">Fairhurst Best Current Practice [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
be at the ingress and egress of a service, where all traffic being
considered terminates beyond the egress point; hence, the ingress and
egress carry the same set of flows.
+--------+ +--------+
|Endpoint| |Endpoint|
+--+-----+ >>> circuit breaker traffic >>> +--+-----+
| |
| +-+ +-+ +---------+ +-+ +-+ +-+ +--------+ +-+ +-+ |
+-+R+--+R+->+ Ingress +--+R+--+R+--+R+--+ Egress |--+R+--+R+-+
+++ +-+ +------+--+ +-+ +-+ +-+ +-----+--+ +++ +-+
| ^ | | |
| | +--+------+ +------+--+ |
| | | Ingress | | Egress | |
| | | Meter | | Meter | |
| | +----+----+ +----+----+ |
| | | | |
+-+ | | +----+----+ | | +-+
|R+--+ | | Measure +<----------------+ +--+R|
+++ | +----+----+ Reported +++
| | | Egress |
| | +----+----+ Measurement |
+--+-----+ | | Trigger + +--+-----+
|Endpoint| | +----+----+ |Endpoint|
+--------+ | | +--------+
+---<---+
Reaction
Figure 1: A CB controlling the part of the end-to-end path between an
ingress point and an egress point. Note in some cases, the trigger
and measurement functions could alternatively be located at other
locations (e.g., at a network operations center).
In the context of a CB, the ingress and egress functions could be
implemented in different places. For example, they could be located
in network devices at a tunnel ingress and at the tunnel egress. In
some cases, they could be located at one or both network endpoints
(see Figure 2), implemented as components within a transport
protocol.
<span class="grey">Fairhurst Best Current Practice [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
+----------+ +----------+
| Ingress | +-+ +-+ +-+ | Egress |
| Endpoint +->+R+--+R+--+R+--+ Endpoint |
+--+----+--+ +-+ +-+ +-+ +----+-----+
^ | |
| +--+------+ +----+----+
| | Ingress | | Egress |
| | Meter | | Meter |
| +----+----+ +----+----+
| | |
| +--- +----+ |
| | Measure +<-----------------+
| +----+----+ Reported
| | Egress
| +----+----+ Measurement
| | Trigger |
| +----+----+
| |
+---<--+
Reaction
Figure 2: An endpoint CB implemented at the sender (ingress)
and receiver (egress).
The set of components needed to implement a CB are:
1. An ingress meter (at the sender or tunnel ingress) that records
the number of packets/bytes sent in each measurement interval.
This measures the offered network load for a flow or set of
flows. For example, the measurement interval could be many
seconds (or every few tens of seconds or a series of successive
shorter measurements that are combined by the CB Measurement
function).
2. An egress meter (at the receiver or tunnel egress) that records
the number/bytes received in each measurement interval. This
measures the supported load for the flow or set of flows, and it
could utilize other signals to detect the effect of congestion
(e.g., loss/congestion marking [<a href="./rfc3168" title=""The Addition of Explicit Congestion Notification (ECN) to IP"">RFC3168</a>] experienced over the
path). The measurements at the egress could be synchronized
(including an offset for the time of flight of the data, or
referencing the measurements to a particular packet) to ensure
any counters refer to the same span of packets.
<span class="grey">Fairhurst Best Current Practice [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
3. A method that communicates the measured values at the ingress and
egress to the CB Measurement function. This could use several
methods including sending return measurement packets (or control
messages) from a receiver to a trigger function at the sender; an
implementation using Operations, Administration and Management
(OAM); or sending an in-band signaling datagram to the trigger
function. This could also be implemented purely as a control-
plane function, e.g., using a software-defined network
controller.
4. A measurement function that combines the ingress and egress
measurements to assess the present level of network congestion.
(For example, the loss rate for each measurement interval could
be deduced from calculating the difference between ingress and
egress counter values.) Note the method does not require high
accuracy for the period of the measurement interval (or therefore
the measured value, since isolated and/or infrequent loss events
need to be disregarded).
5. A trigger function that determines whether the measurements
indicate persistent excessive congestion. This function defines
an appropriate threshold for determining that there is persistent
excessive congestion between the ingress and egress. This
preferably considers a rate or ratio, rather than an absolute
value (e.g., more than 10% loss, but other methods could also be
based on the rate of transmission as well as the loss rate). The
CB is triggered when the threshold is exceeded in multiple
measurement intervals (e.g., three successive measurements).
Designs need to be robust so that single or spurious events do
not trigger a reaction.
6. A reaction that is applied at the ingress when the CB is
triggered. This seeks to automatically remove the traffic
causing persistent excessive congestion.
7. A feedback control mechanism that triggers when either the
ingress and egress measurements are not available, since this
also could indicate a loss of control packets (also a symptom of
heavy congestion or inability to control the load).
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Other Network Topologies</span>
A CB can be deployed in networks with topologies different from that
presented in Figures 1 and 2. This section describes examples of
such usage and possible places where functions can be implemented.
<span class="grey">Fairhurst Best Current Practice [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
<span class="h4"><a class="selflink" id="section-3.2.1" href="#section-3.2.1">3.2.1</a>. Use with a Multicast Control/Routing Protocol</span>
+----------+ +--------+ +----------+
| Ingress | +-+ +-+ +-+ | Egress | | Egress |
| Endpoint +->+R+--+R+--+R+--+ Router |--+ Endpoint +->+
+----+-----+ +-+ +-+ +-+ +---+--+-+ +----+-----+ |
^ ^ ^ ^ | ^ | |
| | | | | | | |
+----+----+ + - - - < - - - - + | +----+----+ | Reported
| Ingress | multicast Prune | | Egress | | Ingress
| Meter | | | Meter | | Measurement
+---------+ | +----+----+ |
| | |
| +----+----+ |
| | Measure +<--+
| +----+----+
| |
| +----+----+
multicast | | Trigger |
Leave | +----+----+
Message | |
+----<----+
Figure 3: An example of a multicast CB controlling the end-to-end
path between an ingress endpoint and an egress endpoint.
Figure 3 shows one example of how a multicast CB could be implemented
at a pair of multicast endpoints (e.g., to implement a Fast-Trip CB,
<a href="#section-5.1">Section 5.1</a>). The ingress endpoint (the sender that sources the
multicast traffic) meters the ingress load, generating an ingress
measurement (e.g., recording timestamped packet counts), and it sends
this measurement to the multicast group together with the traffic it
has measured.
Routers along a multicast path forward the multicast traffic
(including the ingress measurement) to all active endpoint receivers.
Each last hop (egress) router forwards the traffic to one or more
egress endpoints.
In Figure 3, each endpoint includes a meter that performs a local
egress load measurement. An endpoint also extracts the received
ingress measurement from the traffic and compares the ingress and
egress measurements to determine if the CB ought to be triggered.
This measurement has to be robust to loss (see the previous section).
If the CB is triggered, it generates a multicast leave message for
the egress (e.g., an IGMP or MLD message sent to the last-hop
router), which causes the upstream router to cease forwarding traffic
to the egress endpoint [<a href="./rfc1112" title=""Host extensions for IP multicasting"">RFC1112</a>].
<span class="grey">Fairhurst Best Current Practice [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
Any multicast router that has no active receivers for a particular
multicast group will prune traffic for that group, sending a prune
message to its upstream router. This starts the process of releasing
the capacity used by the traffic and is a standard multicast routing
function (e.g., using Protocol Independent Multicast - Sparse Mode
(PIM-SM) routing protocol [<a href="./rfc7761" title=""Protocol Independent Multicast - Sparse Mode (PIM-SM): Protocol Specification (Revised)"">RFC7761</a>]). Each egress operates
autonomously, and the CB "reaction" is executed by the multicast
control plane (e.g., by PIM) requiring no explicit signaling by the
CB along the communication path used for the control messages. Note
there is no direct communication with the ingress; hence, a triggered
CB only controls traffic downstream of the first-hop multicast
router. It does not stop traffic flowing from the sender to the
first-hop router; this is common practice for multicast deployment.
The method could also be used with a multicast tunnel or subnetwork
(e.g., <a href="#section-5.2">Section 5.2</a>, <a href="#section-5.3">Section 5.3</a>), where a meter at the ingress
generates additional control messages to carry the measurement data
towards the egress where the egress metering is implemented.
<span class="h4"><a class="selflink" id="section-3.2.2" href="#section-3.2.2">3.2.2</a>. Use with Control Protocols Supporting Pre-provisioned Capacity</span>
Some paths are provisioned using a control protocol, e.g., flows
provisioned using the Multiprotocol Label Switching (MPLS) services,
paths provisioned using the Resource Reservation Protocol (RSVP),
networks utilizing Software-Defined Network (SDN) functions, or
admission-controlled Differentiated Services. Figure 1 shows one
expected use case, where in this usage a separate device could be
used to perform the measurement and trigger functions. The reaction
generated by the trigger could take the form of a network-control
message sent to the ingress and/or other network elements causing
these elements to react to the CB. Examples of this type of use are
provided in <a href="#section-5.3">Section 5.3</a>.
<span class="h4"><a class="selflink" id="section-3.2.3" href="#section-3.2.3">3.2.3</a>. Unidirectional CBs over Controlled Paths</span>
A CB can be used to control unidirectional UDP traffic, providing
that there is a communication path that can be used for control
messages to connect the functional components at the ingress and
egress. This communication path for the control messages can exist
in networks for which the traffic flow is purely unidirectional. For
example, a multicast stream that sends packets across an Internet
path and can use multicast routing to prune flows to shed network
load. Some other types of subnetwork also utilize control protocols
that can be used to control traffic flows.
<span class="grey">Fairhurst Best Current Practice [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Requirements for a Network Transport CB</span>
The requirements for implementing a CB are:
1. There needs to be a communication path for control messages to
carry measurement data from the ingress meter and from the
egress meter to the point of measurement. (Requirements 16-18
relate to the transmission of control messages.)
2. A CB is REQUIRED to define a measurement period over which the
CB Measurement function measures the level of congestion or
loss. This method does not have to detect individual packet
loss, but it MUST have a way to know that packets have been
lost/marked from the traffic flow.
3. An egress meter can also count ECN [<a href="./rfc3168" title=""The Addition of Explicit Congestion Notification (ECN) to IP"">RFC3168</a>] Congestion
Experienced (CE) marks as a part of measurement of congestion,
but in this case, loss MUST also be measured to provide a
complete view of the level of congestion. For tunnels,
[<a href="#ref-CONGESTION-FEEDBACK">CONGESTION-FEEDBACK</a>] describes a way to measure both loss and
ECN-marking; these measurements could be used on a relatively
short timescale to drive a congestion control response and/or
aggregated over a longer timescale with a higher trigger
threshold to drive a CB. Subsequent bullet items in this
section discuss the necessity of using a longer timescale and a
higher trigger threshold.
4. The measurement period used by a CB Measurement function MUST be
longer than the time that current Congestion Control algorithms
need to reduce their rate following detection of congestion.
This is important because end-to-end Congestion Control
algorithms require at least one RTT to notify and adjust the
traffic when congestion is experienced, and congestion
bottlenecks can share traffic with a diverse range of end-to-end
RTTs. The measurement period is therefore expected to be
significantly longer than the RTT experienced by the CB itself.
5. If necessary, a CB MAY combine successive individual meter
samples from the ingress and egress to ensure observation of an
average measurement over a sufficiently long interval. (Note
when meter samples need to be combined, the combination needs to
reflect the sum of the individual sample counts divided by the
total time/volume over which the samples were measured.
Individual samples over different intervals cannot be directly
combined to generate an average value.)
6. A CB MUST be constructed so that it does not trigger under light
or intermittent congestion (see requirements 7-9).
<span class="grey">Fairhurst Best Current Practice [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
7. A CB is REQUIRED to define a threshold to determine whether the
measured congestion is considered excessive.
8. A CB is REQUIRED to define the triggering interval, defining the
period over which the trigger uses the collected measurements.
CBs need to trigger over a sufficiently long period to avoid
additionally penalizing flows with a long path RTT (e.g., many
path RTTs).
9. A CB MUST be robust to multiple congestion events. This usually
will define a number of measured persistent congestion events
per triggering period. For example, a CB MAY combine the
results of several measurement periods to determine if the CB is
triggered (e.g., it is triggered when persistent excessive
congestion is detected in three of the measurements within the
triggering interval when more than three measurements were
collected).
10. The normal reaction to a trigger SHOULD disable all traffic that
contributed to congestion (otherwise, see requirements 11 and
12).
11. The reaction MUST be much more severe than that of a Congestion
Control algorithm (such as TCP's congestion control [<a href="./rfc5681" title=""TCP Congestion Control"">RFC5681</a>] or
TCP-Friendly Rate Control, TFRC [<a href="./rfc5348" title=""TCP Friendly Rate Control (TFRC): Protocol Specification"">RFC5348</a>]), because the CB
reacts to more persistent congestion and operates over longer
timescales (i.e., the overload condition will have persisted for
a longer time before the CB is triggered).
12. A reaction that results in a reduction SHOULD result in reducing
the traffic by at least an order of magnitude. A response that
achieves the reduction by terminating flows, rather than
randomly dropping packets, will often be more desirable to users
of the service. A CB that reduces the rate of a flow, MUST
continue to monitor the level of congestion and MUST further
react to reduce the rate if the CB is again triggered.
13. The reaction to a triggered CB MUST continue for a period that
is at least the triggering interval. Operator intervention will
usually be required to restore a flow. If an automated response
is needed to reset the trigger, then this needs to not be
immediate. The design of an automated reset mechanism needs to
be sufficiently conservative that it does not adversely interact
with other mechanisms (including other CB algorithms that
control traffic over a common path). It SHOULD NOT perform an
automated reset when there is evidence of continued congestion.
<span class="grey">Fairhurst Best Current Practice [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
14. A CB trigger SHOULD be regarded as an abnormal network event.
As such, this event SHOULD be logged. The measurements that
lead to triggering of the CB SHOULD also be logged.
15. The control communication needs to carry measurements
(requirement 1) and, in some uses, also needs to transmit
trigger messages to the ingress. This control communication may
be in or out of band. The use of in-band communication is
RECOMMENDED when either design would be possible. The preferred
CB design is one that triggers when it fails to receive
measurement reports that indicate an absence of congestion, in
contrast to relying on the successful transmission of a
"congested" signal back to the sender. (The feedback signal
could itself be lost under congestion).
In Band: An in-band control method SHOULD assume that loss of
control messages is an indication of potential congestion on
the path, and repeated loss ought to cause the CB to be
triggered. This design has the advantage that it provides
fate-sharing of the traffic flow(s) and the control
communications. This fate-sharing property is weaker when
some or all of the measured traffic is sent using a path that
differs from the path taken by the control traffic (e.g.,
where traffic and control messages follow a different path
due to use of equal-cost multipath routing, traffic
engineering, or tunnels for specific types of traffic).
Out of Band: An out-of-band control method SHOULD NOT trigger a
CB reaction when there is loss of control messages (e.g., a
loss of measurements). This avoids failure amplification/
propagation when the measurement and data paths fail
independently. A failure of an out-of-band communication
path SHOULD be regarded as an abnormal network event and be
handled as appropriate for the network; for example, this
event SHOULD be logged, and additional network operator
action might be appropriate, depending on the network and the
traffic involved.
16. The control communication MUST be designed to be robust to
packet loss. A control message can be lost if there is a
failure of the communication path used for the control messages,
loss is likely also to be experienced during congestion/
overload. This does not imply that it is desirable to provide
reliable delivery (e.g., over TCP), since this can incur
additional delay in responding to congestion. Appropriate
mechanisms could be to duplicate control messages to provide
increased robustness to loss and/or to regard a lack of control
traffic as an indication that excessive congestion could be
<span class="grey">Fairhurst Best Current Practice [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
being experienced [<a href="./rfc8085" title=""UDP Usage Guidelines"">RFC8085</a>]. If control message traffic is sent
over a shared path, it is RECOMMENDED that this control traffic
is prioritized to reduce the probability of loss under
congestion. Control traffic also needs to be considered when
provisioning a network that uses a CB.
17. There are security requirements for the control communication
between endpoints and/or network devices (<a href="#section-7">Section 7</a>). The
authenticity of the source and integrity of the control messages
(measurements and triggers) MUST be protected from off-path
attacks. When there is a risk of an on-path attack, a
cryptographic authentication mechanism for all control/
measurement messages is RECOMMENDED.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Examples of CBs</span>
There are multiple types of CB that could be defined for use in
different deployment cases. There could be cases where a flow
becomes controlled by multiple CBs (e.g., when the traffic of an end-
to-end flow is carried in a tunnel within the network). This section
provides examples of different types of CB.
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. A Fast-Trip CB</span>
[<a id="ref-RFC2309">RFC2309</a>] discusses the dangers of congestion unresponsive flows and
states that "all UDP-based streaming applications should incorporate
effective congestion avoidance mechanisms." Some applications do not
use a full-featured transport (TCP, SCTP, DCCP). These applications
(e.g., using UDP and its UDP-Lite variant) need to provide
appropriate congestion avoidance. Guidance for applications that do
not use congestion-controlled transports is provided in [<a href="./rfc8085" title=""UDP Usage Guidelines"">RFC8085</a>].
Such mechanisms can be designed to react on much shorter timescales
than a CB, that only observes a traffic envelope. Congestion control
methods can also interact with an application to more effectively
control its sending rate.
A Fast-trip CB is the most responsive form of CB. It has a response
time that is only slightly larger than that of the traffic that it
controls. It is suited to traffic with well-understood
characteristics (and could include one or more trigger functions
specifically tailored the type of traffic for which it is designed).
It is not suited to arbitrary network traffic and could be unsuitable
for traffic aggregates, since it could prematurely trigger (e.g.,
when the combined traffic from multiple congestion-controlled flows
leads to short-term overload).
<span class="grey">Fairhurst Best Current Practice [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
Although the mechanisms can be implemented in RTP-aware network
devices, these mechanisms are also suitable for implementation in
endpoints (e.g., as a part of the transport system) where they can
also complement end-to-end congestion control methods. A shorter
response time enables these mechanisms to triggers before other forms
of CB (e.g., CBs operating on traffic aggregates at a point along the
network path).
<span class="h4"><a class="selflink" id="section-5.1.1" href="#section-5.1.1">5.1.1</a>. A Fast-Trip CB for RTP</span>
A set of Fast-Trip CB methods have been specified for use together by
a Real-time Transport Protocol (RTP) flow using the RTP/AVP Profile
[<a href="./rfc8083" title=""Multimedia Congestion Control: Circuit Breakers for Unicast RTP Sessions"">RFC8083</a>]. It is expected that, in the absence of severe congestion,
all RTP applications running on best-effort IP networks will be able
to run without triggering these CBs. An RTP Fast-Trip CB is
therefore implemented as a fail-safe that, when triggered, will
terminate RTP traffic.
The sending endpoint monitors reception of in-band RTP Control
Protocol (RTCP) reception report blocks, as contained in sender
report (SR) or receiver report (RR) packets, that convey reception
quality feedback information. This is used to measure (congestion)
loss, possibly in combination with ECN [<a href="./rfc6679" title=""Explicit Congestion Notification (ECN) for RTP over UDP"">RFC6679</a>].
The CB action (shutdown of the flow) triggers when any of the
following trigger conditions are true:
1. An RTP CB triggers on reported lack of progress.
2. An RTP CB triggers when no receiver reports messages are
received.
3. An RTP CB triggers when the long-term RTP throughput (over many
RTTs) exceeds a hard upper limit determined by a method that
resembles TCP-Friendly Rate Control (TFRC).
4. An RTP CB includes the notion of Media Usability. This CB is
triggered when the quality of the transported media falls below
some required minimum acceptable quality.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. A Slow-Trip CB</span>
A Slow-Trip CB could be implemented in an endpoint or network device.
This type of CB is much slower at responding to congestion than a
Fast-Trip CB. This is expected to be more common.
<span class="grey">Fairhurst Best Current Practice [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
One example where a Slow-Trip CB is needed is where flows or traffic-
aggregates use a tunnel or encapsulation and the flows within the
tunnel do not all support TCP-style congestion control (e.g., TCP,
SCTP, TFRC), see <a href="./rfc8085#section-3.1.3">[RFC8085], Section 3.1.3</a>. A use case is where
tunnels are deployed in the general Internet (rather than "controlled
environments" within an Internet service provider or enterprise
network), especially when the tunnel could need to cross a customer
access router.
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. A Managed CB</span>
A managed CB is implemented in the signaling protocol or management
plane that relates to the traffic aggregate being controlled. This
type of CB is typically applicable when the deployment is within a
"controlled environment".
A CB requires more than the ability to determine that a network path
is forwarding data or to measure the rate of a path -- which are
often normal network operational functions. There is an additional
need to determine a metric for congestion on the path and to trigger
a reaction when a threshold is crossed that indicates persistent
excessive congestion.
The control messages can use either in-band or out-of-band
communications.
<span class="h4"><a class="selflink" id="section-5.3.1" href="#section-5.3.1">5.3.1</a>. A Managed CB for SAToP Pseudowires</span>
<a href="./rfc4553#section-8">Section 8 of [RFC4553]</a>, SAToP Pseudowire Emulation Edge-to-Edge
(PWE3), describes an example of a managed CB for isochronous flows.
If such flows were to run over a pre-provisioned (e.g., Multiprotocol
Label Switching, MPLS) infrastructure, then it could be expected that
the PW would not experience congestion, because a flow is not
expected to either increase (or decrease) their rate. If, instead,
PW traffic is multiplexed with other traffic over the general
Internet, it could experience congestion. [<a href="./rfc4553" title=""Structure- Agnostic Time Division Multiplexing (TDM) over Packet (SAToP)"">RFC4553</a>] states: "If
SAToP PWs run over a PSN providing best-effort service, they SHOULD
monitor packet loss in order to detect 'severe congestion'." The
currently recommended measurement period is 1 second, and the trigger
operates when there are more than three measured Severely Errored
Seconds (SES) within a period. [<a href="./rfc4553" title=""Structure- Agnostic Time Division Multiplexing (TDM) over Packet (SAToP)"">RFC4553</a>] goes on to state that "If
such a condition is detected, a SAToP PW ought to shut down
bi-directionally for some period of time...".
<span class="grey">Fairhurst Best Current Practice [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
The concept was that when the packet-loss ratio (congestion) level
increased above a threshold, the PW was, by default, disabled. This
use case considered fixed-rate transmission, where the PW had no
reasonable way to shed load.
The trigger needs to be set at a rate at which the PW is likely to
experience a serious problem, possibly making the service
noncompliant. At this point, triggering the CB would remove the
traffic preventing undue impact on congestion-responsive traffic
(e.g., TCP). Part of the rationale was that high-loss ratios
typically indicated that something was "broken" and ought to have
already resulted in operator intervention and therefore now need to
trigger this intervention.
An operator-based response to the triggering of a CB provides an
opportunity for other action to restore the service quality (e.g., by
shedding other loads or assigning additional capacity) or to
consciously avoid reacting to the trigger while engineering a
solution to the problem. This could require the trigger function to
send a control message to a third location (e.g., a network
operations center, NOC) that is responsible for operation of the
tunnel ingress, rather than the tunnel ingress itself.
<span class="h4"><a class="selflink" id="section-5.3.2" href="#section-5.3.2">5.3.2</a>. A Managed CB for Pseudowires (PWs)</span>
Pseudowires (PWs) [<a href="./rfc3985" title=""Pseudo Wire Emulation Edge-to-Edge (PWE3) Architecture"">RFC3985</a>] have become a common mechanism for
tunneling traffic, and they could compete for network resources both
with other PWs and with non-PW traffic, such as TCP/IP flows.
[<a id="ref-RFC7893">RFC7893</a>] discusses congestion conditions that can arise when PWs
compete with elastic (i.e., congestion responsive) network traffic
(e.g., TCP traffic). Elastic PWs carrying IP traffic (see [<a href="./rfc4448" title=""Encapsulation Methods for Transport of Ethernet over MPLS Networks"">RFC4448</a>])
do not raise major concerns because all of the traffic involved
responds, reducing the transmission rate when network congestion is
detected.
In contrast, inelastic PWs (e.g., a fixed-bandwidth Time Division
Multiplex, TDM [<a href="./rfc4553" title=""Structure- Agnostic Time Division Multiplexing (TDM) over Packet (SAToP)"">RFC4553</a>] [<a href="./rfc5086" title=""Structure-Aware Time Division Multiplexed (TDM) Circuit Emulation Service over Packet Switched Network (CESoPSN)"">RFC5086</a>] [<a href="./rfc5087" title=""Time Division Multiplexing over IP (TDMoIP)"">RFC5087</a>]) have the potential to
harm congestion-responsive traffic or to contribute to excessive
congestion because inelastic PWs do not adjust their transmission
rate in response to congestion. [<a href="./rfc7893" title=""Pseudowire Congestion Considerations"">RFC7893</a>] analyses TDM PWs, with an
initial conclusion that a TDM PW operating with a degree of loss that
could result in congestion-related problems is also operating with a
degree of loss that results in an unacceptable TDM service. For that
reason, the document suggests that a managed CB that shuts down a PW
when it persistently fails to deliver acceptable TDM service is a
useful means for addressing these congestion concerns. (See
<a href="./rfc7893#appendix-A">Appendix A of [RFC7893]</a> for further discussion.)
<span class="grey">Fairhurst Best Current Practice [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Examples in Which CBs May Not Be Needed</span>
A CB is not required for a single congestion-controlled flow using
TCP, SCTP, TFRC, etc. In these cases, the congestion control methods
are already designed to prevent persistent excessive congestion.
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. CBs over Pre-provisioned Capacity</span>
One common question is whether a CB is needed when a tunnel is
deployed in a private network with pre-provisioned capacity.
In this case, compliant traffic that does not exceed the provisioned
capacity ought not to result in persistent congestion. A CB will
hence only be triggered when there is noncompliant traffic. It could
be argued that this event ought never to happen -- but it could also
be argued that the CB equally ought never to be triggered. If a CB
were to be implemented, it will provide an appropriate response, if
persistent congestion occurs in an operational network.
Implementing a CB will not reduce the performance of the flows, but
in the event that persistent excessive congestion occurs, it protects
network traffic that shares network capacity with these flows. It
also protects network traffic from a failure when CB traffic is
(re)routed to cause additional network load on a non-pre-provisioned
path.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. CBs with Tunnels Carrying Congestion-Controlled Traffic</span>
IP-based traffic is generally assumed to be congestion controlled,
i.e., it is assumed that the transport protocols generating IP-based
traffic at the sender already employ mechanisms that are sufficient
to address congestion on the path. Therefore, a question arises when
people deploy a tunnel that is thought to carry only an aggregate of
TCP traffic (or traffic using some other congestion control method):
Is there an advantage in this case in using a CB?
TCP (and SCTP) traffic in a tunnel is expected to reduce the
transmission rate when network congestion is detected. Other
transports (e.g., using UDP) can employ mechanisms that are
sufficient to address congestion on the path [<a href="./rfc8085" title=""UDP Usage Guidelines"">RFC8085</a>]. However,
even if the individual flows sharing a tunnel each implement a
congestion control mechanism, and individually reduce their
transmission rate when network congestion is detected, the overall
traffic resulting from the aggregate of the flows does not
necessarily avoid persistent congestion. For instance, most
congestion control mechanisms require long-lived flows to react to
reduce the rate of a flow. An aggregate of many short flows could
result in many flows terminating before they experience congestion.
<span class="grey">Fairhurst Best Current Practice [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
It is also often impossible for a tunnel service provider to know
that the tunnel only contains congestion-controlled traffic (e.g.,
Inspecting packet headers might not be possible). Some IP-based
applications might not implement adequate mechanisms to address
congestion. The important thing to note is that if the aggregate of
the traffic does not result in persistent excessive congestion
(impacting other flows), then the CB will not trigger. This is the
expected case in this context -- so implementing a CB ought not to
reduce performance of the tunnel, but in the event that persistent
excessive congestion occurs, the CB protects other network traffic
that shares capacity with the tunnel traffic.
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. CBs with Unidirectional Traffic and No Control Path</span>
A one-way forwarding path could have no associated communication path
for sending control messages; therefore, it cannot be controlled
using a CB (compare with <a href="#section-3.2.3">Section 3.2.3</a>).
A one-way service could be provided using a path with dedicated
pre-provisioned capacity that is not shared with other elastic
Internet flows (i.e., flows that vary their rate). A forwarding path
could also be shared with other flows. One way to mitigate the
impact of traffic on the other flows is to manage the traffic
envelope by using ingress policing. Supporting this type of traffic
in the general Internet requires operator monitoring to detect and
respond to persistent excessive congestion.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Security Considerations</span>
All CB mechanisms rely upon coordination between the ingress and
egress meters and communication with the trigger function. This is
usually achieved by passing network-control information (or protocol
messages) across the network. Timely operation of a CB depends on
the choice of measurement period. If the receiver has an interval
that is overly long, then the responsiveness of the CB decreases.
This impacts the ability of the CB to detect and react to congestion.
If the interval is too short, the CB could trigger prematurely
resulting in insufficient time for other mechanisms to act and
potentially resulting in unnecessary disruption to the service.
A CB could potentially be exploited by an attacker to mount a Denial-
of-Service (DoS) attack against the traffic being controlled by the
CB. Therefore, mechanisms need to be implemented to prevent attacks
on the network-control information that would result in DoS.
The authenticity of the source and integrity of the control messages
(measurements and triggers) MUST be protected from off-path attacks.
Without protection, it could be trivial for an attacker to inject
<span class="grey">Fairhurst Best Current Practice [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
fake or modified control/measurement messages (e.g., indicating high
packet loss rates) causing a CB to trigger and therefore to mount a
DoS attack that disrupts a flow.
Simple protection can be provided by using a randomized source port,
or equivalent field in the packet header (such as the RTP SSRC value
and the RTP sequence number) expected not to be known to an off-path
attacker. Stronger protection can be achieved using a secure
authentication protocol to mitigate this concern.
An attack on the control messages is relatively easy for an attacker
on the control path when the messages are neither encrypted nor
authenticated. Use of a cryptographic authentication mechanism for
all control/measurement messages is RECOMMENDED to mitigate this
concern, and would also provide protection from off-path attacks.
There is a design trade-off between the cost of introducing
cryptographic security for control messages and the desire to protect
control communication. For some deployment scenarios, the value of
additional protection from DoS attacks will therefore lead to a
requirement to authenticate all control messages.
Transmission of network-control messages consumes network capacity.
This control traffic needs to be considered in the design of a CB and
could potentially add to network congestion. If this traffic is sent
over a shared path, it is RECOMMENDED that this control traffic be
prioritized to reduce the probability of loss under congestion.
Control traffic also needs to be considered when provisioning a
network that uses a CB.
The CB MUST be designed to be robust to packet loss that can also be
experienced during congestion/overload. Loss of control messages
could be a side-effect of a congested network, but it also could
arise from other causes <a href="#section-4">Section 4</a>.
The security implications depend on the design of the mechanisms, the
type of traffic being controlled and the intended deployment
scenario. Each design of a CB MUST therefore evaluate whether the
particular CB mechanism has new security implications.
<span class="grey">Fairhurst Best Current Practice [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</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>,
DOI 10.17487/RFC2119, March 1997,
<<a href="http://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC3168">RFC3168</a>] Ramakrishnan, K., Floyd, S., and D. Black, "The Addition
of Explicit Congestion Notification (ECN) to IP",
<a href="./rfc3168">RFC 3168</a>, DOI 10.17487/RFC3168, September 2001,
<<a href="http://www.rfc-editor.org/info/rfc3168">http://www.rfc-editor.org/info/rfc3168</a>>.
[<a id="ref-RFC8085">RFC8085</a>] Eggert, L., Fairhurst, G., and G. Shepherd, "UDP Usage
Guidelines", <a href="https://www.rfc-editor.org/bcp/bcp145">BCP 145</a>, <a href="./rfc8085">RFC 8085</a>, DOI 10.17487/RFC8085,
March 2017, <<a href="http://www.rfc-editor.org/info/rfc8085">http://www.rfc-editor.org/info/rfc8085</a>>.
<span class="h3"><a class="selflink" id="section-8.2" href="#section-8.2">8.2</a>. Informative References</span>
[<a id="ref-CONGESTION-FEEDBACK">CONGESTION-FEEDBACK</a>]
Wei, X., Zhu, L., and L. Deng, "Tunnel Congestion
Feedback", Work in Progress,
<a href="./draft-ietf-tsvwg-tunnel-congestion-feedback-04">draft-ietf-tsvwg-tunnel-congestion-feedback-04</a>,
January 2017.
[<a id="ref-Jacobson88">Jacobson88</a>]
Jacobson, V., "Congestion Avoidance and Control", SIGCOMM
Symposium proceedings on Communications architectures
and protocols, August 1988.
[<a id="ref-RFC1112">RFC1112</a>] Deering, S., "Host extensions for IP multicasting", STD 5,
<a href="./rfc1112">RFC 1112</a>, DOI 10.17487/RFC1112, August 1989,
<<a href="http://www.rfc-editor.org/info/rfc1112">http://www.rfc-editor.org/info/rfc1112</a>>.
[<a id="ref-RFC2309">RFC2309</a>] Braden, B., Clark, D., Crowcroft, J., Davie, B., Deering,
S., Estrin, D., Floyd, S., Jacobson, V., Minshall, G.,
Partridge, C., Peterson, L., Ramakrishnan, K., Shenker,
S., Wroclawski, J., and L. Zhang, "Recommendations on
Queue Management and Congestion Avoidance in the
Internet", <a href="./rfc2309">RFC 2309</a>, DOI 10.17487/RFC2309, April 1998,
<<a href="http://www.rfc-editor.org/info/rfc2309">http://www.rfc-editor.org/info/rfc2309</a>>.
[<a id="ref-RFC2914">RFC2914</a>] Floyd, S., "Congestion Control Principles", <a href="https://www.rfc-editor.org/bcp/bcp41">BCP 41</a>,
<a href="./rfc2914">RFC 2914</a>, DOI 10.17487/RFC2914, September 2000,
<<a href="http://www.rfc-editor.org/info/rfc2914">http://www.rfc-editor.org/info/rfc2914</a>>.
<span class="grey">Fairhurst Best Current Practice [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
[<a id="ref-RFC3985">RFC3985</a>] Bryant, S., Ed. and P. Pate, Ed., "Pseudo Wire Emulation
Edge-to-Edge (PWE3) Architecture", <a href="./rfc3985">RFC 3985</a>,
DOI 10.17487/RFC3985, March 2005,
<<a href="http://www.rfc-editor.org/info/rfc3985">http://www.rfc-editor.org/info/rfc3985</a>>.
[<a id="ref-RFC4448">RFC4448</a>] Martini, L., Ed., Rosen, E., El-Aawar, N., and G. Heron,
"Encapsulation Methods for Transport of Ethernet over MPLS
Networks", <a href="./rfc4448">RFC 4448</a>, DOI 10.17487/RFC4448, April 2006,
<<a href="http://www.rfc-editor.org/info/rfc4448">http://www.rfc-editor.org/info/rfc4448</a>>.
[<a id="ref-RFC4553">RFC4553</a>] Vainshtein, A., Ed. and YJ. Stein, Ed., "Structure-
Agnostic Time Division Multiplexing (TDM) over Packet
(SAToP)", <a href="./rfc4553">RFC 4553</a>, DOI 10.17487/RFC4553, June 2006,
<<a href="http://www.rfc-editor.org/info/rfc4553">http://www.rfc-editor.org/info/rfc4553</a>>.
[<a id="ref-RFC5086">RFC5086</a>] Vainshtein, A., Ed., Sasson, I., Metz, E., Frost, T., and
P. Pate, "Structure-Aware Time Division Multiplexed (TDM)
Circuit Emulation Service over Packet Switched Network
(CESoPSN)", <a href="./rfc5086">RFC 5086</a>, DOI 10.17487/RFC5086, December 2007,
<<a href="http://www.rfc-editor.org/info/rfc5086">http://www.rfc-editor.org/info/rfc5086</a>>.
[<a id="ref-RFC5087">RFC5087</a>] Stein, Y(J)., Shashoua, R., Insler, R., and M. Anavi,
"Time Division Multiplexing over IP (TDMoIP)", <a href="./rfc5087">RFC 5087</a>,
DOI 10.17487/RFC5087, December 2007,
<<a href="http://www.rfc-editor.org/info/rfc5087">http://www.rfc-editor.org/info/rfc5087</a>>.
[<a id="ref-RFC5348">RFC5348</a>] Floyd, S., Handley, M., Padhye, J., and J. Widmer, "TCP
Friendly Rate Control (TFRC): Protocol Specification",
<a href="./rfc5348">RFC 5348</a>, DOI 10.17487/RFC5348, September 2008,
<<a href="http://www.rfc-editor.org/info/rfc5348">http://www.rfc-editor.org/info/rfc5348</a>>.
[<a id="ref-RFC5681">RFC5681</a>] Allman, M., Paxson, V., and E. Blanton, "TCP Congestion
Control", <a href="./rfc5681">RFC 5681</a>, DOI 10.17487/RFC5681, September 2009,
<<a href="http://www.rfc-editor.org/info/rfc5681">http://www.rfc-editor.org/info/rfc5681</a>>.
[<a id="ref-RFC6679">RFC6679</a>] Westerlund, M., Johansson, I., Perkins, C., O'Hanlon, P.,
and K. Carlberg, "Explicit Congestion Notification (ECN)
for RTP over UDP", <a href="./rfc6679">RFC 6679</a>, DOI 10.17487/RFC6679, August
2012, <<a href="http://www.rfc-editor.org/info/rfc6679">http://www.rfc-editor.org/info/rfc6679</a>>.
[<a id="ref-RFC7761">RFC7761</a>] Fenner, B., Handley, M., Holbrook, H., Kouvelas, I.,
Parekh, R., Zhang, Z., and L. Zheng, "Protocol Independent
Multicast - Sparse Mode (PIM-SM): Protocol Specification
(Revised)", STD 83, <a href="./rfc7761">RFC 7761</a>, DOI 10.17487/RFC7761, March
2016, <<a href="http://www.rfc-editor.org/info/rfc7761">http://www.rfc-editor.org/info/rfc7761</a>>.
<span class="grey">Fairhurst Best Current Practice [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc8084">RFC 8084</a> March 2017</span>
[<a id="ref-RFC7893">RFC7893</a>] Stein, Y(J)., Black, D., and B. Briscoe, "Pseudowire
Congestion Considerations", <a href="./rfc7893">RFC 7893</a>,
DOI 10.17487/RFC7893, June 2016,
<<a href="http://www.rfc-editor.org/info/rfc7893">http://www.rfc-editor.org/info/rfc7893</a>>.
[<a id="ref-RFC8083">RFC8083</a>] Perkins, C. and V. Singh, "Multimedia Congestion Control:
Circuit Breakers for Unicast RTP Sessions", <a href="./rfc8083">RFC 8083</a>,
DOI 10.17487/RFC8083, March 2017,
<<a href="http://www.rfc-editor.org/info/rfc8083">http://www.rfc-editor.org/info/rfc8083</a>>.
Acknowledgments
There are many people who have discussed and described the issues
that have motivated this document. Contributions and comments
included: Lars Eggert, Colin Perkins, David Black, Matt Mathis,
Andrew McGregor, Bob Briscoe, and Eliot Lear. This work was partly
funded by the European Community under its Seventh Framework
Programme through the Reducing Internet Transport Latency (RITE)
project (ICT-317700).
Author's Address
Godred Fairhurst
University of Aberdeen
School of Engineering
Fraser Noble Building
Aberdeen, Scotland AB24 3UE
United Kingdom
Email: gorry@erg.abdn.ac.uk
URI: <a href="http://www.erg.abdn.ac.uk">http://www.erg.abdn.ac.uk</a>
Fairhurst Best Current Practice [Page 24]
</pre>
|